/* ==========================================================================
   Things To Do (Attraction) archive
   Depends on main.css design tokens (:root variables).
   Covers: Editor's Picks carousel, affiliate CTA grid,
   long-form SEO content prose, and FAQ accordion.
   ========================================================================== */

/* ── Subtitle ─────────────────────────────────────────────────── */
.archive-subtitle {
font-family: var(--serif);
    font-size: clamp(1.125rem, 2vw, 1.35rem);
    font-style: italic;
    color: var(--ink3);
    margin: 0 0 1.5rem;
    line-height: 1.4;
}

/* ── Editor's Picks carousel ────────────────────────────────────────────── */
.archive-featured .ttg-featured-nav {
    display: flex;
    gap: .5rem;
}

.ttg-featured-btn {
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--rp);
    background: var(--w);
    border: 1px solid var(--p2);
    color: var(--ink);
    cursor: pointer;
    transition: background var(--t), border-color var(--t), color var(--t);
}

.ttg-featured-btn:hover {
    background: var(--r);
    border-color: var(--r);
    color: #fff;
}

.ttg-featured-btn.swiper-button-disabled {
    opacity: .4;
    cursor: default;
    pointer-events: none;
}

.ttg-featured-swiper {
    /* Visual breathing room so hover lift + shadow aren't clipped. */
    padding-bottom: 2.5rem;
    margin-inline: -4px;
    padding-inline: 4px;
}

.ttg-featured-swiper .swiper-slide {
    height: auto;
}

/* Make every carousel card the same height regardless of copy length. */
.ttg-featured-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.ttg-featured-card .c-card-img {
    position: relative;
}

.ttg-featured-card .c-card-body {
    flex: 1 1 auto;
}

.ttg-featured-badge {
    position: absolute;
    top: .7rem;
    left: .7rem;
    z-index: 2;
    display: inline-flex;
    align-items: center;
    padding: .3rem .6rem;
    border-radius: var(--rp);
    background: var(--r);
    color: var(--w);
    font-family: var(--cond);
    font-size: .6rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    box-shadow: var(--sh-sm);
}

.ttg-featured-pagination {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    text-align: center;
}

.ttg-featured-pagination .swiper-pagination-bullet {
    background: var(--p3);
    opacity: .5;
    transition: opacity var(--t), background var(--t), width var(--t);
}

.ttg-featured-pagination .swiper-pagination-bullet-active {
    background: var(--r);
    opacity: 1;
    width: 22px;
    border-radius: var(--rp);
}

/* ── Affiliate CTA section ──────────────────────────────────────────────── */
.ttg-aff__head {
    max-width: 60ch;
    margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.ttg-aff__title {
    font-family: var(--serif);
    font-size: clamp(1.5rem, 3.2vw, 2.3rem);
    font-weight: 700;
    line-height: 1.1;
    letter-spacing: -.02em;
    color: #fff;
    margin-top: .2rem;
}

.ttg-aff__sub {
    margin-top: .7rem;
    font-size: clamp(.92rem, 1.4vw, 1.02rem);
    line-height: 1.6;
    color: rgba(255, 255, 255, .72);
}

.ttg-aff__grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: .75rem;
}

@media (max-width: 900px) {
    .ttg-aff__grid { grid-template-columns: repeat(3, 1fr); }
}

@media (max-width: 640px) {
    .ttg-aff__grid { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 380px) {
    .ttg-aff__grid { grid-template-columns: 1fr; }
}

/* Brand-filled cards — same pattern as the single-attraction / single-stay
   booking CTAs: the registry --brand-color is the card surface, white copy on
   top, hover deepens to --brand-color-hover. */
.ttg-aff-card {
    position: relative;
    display: flex;
    align-items: center;
    gap: .7rem;
    padding: .85rem 1rem;
    border-radius: var(--r2);
    background: var(--brand-color, var(--ink2));
    border: 2px solid var(--brand-color, var(--ink2));
    text-decoration: none;
    overflow: hidden;
    transition: background var(--t), border-color var(--t), transform var(--t), box-shadow var(--t);
}

/* Subtle gloss sheen, revealed on hover (mirrors .attraction-booking-card). */
.ttg-aff-card::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(255, 255, 255, .12) 0%, transparent 60%);
    opacity: 0;
    transition: opacity var(--t);
    pointer-events: none;
}

.ttg-aff-card:hover {
    background: var(--brand-color-hover, var(--ink));
    border-color: var(--brand-color-hover, var(--ink));
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, .25);
}

.ttg-aff-card:hover::before {
    opacity: 1;
}

.ttg-aff-card__icon {
    position: relative;
    flex-shrink: 0;
    width: 42px;
    height: 42px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--r1);
    padding: 5px;
    background: transparent;
}

/* Logos that need a solid plate to stay legible on their own brand color. */
.ttg-aff-card__icon--white {
    background: rgba(255, 255, 255, .95);
}

.ttg-aff-card__icon img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: none !important;
}

.ttg-aff-card__monogram {
    font-family: var(--serif);
    font-size: 1.3rem;
    font-weight: 700;
    line-height: 1;
    color: var(--brand-color, var(--ink));
}

.ttg-aff-card__body {
    position: relative;
    display: flex;
    flex-direction: column;
    min-width: 0;
    line-height: 1.2;
}

.ttg-aff-card__label {
    font-family: var(--sans);
    font-size: .62rem;
    font-weight: 600;
    letter-spacing: .08em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .85);
}

.ttg-aff-card__brand {
    font-family: var(--sans);
    font-size: 1.02rem;
    font-weight: 700;
    color: #fff;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ttg-aff-card__arrow {
    position: relative;
    margin-left: auto;
    flex-shrink: 0;
    color: rgba(255, 255, 255, .9);
    transition: transform var(--t);
}

.ttg-aff-card:hover .ttg-aff-card__arrow {
    transform: translateX(3px);
}

.ttg-aff__disclosure {
    margin-top: 1.5rem;
    font-size: .78rem;
    line-height: 1.5;
    color: rgba(255, 255, 255, .45);
}

/* ── Hotel search (Agoda widget) ────────────────────────────────────────── */
.ttg-hotel__head {
    max-width: 64ch;
    margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.ttg-hotel__sub {
    margin-top: .7rem;
    font-size: clamp(.92rem, 1.4vw, 1.02rem);
    line-height: 1.65;
    color: var(--ink3);
}

/* Frame the dark, self-contained Agoda widget as a polished rounded card. */
.ttg-hotel__widget {
    border-radius: var(--r2);
    overflow: hidden;
    background: #262626;
    border: 1px solid var(--p2);
    box-shadow: var(--sh-md);
}

/* Neutralise the bleed/negative-margin styling the widget wrapper inherits
   when from-singapore.css happens to be present, and give the embed room to
   render before its script paints. */
.ttg-hotel__widget .from-singapore-widget {
    width: 100% !important;
    max-width: none !important;
    margin: 0 !important;
    min-height: 78px;
}

.ttg-hotel__note {
    display: inline-flex;
    align-items: center;
    gap: .45rem;
    margin-top: 1rem;
    font-family: var(--cond);
    font-size: .82rem;
    font-weight: 600;
    color: var(--p3);
}

.ttg-hotel__note svg {
    color: var(--r);
    flex-shrink: 0;
}

/* ── Long-form SEO content + share + FAQ ────────────────────────────────── */
/* Main content renders inside .page-content-inner so it inherits the shared
   prose styling AND the body.archive bleed rules already defined in main.css.
   The mobile bleed-collapse below patches the one gap (main.css omits
   body.archive from its @max-width:768px collapse block). */

/* Collapse the full-bleed images on mobile so they don't overflow the column. */
@media (max-width: 768px) {
    body.archive .page-content-inner img.aligncenter.size-full,
    body.archive .page-content-inner figure.wp-caption.aligncenter {
        --_bleed: 0%;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        border-radius: var(--radius-lg, 0.75rem) !important;
    }
}

/* Share bar + FAQ share a centred reading column aligned with the content. */
.archive-longform-foot {
    max-width: 780px;
    margin-inline: auto;
}

.page-content-inner + .archive-longform-foot {
    margin-top: clamp(2rem, 4vw, 3rem);
}

.archive-share + .archive-faq {
    margin-top: clamp(2.5rem, 5vw, 4rem);
}

/* Social share — mirrors .post-share from single-post.css so the archive
   matches the post templates. Reproduced here because single-post.css is not
   loaded on archives. */
.post-share {
    padding-block: 1.5rem;
    border-top: 1px solid var(--p2);
    border-bottom: 1px solid var(--p2);
}

.post-share-inner {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
}

.post-share-label {
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--p3);
    flex-shrink: 0;
}

.post-share-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.post-share-btn {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 5px 12px;
    border-radius: var(--rp);
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 600;
    text-decoration: none;
    transition: opacity 0.2s, transform 0.15s;
    border: none;
    cursor: pointer;
}

.post-share-btn:hover {
    opacity: 0.85;
    transform: translateY(-1px);
}

.post-share-btn svg {
    flex-shrink: 0;
}

.post-share-btn--facebook { background: #1877f2; color: #fff; }
.post-share-btn--twitter { background: var(--ink); color: #fff; }
.post-share-btn--pinterest { background: #e60023; color: #fff; }
.post-share-btn--whatsapp { background: #25d366; color: #fff; }

.post-share-btn--copy {
    background: var(--p);
    color: var(--ink3);
    border: 1px solid var(--p2);
}

.post-share-btn--copy.copied {
    background: var(--rt);
    color: var(--r);
    border-color: var(--r);
}

/* FAQ accordion — mirrors the single-attraction.php design. */
.archive-faq .sec-title {
    margin-top: .35rem;
}

.archive-faq .faq-list {
    margin-top: 1.25rem;
    border-top: 1px solid var(--p2);
}

.archive-faq .faq-item {
    border-bottom: 1px solid var(--p2);
}

.archive-faq .faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 0;
    text-align: left;
    background: none;
    border: 0;
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    cursor: pointer;
    transition: color var(--t);
}

.archive-faq .faq-question:hover {
    color: var(--r);
}

.archive-faq .faq-icon {
    flex-shrink: 0;
    transition: transform var(--t);
}

.archive-faq .faq-question[aria-expanded="true"] .faq-icon {
    transform: rotate(180deg);
}

.archive-faq .faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s var(--ease);
}

.archive-faq .faq-answer-inner {
    padding-bottom: 1.25rem;
    font-size: 0.95rem;
    line-height: 1.7;
    color: var(--ink3);
}

.archive-faq .faq-answer-inner p { margin-bottom: 0.75rem; }
.archive-faq .faq-answer-inner p:last-child { margin-bottom: 0; }

.archive-faq .faq-answer-inner ul,
.archive-faq .faq-answer-inner ol {
    padding-left: 1.5rem;
    margin-bottom: 0.75rem;
}

.archive-faq .faq-answer-inner ul { list-style: disc; }
.archive-faq .faq-answer-inner ol { list-style: decimal; }

.archive-faq .faq-answer-inner li {
    margin-bottom: 0.35rem;
    line-height: 1.65;
}

.archive-faq .faq-answer-inner ul li::marker { color: var(--r); }
.archive-faq .faq-answer-inner ol li::marker { color: var(--r); font-weight: 700; }

.archive-faq .faq-answer-inner strong { font-weight: 700; color: var(--ink); }
.archive-faq .faq-answer-inner em { font-style: italic; }

.archive-faq .faq-answer-inner a {
    color: var(--r);
    text-decoration: underline;
    text-decoration-color: rgba(193, 40, 26, 0.35);
    text-underline-offset: 3px;
    transition: text-decoration-color var(--t);
}

.archive-faq .faq-answer-inner a:hover { text-decoration-color: var(--r); }


/* ══════════════════════════════════════════════
   CTA GRID
   ══════════════════════════════════════════════ */
.tk-cta-section {
    padding: clamp(2rem, 5vw, 3rem);
    background: var(--p);
    border-radius: var(--r3);
    border: 1px solid var(--p2);
    margin-bottom: clamp(2.5rem, 5vw, 4rem);
    box-shadow: var(--sh-sm);
}

.tk-cta-heading {
    font-family: var(--serif);
    font-size: clamp(1.25rem, 2.5vw, 1.75rem);
    font-weight: 700;
    color: var(--ink);
    margin-bottom: 1.25rem;
    letter-spacing: -.02em;
    font-optical-sizing: auto;
}

.tk-cta-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 10px;
}

.tk-cta-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: .6rem;
    padding: 1.1rem .85rem;
    background: var(--w);
    border: 1px solid var(--p2);
    border-radius: var(--r2);
    text-align: center;
    transition: box-shadow 200ms var(--ease), border-color 200ms, transform 200ms;
}

.tk-cta-card:hover {
    box-shadow: var(--sh-md);
    border-color: var(--r);
    transform: translateY(-2px);
}

.tk-cta-icon {
    width: 42px;
    height: 42px;
    border-radius: var(--r1);
    background: var(--rt);
    color: var(--r);
    display: flex;
    align-items: center;
    justify-content: center;
}

.tk-cta-label {
    font-family: var(--sans);
    font-size: .78rem;
    font-weight: 600;
    color: var(--ink);
    line-height: 1.35;
    flex: 1;
}

.tk-cta-arrow {
    color: var(--r);
    margin-top: auto;
}

@media (max-width: 860px) {
    .tk-cta-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .tk-cta-grid {
        grid-template-columns: 1fr;
    }

    .tk-cta-card {
        flex-direction: row;
        text-align: left;
    }
}

/* ── Shared archive bits (stay + food archives) ─────────────────────────── */
/* Filter group labels (replaces per-archive inline styles) */
.archive-filter-label {
    font-family: var(--cond);
    font-size: .62rem;
    font-weight: 700;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--p3);
    margin-bottom: .5rem;
}

.archive-filter-label--spaced {
    margin-top: 1.5rem;
}

/* Guide band — neighborhood comparison (stay) / cuisine guide (food).
   A bordered callout that leads into the filter tabs. */
.ttg-hood {
    display: flex;
    gap: clamp(1rem, 2.5vw, 1.5rem);
    align-items: flex-start;
    padding: clamp(1.25rem, 3vw, 1.75rem);
    margin-bottom: clamp(1.75rem, 4vw, 2.5rem);
    background: linear-gradient(135deg, var(--p) 0%, var(--w) 100%);
    border: 1px solid var(--p2);
    border-left: 4px solid var(--r);
    border-radius: var(--r2);
    box-shadow: var(--sh-sm);
}

.ttg-hood__icon {
    flex-shrink: 0;
    width: 48px;
    height: 48px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: var(--rp);
    background: var(--rt);
    color: var(--r);
}

.ttg-hood__body {
    min-width: 0;
}

.ttg-hood__title {
    font-family: var(--serif);
    font-size: clamp(1.2rem, 2.4vw, 1.6rem);
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -.02em;
    color: var(--ink);
    margin: .15rem 0 .5rem;
}

.ttg-hood__text {
    font-size: clamp(.92rem, 1.4vw, 1rem);
    line-height: 1.65;
    color: var(--ink3);
    max-width: 70ch;
}

@media (max-width: 560px) {
    .ttg-hood {
        flex-direction: column;
        gap: .75rem;
    }

    .ttg-hood__icon {
        width: 42px;
        height: 42px;
    }
}

/* ── Itinerary "Plan Your Trip" — three-category CTA (distinct design) ───── */
.ttg-trip__head {
    max-width: 62ch;
    margin-bottom: clamp(1.5rem, 3vw, 2.25rem);
}

.ttg-trip__sub {
    margin-top: .7rem;
    font-size: clamp(.92rem, 1.4vw, 1.02rem);
    line-height: 1.6;
    color: var(--ink3);
}

.ttg-trip__panels {
    display: grid;
    gap: clamp(1.1rem, 2vw, 1.5rem);
}

/* Each panel: an aside (icon tile + title + text + count) beside the pills.
   --accent / --accent-soft / --accent-ink are set per category below. */
.ttg-trip-panel {
    --accent: var(--r);
    --accent-soft: var(--rt);
    --accent-ink: #fff;
    position: relative;
    display: grid;
    grid-template-columns: minmax(190px, 230px) 1fr;
    gap: clamp(1rem, 2.5vw, 2rem);
    align-items: start;
    padding: clamp(1.35rem, 3vw, 1.9rem);
    background:
        linear-gradient(180deg, var(--accent-soft) 0%, transparent 120px),
        var(--w);
    border: 1px solid var(--p2);
    border-radius: var(--r3);
    box-shadow: var(--sh-sm);
    overflow: hidden;
    transition: box-shadow var(--t), transform var(--t), border-color var(--t);
}

/* Top accent bar */
.ttg-trip-panel::before {
    content: '';
    position: absolute;
    inset: 0 0 auto 0;
    height: 4px;
    background: var(--accent);
}

.ttg-trip-panel:hover {
    box-shadow: var(--sh-md);
    transform: translateY(-2px);
    border-color: color-mix(in srgb, var(--accent) 35%, var(--p2));
}

.ttg-trip-panel__head {
    display: flex;
    flex-direction: column;
    gap: .7rem;
}

.ttg-trip-panel__icon {
    flex-shrink: 0;
    width: 56px;
    height: 56px;
    border-radius: var(--r2);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: var(--accent);
    color: var(--accent-ink);
    box-shadow: 0 6px 16px -4px color-mix(in srgb, var(--accent) 60%, transparent);
}

.ttg-trip-panel__meta {
    min-width: 0;
}

.ttg-trip-panel__title {
    font-family: var(--serif);
    font-size: clamp(1.1rem, 2vw, 1.3rem);
    font-weight: 700;
    line-height: 1.18;
    letter-spacing: -.01em;
    color: var(--ink);
}

.ttg-trip-panel__text {
    margin-top: .3rem;
    font-size: .88rem;
    line-height: 1.5;
    color: var(--ink3);
}

.ttg-trip-panel__count {
    display: inline-flex;
    align-items: center;
    gap: .35rem;
    margin-top: .55rem;
    font-family: var(--cond);
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    color: var(--accent);
}

.ttg-trip-panel__count::before {
    content: '';
    width: 6px;
    height: 6px;
    border-radius: var(--rp);
    background: var(--accent);
}

/* Per-category accent palette */
.ttg-trip-panel--tours  { --accent: var(--r);   --accent-soft: var(--rt);   --accent-ink: #fff; }
.ttg-trip-panel--hotels { --accent: #2577e3;    --accent-soft: #eaf2fd;     --accent-ink: #fff; }
.ttg-trip-panel--food   { --accent: #e0a020;    --accent-soft: #fdf4dd;     --accent-ink: #3a2a00; }

.ttg-trip-panel__brands {
    display: flex;
    flex-wrap: wrap;
    align-content: flex-start;
    gap: .55rem;
}

/* Brand pill — brand-coloured, with depth, gloss and a brand-tinted hover glow */
.ttg-trip-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    padding: .4rem .95rem .4rem .42rem;
    border-radius: var(--rp);
    background: var(--brand-color, var(--ink));
    text-decoration: none;
    overflow: hidden;
    box-shadow: 0 1px 2px rgba(26, 23, 20, .14);
    transition: background var(--t), transform var(--t), box-shadow var(--t);
}

/* Subtle top gloss */
.ttg-trip-pill::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(255, 255, 255, .22), transparent 55%);
    pointer-events: none;
}

.ttg-trip-pill:hover {
    background: var(--brand-color-hover, var(--ink));
    transform: translateY(-2px);
    box-shadow: 0 9px 20px -6px color-mix(in srgb, var(--brand-color) 60%, transparent);
}

.ttg-trip-pill__icon {
    position: relative;
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: var(--rp);
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Plate for colored/self-contained logos that need separation from the pill */
.ttg-trip-pill--plate .ttg-trip-pill__icon {
    background: rgba(255, 255, 255, .95);
    box-shadow: inset 0 0 0 1px rgba(26, 23, 20, .06);
}

.ttg-trip-pill__icon img {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

.ttg-trip-pill__monogram {
    font-family: var(--serif);
    font-weight: 700;
    font-size: .95rem;
    color: #fff;
}

.ttg-trip-pill__name {
    position: relative;
    font-family: var(--sans);
    font-weight: 700;
    font-size: .82rem;
    color: #fff;
    white-space: nowrap;
}

.ttg-trip__disclosure {
    margin-top: 1.5rem;
    font-size: .78rem;
    line-height: 1.5;
    color: var(--p3);
}

@media (max-width: 680px) {
    .ttg-trip-panel {
        grid-template-columns: 1fr;
        gap: 1.1rem;
    }

    .ttg-trip-panel__head {
        flex-direction: row;
        align-items: center;
        gap: .85rem;
    }

    .ttg-trip-panel__icon {
        width: 46px;
        height: 46px;
    }

    .ttg-trip-panel__count {
        margin-top: .35rem;
    }
}