/* Scoped to this page - all classes prefixed "cp-" so nothing here touches shared
       classes like .card / .grid / .chip used elsewhere on the site. */
    /* Light hero, matching the homepage/shared .hero theme (see style.css) - previously a flat
       dark navy gradient (the photo hero was already removed before this, see the comment in
       city-page.html). Pills/stat-pills switch from translucent-white-on-navy to a solid light
       card style since the glass effect only reads as "glass" against a dark backdrop. */
    .cp-hero { position: relative; height: 240px; overflow: hidden; }
    @media (max-width: 800px) { .cp-hero { height: 300px; } }
    .cp-hero-content { position: relative; z-index: 2; height: 100%; display: flex; flex-direction: column; justify-content: flex-end; padding-bottom: 26px; }
    .cp-breadcrumb { font-size: 0.8rem; color: var(--text-secondary); margin-bottom: 14px; }
    .cp-breadcrumb a { color: var(--ink); text-decoration: none; }
    .cp-pills { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
    .cp-pill { display: inline-flex; align-items: center; gap: 6px; background: var(--light-bg); border: 1px solid var(--border); color: var(--ink); font-size: 0.76rem; font-weight: 700; padding: 6px 14px; border-radius: 20px; }
    .cp-title-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; }
    .cp-title { font-size: 2.1rem; font-weight: 800; color: var(--ink); margin: 0; }
    /* max-width removed (was 640px) - the description now uses the full hero content width
       rather than being squeezed into a narrow column while most of the wide banner sits
       empty beside it. */
    .cp-sub { color: var(--text-secondary); font-size: 0.95rem; margin: 10px 0 0; white-space: pre-line; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
    /* The city description is admin-authored rich text (th:utext), so whatever markup was
       pasted into the admin editor lands here verbatim - headings, which pick up the global
       "h1,h2,h3 { color: var(--ink) }" rule, and inline style="color:..." carried over from a
       copy-paste out of Word or another site. Forced to the same slate used everywhere else on
       this now-light hero, so a pasted dark color (or the default heading color) doesn't
       clash - this is the only hero on the site that renders admin rich text, so the override
       is scoped to it. !important is deliberate: an inline style attribute in the pasted HTML
       outranks any normal-weight rule. Font family and size are left alone - only colour is
       forced. */
    .cp-sub, .cp-sub * { color: var(--text-secondary) !important; }
    .cp-sub a { text-decoration: underline; }
    .cp-read-more { color: var(--cta-primary); font-weight: 700; font-size: 0.85rem; cursor: pointer; margin-top: 4px; display: inline-block; }
    .cp-stat-pills { display: flex; gap: 10px; flex-shrink: 0; }
    .cp-stat-pill { background: var(--light-bg); border: 1px solid var(--border); border-radius: 12px; padding: 10px 18px; text-align: center; min-width: 76px; }
    .cp-stat-pill .num { color: var(--ink); font-weight: 800; font-size: 1.15rem; }
    .cp-stat-pill .lbl { color: var(--text-secondary); font-size: 0.68rem; margin-top: 1px; }
    @media (max-width: 800px) { .cp-title { font-size: 1.6rem; } .cp-title-row { flex-direction: column; align-items: flex-start; } }

    .cp-facts-row { display: flex; flex-wrap: wrap; gap: 22px; padding: 14px 0; border-bottom: 1px solid var(--line); font-size: 0.85rem; color: var(--charcoal); }
    .cp-facts-row strong { color: var(--ink); }

    .cp-tabs { display: flex; gap: 8px; margin: 20px 0; flex-wrap: wrap; }
    .cp-tab-btn { background: var(--white); border: 1px solid var(--line); border-radius: 20px; padding: 9px 18px; font-family: 'Inter', 'Noto Sans Devanagari', sans-serif; font-size: 0.85rem; font-weight: 600; color: var(--charcoal); cursor: pointer; }
    .cp-tab-btn.active { background: linear-gradient(135deg, #9333EA, #EC4899); border-color: transparent; color: #FFFFFF; }
    .cp-tab-panel { display: none; }
    .cp-tab-panel.active { display: block; }

    /* Single full-width column now - the sidebar that used to share this row (Quick Facts,
       Plan-trip/Own-property cards) moved to .cp-top-cards above, near the top of the page. */
    .cp-layout { display: block; }

    .cp-top-cards { display: flex; gap: 20px; flex-wrap: wrap; }
    .cp-top-cards .cp-side-card, .cp-top-cards .cp-plan-card { flex: 1; min-width: 280px; margin-bottom: 0; }

    .cp-side-card { background: var(--white); border: 1px solid var(--line); border-radius: 14px; padding: 20px; margin-bottom: 20px; }
    .cp-side-card h4 { font-size: 0.95rem; margin: 0 0 10px; display: flex; align-items: center; gap: 8px; }
    .cp-side-card .rich-content { font-size: 0.85rem; color: #556372; }
    .cp-plan-card { background: linear-gradient(135deg, #9333EA 0%, #EC4899 55%, #FB923C 100%); border-radius: 14px; padding: 22px; color: #FFFFFF; margin-bottom: 20px; }
    .cp-plan-card h4 { color: #FFFFFF; font-size: 1.1rem; margin: 8px 0 4px; }
    .cp-plan-card p { font-size: 0.82rem; color: rgba(255,255,255,0.9); margin: 0 0 16px; }
    .cp-plan-card .btn { background: var(--cta-primary); color: #FFFFFF; }
    .cp-plan-card .btn.ghost { background: var(--cta-secondary); color: #FFFFFF; border: none; padding: 12px 22px; font-size: 0.92rem; }

    .cp-hotel-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; margin-top: 16px; }

    /* Stay card style - duplicated from index.html (scoped there, not in shared style.css),
       so the hotel cards on this page render with the same look as the homepage's
       Recommended/Featured cards. */
    .stay-card { background: var(--white); border-radius: 20px; overflow: hidden; position: relative; display: block; text-decoration: none; box-shadow: 0 8px 24px rgba(0,27,62,0.10); transition: transform 0.18s ease, box-shadow 0.18s ease; padding: 10px; }
    .stay-card:hover { transform: translateY(-4px); box-shadow: 0 18px 36px rgba(0,27,62,0.20); }
    .stay-card .photo-wrap { position: relative; height: 172px; border-radius: 14px; overflow: hidden; }
    .stay-card .photo-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
    .stay-card .badge-pill { position: absolute; top: 12px; left: 12px; padding: 6px 14px; border-radius: 20px; font-size: 0.7rem; font-weight: 800; color: #FFFFFF; background: linear-gradient(135deg, #F2A900, #FB923C); box-shadow: 0 3px 10px rgba(0,0,0,0.28); }
    .stay-card .discount-badge { position: absolute; top: 12px; right: 12px; padding: 6px 12px; border-radius: 20px; font-size: 0.7rem; font-weight: 800; color: #FFFFFF; background: linear-gradient(135deg, #C0392B, #E74C3C); box-shadow: 0 3px 10px rgba(0,0,0,0.28); }
    .stay-card .strike-price { font-size: 0.78rem; color: #B0B8C1; text-decoration: line-through; font-weight: 500; display: block; }
    .stay-card .rating-pill { position: absolute; bottom: 12px; left: 12px; display: flex; align-items: center; gap: 5px; padding: 6px 12px; border-radius: 20px; font-size: 0.82rem; font-weight: 700; color: #FFFFFF; background: rgba(20,20,30,0.55); backdrop-filter: blur(3px); }
    .stay-card .rating-pill .star { color: #F2A900; }
    .stay-card .body { padding: 14px 8px 8px; }
    .stay-card h3 { font-size: 1.1rem; margin: 0 0 3px; color: var(--ink); font-weight: 700; }
    .stay-card .prop-type { font-size: 0.82rem; color: #8A93A0; }
    .stay-card .price-row { display: flex; justify-content: space-between; align-items: center; margin-top: 14px; }
    .stay-card .price-row .amt { font-size: 1.3rem; font-weight: 800; color: var(--ink); }
    .stay-card .price-row .amt small { font-weight: 400; font-size: 0.82rem; color: #8A93A0; }
    .stay-card .view-link { font-size: 0.9rem; font-weight: 700; color: #7C3AED; display: flex; align-items: center; gap: 2px; }

    /* Places to Visit - no-photo variant. Places without an uploaded image used to get the
       same photo-shaped card as everywhere else, just with a flat gradient rectangle standing
       in for the missing photo - which reads as a broken/incomplete photo card, not as an
       intentionally different treatment. This is a genuinely different layout instead: no
       photo-shaped empty space at all, an icon emblem in place of it, and the description gets
       real room to breathe rather than being squeezed under a photo it doesn't have. */
    .tp-noimg-card {
      background: var(--white); border-radius: 20px; display: flex; flex-direction: column;
      text-decoration: none; padding: 22px 20px; border: 1px solid var(--line);
      transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
    }
    .tp-noimg-card:hover { transform: translateY(-4px); box-shadow: 0 14px 30px rgba(0,27,62,0.14); border-color: transparent; }
    .tp-noimg-emblem {
      width: 52px; height: 52px; border-radius: 14px; display: flex; align-items: center; justify-content: center;
      font-size: 1.5rem; background: linear-gradient(135deg, var(--primary-navy), var(--secondary-navy));
      color: var(--brand-gold); flex-shrink: 0; margin-bottom: 14px;
    }
    .tp-noimg-card h3 { font-size: 1.08rem; margin: 0 0 6px; color: var(--ink); font-weight: 700; }
    .tp-noimg-card .tp-noimg-desc { font-size: 0.87rem; color: #616C76; line-height: 1.5; flex: 1; margin: 0 0 14px; }
    .tp-noimg-card .view-link { font-size: 0.9rem; font-weight: 700; color: #7C3AED; display: flex; align-items: center; gap: 2px; }

    /* Wikipedia-style content sections (About/History/Geography/Climate/Festivals/Shopping/
       Photography Spots/Hospitals) - each independently hidden by th:if when blank. */
    /* scroll-margin-top matches .nav's actual fixed height (74px desktop, 54px on the same
       560px breakpoint .nav itself uses - see style.css), plus 20px of breathing room so a
       jumped-to title isn't sitting flush against the header edge. Previously just 20px total,
       which left most of the fixed header still covering the section title on click - the
       "jumps to roughly the right area but the title itself is hidden/cut off" bug. */
    .cp-section { margin-top: 40px; scroll-margin-top: 94px; }
    @media (max-width: 560px) { .cp-section { scroll-margin-top: 74px; } }
    .cp-section h2 { font-size: 1.35rem; margin: 0 0 12px; color: var(--ink); }
    .cp-section .rich-content { font-size: 0.92rem; color: #3D4852; line-height: 1.7; }

    /* "Explore {city}" hub grid - links out to every topic-cluster page that has real content.
       This is the pillar half of the pillar+cluster SEO structure. */
    .cp-hub-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 12px; margin-top: 14px; }
    .cp-hub-item { display: flex; align-items: center; gap: 10px; padding: 14px 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--white); text-decoration: none; color: var(--ink); font-weight: 700; font-size: 0.9rem; transition: border-color 0.15s ease, transform 0.15s ease; }
    .cp-hub-item:hover { border-color: #9333EA; transform: translateY(-2px); }
    .cp-hub-icon { font-size: 1.15rem; }

    .cp-transport-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px; margin-top: 14px; }
    .cp-transport-item { display: flex; gap: 12px; align-items: flex-start; background: var(--white); border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; }
    .cp-transport-item.unavailable { opacity: 0.5; }
    .cp-transport-icon { font-size: 1.3rem; flex-shrink: 0; }
    .cp-transport-item .lbl { font-weight: 700; font-size: 0.92rem; color: var(--ink); }
    .cp-transport-item .detail { font-size: 0.82rem; color: #556372; margin-top: 2px; }

    /* "Jump to a section" TOC - identical design to the Travel Articles page (article.html's
       .toc-panel), duplicated here rather than shared, since the two pages load separate,
       page-scoped stylesheets. Kept pixel-for-pixel the same on purpose so the two content
       types read as one consistent site pattern. */
    .toc-panel { position: relative; border: 1px solid rgba(147,51,234,0.18); border-radius: 14px; padding: 18px 22px 18px 24px; margin: 0 0 28px; background: linear-gradient(135deg, rgba(147,51,234,0.05), rgba(236,73,153,0.04)); overflow: hidden; }
    .toc-panel::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 4px; background: linear-gradient(180deg, #9333EA, #EC4899); }
    .toc-panel summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 10px; cursor: pointer; }
    .toc-panel summary::-webkit-details-marker { display: none; }
    .toc-summary-label { display: flex; align-items: center; gap: 9px; font-size: 0.92rem; font-weight: 800; color: var(--ink); }
    .toc-summary-ico { font-size: 1.05rem; }
    .toc-chev { font-size: 0.7rem; color: #9333EA; transition: transform 0.2s ease; flex-shrink: 0; }
    .toc-panel[open] .toc-chev { transform: rotate(180deg); }
    .toc-list { list-style: none; counter-reset: toc; margin: 16px 0 0; padding: 0; columns: 2; column-gap: 22px; }
    .toc-list li { break-inside: avoid; margin-bottom: 9px; counter-increment: toc; }
    .toc-list a { display: flex; align-items: baseline; gap: 9px; font-size: 0.85rem; color: #3D4852; font-weight: 500; text-decoration: none; }
    .toc-list a::before { content: counter(toc); flex-shrink: 0; width: 18px; height: 18px; border-radius: 50%; background: #FFFFFF; border: 1px solid rgba(147,51,234,0.3); color: #9333EA; font-size: 0.65rem; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; }
    .toc-list a:hover { color: #9333EA; }
    .toc-list a:hover::before { background: #9333EA; color: #FFFFFF; border-color: #9333EA; }
    @media (max-width: 560px) { .toc-list { columns: 1; } }

    /* FAQ accordion - identical design to the Travel Articles FAQ (article.html's .af-* block),
       duplicated for the same page-scoped-stylesheet reason as the TOC above. */
    .af-faq { margin: 40px 0 0; }
    .af-faq-eyebrow { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: #9333EA; margin: 0 0 4px; }
    .af-faq h3 { font-size: 1.3rem; font-weight: 800; color: var(--ink); margin: 0 0 16px; }
    .af-item { border: 1px solid var(--line); border-radius: 12px; margin-bottom: 10px; overflow: hidden; background: var(--white); transition: border-color 0.15s ease; }
    .af-item[open] { border-color: rgba(147,51,234,0.35); }
    .af-item summary { list-style: none; display: flex; align-items: center; justify-content: space-between; gap: 14px; padding: 16px 18px; font-size: 0.92rem; font-weight: 700; color: var(--ink); cursor: pointer; }
    .af-item summary::-webkit-details-marker { display: none; }
    .af-chev { flex-shrink: 0; color: #9333EA; font-size: 0.85rem; transition: transform 0.2s ease; }
    .af-item[open] .af-chev { transform: rotate(180deg); }
    .af-answer { padding: 0 18px 16px; font-size: 0.87rem; color: #556372; line-height: 1.65; }

    /* Prominent "Complete Travel Guide" CTA - the pillar page deliberately stays short and
       booking-focused, so this banner is the one loud, unmissable handoff to the comprehensive
       Wikipedia-style Travel Guide page for anyone who wants the full depth. */
    .cp-guide-cta { display: flex; align-items: center; gap: 20px; justify-content: space-between; flex-wrap: wrap; margin-top: 44px; padding: 26px 30px; border-radius: 18px; background: linear-gradient(135deg, #16233F 0%, #0B72D9 100%); }
    .cp-guide-cta-text { color: #FFFFFF; }
    .cp-guide-cta-text .eyebrow2 { font-size: 0.75rem; font-weight: 800; text-transform: uppercase; letter-spacing: 0.05em; color: #9FD0FF; margin: 0 0 6px; }
    .cp-guide-cta-text h3 { font-size: 1.3rem; margin: 0 0 6px; color: #FFFFFF; }
    .cp-guide-cta-text p { font-size: 0.88rem; color: rgba(255,255,255,0.85); margin: 0; max-width: 460px; }
    .cp-guide-cta .btn { background: #FFFFFF; color: var(--ink); flex-shrink: 0; white-space: nowrap; }

    /* Quick Facts sidebar card - derived from data already entered elsewhere (state, famous-for,
       hotel count, rating, nearest transport), not a new admin field. */
    .cp-facts-list { display: flex; flex-direction: column; gap: 9px; font-size: 0.85rem; color: #3D4852; }
    .cp-facts-list .fk { color: #8A93A0; font-weight: 600; margin-right: 6px; }

    .cp-teaser-text { font-size: 0.9rem; color: #556372; line-height: 1.65; }
    .cp-teaser-link { font-size: 0.85rem; font-weight: 700; color: #7C3AED; text-decoration: none; display: inline-block; margin-top: 8px; }

/* Photo Gallery - thumbnail grid opening a full-screen lightbox with prev/next nav. Same
   visual treatment as the guest house detail page's lightbox (guesthouse-detail.css), just
   under a cp- prefix since this stylesheet is page-scoped rather than shared. */
.cp-gallery-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 10px; margin-top: 14px; }
.cp-gallery-grid img { width: 100%; height: 110px; object-fit: cover; border-radius: 10px; cursor: pointer; transition: opacity 0.15s ease; }
.cp-gallery-grid img:hover { opacity: 0.85; }
@media (max-width: 560px) { .cp-gallery-grid { grid-template-columns: repeat(auto-fill, minmax(100px, 1fr)); } .cp-gallery-grid img { height: 90px; } }

.cp-lightbox-overlay { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.92); z-index: 1200; align-items: center; justify-content: center; }
.cp-lightbox-overlay.open { display: flex; }
.cp-lightbox-img { max-width: 88vw; max-height: 82vh; object-fit: contain; border-radius: 4px; }
.cp-lightbox-close { position: absolute; top: 18px; right: 24px; background: none; border: none; color: #FFFFFF; font-size: 2.2rem; cursor: pointer; line-height: 1; }
.cp-lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(255,255,255,0.15); border: none; color: #FFFFFF; font-size: 1.3rem; width: 46px; height: 46px; border-radius: 50%; cursor: pointer; }
.cp-lightbox-nav:hover { background: rgba(255,255,255,0.3); }
.cp-lightbox-prev { left: 20px; }
.cp-lightbox-next { right: 20px; }
.cp-lightbox-counter { position: absolute; bottom: 20px; left: 50%; transform: translateX(-50%); color: #FFFFFF; font-size: 0.85rem; background: rgba(0,0,0,0.4); padding: 4px 12px; border-radius: 20px; }

/* Highlights of {city} - clickable place cards. Matches the site's card language (stay-card /
   cp-hub-item): white background, var(--line) border, rounded corners, ink-tinted shadow, lift
   on hover. Cards for a place with no dedicated page yet (rare - see TouristPlaceRow.hasPage)
   render as the --plain variant: same shape, muted, no hover, no arrow, not a link. */
.cp-highlights-sub { font-size: 0.88rem; color: #556372; margin: -6px 0 16px; }
.cp-highlights-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 14px; }
.cp-highlight-card {
    display: flex; align-items: center; gap: 12px;
    background: var(--white); border: 1px solid var(--line); border-radius: 16px;
    padding: 16px 18px; text-decoration: none;
    box-shadow: 0 6px 18px rgba(0,27,62,0.08);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}
a.cp-highlight-card:hover { transform: translateY(-3px); box-shadow: 0 14px 30px rgba(0,27,62,0.16); border-color: var(--blue-mid); }
.cp-highlight-num {
    flex: 0 0 auto; width: 30px; height: 30px; border-radius: 50%;
    background: var(--ink); color: var(--white); font-size: 0.72rem; font-weight: 800;
    display: flex; align-items: center; justify-content: center; letter-spacing: 0.02em;
}
.cp-highlight-name { flex: 1 1 auto; font-weight: 700; font-size: 0.95rem; color: var(--ink); line-height: 1.3; }
.cp-highlight-arrow { flex: 0 0 auto; color: var(--blue-mid); font-size: 1.15rem; transition: transform 0.18s ease; }
a.cp-highlight-card:hover .cp-highlight-arrow { transform: translateX(4px); }
.cp-highlight-card--plain { cursor: default; opacity: 0.68; }
.cp-highlight-card--plain .cp-highlight-num { background: #8A93A0; }
@media (max-width: 640px) {
    .cp-highlights-grid { grid-template-columns: 1fr 1fr; gap: 10px; }
    .cp-highlight-card { padding: 12px 14px; }
}
@media (max-width: 420px) {
    .cp-highlights-grid { grid-template-columns: 1fr; }
}
