/* ══════════════════════════════════════════════════════════
   Compare Page — Shared CSS
   Extracted from inline styles for caching across 1300+ pages.
   Loaded via <link> for browser caching benefit.
   ══════════════════════════════════════════════════════════ */

:root {
            --indigo: #2D3A5C;
            --indigo-light: #3D4E7A;
            --warm-cream: #F5F0E8;
            --sand: #E8DFD0;
            --earth: #8B7355;
            --earth-light: #A6906F;
            --terracotta: #C4704B;
            --deep-brown: #3E2F23;
            --sage: #7A8B6F;
            --white: #FEFCF9;
            --text: #2C2419;
            --text-muted: #6B5D4F;
        }
        * { margin: 0; padding: 0; box-sizing: border-box; }
        body {
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', system-ui, sans-serif;
            color: var(--text); background: var(--white); line-height: 1.6;
            -webkit-font-smoothing: antialiased;
        }

        /* NAV */
        nav {
            position: fixed; top: 0; width: 100%; z-index: 100;
            background: rgba(254, 252, 249, 0.92);
            backdrop-filter: blur(20px);
            border-bottom: 1px solid var(--sand);
            padding: 1rem 2rem;
            display: flex; justify-content: space-between; align-items: center;
        }
        .logo { font-size: 1.4rem; font-weight: 700; color: var(--indigo); text-decoration: none; letter-spacing: -0.02em; }
        .logo span { color: var(--terracotta); }
        .logo{position:relative}.logo .owl-fly{display:none}.logo:hover .owl-default{display:none}.logo:hover .owl-fly{display:inline}
        nav a.cta-nav {
            background: var(--terracotta); color: white;
            padding: 0.5rem 1.2rem; border-radius: 8px;
            text-decoration: none; font-size: 0.9rem; font-weight: 500;
            transition: background 0.2s;
        }
        nav a.cta-nav:hover { background: #b5633f; }
        .nav-links { display: flex; gap: 1.5rem; align-items: center; }
        .hamburger {
            display: none; background: none; border: none;
            font-size: 1.5rem; color: var(--indigo); cursor: pointer;
        }
        .nav-dropdown { position: relative; }
        .nav-dropdown-toggle {
            background: none; border: none; color: var(--indigo);
            font-size: 0.9rem; font-weight: 500; cursor: pointer;
            padding: 0; font-family: inherit;
        }
        .nav-dropdown-toggle::after { content: ' ▾'; font-size: 1.1rem; }
        .nav-dropdown-menu {
            display: none; position: absolute; top: calc(100% + 0.5rem);
            left: 50%; transform: translateX(-50%);
            background: rgba(254, 252, 249, 0.98); backdrop-filter: blur(20px);
            border: 1px solid var(--sand); border-radius: 10px;
            padding: 0.5rem 0; min-width: 200px;
            box-shadow: 0 4px 16px rgba(0,0,0,0.08); z-index: 200;
        }
        .nav-dropdown.open .nav-dropdown-menu { display: block; }
        .nav-dropdown-menu a {
            display: block; padding: 0.5rem 1.2rem; color: var(--indigo);
            text-decoration: none; font-size: 0.9rem; font-weight: 500;
            white-space: nowrap; transition: background 0.15s;
        }
        .nav-dropdown-menu a:hover { background: rgba(0,0,0,0.04); }
        /* HERO */
        .hero {
            padding: 7rem 2rem 3rem;
            max-width: 800px; margin: 0 auto;
        }
        .hero-badge {
            display: inline-block;
            background: var(--sand); color: var(--earth);
            padding: 0.35rem 1rem; border-radius: 100px;
            font-size: 0.85rem; font-weight: 500;
            margin-bottom: 1.5rem;
        }
        .hero h1 {
            font-size: clamp(2rem, 4.5vw, 3rem);
            line-height: 1.15; font-weight: 800;
            color: var(--indigo);
            margin-bottom: 1rem;
            letter-spacing: -0.03em;
        }
        .hero h1 em {
            font-style: normal;
            background: linear-gradient(135deg, var(--terracotta), var(--earth));
            -webkit-background-clip: text; -webkit-text-fill-color: transparent;
        }
        .hero > p {
            font-size: 1.1rem; color: var(--text-muted);
            max-width: 640px; margin-bottom: 1.5rem;
        }
        .hero-meta {
            display: flex; flex-wrap: wrap; gap: 1.5rem;
            font-size: 0.9rem; color: var(--earth);
            border-top: 1px solid var(--sand);
            padding-top: 1.5rem; margin-top: 0.5rem;
        }
        .hero-meta strong { color: var(--indigo); }
        /* CONTENT */
        .content-wrapper {
            max-width: 1100px; margin: 0 auto; padding: 0 2rem 3rem;
            display: flex; gap: 3rem; align-items: flex-start;
        }
        /* TL;DR VERDICT */
        .verdict-box {
            background: linear-gradient(135deg, rgba(45, 58, 92, 0.06), rgba(196, 112, 75, 0.06));
            border: 1px solid var(--sand);
            border-radius: 16px;
            padding: 2rem;
            margin-bottom: 3rem;
        }
        .verdict-box h2 {
            font-size: 1.1rem; font-weight: 700; color: var(--terracotta);
            margin-bottom: 1rem; text-transform: uppercase; letter-spacing: 0.05em;
        }
        .verdict-box p {
            font-size: 1.05rem; color: var(--text); line-height: 1.7;
        }
        .verdict-box p strong { color: var(--indigo); }
        .verdict-summary { margin-bottom: 1rem; }
        .verdict-summary strong { color: var(--indigo); }
        .verdict-takeaways { margin: 0 0 1.5rem 1.2rem; padding: 0; display: grid; gap: 0.7rem; }
        .verdict-takeaways li { color: var(--text); }
        .verdict-cards { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); }
        .verdict-card { background: rgba(254, 252, 249, 0.78); border: 1px solid var(--sand); border-radius: 12px; padding: 1rem; }
        .verdict-card h3 { font-size: 0.95rem; color: var(--terracotta); margin-bottom: 0.35rem; }
        .verdict-card p { font-size: 0.98rem; line-height: 1.6; }
        .methodology-box { background: rgba(122, 139, 111, 0.08); border: 1px solid var(--sand); border-radius: 16px; padding: 1.5rem; margin-bottom: 2rem; }
        .methodology-box h2 { font-size: 1rem; font-weight: 700; color: var(--sage); margin-bottom: 0.75rem; text-transform: uppercase; letter-spacing: 0.04em; }
        .methodology-box p { margin-bottom: 0.85rem; color: var(--text); }
        .methodology-points { margin: 0 0 0 1.2rem; display: grid; gap: 0.5rem; }
        .methodology-points li { color: var(--text); }
        .section-winner { background: rgba(45, 58, 92, 0.05); border: 1px solid var(--sand); border-radius: 14px; padding: 1rem 1.1rem; margin-top: 1.25rem; }
        .section-winner h3 { font-size: 0.98rem; color: var(--indigo); margin-bottom: 0.55rem; }
        .section-winner ul { margin: 0 0 0 1.1rem; display: grid; gap: 0.4rem; }
        .section-winner li { color: var(--text); }
        /* COMPARISON TABLE */
        .comparison-section { margin-bottom: 3rem; }
        .comparison-section > h2 {
            font-size: 1.5rem; font-weight: 700; color: var(--indigo);
            margin-bottom: 1.5rem;
        }
        .comparison-table {
            width: 100%; border-collapse: separate; border-spacing: 0;
            border-radius: 12px; overflow: hidden;
            border: 1px solid var(--sand);
            font-size: 0.92rem;
        }
        .comparison-table thead th {
            background: var(--indigo); color: white;
            padding: 0.85rem 1rem; font-weight: 600;
            text-align: left; font-size: 0.85rem;
            text-transform: uppercase; letter-spacing: 0.04em;
        }
        .comparison-table thead th:first-child { width: 22%; }
        .comparison-table thead th:nth-child(2),
        .comparison-table thead th:nth-child(3) { width: 32%; }
        .comparison-table thead th:last-child { width: 14%; text-align: center; }
        .comparison-table tbody td {
            padding: 0.75rem 1rem; border-bottom: 1px solid var(--sand);
            vertical-align: top;
        }
        .comparison-table tbody tr:last-child td { border-bottom: none; }
        .comparison-table tbody tr:nth-child(even) { background: rgba(245, 240, 232, 0.3); }
        .comparison-table tbody td:first-child { font-weight: 600; color: var(--indigo); }
        .comparison-table tbody td:last-child { text-align: center; }
        .edge-dest1 { color: var(--indigo); font-weight: 700; }
        .edge-dest2 { color: var(--terracotta); font-weight: 700; }
        .edge-tie { color: var(--earth); font-weight: 600; }
        /* PHOTO GRID */
        .photo-grid {
            display: grid; grid-template-columns: 1fr 1fr; gap: 1rem;
            margin: 2rem 0;
        }
        .photo-grid img {
            width: 100%; height: 220px; object-fit: cover;
            border-radius: 12px;
        }
        .photo-grid .caption {
            font-size: 0.78rem; color: var(--text-muted);
            text-align: center; margin-top: 0.3rem;
        }
        /* DEEP DIVE SECTIONS */
        .deep-dive {
            border-top: 1px solid var(--sand);
            padding-top: 2.5rem; margin-top: 2.5rem;
        }
        .deep-dive h2 {
            font-size: 1.5rem; font-weight: 700; color: var(--indigo);
            margin-bottom: 1.25rem;
        }
        .deep-dive h3 {
            font-size: 1.1rem; font-weight: 600; color: var(--indigo);
            margin: 1.5rem 0 0.75rem;
        }
        .deep-dive p {
            font-size: 1rem; color: var(--text-muted); margin-bottom: 1rem; line-height: 1.7;
        }
        .deep-dive a { color: var(--terracotta); text-decoration: none; font-weight: 500; }
        .deep-dive a:hover { text-decoration: underline; }
        /* REDDIT QUOTES */
        .reddit-quote {
            border-left: 3px solid var(--sand);
            padding: 0.75rem 1rem; margin: 1rem 0;
            font-size: 0.9rem; color: var(--text-muted);
            font-style: italic;
            background: rgba(245, 240, 232, 0.3);
            border-radius: 0 8px 8px 0;
        }
        .reddit-quote .source {
            display: block; margin-top: 0.5rem;
            font-style: normal; font-size: 0.8rem; color: var(--earth);
        }
        .reddit-quote .source a { color: var(--terracotta); text-decoration: none; }
        .reddit-quote .source a:hover { text-decoration: underline; }
        /* TABIJI VERDICT */
        .tabiji-verdict {
            margin-top: 1.25rem; padding: 1rem 1.25rem;
            background: linear-gradient(135deg, rgba(45, 58, 92, 0.05), rgba(196, 112, 75, 0.05));
            border-radius: 10px; font-size: 0.95rem; color: var(--indigo);
        }
        .tabiji-verdict strong { color: var(--terracotta); }
        /* WEATHER TABLE */
        .weather-grid {
            display: grid; grid-template-columns: auto 1fr 1fr; gap: 0;
            border: 1px solid var(--sand); border-radius: 12px;
            overflow: hidden; font-size: 0.85rem; margin: 1.5rem 0;
        }
        .weather-grid .wg-header {
            background: var(--indigo); color: white; padding: 0.6rem 0.75rem;
            font-weight: 600; font-size: 0.8rem; text-transform: uppercase;
            letter-spacing: 0.04em;
        }
        .weather-grid .wg-cell {
            padding: 0.5rem 0.75rem; border-bottom: 1px solid rgba(232, 223, 208, 0.5);
        }
        .weather-grid .wg-month { font-weight: 600; color: var(--indigo); background: rgba(245, 240, 232, 0.4); }
        .weather-grid .wg-highlight { background: rgba(196, 112, 75, 0.08); }
        /* COST TABLE */
        .cost-table {
            width: 100%; border-collapse: separate; border-spacing: 0;
            border: 1px solid var(--sand); border-radius: 12px;
            overflow: hidden; font-size: 0.9rem; margin: 1.5rem 0;
        }
        .cost-table th {
            background: var(--indigo); color: white; padding: 0.75rem 1rem;
            font-weight: 600; text-align: left; font-size: 0.8rem;
            text-transform: uppercase; letter-spacing: 0.04em;
        }
        .cost-table td {
            padding: 0.65rem 1rem; border-bottom: 1px solid var(--sand);
        }
        .cost-table tr:last-child td { border-bottom: none; }
        .cost-table tr:nth-child(even) { background: rgba(245, 240, 232, 0.3); }
        .cost-table td:first-child { font-weight: 600; color: var(--indigo); }
        .cost-table .total-row td { font-weight: 700; background: rgba(196, 112, 75, 0.08); color: var(--indigo); }
        /* DECISION FRAMEWORK */
        .decision-grid {
            display: grid; grid-template-columns: 1fr 1fr; gap: 1.5rem;
            margin: 2rem 0;
        }
        .dest2-card {
            border: 2px solid var(--sand); border-radius: 14px;
            padding: 1.5rem;
        }
        .dest2-card.dest1-card { border-color: var(--indigo); }
        .dest2-card.dest2-card { border-color: var(--terracotta); }
        .dest2-card h3 {
            font-size: 1.1rem; font-weight: 700; margin-bottom: 1rem;
        }
        .dest2-card.dest1-card h3 { color: var(--indigo); }
        .dest2-card.dest2-card h3 { color: var(--terracotta); }
        .dest2-card ul {
            list-style: none; padding: 0;
        }
        .dest2-card ul li {
            padding: 0.4rem 0; font-size: 0.92rem; color: var(--text-muted);
            padding-left: 1.5rem; position: relative;
        }
        .dest2-card.dest1-card ul li::before { content: '🏙️'; position: absolute; left: 0; }
        .dest2-card.dest2-card ul li::before { content: '⛩️'; position: absolute; left: 0; }
        /* SECTION IMAGE */
        .section-img {
            width: 100%; height: 280px; object-fit: cover;
            border-radius: 12px; margin: 1.5rem 0;
        }
        /* FAQ */
        .faq-section { padding-top: 2.5rem; border-top: 1px solid var(--sand); margin-top: 2.5rem; }
        .faq-section h2 {
            font-size: 1.5rem; font-weight: 700; color: var(--indigo);
            margin-bottom: 2rem;
        }
        .faq-item { border-bottom: 1px solid var(--sand); padding: 1.5rem 0; }
        .faq-item:first-of-type { padding-top: 0; }
        .faq-item:last-of-type { border-bottom: none; }
        .faq-item h3 { font-size: 1.05rem; font-weight: 600; color: var(--indigo); margin-bottom: 0.5rem; }
        .faq-item p { font-size: 0.95rem; color: var(--text-muted); line-height: 1.7; }
        /* CTA */
        .cta-section {
            text-align: center; padding: 3rem 2rem;
            background: linear-gradient(135deg, rgba(45, 58, 92, 0.04), rgba(196, 112, 75, 0.04));
            border-radius: 16px; margin-top: 3rem;
        }
        .cta-section h2 { font-size: 1.5rem; color: var(--indigo); margin-bottom: 0.75rem; }
        .cta-section p { color: var(--text-muted); margin-bottom: 1.5rem; font-size: 1rem; }
        .cta-buttons { display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap; }
        .cta-buttons a {
            display: inline-block; padding: 0.75rem 1.75rem;
            border-radius: 10px; text-decoration: none;
            font-weight: 600; font-size: 0.95rem;
            transition: transform 0.2s, box-shadow 0.2s;
        }
        .cta-buttons a:hover { transform: translateY(-2px); box-shadow: 0 4px 12px rgba(0,0,0,0.1); }
        .cta-btn-dest1 { background: var(--indigo); color: white; }
        .cta-btn-dest2 { background: var(--terracotta); color: white; }
        /* FOOTER */
        footer {
            margin-top: 3rem; padding: 3rem 2rem; text-align: center;
            border-top: 1px solid var(--sand);
            color: var(--text-muted); font-size: 0.85rem;
        }
        footer a { color: var(--terracotta); text-decoration: none; }
        footer a:hover { text-decoration: underline; }
        /* RESPONSIVE */
        @media (max-width: 768px) {
            nav { padding: 0.8rem 1.2rem; }
            .hamburger { display: block; }
            .nav-links {
                display: none; position: absolute; top: 100%; left: 0; right: 0;
                background: rgba(254, 252, 249, 0.98); backdrop-filter: blur(20px);
                border-bottom: 1px solid var(--sand);
                padding: 1rem 1.5rem; flex-direction: column; gap: 1rem;
            }
            .nav-links.open { display: flex; }
            .nav-dropdown-menu {
                position: static; transform: none; background: none;
                backdrop-filter: none; border: none; border-radius: 0;
                box-shadow: none; padding: 0; min-width: 0; padding-left: 1rem;
            }
            .nav-dropdown-menu a { padding: 0.35rem 0; font-size: 0.85rem; opacity: 0.8; }
            .nav-dropdown-menu a:hover { background: none; opacity: 1; }
            nav a.cta-nav { text-align: center; }
            .hero { padding: 6rem 1.5rem 2rem; }
            .content-wrapper { padding: 0 1.5rem 2rem; }
            .comparison-table { font-size: 0.8rem; }
            .comparison-table thead th,
            .comparison-table tbody td { padding: 0.6rem 0.5rem; }
            .photo-grid { grid-template-columns: 1fr; }
            .photo-grid img { height: 200px; }
            .decision-grid { grid-template-columns: 1fr; }
            .weather-grid { font-size: 0.78rem; }
            .section-img { height: 200px; }
            .content-wrapper { flex-direction: column; gap: 0; }
            .toc-sidebar { display: none; }
            .toc-mobile-sticky, .toc-mobile { display: block; }
        
        }
        .toc-sidebar {
            width: 220px; flex-shrink: 0;
            position: sticky; top: 80px;
            padding-top: 7rem;
            max-height: calc(100vh - 100px); overflow-y: auto;
        }
        .toc-sidebar h2 {
            font-size: 0.8rem; color: var(--text-muted); margin-bottom: 0.75rem;
            font-weight: 700; text-transform: uppercase; letter-spacing: 0.08em;
        }
        .toc-sidebar ul { list-style: none; padding: 0; margin: 0; }
        .toc-sidebar li { margin-bottom: 0.4rem; }
        .toc-sidebar a {
            color: var(--earth); text-decoration: none; font-size: 0.85rem;
            transition: color 0.2s, border-color 0.2s;
            display: block; padding: 0.25rem 0 0.25rem 0.75rem;
            border-left: 2px solid transparent;
            line-height: 1.3;
        }
        .toc-sidebar a:hover { color: var(--terracotta); }
        .toc-sidebar a.active {
            color: var(--terracotta); border-left-color: var(--terracotta);
            font-weight: 600;
        }
        .toc-mobile-sticky, .toc-mobile {
            display: none;
            position: sticky; top: 0; z-index: 99;
            background: rgba(254, 252, 249, 0.92);
            backdrop-filter: blur(20px); -webkit-backdrop-filter: blur(20px);
            border-bottom: 1px solid var(--sand);
            box-shadow: 0 2px 12px rgba(0,0,0,0.06);
        }
        .toc-mobile-toggle {
            width: 100%; padding: 0.7rem 1.2rem;
            display: flex; justify-content: space-between; align-items: center;
            background: none; border: none; cursor: pointer;
            font-family: inherit; font-size: 0.9rem; font-weight: 600;
            color: var(--indigo);
        }
        .toc-mobile-toggle .toc-active-label {
            flex: 1; text-align: left; white-space: nowrap;
            overflow: hidden; text-overflow: ellipsis; margin-right: 0.5rem;
        }
        .toc-mobile-toggle .toc-chevron {
            transition: transform 0.25s ease; font-size: 0.7rem; color: var(--earth);
        }
        .toc-mobile-sticky.open .toc-chevron, .toc-mobile.open .toc-chevron { transform: rotate(180deg); }
        .toc-mobile-dropdown {
            max-height: 0; overflow: hidden;
            transition: max-height 0.3s ease;
            border-top: 1px solid var(--sand);
        }
        .toc-mobile-sticky.open .toc-mobile-dropdown,
        .toc-mobile.open .toc-mobile-dropdown {
            max-height: 60vh; overflow-y: auto;
        }
        .toc-mobile-dropdown ul { list-style: none; padding: 0.5rem 0; margin: 0; }
        .toc-mobile-dropdown a {
            display: block; padding: 0.55rem 1.2rem;
            color: var(--earth); text-decoration: none;
            font-size: 0.9rem; transition: background 0.15s, color 0.15s;
        }
        .toc-mobile-dropdown a:hover { background: var(--warm-cream); color: var(--terracotta); }
        .toc-mobile-dropdown a.active {
            color: var(--terracotta); font-weight: 600;
            background: rgba(196, 112, 75, 0.06);
        }
        .content-wrapper .article-content { flex: 1; min-width: 0; }

      .viator-section { background:linear-gradient(135deg,#fff9f0 0%,#fff 100%); border:1px solid #e0d6c8; border-radius:18px; padding:1.35rem 1.4rem; margin-top:2rem; margin-bottom:1.4rem; }
      .viator-section h2 { font-size:1.3em; margin-bottom:6px; }
      .viator-subtitle { font-size:0.95em; color:#666; margin-bottom:20px; }
      .viator-cards { display:grid; grid-template-columns:1fr 1fr; gap:14px; }
      @media(max-width:600px) { .viator-cards { grid-template-columns:1fr; } }
      .viator-card { background:#fff; border:1px solid #e8e8e8; border-radius:10px; padding:18px; text-decoration:none; color:inherit; transition:border-color .2s,box-shadow .2s; display:flex; flex-direction:column; gap:8px; }
      .viator-card:hover { border-color:var(--primary,#0696D7); box-shadow:0 2px 12px rgba(6,150,215,.12); }
      .viator-card .tour-type { font-size:.75em; text-transform:uppercase; letter-spacing:.5px; color:var(--primary,#0696D7); font-weight:600; }
      .viator-card .tour-name { font-size:1em; font-weight:600; line-height:1.3; }
      .viator-powered { font-size:.75em; color:#bbb; text-align:right; margin-top:14px; }

/* ══════════════════════════════════════════════════════════
   Restored modules (previously inline, lost in 917cbb2b29
   extraction): personalize-widget, quick-answers, scorecard,
   cost-widget, weather-chart, deep-dive (dd-*), also-compared,
   score-ticker, jump-verdict.
   Used on 339 compare pages. Dest1 = indigo, dest2 = terracotta
   for generic templated pages. madrid/barcelona variants kept
   for the madrid-vs-barcelona page which still uses those
   suffixes literally.
   ══════════════════════════════════════════════════════════ */
:root { --madrid:#C0392B; --barcelona:#2E86C1; --tie-color:#7A8B6F; --dest1-color:var(--indigo); --dest2-color:var(--terracotta); }

/* ── Hero subtitle (missing .subtitle inside .hero) ── */
.hero .subtitle { color:var(--text-muted); font-size:1.05rem; line-height:1.6; margin-bottom:1rem; }

/* ── Personalization widget ── */
.personalize-widget { max-width:680px; margin:0 auto 2rem; padding:1.25rem 1.5rem; background:var(--warm-cream); border-radius:14px; }
.personalize-widget h2 { font-size:1rem; color:var(--indigo); margin-bottom:0.75rem; font-weight:600; }
.personalize-row { display:flex; align-items:center; gap:0.75rem; margin-bottom:0.6rem; flex-wrap:wrap; }
.personalize-row label { font-size:0.88rem; color:var(--text-muted); min-width:110px; font-weight:500; }
.pill-group { display:flex; gap:0.4rem; flex-wrap:wrap; }
.personalize-pill { padding:0.3rem 0.85rem; border-radius:16px; border:1.5px solid var(--sand); background:var(--white); font-size:0.82rem; cursor:pointer; transition:all 0.2s; color:var(--text); }
.personalize-pill:hover { border-color:var(--terracotta); }
.personalize-pill.selected { border-color:var(--terracotta); background:var(--terracotta); color:#fff; }
.personalize-result { margin-top:0.75rem; padding:0.85rem 1rem; background:var(--white); border-radius:10px; border-left:3px solid var(--terracotta); font-size:0.92rem; line-height:1.6; display:none; }
.personalize-result.visible { display:block; }

/* ── Sticky score ticker ── */
.score-ticker { position:sticky; top:64px; z-index:90; background:rgba(254,252,249,0.95); backdrop-filter:blur(12px); -webkit-backdrop-filter:blur(12px); border-bottom:1px solid var(--sand); padding:0.5rem 1.5rem; display:flex; align-items:center; justify-content:center; gap:1.2rem; font-size:0.88rem; transform:translateY(-100%); opacity:0; transition:transform 0.3s,opacity 0.3s; }
.score-ticker.visible { transform:translateY(0); opacity:1; }
.score-ticker .score-label { font-weight:700; }
.score-ticker .score-madrid, .score-ticker .score-dest1 { color:var(--madrid); }
.score-ticker .score-barcelona, .score-ticker .score-dest2 { color:var(--barcelona); }
.score-ticker .score-section { color:var(--text-muted); font-size:0.82rem; }
.score-ticker .score-divider { color:var(--sand); }

/* ── Quick answers ── */
.quick-answers { margin-bottom:2.5rem; }
.quick-answers h2 { font-size:1.3rem; margin-bottom:1rem; color:var(--indigo); }
.qa-grid { display:grid; grid-template-columns:1fr 1fr; gap:0.75rem; }
.qa-card { padding:1rem 1.15rem; background:var(--white); border:1.5px solid var(--sand); border-radius:12px; cursor:pointer; transition:all 0.2s; text-decoration:none; color:inherit; display:block; }
.qa-card:hover { border-color:var(--terracotta); box-shadow:0 2px 12px rgba(196,112,75,0.08); }
.qa-card .qa-q { font-size:0.88rem; font-weight:600; color:var(--indigo); margin-bottom:0.35rem; }
.qa-card .qa-a { font-size:0.85rem; color:var(--text-muted); line-height:1.5; }
.qa-card .qa-winner { display:inline-block; font-size:0.75rem; font-weight:600; padding:0.15rem 0.5rem; border-radius:10px; margin-top:0.35rem; }
.qa-winner.madrid, .qa-winner.dest1 { background:rgba(45,58,92,0.1); color:var(--indigo); }
.qa-winner.barcelona, .qa-winner.dest2 { background:rgba(196,112,75,0.1); color:var(--terracotta); }
.qa-winner.tie { background:rgba(122,139,111,0.1); color:var(--tie-color); }
.qa-card .qa-winner.madrid { background:rgba(192,57,43,0.1); color:var(--madrid); }
.qa-card .qa-winner.barcelona { background:rgba(46,134,193,0.1); color:var(--barcelona); }

/* ── Visual Scorecard ── */
.scorecard { margin-bottom:2.5rem; }
.scorecard h2 { font-size:1.3rem; margin-bottom:1rem; color:var(--indigo); }
.scorecard-overall { display:flex; align-items:center; justify-content:center; gap:2rem; padding:1rem; background:var(--warm-cream); border-radius:12px; margin-bottom:1rem; }
.scorecard-city { text-align:center; }
.scorecard-city .city-name { font-size:0.82rem; font-weight:600; text-transform:uppercase; letter-spacing:0.04em; }
.scorecard-city .city-score { font-size:2rem; font-weight:700; }
.scorecard-city.madrid .city-name, .scorecard-city.madrid .city-score { color:var(--madrid); }
.scorecard-city.barcelona .city-name, .scorecard-city.barcelona .city-score { color:var(--barcelona); }
.scorecard-city.dest1 .city-name, .scorecard-city.dest1 .city-score { color:var(--indigo); }
.scorecard-city.dest2 .city-name, .scorecard-city.dest2 .city-score { color:var(--terracotta); }
.scorecard-vs { font-size:1.2rem; color:var(--earth-light); font-weight:600; }
.scorecard-rows { display:flex; flex-direction:column; gap:0.5rem; }
.sc-row { display:grid; grid-template-columns:130px 1fr 60px; align-items:center; gap:0.75rem; padding:0.6rem 0.75rem; border-radius:10px; cursor:pointer; transition:background 0.15s; text-decoration:none; color:inherit; }
.sc-row:hover { background:rgba(196,112,75,0.04); }
.sc-row .sc-cat { font-size:0.85rem; font-weight:500; }
.sc-bars { display:flex; gap:4px; align-items:center; height:22px; }
.sc-bar-wrap { flex:1; height:100%; background:#f0ebe3; border-radius:6px; overflow:hidden; position:relative; display:block; }
.sc-bar { height:100%; border-radius:6px; transition:width 0.6s ease; display:block; }
.sc-bar.madrid { background:var(--madrid); }
.sc-bar.barcelona { background:var(--barcelona); }
.sc-bar.dest1 { background:var(--indigo); }
.sc-bar.dest2 { background:var(--terracotta); }
.sc-winner { font-size:0.78rem; font-weight:600; text-align:right; white-space:nowrap; }
.sc-winner.madrid { color:var(--madrid); }
.sc-winner.barcelona { color:var(--barcelona); }
.sc-winner.dest1 { color:var(--indigo); }
.sc-winner.dest2 { color:var(--terracotta); }
.sc-winner.tie { color:var(--tie-color); }

/* ── Cost comparison widget ── */
.cost-widget { margin-bottom:2.5rem; background:var(--white); border:1.5px solid var(--sand); border-radius:16px; padding:1.5rem; }
.cost-widget h2 { font-size:1.2rem; margin-bottom:1rem; color:var(--indigo); }
.cost-savings { margin-top:0.75rem; padding:0.65rem 1rem; background:rgba(196,112,75,0.06); border-radius:10px; font-size:0.88rem; color:var(--terracotta); font-weight:500; text-align:center; }

/* ── Weather chart (12-month grid) ── */
.weather-chart { margin-bottom:2.5rem; background:var(--white); border:1.5px solid var(--sand); border-radius:16px; padding:1.5rem; }
.weather-chart h2 { font-size:1.2rem; margin-bottom:0.35rem; color:var(--indigo); }
.weather-chart .weather-note { font-size:0.82rem; color:var(--text-muted); margin-bottom:1rem; }
.weather-months { display:grid; grid-template-columns:repeat(12,1fr); gap:0.35rem; }
.weather-month { text-align:center; }
.weather-month .wm-label { font-size:0.7rem; font-weight:600; color:var(--earth-light); text-transform:uppercase; margin-bottom:0.35rem; }
.weather-month .wm-temps { font-size:0.75rem; line-height:1.6; }
.weather-month .wm-madrid { color:var(--madrid); font-weight:500; }
.weather-month .wm-barcelona { color:var(--barcelona); font-weight:500; }
.weather-month .wm-dest1 { color:var(--indigo); font-weight:500; }
.weather-month .wm-dest2 { color:var(--terracotta); font-weight:500; }
.weather-month.best { background:rgba(122,139,111,0.12); border-radius:8px; padding:0.3rem 0; }
.weather-month.avoid { background:rgba(192,57,43,0.06); border-radius:8px; padding:0.3rem 0; }
.weather-legend { display:flex; gap:1.5rem; margin-top:0.75rem; justify-content:center; font-size:0.78rem; color:var(--text-muted); flex-wrap:wrap; }
.weather-legend span { display:inline-flex; align-items:center; gap:0.3rem; }
.legend-dot { width:8px; height:8px; border-radius:50%; display:inline-block; }
.legend-dot.madrid { background:var(--madrid); }
.legend-dot.barcelona { background:var(--barcelona); }
.legend-dot.dest1 { background:var(--indigo); }
.legend-dot.dest2 { background:var(--terracotta); }
.legend-dot.best { background:rgba(122,139,111,0.5); }

/* ── Deep-dive collapsibles (dd-*) ── */
.dd-header { display:flex; align-items:center; justify-content:space-between; padding:1rem 0; cursor:pointer; gap:0.75rem; }
.dd-header h2 { font-size:1.15rem; margin:0; flex:1; }
.dd-header-meta { display:flex; align-items:center; gap:0.75rem; flex-shrink:0; }
.dd-winner-badge { font-size:0.75rem; font-weight:600; padding:0.2rem 0.65rem; border-radius:12px; white-space:nowrap; }
.dd-winner-badge.madrid { background:rgba(192,57,43,0.1); color:var(--madrid); }
.dd-winner-badge.barcelona { background:rgba(46,134,193,0.1); color:var(--barcelona); }
.dd-winner-badge.dest1 { background:rgba(45,58,92,0.1); color:var(--indigo); }
.dd-winner-badge.dest2 { background:rgba(196,112,75,0.1); color:var(--terracotta); }
.dd-winner-badge.tie { background:rgba(122,139,111,0.1); color:var(--tie-color); }
.dd-toggle { width:28px; height:28px; border-radius:50%; border:1.5px solid var(--sand); background:var(--white); display:flex; align-items:center; justify-content:center; font-size:0.75rem; color:var(--earth-light); transition:all 0.2s; flex-shrink:0; }
.deep-dive.open .dd-toggle { transform:rotate(180deg); border-color:var(--terracotta); color:var(--terracotta); }
.dd-summary { font-size:0.9rem; color:var(--text-muted); margin-bottom:0.5rem; line-height:1.5; }
.dd-body { overflow:hidden; max-height:0; transition:max-height 0.4s ease; }
.deep-dive.open .dd-body { max-height:5000px; }
.dd-content { padding:0 0 1.5rem; }
.dd-content p { margin-bottom:1rem; line-height:1.7; }
.dd-content .section-img { width:100%; border-radius:12px; margin-bottom:1rem; }
.dd-content .photo-pair { display:grid; grid-template-columns:1fr 1fr; gap:0.75rem; margin-bottom:1rem; }
.dd-content .photo-pair img { width:100%; border-radius:10px; aspect-ratio:16/10; object-fit:cover; }
.dd-content .photo-pair .photo-caption { font-size:0.78rem; color:var(--text-muted); text-align:center; margin-top:0.25rem; }
.photo-pair { display:grid; grid-template-columns:1fr 1fr; gap:0.75rem; margin-bottom:1rem; }
.photo-pair img { width:100%; border-radius:10px; aspect-ratio:16/10; object-fit:cover; }
.photo-caption { font-size:0.8rem; color:var(--text-muted); text-align:center; margin-top:0.35rem; }

/* ── Decision-card variants referenced alongside dest1-card/dest2-card ── */
.decision-card { padding:1.25rem; border-radius:14px; }
.decision-card h3 { font-size:1.05rem; margin-bottom:0.75rem; }
.decision-card ul { padding-left:1.1rem; }
.decision-card li { font-size:0.88rem; line-height:1.6; margin-bottom:0.35rem; color:var(--text-muted); }

/* ── CTA buttons (madrid/barcelona literal variants) ── */
.cta-btn-madrid, .cta-btn-barcelona { padding:0.7rem 1.5rem; border-radius:10px; text-decoration:none; font-weight:600; font-size:0.95rem; transition:all 0.2s; display:inline-block; }
.cta-btn-madrid { background:var(--madrid); color:#fff; }
.cta-btn-madrid:hover { background:#a93226; }
.cta-btn-barcelona { background:var(--barcelona); color:#fff; }
.cta-btn-barcelona:hover { background:#2475a8; }
.cta-plan-box { background:var(--warm-cream); border-radius:12px; padding:1.25rem 1.5rem; margin:1.5rem 0; text-align:center; }

/* ── Travelers also compared ── */
.also-compared { margin-bottom:2rem; }
.also-compared h2 { font-size:1.2rem; margin-bottom:1rem; color:var(--indigo); }
.also-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:0.75rem; }
.also-card { border:1.5px solid var(--sand); border-radius:12px; overflow:hidden; text-decoration:none; color:inherit; transition:all 0.2s; display:block; }
.also-card:hover { border-color:var(--terracotta); box-shadow:0 2px 12px rgba(196,112,75,0.1); }
.also-card img { width:100%; aspect-ratio:16/9; object-fit:cover; display:block; }
.also-card-body { padding:0.85rem; }
.also-card-title { font-size:0.92rem; font-weight:600; color:var(--indigo); margin-bottom:0.25rem; }
.also-card-desc { font-size:0.8rem; color:var(--text-muted); line-height:1.5; }
.also-card-vol { font-size:0.72rem; color:var(--earth-light); margin-top:0.35rem; }

/* ── Related-comparisons alias (used by some newer pages) ── */
.related-comparisons { margin-bottom:2rem; }
.related-comparisons h2 { font-size:1.2rem; margin-bottom:1rem; color:var(--indigo); }
.related-grid { display:grid; grid-template-columns:repeat(3,1fr); gap:0.75rem; }
.related-card { border:1.5px solid var(--sand); border-radius:12px; overflow:hidden; text-decoration:none; color:inherit; transition:all 0.2s; display:block; padding:0.85rem; }
.related-card:hover { border-color:var(--terracotta); box-shadow:0 2px 12px rgba(196,112,75,0.1); }
.related-meta { font-size:0.78rem; color:var(--earth-light); margin-top:0.35rem; }

/* ── Mobile toc arrow (missing rotation helper) ── */
.toc-mobile-arrow { transition:transform 0.2s; display:inline-block; }
.toc-mobile-sticky.open .toc-mobile-arrow { transform:rotate(180deg); }

/* ── Mobile jump-to-verdict button ── */
.jump-verdict { display:none; position:fixed; bottom:1.25rem; right:1.25rem; z-index:80; background:var(--terracotta); color:#fff; border:none; padding:0.6rem 1.1rem; border-radius:24px; font-size:0.82rem; font-weight:600; cursor:pointer; box-shadow:0 3px 14px rgba(196,112,75,0.35); transition:all 0.2s; opacity:0; transform:translateY(10px); font-family:inherit; }
.jump-verdict.visible { opacity:1; transform:translateY(0); }

/* ── Fallback tables used alongside weather-chart/cost-widget ── */
.ux-cost-table, .ux-weather-table { width:100%; border-collapse:collapse; margin-top:0.5rem; }
.ux-cost-table th, .ux-weather-table th { font-size:0.78rem; text-transform:uppercase; color:var(--earth-light); text-align:left; padding:0.5rem 0.75rem; border-bottom:1.5px solid var(--sand); }
.ux-cost-table td, .ux-weather-table td { padding:0.55rem 0.75rem; border-bottom:1px solid #f0ebe3; font-size:0.9rem; }

/* ── Responsive overrides for the restored modules ── */
@media (max-width: 900px) {
  .verdict-cards, .decision-grid { grid-template-columns:1fr; }
  .qa-grid { grid-template-columns:1fr; }
  .also-grid, .related-grid { grid-template-columns:1fr; }
  .dd-content .photo-pair, .photo-pair { grid-template-columns:1fr; }
  .scorecard-overall { gap:1rem; padding:0.75rem; }
  .sc-row { grid-template-columns:100px 1fr 50px; gap:0.5rem; padding:0.5rem; }
  .weather-months { grid-template-columns:repeat(6,1fr); row-gap:0.75rem; }
  .jump-verdict { display:block; }
  .personalize-row { flex-direction:column; align-items:flex-start; gap:0.4rem; }
  .personalize-row label { min-width:auto; }
}
@media (max-width: 480px) {
  .weather-months { grid-template-columns:repeat(4,1fr); }
  .scorecard-city .city-score { font-size:1.6rem; }
}

