/* ============================================================
   calculators.css — Master stylesheet for ALL calculator pages
   Location: public/css/calculators.css
   Usage in every blade: <link rel="stylesheet" href="{{ asset('css/calculators.css') }}">

   HOW COLORS WORK:
   Each blade sets 3 CSS variables on <body> or a wrapper div.
   Everything else is automatic.

   HVAC        → --calc-primary:#2563eb; --calc-light:#eff6ff; --calc-border:#bfdbfe;
   Roofing     → --calc-primary:#7c3aed; --calc-light:#f5f3ff; --calc-border:#ddd6fe;
   Plumbing    → --calc-primary:#0891b2; --calc-light:#ecfeff; --calc-border:#a5f3fc;
   Electrical  → --calc-primary:#d97706; --calc-light:#fffbeb; --calc-border:#fde68a;
   Remodeling  → --calc-primary:#059669; --calc-light:#ecfdf5; --calc-border:#a7f3d0;
   Painting    → --calc-primary:#db2777; --calc-light:#fdf2f8; --calc-border:#fbcfe8;
   Flooring    → --calc-primary:#92400e; --calc-light:#fff7ed; --calc-border:#fed7aa;
   Landscaping → --calc-primary:#15803d; --calc-light:#f0fdf4; --calc-border:#bbf7d0;
   Cleaning    → --calc-primary:#0e7490; --calc-light:#ecfeff; --calc-border:#99f6e4;
   Energy      → --calc-primary:#b45309; --calc-light:#fef3c7; --calc-border:#fde68a;
   Emergency   → --calc-primary:#dc2626; --calc-light:#fef2f2; --calc-border:#fecaca;
   Exterior    → --calc-primary:#475569; --calc-light:#f8fafc; --calc-border:#cbd5e1;
   Solar       → --calc-primary:#d97706; --calc-light:#fffbeb; --calc-border:#fde68a;
   Doors       → --calc-primary:#7c3aed; --calc-light:#f5f3ff; --calc-border:#ddd6fe;
   Decking     → --calc-primary:#92400e; --calc-light:#fff7ed; --calc-border:#fed7aa;
   Fencing     → --calc-primary:#15803d; --calc-light:#f0fdf4; --calc-border:#bbf7d0;
   Concrete    → --calc-primary:#475569; --calc-light:#f8fafc; --calc-border:#cbd5e1;
   Real Estate → --calc-primary:#1d4ed8; --calc-light:#eff6ff; --calc-border:#bfdbfe;
   Outdoor     → --calc-primary:#0891b2; --calc-light:#ecfeff; --calc-border:#a5f3fc;
   Windows     → --calc-primary:#2563eb; --calc-light:#eff6ff; --calc-border:#bfdbfe;
   ============================================================ */


/* ── DEFAULT VARIABLES (HVAC/blue — override per blade) ── */
:root {
    --calc-primary: #2563eb;
    --calc-light:   #eff6ff;
    --calc-border:  #bfdbfe;
    --calc-dark:    #1d4ed8;
    --calc-text:    #1e40af;
}


/* ============================================================
   HERO SECTION
   ============================================================ */
.cshow-hero {
    background: linear-gradient(135deg, #0f172a 0%, #1e293b 55%, #0f172a 100%);
    padding: 3.5rem 0 6rem;
    position: relative;
    overflow: hidden;
}
.cshow-hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background:
        radial-gradient(ellipse at 68% 45%, rgba(37,99,235,.16) 0%, transparent 52%),
        radial-gradient(ellipse at 12% 75%, rgba(16,185,129,.08) 0%, transparent 38%);
    pointer-events: none;
}
.cshow-hero::after {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        linear-gradient(rgba(255,255,255,.022) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255,255,255,.022) 1px, transparent 1px);
    background-size: 44px 44px;
    pointer-events: none;
}
.hz { position: relative; z-index: 2; }


/* ── BREADCRUMBS ── */
.hbc {
    display: flex;
    align-items: center;
    gap: .375rem;
    font-size: .8rem;
    font-weight: 600;
    margin-bottom: 1.25rem;
    flex-wrap: wrap;
}
.hbc a             { color: rgba(255,255,255,.45); text-decoration: none; transition: color .2s; }
.hbc a:hover       { color: #fff; }
.hbc span          { color: rgba(255,255,255,.2); }
.hbc strong        { color: rgba(255,255,255,.85); }


/* ── EYEBROW BADGE ── */
.eyebrow {
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    background: rgba(37,99,235,.18);
    color: #93c5fd;
    border: 1px solid rgba(37,99,235,.32);
    padding: .35rem 1rem;
    border-radius: 50px;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .8px;
    margin-bottom: 1.125rem;
}
.ldot {
    width: 7px;
    height: 7px;
    background: #22c55e;
    border-radius: 50%;
    animation: blink 2s infinite;
}
@keyframes blink { 0%,100%{opacity:1} 50%{opacity:.25} }


/* ── HERO HEADING ── */
.cshow-hero h1 {
    color: #fff;
    font-size: clamp(1.75rem, 4.2vw, 2.875rem);
    font-weight: 900;
    line-height: 1.1;
    margin-bottom: .75rem;
    font-family: 'Poppins', sans-serif;
}
.city-hl {
    background: linear-gradient(135deg, #60a5fa 0%, #34d399 100%);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
}
.hero-sub {
    color: rgba(255,255,255,.62);
    font-size: .9375rem;
    margin-bottom: 1.375rem;
    line-height: 1.65;
}


/* ── HERO CHIPS ── */
.hchips { display: flex; flex-wrap: wrap; gap: .5rem; }
.hchip {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: rgba(255,255,255,.06);
    border: 1px solid rgba(255,255,255,.1);
    color: rgba(255,255,255,.72);
    padding: .275rem .8rem;
    border-radius: 50px;
    font-size: .74rem;
    font-weight: 700;
}
.hchip i { color: #34d399; font-size: .7rem; }


/* ============================================================
   PULL-UP WRAPPER
   ============================================================ */
.pullup {
    margin-top: -4.5rem;
    position: relative;
    z-index: 10;
    padding-bottom: 5rem;
}


/* ============================================================
   LOCATION BAR
   ============================================================ */
.loc-bar {
    background: #fff;
    border-radius: 14px;
    padding: .875rem 1.375rem;
    box-shadow: 0 4px 20px rgba(0,0,0,.07);
    border: 1px solid #e2e8f0;
    margin-bottom: 1.5rem;
    display: flex;
    align-items: center;
    gap: .875rem;
    flex-wrap: wrap;
}
.loc-lbl {
    display: flex;
    align-items: center;
    gap: .4rem;
    font-size: .775rem;
    font-weight: 800;
    color: #475569;
    text-transform: uppercase;
    letter-spacing: .5px;
    white-space: nowrap;
}
.loc-lbl i { color: var(--calc-primary); }
.loc-sels  { display: flex; align-items: center; gap: .625rem; flex: 1; flex-wrap: wrap; }
.loc-sel {
    appearance: none;
    background: #f8fafc url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e") no-repeat right .5rem center/13px;
    border: 1.5px solid #e2e8f0;
    border-radius: 9px;
    padding: .45rem 1.875rem .45rem .8rem;
    font-size: .85rem;
    font-weight: 700;
    color: #0f172a;
    cursor: pointer;
    min-width: 155px;
    transition: border-color .2s;
}
.loc-sel:focus         { border-color: var(--calc-primary); outline: none; box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.loc-sel:disabled      { opacity: .4; cursor: not-allowed; }
.loc-arr               { color: #cbd5e1; font-size: .7rem; }
.btn-go {
    background: var(--calc-primary);
    color: #fff;
    border: none;
    padding: .45rem 1.125rem;
    border-radius: 9px;
    font-weight: 800;
    font-size: .85rem;
    cursor: pointer;
    transition: all .25s;
    white-space: nowrap;
}
.btn-go:hover { background: var(--calc-dark); transform: translateY(-1px); }


/* ============================================================
   CALCULATOR CARD
   ============================================================ */
.cc {
    background: #fff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 36px rgba(0,0,0,.07);
    overflow: hidden;
    animation: fadeUp .4s ease both;
}
.cc-head {
    background: linear-gradient(135deg, #f8fafc, #f1f5f9);
    padding: 1.125rem 1.875rem;
    border-bottom: 1px solid #e2e8f0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .875rem;
}
.sbadge {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: var(--calc-primary);
    color: #fff;
    padding: .2rem .8rem;
    border-radius: 50px;
    font-size: .68rem;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .5px;
}
.cc-body { padding: 1.875rem; }


/* ── SLIDER ── */
.sl-hd {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: .875rem;
}
.sl-lbl   { font-size: .9375rem; font-weight: 800; color: #0f172a; }
.sqbadge  {
    background: var(--calc-light);
    color: var(--calc-text);
    border: 1.5px solid var(--calc-border);
    padding: .275rem .9rem;
    border-radius: 50px;
    font-size: .9rem;
    font-weight: 900;
}
.rtrack {
    -webkit-appearance: none;
    width: 100%;
    height: 6px;
    border-radius: 999px;
    background: linear-gradient(to right, var(--calc-primary) 33%, #e2e8f0 33%);
    outline: none;
    cursor: pointer;
}
.rtrack::-webkit-slider-thumb {
    -webkit-appearance: none;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: #fff;
    border: 3px solid var(--calc-primary);
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(37,99,235,.3);
    transition: transform .2s;
}
.rtrack::-webkit-slider-thumb:hover { transform: scale(1.18); }
.rhints {
    display: flex;
    justify-content: space-between;
    font-size: .7rem;
    color: #94a3b8;
    font-weight: 600;
    margin-top: .4rem;
}


/* ── TIER OPTIONS ── */
.tier-lbl  { font-size: .9375rem; font-weight: 800; color: #0f172a; margin-bottom: .875rem; }
.tgrid     { display: grid; grid-template-columns: repeat(3,1fr); gap: .75rem; }
.topt {
    border: 2px solid #e2e8f0;
    border-radius: 13px;
    padding: 1rem .75rem;
    text-align: center;
    cursor: pointer;
    transition: all .25s;
    background: #fff;
    position: relative;
    user-select: none;
}
.topt:hover        { border-color: var(--calc-primary); background: var(--calc-light); transform: translateY(-2px); }
.topt.active       { border-color: var(--calc-primary); background: linear-gradient(135deg, var(--calc-light), #dbeafe); transform: translateY(-4px); box-shadow: 0 8px 22px rgba(37,99,235,.14); }
.topt.active::after {
    content: '✓';
    position: absolute;
    top: 7px; right: 9px;
    background: var(--calc-primary);
    color: #fff;
    width: 19px; height: 19px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: .65rem;
    font-weight: 900;
}
.tem  { font-size: 1.625rem; display: block; margin-bottom: .4rem; }
.tnm  { font-size: .825rem; font-weight: 800; color: #0f172a; }
.tseer{ font-size: .7rem; color: #64748b; font-weight: 600; margin-top: .15rem; }
.ttag { display: inline-block; margin-top: .35rem; font-size: .64rem; font-weight: 800; padding: .1rem .45rem; border-radius: 50px; }
.tt-s { background: #d1fae5; color: #065f46; }
.tt-p { background: var(--calc-light); color: var(--calc-text); }
.tt-l { background: #fef3c7; color: #92400e; }


/* ── RESULT BOX ── */
.rbox {
    background: #0f172a;
    border-radius: 17px;
    padding: 1.75rem;
    position: relative;
    overflow: hidden;
    margin-top: 1.5rem;
}
.rbox::before {
    content: '';
    position: absolute;
    top: -35px; right: -35px;
    width: 130px; height: 130px;
    background: rgba(37,99,235,.18);
    border-radius: 50%;
    filter: blur(35px);
    pointer-events: none;
}
.rtop {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.25rem;
}
.rlbl   { font-size: .72rem; color: rgba(255,255,255,.4); font-weight: 700; text-transform: uppercase; letter-spacing: .5px; margin-bottom: .35rem; }
.rprice {
    font-size: clamp(1.75rem, 3.5vw, 2.375rem);
    font-weight: 900;
    color: #34d399;
    font-family: 'Poppins', sans-serif;
    line-height: 1;
    transition: opacity .3s;
}
.rprice.dim { opacity: .3; }
.rnote      { font-size: .775rem; color: rgba(255,255,255,.4); margin-top: .35rem; }
.tontag {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: rgba(52,211,153,.1);
    border: 1px solid rgba(52,211,153,.22);
    color: #34d399;
    padding: .325rem .8rem;
    border-radius: 50px;
    font-size: .775rem;
    font-weight: 700;
    white-space: nowrap;
    flex-shrink: 0;
}
.bstrip {
    display: grid;
    grid-template-columns: repeat(3,1fr);
    gap: .625rem;
    padding-top: 1.125rem;
    border-top: 1px solid rgba(255,255,255,.07);
}
.bi      { text-align: center; }
.bilbl   { font-size: .64rem; color: rgba(255,255,255,.32); font-weight: 700; text-transform: uppercase; margin-bottom: .2rem; }
.bival   { font-size: .9375rem; font-weight: 800; color: rgba(255,255,255,.82); }


/* ── DISCLAIMER ── */
.disc {
    margin-top: .875rem;
    padding: .8rem 1rem;
    background: #fffbeb;
    border: 1px solid #fde68a;
    border-radius: 10px;
    font-size: .775rem;
    color: #78350f;
    font-weight: 600;
    display: flex;
    gap: .5rem;
    align-items: flex-start;
}
.disc i { color: #f59e0b; flex-shrink: 0; margin-top: .1rem; }


/* ============================================================
   LEAD FORM CARD
   ============================================================ */
.lcard {
    background: #fff;
    border-radius: 20px;
    border: 1px solid #e2e8f0;
    box-shadow: 0 10px 36px rgba(0,0,0,.07);
    overflow: hidden;
    animation: fadeUp .45s ease .1s both;
}
.ltop {
    background: linear-gradient(135deg, #0f172a 0%, #1e3a5f 100%);
    padding: .875rem 1.125rem;
    text-align: center;
}
.lhot {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    background: rgba(239,68,68,.18);
    color: #fca5a5;
    border: 1px solid rgba(239,68,68,.28);
    padding: .2rem .7rem;
    border-radius: 50px;
    font-size: .64rem;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-bottom: .6rem;
}
.lttl  { color: #fff; font-size: .9375rem; font-weight: 900; margin-bottom: .2rem; font-family: 'Poppins', sans-serif; }
.lstxt { color: rgba(255,255,255,.55); font-size: .72rem; line-height: 1.4; }
.lbody { padding: 1rem 1.125rem; }
.ebox  { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: .55rem .875rem; margin-bottom: .75rem; }
.elbl  { font-size: .6rem; color: #94a3b8; font-weight: 700; text-transform: uppercase; margin-bottom: .15rem; }
.eval  { font-size: 1.0625rem; font-weight: 900; color: var(--calc-primary); font-family: 'Poppins', sans-serif; }
.lfi {
    width: 100%;
    border: 1.5px solid #e2e8f0;
    border-radius: 8px;
    padding: .55rem .8rem;
    font-size: .8rem;
    font-weight: 600;
    margin-bottom: .5rem;
    color: #0f172a;
    transition: border-color .2s;
    background: #fff;
    box-sizing: border-box;
}
.lfi:focus       { border-color: var(--calc-primary); outline: none; box-shadow: 0 0 0 3px rgba(37,99,235,.1); }
.lfi::placeholder{ color: #94a3b8; font-weight: 600; }
.bsub {
    width: 100%;
    background: linear-gradient(135deg, #f59e0b, #d97706);
    color: #000;
    border: none;
    padding: .7rem 1rem;
    border-radius: 9px;
    font-weight: 900;
    font-size: .825rem;
    cursor: pointer;
    transition: all .3s;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: .45rem;
}
.bsub:hover    { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(245,158,11,.38); }
.bsub:disabled { opacity: .55; cursor: not-allowed; transform: none; box-shadow: none; }
.trlist        { margin-top: .625rem; display: flex; flex-direction: column; gap: .25rem; }
.tri           { display: flex; align-items: center; gap: .35rem; font-size: .7rem; color: #64748b; font-weight: 600; }
.tri i         { color: #10b981; font-size: .8rem; }


/* ── LEAD SUCCESS STATE ── */
.lsucc       { display: none; text-align: center; padding: 1.5rem 1rem; }
.lsucc.show  { display: block; }
.si          { font-size: 2.75rem; margin-bottom: .625rem; }
.sttl        { font-size: 1.0625rem; font-weight: 900; color: #0f172a; margin-bottom: .35rem; font-family: 'Poppins', sans-serif; }
.ssub        { font-size: .8125rem; color: #64748b; line-height: 1.55; }
.spdf        { margin-top: .875rem; background: var(--calc-light); border: 1px solid var(--calc-border); border-radius: 9px; padding: .7rem .9375rem; font-size: .775rem; color: var(--calc-text); font-weight: 700; display: flex; align-items: center; gap: .5rem; }


/* ============================================================
   AD UNITS
   ============================================================ */
.ad-unit          { background: #fff; border: 1px solid #e8ecf0; border-radius: 12px; overflow: hidden; }
.ad-label         { display: block; text-align: center; font-size: .6rem; font-weight: 700; color: #94a3b8; text-transform: uppercase; letter-spacing: .8px; padding: .3rem 0 .25rem; background: #f8fafc; border-bottom: 1px solid #f1f5f9; }
.ad-top-banner    { margin-bottom: 1.5rem; }
.ad-top-banner    .ad-inner { min-height: 90px; display: flex; align-items: center; justify-content: center; }
.ad-in-content    { margin: 1.5rem 0; }
.ad-in-content    .ad-inner { min-height: 280px; display: flex; align-items: center; justify-content: center; }
.ad-sidebar       { margin-bottom: 1.5rem; }
.ad-sidebar       .ad-inner { min-height: 250px; display: flex; align-items: center; justify-content: center; }
.ad-bottom-banner { margin: 2.5rem 0 0; padding: 1.5rem 0; background: #f1f5f9; border-top: 1px solid #e2e8f0; border-bottom: 1px solid #e2e8f0; text-align: center; }
.ad-bottom-banner .ad-label { background: transparent; border: none; margin-bottom: .5rem; }
.ad-bottom-banner .ad-inner { min-height: 90px; display: inline-flex; align-items: center; justify-content: center; max-width: 728px; width: 100%; background: #fff; border: 1px solid #e2e8f0; border-radius: 10px; }


/* ============================================================
   SEO CONTENT BLOCKS
   ============================================================ */
.seo-block            { background: #fff; border: 1px solid #e2e8f0; border-radius: 20px; padding: 1.75rem; margin-top: 1.5rem; }
.seo-block h2         { font-size: 1.125rem; font-weight: 800; color: #0f172a; margin: 0 0 .875rem; display: flex; align-items: center; gap: .5rem; }
.seo-block h2 i       { color: var(--calc-primary); }
.seo-block h3         { font-size: .9375rem; font-weight: 700; color: #1e293b; margin: 1.25rem 0 .5rem; }
.seo-block p          { font-size: .875rem; color: #475569; line-height: 1.75; margin-bottom: .75rem; }
.seo-block strong     { color: #0f172a; }


/* ── COST TABLE ── */
.cost-tbl           { width: 100%; border-collapse: collapse; font-size: .8rem; margin: .875rem 0; }
.cost-tbl th        { background: #1e3a5f; color: #fff; padding: .6rem .75rem; font-weight: 800; text-align: left; border: 1px solid #1e3a5f; }
.cost-tbl td        { padding: .55rem .75rem; color: #334155; border: 1px solid #e2e8f0; }
.cost-tbl tr:nth-child(even) td { background: #f8fafc; }
.cost-tbl .hl td    { background: var(--calc-light); font-weight: 800; color: var(--calc-text); }
.tbl-note           { font-size: .72rem; color: #94a3b8; font-style: italic; margin-top: .4rem; }


/* ── FACTOR GRID ── */
.factor-grid        { display: grid; grid-template-columns: repeat(auto-fill, minmax(215px,1fr)); gap: .875rem; margin-top: .875rem; }
.factor-card        { background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 14px; padding: 1.125rem; }
.factor-card .fc-ico{ font-size: 1.625rem; display: block; margin-bottom: .5rem; }
.factor-card h4     { font-size: .85rem; font-weight: 800; color: #0f172a; margin: 0 0 .35rem; }
.factor-card p      { font-size: .8rem; color: #475569; margin: 0; line-height: 1.65; }


/* ── FAQ ACCORDION ── */
.faq-wrap           { margin-top: .875rem; }
.faq-item           { border: 1px solid #e2e8f0; border-radius: 12px; margin-bottom: .625rem; overflow: hidden; }
.faq-q              { padding: .9rem 1.125rem; font-size: .9rem; font-weight: 700; color: #0f172a; cursor: pointer; display: flex; justify-content: space-between; align-items: center; background: #f8fafc; user-select: none; transition: background .2s; }
.faq-q:hover        { background: #f1f5f9; }
.faq-q i            { color: var(--calc-primary); font-size: .75rem; transition: transform .25s; }
.faq-a              { padding: 0 1.125rem; max-height: 0; overflow: hidden; transition: max-height .35s ease, padding .3s; }
.faq-a.open         { max-height: 500px; padding: .9rem 1.125rem; }
.faq-a p            { font-size: .85rem; color: #475569; line-height: 1.75; margin: 0; }


/* ── RELATED CALCULATORS GRID ── */
.rel-grid           { display: grid; grid-template-columns: repeat(2,1fr); gap: .625rem; margin-top: .875rem; }
.rel-card           { display: block; padding: .875rem 1rem; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 12px; text-decoration: none; transition: all .2s; }
.rel-card:hover     { border-color: var(--calc-primary); background: var(--calc-light); transform: translateY(-2px); text-decoration: none; box-shadow: 0 4px 14px rgba(37,99,235,.1); }
.rel-card .rc-ico   { font-size: 1.25rem; display: block; margin-bottom: .3rem; }
.rel-card .rc-nm    { font-size: .85rem; font-weight: 800; color: #0f172a; }
.rel-card .rc-pr    { font-size: .775rem; font-weight: 700; color: var(--calc-primary); margin-top: .15rem; }


/* ── ARTICLE / RESOURCE LINKS ── */
.art-list           { list-style: none; padding: 0; margin: .875rem 0 0; }
.art-list li        { margin-bottom: .5rem; }
.art-list a         { display: flex; align-items: flex-start; gap: .625rem; padding: .8rem .9375rem; background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 10px; text-decoration: none; transition: all .2s; color: #1e293b; font-size: .8125rem; font-weight: 600; line-height: 1.45; }
.art-list a:hover   { background: var(--calc-light); border-color: var(--calc-border); transform: translateY(-1px); text-decoration: none; color: #1e293b; }
.art-list a i       { flex-shrink: 0; margin-top: .15rem; font-size: .875rem; }
.art-list a i.fa-file-text-o  { color: var(--calc-primary); }
.art-list a i.fa-external-link{ color: #f59e0b; }
.art-badge          { display: inline-block; font-size: .58rem; font-weight: 900; padding: .1rem .45rem; border-radius: 4px; margin-left: .35rem; vertical-align: middle; text-transform: uppercase; letter-spacing: .3px; }
.art-int            { background: #d1fae5; color: #065f46; }
.art-ext            { background: #fef3c7; color: #92400e; }


/* ── CITY PILLS ── */
.city-pills         { display: flex; flex-wrap: wrap; gap: .4rem; margin-top: .875rem; }
.city-pill          { display: inline-block; padding: .325rem .875rem; background: #f1f5f9; border: 1px solid #e2e8f0; border-radius: 50px; font-size: .76rem; font-weight: 700; color: #475569; text-decoration: none; transition: all .2s; }
.city-pill:hover    { background: var(--calc-light); border-color: var(--calc-border); color: var(--calc-primary); text-decoration: none; }


/* ── AI CITY CONTENT BLOCK ── */
.ai-content-block   { background: #fff; border: 1px solid #e2e8f0; border-radius: 20px; padding: 1.75rem; margin-top: 1.5rem; line-height: 1.8; font-size: .875rem; color: #475569; }
.ai-content-block h2{ font-size: 1.0625rem; font-weight: 800; color: #0f172a; margin: 0 0 .875rem; }
.ai-content-block h3{ font-size: .9375rem; font-weight: 700; color: #1e293b; margin: 1rem 0 .4rem; }
.ai-content-block p { margin-bottom: .75rem; }


/* ============================================================
   SIDEBAR WIDGETS
   ============================================================ */
.qfacts             { background: #fff; border: 1px solid #e2e8f0; border-radius: 20px; padding: 1.375rem; margin-bottom: 1.5rem; }
.qfacts h3          { font-size: .9375rem; font-weight: 800; color: #0f172a; margin: 0 0 .875rem; display: flex; align-items: center; gap: .4rem; }
.qfacts h3 i        { color: var(--calc-primary); }
.qf-list            { list-style: none; padding: 0; margin: 0; }
.qf-list li         { display: flex; justify-content: space-between; align-items: center; padding: .5rem 0; border-bottom: 1px solid #f1f5f9; font-size: .8rem; }
.qf-list li:last-child { border-bottom: none; }
.qf-lbl             { color: #64748b; font-weight: 600; }
.qf-val             { color: #0f172a; font-weight: 800; text-align: right; }

.scal-links         { background: #fff; border: 1px solid #e2e8f0; border-radius: 20px; padding: 1.375rem; margin-bottom: 1.5rem; }
.scal-links h3      { font-size: .9375rem; font-weight: 800; color: #0f172a; margin: 0 0 .875rem; display: flex; align-items: center; gap: .4rem; }
.scal-links h3 i    { color: var(--calc-primary); }
.scal-link-list     { list-style: none; padding: 0; margin: 0; }
.scal-link-list li  { border-bottom: 1px solid #f1f5f9; }
.scal-link-list li:last-child { border-bottom: none; }
.scal-link-list a   { display: flex; align-items: center; gap: .5rem; padding: .55rem 0; font-size: .8125rem; font-weight: 700; color: #334155; text-decoration: none; transition: color .2s; }
.scal-link-list a:hover { color: var(--calc-primary); text-decoration: none; }


/* ============================================================
   ANIMATIONS
   ============================================================ */
.fa-spinner { animation: spin .7s linear infinite; }
@keyframes spin    { to { transform: rotate(360deg); } }
@keyframes fadeUp  { from { opacity: 0; transform: translateY(16px); } to { opacity: 1; transform: translateY(0); } }


/* ============================================================
   RESPONSIVE
   ============================================================ */
@media (max-width: 991px) {
    .lcard { position: static; margin-top: 1.375rem; }
}
@media (max-width: 768px) {
    .rel-grid    { grid-template-columns: 1fr; }
    .factor-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 576px) {
    .cc-body     { padding: 1.25rem; }
    .tgrid       { grid-template-columns: 1fr; }
    .topt        { display: flex; align-items: center; gap: .875rem; text-align: left; }
    .tem         { font-size: 1.5rem; margin-bottom: 0; flex-shrink: 0; }
    .loc-bar     { flex-direction: column; align-items: stretch; }
    .loc-sels    { flex-direction: column; }
    .loc-sel     { min-width: 100%; }
    .btn-go      { width: 100%; text-align: center; }
    .rtop        { flex-direction: column; }
    .bstrip      { grid-template-columns: repeat(3,1fr); }
    .factor-grid { grid-template-columns: 1fr; }
    .rel-grid    { grid-template-columns: 1fr; }
}
