/* ══════════════════════════════════════════════════
   Archive header — two column layout
   ══════════════════════════════════════════════════ */
.archive-header-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: clamp(2rem, 5vw, 5rem);
    align-items: center;
    min-height: 280px;
}

.archive-header-content { /* existing content, no change needed */ }

/* Decorative kanji grid */
.archive-header-deco {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    height: 100%;
    min-height: 260px;
    overflow: hidden;
}

.neighborhood-kanji-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: .5rem 1rem;
    width: 100%;
    align-items: center;
}

.nk {
    font-family: var(--jp);
    font-weight: 300;
    color: var(--rd);
    opacity: .12;
    line-height: 1.2;
    letter-spacing: .05em;
    white-space: nowrap;
    transition: opacity .3s;
}

.nk--sm  { font-size: clamp(1rem, 2vw, 1.5rem); }
.nk--md  { font-size: clamp(1.4rem, 2.8vw, 2.2rem); }
.nk--lg  { font-size: clamp(1.8rem, 3.5vw, 2.8rem); }
.nk--xl  { font-size: clamp(2.2rem, 4.5vw, 3.6rem); }

/* Subtle size variation creates depth — odd items slightly larger */
.nk:nth-child(odd)  { opacity: .6; }
.nk:nth-child(even) { opacity: .35; }

/* Hide deco on small screens — no room */
@media (max-width: 768px) {
    .archive-header-inner {
        grid-template-columns: 1fr;
    }
    .archive-header-deco { display: none; }
}

/* ══════════════════════════════════════════════════
   PAGE CONTENT SECTION — Classic Editor output
   ══════════════════════════════════════════════════ */

.page-content-section { border-top: 1px solid var(--p2); }

.page-content-inner {
    max-width: 72ch;
    margin-inline: auto;
    font-size: clamp(.9rem, 1.4vw, 1.05rem);
    line-height: 1.78;
    color: var(--ink3);
}

.page-content-inner h2 {
    font-family: var(--serif);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -.02em;
    font-optical-sizing: auto;
    margin-top: 2rem;
    margin-bottom: .65rem;
    line-height: 1.15;
}

.page-content-inner h3 {
    font-family: var(--serif);
    font-size: clamp(1.05rem, 1.8vw, 1.3rem);
    font-weight: 700;
    color: var(--ink);
    letter-spacing: -.01em;
    font-optical-sizing: auto;
    margin-top: 1.75rem;
    margin-bottom: .5rem;
    line-height: 1.2;
}

.page-content-inner p { margin-bottom: 1rem; max-width: none; }
.page-content-inner p:last-child { margin-bottom: 0; }

.page-content-inner a {
    color: var(--r);
    text-decoration: underline;
    text-decoration-color: rgba(193,40,26,.35);
    text-underline-offset: 3px;
    transition: text-decoration-color var(--t);
}
.page-content-inner a:hover { text-decoration-color: var(--r); }

.page-content-inner ul,
.page-content-inner ol {
    padding-left: 1.4rem;
    margin-bottom: 1rem;
}
.page-content-inner li {
    margin-bottom: .35rem;
    line-height: 1.65;
    max-width: none;
}
.page-content-inner ul li::marker { color: var(--r); }

.page-content-inner strong { font-weight: 600; color: var(--ink); }
.page-content-inner em { font-style: italic; }

.page-content-inner blockquote {
    border-left: 3px solid var(--r);
    padding: .75rem 1.25rem;
    margin: 1.5rem 0;
    background: var(--rt);
    border-radius: 0 var(--r1) var(--r1) 0;
    font-style: italic;
    color: var(--ink2);
}


/* ══════════════════════════════════════════════════
   FAQ ACCORDION
   ══════════════════════════════════════════════════ */

.faq-section { border-top: 1px solid var(--p2); }

.faq-header {
    max-width: 800px;
    margin-inline: auto;
    margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
}

.faq-list {
    max-width: 800px;
    margin-inline: auto;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.faq-item {
    border-bottom: 1px solid var(--p2);
}
.faq-item:first-child { border-top: 1px solid var(--p2); }

.faq-trigger {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    width: 100%;
    padding: 1.1rem 0;
    background: none;
    border: none;
    cursor: pointer;
    text-align: left;
    transition: color var(--t);
}
.faq-trigger:hover { color: var(--r); }
.faq-trigger:hover .faq-question { color: var(--r); }

.faq-question {
    font-family: var(--serif);
    font-size: clamp(.95rem, 1.5vw, 1.1rem);
    font-weight: 700;
    color: var(--ink);
    line-height: 1.3;
    letter-spacing: -.01em;
    font-optical-sizing: auto;
    margin: 0;
    flex: 1;
    transition: color var(--t);
}

.faq-icon {
    flex-shrink: 0;
    color: var(--p3);
    display: flex;
    align-items: center;
    justify-content: center;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--p);
    transition: background var(--t), color var(--t), transform var(--t);
}
.faq-trigger:hover .faq-icon {
    background: var(--rt);
    color: var(--r);
}
.faq-item--open .faq-icon {
    transform: rotate(180deg);
    background: var(--rt);
    color: var(--r);
}
.faq-item--open .faq-question { color: var(--r); }

.faq-panel {
    overflow: hidden;
    max-height: 0;
    transition: max-height 300ms cubic-bezier(.4,0,.2,1);
}
/* When hidden attr is removed via JS, panel animates via max-height */
.faq-panel[hidden] {
    display: block !important; /* override browser hidden to allow animation */
    visibility: hidden;
    max-height: 0;
}
.faq-item--open .faq-panel {
    visibility: visible;
}

.faq-answer {
    padding-bottom: 1.25rem;
    font-size: clamp(.88rem, 1.35vw, 1rem);
    color: var(--ink3);
    line-height: 1.75;
    max-width: 68ch;
}

.faq-answer p { margin-bottom: .75rem; max-width: none; }
.faq-answer p:last-child { margin-bottom: 0; }

.faq-answer a {
    color: var(--r);
    text-decoration: underline;
    text-decoration-color: rgba(193,40,26,.35);
    text-underline-offset: 3px;
    transition: text-decoration-color var(--t);
}
.faq-answer a:hover { text-decoration-color: var(--r); }

.faq-answer ul,
.faq-answer ol {
    padding-left: 1.4rem;
    margin-bottom: .75rem;
}
.faq-answer li {
    margin-bottom: .3rem;
    line-height: 1.65;
    max-width: none;
}
.faq-answer ul li::marker { color: var(--r); }

.faq-answer strong { font-weight: 600; color: var(--ink); }

.page-content-inner ul,
.page-content-inner ol {
    padding-left: 2.5rem;
    margin-bottom: 1.1rem;
}

.page-content-inner li {
    margin-bottom: 0.4rem;
    line-height: 1.7;
    max-width: none;
}

.page-content-inner ul {
    list-style: disc;
}

.page-content-inner ol {
    list-style: decimal;
}

.page-content-inner ul li::marker {
    color: var(--r);
}

.page-content-inner ol li::marker {
    color: var(--r);
    font-weight: 700;
}

.page-content-inner hr {
    border: none;
    border-top: 1px solid var(--p2);
    margin: 2rem 0;
}

/* ── Klook hotels / tours sections ─────────────────────────────────────── */
.neighborhood-klook-header {
    max-width: 62ch;
    margin-bottom: clamp(1.25rem, 2.5vw, 2rem);
}

.neighborhood-klook-header .sec-title {
    margin: .35rem 0 0;
}

.neighborhood-klook-intro {
    margin: .6rem 0 0;
    color: var(--p3);
    font-size: clamp(.9rem, 1.3vw, 1rem);
    line-height: 1.6;
}

/* ── Brand-aware "Find a Hotel" CTA button ─────────────────────────────── */
/* Colours come from inline --brand-color / --brand-color-hover set per the
   detected affiliate brand; falls back to the theme gold. */
.neighborhood-hotel-cta-btn--brand {
    display: inline-flex;
    align-items: center;
    gap: .55rem;
    background: var(--brand-color, var(--g));
    color: #fff;
    border: none;
    font-weight: 700;
}

.neighborhood-hotel-cta-btn--brand:hover,
.neighborhood-hotel-cta-btn--brand:focus {
    background: var(--brand-color-hover, #e5b430);
    color: #fff;
    transform: translateY(-1px);
}

.neighborhood-hotel-cta-btn__icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 22px;
    height: 22px;
    flex-shrink: 0;
}

.neighborhood-hotel-cta-btn__icon img {
    width: 18px;
    height: 18px;
    object-fit: contain;
    /* Force the brand logo white so it reads on the coloured button. */
    filter: brightness(0) invert(1);
}

/* Brands whose logo needs its own colours sit on a white chip instead. */
.neighborhood-hotel-cta-btn__icon--white {
    width: 26px;
    height: 26px;
    background: #fff;
    border-radius: 999px;
}

.neighborhood-hotel-cta-btn__icon--white img {
    width: 16px;
    height: 16px;
    filter: none;
}
