/*
 * From Singapore Hub — Page-Specific Styles
 * Inherits all design tokens from main.css (:root variables).
 * No token redefinitions here.
 *
 * @package Explore_Osaka
 */

/* ══════════════════════════════════════════════
   SG GREETING BAR
   ══════════════════════════════════════════════ */
.sg-greeting-bar {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: .65rem clamp(16px, 4vw, 40px);
    background: var(--ink);
    border-bottom: 2px solid var(--r);
    font-family: var(--sans);
    font-size: .82rem;
    color: rgba(255, 255, 255, .9);
    transform: translateY(-100%);
    transition: transform 300ms cubic-bezier(.4, 0, .2, 1);
    position: relative;
    z-index: 350;
}

.sg-greeting-bar[hidden] {
    display: none !important;
}

.sg-greeting-bar.is-visible {
    transform: translateY(0);
}

.sg-greeting-text {
    flex: 1;
    text-align: center;
}

.sg-greeting-close {
    flex-shrink: 0;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: rgba(255, 255, 255, .12);
    color: rgba(255, 255, 255, .7);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 200ms, color 200ms;
}

.sg-greeting-close:hover {
    background: rgba(255, 255, 255, .22);
    color: #fff;
}

/* ══════════════════════════════════════════════
   HERO
   ══════════════════════════════════════════════ */
.sg-hero {
    position: relative;
    background: var(--ink);
    min-height: clamp(420px, 70vh, 720px);
    display: flex;
    align-items: flex-end;
    overflow: hidden;
}

.sg-hero-bg {
    position: absolute;
    inset: 0;
}

.sg-hero-bg-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center 40%;
}

.sg-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top,
            rgba(26, 23, 20, .95) 0%,
            rgba(26, 23, 20, .65) 45%,
            rgba(26, 23, 20, .3) 100%);
}

.sg-hero-content {
    position: relative;
    z-index: 2;
    padding-block: clamp(3rem, 8vh, 5rem);
    max-width: var(--max);
    width: 100%;
}

/* Breadcrumb */
.sg-breadcrumb {
    font-family: var(--sans);
    font-size: 0.75rem;
    margin-bottom: 1.5rem;
    opacity: 0.9;
    color: var(--w);
}

.sg-breadcrumb a {
    color: #fff;
    text-decoration: none;
}

.sg-breadcrumb a:hover {
    text-decoration: underline;
}

.sg-breadcrumb .breadcrumb_last {
    opacity: 0.7;
    color: #fff;
}

.sg-hero-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 1rem;
}

.sg-hero-eyebrow-line {
    display: block;
    width: 24px;
    height: 2px;
    background: var(--g);
    border-radius: 2px;
}

.sg-hero-eyebrow-text {
    font-family: var(--cond);
    font-size: .62rem;
    font-weight: 800;
    letter-spacing: .22em;
    text-transform: uppercase;
    color: var(--g);
}

.sg-hero-h1 {
    font-family: var(--serif);
    font-size: clamp(2rem, 5vw, 3.5rem);
    font-weight: 900;
    color: #fff;
    line-height: 1.08;
    letter-spacing: -.03em;
    font-optical-sizing: auto;
    margin-bottom: 1rem;
    max-width: 20ch;
}

.sg-hero-sub {
    font-size: clamp(.9rem, 1.5vw, 1.05rem);
    color: rgba(255, 255, 255, .72);
    max-width: 52ch;
    line-height: 1.7;
    margin-bottom: 2rem;
}

.sg-hero-stats {
    display: flex;
    gap: clamp(1.5rem, 4vw, 3rem);
    flex-wrap: wrap;
    padding-top: 1.5rem;
    border-top: 1px solid rgba(255, 255, 255, .15);
}

.sg-stat-val {
    display: block;
    font-family: var(--cond);
    font-size: clamp(1.25rem, 2.5vw, 1.7rem);
    font-weight: 900;
    color: var(--g);
    letter-spacing: -.02em;
    line-height: 1;
    margin-bottom: .25rem;
}

.sg-stat-lbl {
    display: block;
    font-family: var(--cond);
    font-size: .58rem;
    font-weight: 700;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: rgba(255, 255, 255, .5);
}

/* ══════════════════════════════════════════════
   BODY LAYOUT — TOC + CONTENT
   ══════════════════════════════════════════════ */
.sg-body {
    background: var(--w);
    padding-block: clamp(2.5rem, 6vw, 4rem);
}

.sg-layout {
    display: grid;
    grid-template-columns: 240px 1fr;
    gap: clamp(2rem, 4vw, 3.5rem);
    align-items: start;
}

/* ══════════════════════════════════════════════
   TOC COLLAPSIBLE BUTTON (Match Day Trip)
   ══════════════════════════════════════════════ */
.dt-toc-toggle-wrapper {
    background: var(--p);
    border: 1px solid var(--p2);
    border-radius: var(--r2);
    margin-bottom: 2rem;
    overflow: hidden;
}

.dt-toc-toggle-btn {
    width: 100%;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    padding: 1rem 1.25rem;
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--sans);
    font-size: 0.9375rem;
    font-weight: 600;
    color: var(--ink);
    transition: background-color 0.2s;
    text-align: left;
}

.dt-toc-toggle-btn:hover {
    background: var(--rt);
}

.dt-toc-toggle-btn svg:first-child {
    flex-shrink: 0;
    color: var(--r);
}

.dt-toc-toggle-label {
    flex: 1;
}

.dt-toc-toggle-icon {
    flex-shrink: 0;
    transition: transform 0.3s;
    color: var(--p3);
}

.dt-toc-toggle-btn[aria-expanded="true"] .dt-toc-toggle-icon {
    transform: rotate(180deg);
}

.dt-toc-nav {
    max-height: 0;
    overflow: hidden;
    transition: max-height 0.3s ease;
}

.dt-toc-nav:not([hidden]) {
    max-height: 2000px;
    padding: 0 1.25rem 1.25rem;
    border-top: 1px solid var(--p2);
}

.dt-toc-list {
    list-style: none;
    margin: 0.75rem 0 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
}

.dt-toc-list li {
    margin: 0;
}

.dt-toc-list a {
    display: block;
    padding: 0.5rem 0.75rem;
    color: var(--ink3);
    text-decoration: none;
    border-left: 2px solid transparent;
    transition: all 0.2s;
    line-height: 1.4;
    font-size: 0.875rem;
}

.dt-toc-list a:hover {
    color: var(--r);
    background: var(--rt);
    border-left-color: var(--r);
}

.dt-toc-list a.is-active,
.dt-toc-list a.toc-link--active {
    color: var(--r);
    font-weight: 600;
    border-left-color: var(--r);
    background: var(--rt);
}

/* Nested TOC items (H3 under H2) - Day trip nested approach */
.dt-toc-list ol {
    list-style: none;
    padding: 0;
    margin: 0.5rem 0 0 1rem;
    display: flex;
    flex-direction: column;
    gap: 0.375rem;
}

.dt-toc-list ol a {
    font-size: 0.8125rem;
    padding: 0.375rem 0.75rem;
}

/* Flat TOC items (H3 under H2) - from-singapore.js flat approach */
.dt-toc-list .toc-sub-link {
    font-size: 0.8125rem;
    padding: 0.375rem 0.75rem 0.375rem 1.75rem;
}

/* ══════════════════════════════════════════════
   DISCLOSURE
   ══════════════════════════════════════════════ */
.sg-disclosure {
    display: flex;
    align-items: flex-start;
    gap: .65rem;
    background: var(--rt);
    border: 1px solid rgba(193, 40, 26, .2);
    border-radius: var(--r1);
    padding: .85rem 1rem;
    font-size: .78rem;
    color: var(--ink3);
    line-height: 1.6;
    margin-bottom: 2rem;
}

.sg-disclosure svg {
    flex-shrink: 0;
    color: var(--r);
    margin-top: 1px;
}

/* ══════════════════════════════════════════════
   CONTENT SECTIONS
   ══════════════════════════════════════════════ */
.sg-content {
    max-width: 900px;
    margin: 0 auto clamp(2rem, 4vw, 3rem);
    border-top: 3px solid var(--r);
    padding-top: 2.5rem;
    border-bottom: 3px solid var(--r);
    padding-bottom: 2.5rem;
}

.sg-section {
    margin-bottom: clamp(2.5rem, 6vw, 4.5rem);
    padding-top: 1.5rem;
    border-top: 1px solid var(--p2);
}

.sg-section:first-of-type {
    border-top: none;
    padding-top: 0;
}

.sg-section-intro {
    font-size: .9rem;
    color: var(--ink3);
    line-height: 1.72;
    max-width: 64ch;
    margin-block: .75rem 1.5rem;
}

.sg-callout {
    background: var(--p);
    border-left: 3px solid var(--r);
    border-radius: 0 var(--r1) var(--r1) 0;
    padding: .85rem 1.1rem;
    font-size: .82rem;
    color: var(--ink3);
    line-height: 1.65;
    margin-top: 1.25rem;
}

.sg-callout a {
    color: var(--r);
    text-decoration: underline;
}

.sg-callout a:hover {
    color: var(--rd);
}

/* ══════════════════════════════════════════════
   FLIGHT TABLE
   ══════════════════════════════════════════════ */
.sg-flight-table-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    border-radius: var(--r1);
    border: 1px solid var(--p2);
    margin-bottom: 1rem;
}

.sg-flight-table {
    width: 100%;
    border-collapse: collapse;
    font-size: .85rem;
}

.sg-flight-table thead th {
    background: var(--p);
    padding: .75rem 1rem;
    text-align: left;
    font-family: var(--cond);
    font-size: .6rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--p3);
    border-bottom: 1px solid var(--p2);
    white-space: nowrap;
}

.sg-flight-table tbody td {
    padding: .85rem 1rem;
    border-bottom: 1px solid var(--p2);
    color: var(--ink3);
    vertical-align: top;
    line-height: 1.5;
}

.sg-flight-table tbody tr:last-child td {
    border-bottom: none;
}

.sg-flight-table tbody tr:hover td {
    background: rgba(237, 231, 218, .4);
}

.sg-flight-carrier {
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.sg-flight-badge {
    display: inline-flex;
    align-items: center;
    padding: 2px 8px;
    border-radius: var(--rp);
    font-family: var(--cond);
    font-size: .55rem;
    font-weight: 800;
    letter-spacing: .1em;
    text-transform: uppercase;
    width: fit-content;
}

.sg-flight-badge--direct {
    background: #e6f4ea;
    color: #1e7e34;
}

.sg-flight-badge--stop {
    background: var(--p);
    color: var(--p3);
}

/* Mobile: table becomes cards */
@media (max-width: 640px) {

    .sg-flight-table,
    .sg-flight-table thead,
    .sg-flight-table tbody,
    .sg-flight-table th,
    .sg-flight-table td,
    .sg-flight-table tr {
        display: block;
    }

    .sg-flight-table thead {
        display: none;
    }

    .sg-flight-table tbody tr {
        border-bottom: 1px solid var(--p2);
        padding: .85rem 1rem;
    }

    .sg-flight-table tbody tr:last-child {
        border-bottom: none;
    }

    .sg-flight-table tbody td {
        padding: .2rem 0;
        border-bottom: none;
    }

    .sg-flight-table tbody td::before {
        content: attr(data-label) ': ';
        font-family: var(--cond);
        font-size: .58rem;
        font-weight: 800;
        letter-spacing: .1em;
        text-transform: uppercase;
        color: var(--p3);
        display: block;
        margin-bottom: .1rem;
    }
}

/* ══════════════════════════════════════════════
   BUDGET CARDS
   ══════════════════════════════════════════════ */
.sg-budget-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
    margin-bottom: 1rem;
}

.sg-budget-card {
    background: var(--p);
    border: 1px solid var(--p2);
    border-radius: var(--r2);
    padding: 1.25rem 1.35rem;
    position: relative;
    transition: box-shadow 200ms cubic-bezier(.4, 0, .2, 1), border-color 200ms;
}

.sg-budget-card:hover {
    box-shadow: var(--sh-md);
    border-color: var(--p3);
}

.sg-budget-card--mid {
    border-color: var(--r);
    border-width: 2px;
}

.sg-budget-popular {
    position: absolute;
    top: -11px;
    left: 50%;
    transform: translateX(-50%);
    background: var(--r);
    color: #fff;
    font-family: var(--cond);
    font-size: .55rem;
    font-weight: 800;
    letter-spacing: .12em;
    text-transform: uppercase;
    padding: 3px 10px;
    border-radius: var(--rp);
    white-space: nowrap;
}

.sg-budget-tier {
    font-family: var(--cond);
    font-size: .65rem;
    font-weight: 800;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--r);
    margin-bottom: .5rem;
}

.sg-budget-range {
    font-family: var(--cond);
    font-size: clamp(1.2rem, 2vw, 1.5rem);
    font-weight: 900;
    color: var(--ink);
    line-height: 1;
    margin-bottom: .3rem;
    letter-spacing: -.02em;
}

.sg-budget-day {
    font-size: .75rem;
    font-weight: 600;
    color: var(--p3);
}

.sg-budget-jpy {
    font-size: .72rem;
    color: var(--p3);
    margin-bottom: .85rem;
}

.sg-budget-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .35rem;
}

.sg-budget-list li {
    font-size: .78rem;
    color: var(--ink3);
    line-height: 1.5;
    padding-left: 1rem;
    position: relative;
    max-width: none;
}

.sg-budget-list li::before {
    content: '';
    position: absolute;
    left: 0;
    top: .55em;
    width: 5px;
    height: 5px;
    border-radius: 50%;
    background: var(--r);
    opacity: .5;
}

@media (max-width: 720px) {
    .sg-budget-grid {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .sg-budget-popular {
        position: static;
        transform: none;
        margin-bottom: .5rem;
        display: inline-block;
    }
}

/* ══════════════════════════════════════════════
   BOOKING PLATFORM
   ══════════════════════════════════════════════ */
.sg-platform-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 14px;
    margin-bottom: 1rem;
}

.sg-platform-card {
    background: var(--p);
    border: 1px solid var(--p2);
    border-radius: var(--r2);
    padding: 1.25rem 1.35rem;
}

.sg-platform-card--primary {
    border-color: var(--r);
    border-width: 2px;
}

.sg-platform-label {
    font-family: var(--cond);
    font-size: .55rem;
    font-weight: 800;
    letter-spacing: .14em;
    text-transform: uppercase;
    color: var(--r);
    margin-bottom: .4rem;
}

.sg-platform-name {
    font-family: var(--serif);
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--ink);
    margin-bottom: .65rem;
    font-optical-sizing: auto;
}

.sg-platform-pros {
    list-style: none;
    margin: 0 0 1rem;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: .3rem;
}

.sg-platform-pros li {
    font-size: .78rem;
    color: var(--ink3);
    padding-left: 1rem;
    position: relative;
    max-width: none;
    line-height: 1.5;
}

.sg-platform-pros li::before {
    content: '+';
    position: absolute;
    left: 0;
    color: var(--r);
    font-weight: 700;
}

.sg-platform-cta {
    margin-top: auto;
    font-size: .78rem;
    padding: 9px 16px;
}

.sg-platform-note p {
    font-size: .78rem;
    color: var(--p3);
    margin-top: .5rem;
    font-style: italic;
}

/* ── Branded CTA button (eo_render_sg_hub_cta) ── */
.sg-platform-btn {
    display: inline-flex;
    align-items: center;
    gap: .6rem;
    padding: .6rem 1.1rem;
    border-radius: var(--r1);
    background: var(--brand-color, var(--r));
    color: #fff;
    font-family: var(--sans);
    font-size: .82rem;
    font-weight: 600;
    text-decoration: none;
    border: 2px solid transparent;
    transition: background 180ms ease, transform 120ms ease, box-shadow 180ms ease;
    width: 100%;
    margin-top: auto;
    justify-content: space-between;
}

.sg-platform-btn:hover {
    background: var(--brand-color-hover, var(--rd));
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, .18);
}

.sg-platform-btn:active {
    transform: translateY(0);
}

.sg-platform-btn__icon {
    display: flex;
    align-items: center;
    flex-shrink: 0;
    width: 24px;
    height: 24px;
}

.sg-platform-btn__icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    filter: brightness(0) invert(1);
}

.sg-platform-btn--no-filter .sg-platform-btn__icon img {
    filter: none;
}

.sg-platform-btn__label {
    flex: 1;
    text-align: left;
    line-height: 1.3;
}

.sg-platform-btn__arrow {
    flex-shrink: 0;
    opacity: .7;
    transition: transform 180ms ease;
}

.sg-platform-btn:hover .sg-platform-btn__arrow {
    transform: translateX(3px);
    opacity: 1;
}

@media (max-width: 640px) {
    .sg-platform-grid {
        grid-template-columns: 1fr;
    }
}

/* Activities */
.sg-activity-grid {
    display: grid;
    grid-template-columns: 1.4fr 1fr;
    gap: 14px;
    margin-top: 1rem;
}

.sg-activity-card {
    background: var(--p);
    border: 1px solid var(--p2);
    border-radius: var(--r2);
    padding: 1.25rem 1.35rem;
    display: flex;
    flex-direction: column;
    gap: .75rem;
}

.sg-activity-card--primary {
    border-color: var(--r);
    border-width: 2px;
}

.sg-activity-platform {
    font-family: var(--serif);
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--ink);
    font-optical-sizing: auto;
}

.sg-activity-card p {
    font-size: .82rem;
    color: var(--ink3);
    line-height: 1.65;
    margin: 0;
    max-width: none;
}

@media (max-width: 640px) {
    .sg-activity-grid {
        grid-template-columns: 1fr;
    }
}

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

.sg-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;
}

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

.sg-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 cubic-bezier(.4, 0, .2, 1), border-color 200ms, transform 200ms;
}

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

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

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

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

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

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

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

/* ══════════════════════════════════════════════
   RESPONSIVE — LAYOUT BREAKPOINTS
   ══════════════════════════════════════════════ */
@media (max-width: 1024px) {
    .sg-layout {
        grid-template-columns: 1fr;
    }

    .sg-toc {
        position: static;
    }

    .sg-toc-inner {
        border-radius: var(--r1);
    }

    .sg-toc-chevron {
        display: block;
    }

    .sg-toc-nav {
        max-height: 0;
        overflow: hidden;
        transition: max-height 300ms cubic-bezier(.4, 0, .2, 1);
    }

    .sg-toc-nav.is-open {
        max-height: 600px;
    }

    .sg-toc-mobile-toggle[aria-expanded="true"] .sg-toc-chevron {
        transform: rotate(180deg);
    }
}

/* ══════════════════════════════════════════════
   PRINT STYLES
   ══════════════════════════════════════════════ */
@media print {

    .sg-greeting-bar,
    .sg-hero,
    .sg-toc,
    .sg-cta-section,
    .sg-platform-cta,
    .sg-activity-card .btn,
    .sg-disclosure {
        display: none !important;
    }

    .sg-layout {
        display: block;
    }

    .sg-body {
        padding: 0;
    }

    .sg-section {
        border-top: 1px solid #ccc;
        padding-top: 1rem;
    }
}

/* ══════════════════════════════════════════════════
   SUMMARIZE WITH AI
   ══════════════════════════════════════════════════ */
.dt-main-content .share-with-ai {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 0.75rem 1rem;
    margin: 1rem 0 2.5rem 0;
    padding-bottom: 1.5rem;
    border-bottom: 3px solid var(--r);
    background: transparent !important;
    border-left: none !important;
    border-right: none !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    font-family: var(--sans);
}

.dt-main-content .share-with-ai .share-ai-text {
    font-family: var(--sans);
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: var(--p3);
    flex-shrink: 0;
    margin-right: 0 !important;
}

.dt-main-content .share-with-ai .share-ai-text span {
    color: var(--p3) !important;
    font-size: 0.72rem !important;
    font-weight: 700 !important;
}

.dt-main-content .share-with-ai .share-ai {
    display: inline-flex !important;
    background: transparent !important;
    border-radius: var(--rp) !important;
    overflow: hidden;
}

.dt-main-content .share-with-ai .share-ai a,
.dt-main-content .share-with-ai .summarize-with-ai-icon {
    display: inline-flex !important;
    align-items: center !important;
    gap: 0.4rem !important;
    padding: 5px 12px !important;
    border-radius: var(--rp) !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    transition: opacity 0.2s, transform 0.15s !important;
    border: none !important;
    box-shadow: none !important;
    color: #fff !important;
}

.dt-main-content .share-with-ai .share-ai a:hover,
.dt-main-content .share-with-ai .summarize-with-ai-icon:hover {
    opacity: 0.85 !important;
    transform: translateY(-1px) !important;
    box-shadow: none !important;
}

.dt-main-content .share-with-ai .share-ai img {
    width: 16px !important;
    height: 16px !important;
    flex-shrink: 0 !important;
    margin: 0 !important;
    border-radius: 0 !important;
    display: inline-block !important;
}

.dt-main-content .share-with-ai .share-ai span {
    color: #fff !important;
    font-size: 0.75rem !important;
    font-weight: 600 !important;
}

/* ChatGPT - Override plugin black background */
.dt-main-content .share-with-ai .share-ai.chatgpt,
.dt-main-content .share-with-ai .share-ai.chatgpt a,
.dt-main-content .share-with-ai .share-ai.chatgpt .summarize-with-ai-icon,
.dt-main-content .share-with-ai .share-ai.chatgpt a:link,
.dt-main-content .share-with-ai .share-ai.chatgpt a:visited,
.dt-main-content .share-with-ai .share-ai.chatgpt a:hover,
.dt-main-content .share-with-ai .summarize-with-chatgpt,
.dt-main-content .share-with-ai .summarize-with-chatgpt:hover {
    background: #10a37f !important;
    background-color: #10a37f !important;
    color: #fff !important;
    border-color: #10a37f !important;
}

/* Grok - Override plugin black background */
.dt-main-content .share-with-ai .share-ai.grok,
.dt-main-content .share-with-ai .share-ai.grok a,
.dt-main-content .share-with-ai .share-ai.grok .summarize-with-ai-icon,
.dt-main-content .share-with-ai .share-ai.grok a:link,
.dt-main-content .share-with-ai .share-ai.grok a:visited,
.dt-main-content .share-with-ai .share-ai.grok a:hover,
.dt-main-content .share-with-ai .summarize-with-grok,
.dt-main-content .share-with-ai .summarize-with-grok:hover {
    background: var(--ink) !important;
    background-color: var(--ink) !important;
    color: #fff !important;
    border-color: var(--ink) !important;
}

/* Perplexity - Override plugin background */
.dt-main-content .share-with-ai .share-ai.perplexity,
.dt-main-content .share-with-ai .share-ai.perplexity a,
.dt-main-content .share-with-ai .share-ai.perplexity .summarize-with-ai-icon,
.dt-main-content .share-with-ai .share-ai.perplexity a:link,
.dt-main-content .share-with-ai .share-ai.perplexity a:visited,
.dt-main-content .share-with-ai .share-ai.perplexity a:hover,
.dt-main-content .share-with-ai .summarize-with-perplexity,
.dt-main-content .share-with-ai .summarize-with-perplexity:hover {
    background: #1fb8cd !important;
    background-color: #1fb8cd !important;
    color: #fff !important;
    border-color: #1fb8cd !important;
}

/* Claude - Override plugin background */
.dt-main-content .share-with-ai .share-ai.claude,
.dt-main-content .share-with-ai .share-ai.claude a,
.dt-main-content .share-with-ai .share-ai.claude .summarize-with-ai-icon,
.dt-main-content .share-with-ai .share-ai.claude a:link,
.dt-main-content .share-with-ai .share-ai.claude a:visited,
.dt-main-content .share-with-ai .share-ai.claude a:hover,
.dt-main-content .share-with-ai .summarize-with-claude,
.dt-main-content .share-with-ai .summarize-with-claude:hover {
    background: #cc785c !important;
    background-color: #cc785c !important;
    color: #fff !important;
    border-color: #cc785c !important;
}
.sg-social-share {
    max-width: 900px!important;
    margin: 0 auto clamp(2rem, 4vw, 3rem)!important;
    border-top: none !important;
}

/* ══════════════════════════════════════════════
   FLIGHT CARRIER LINK
   ══════════════════════════════════════════════ */
.sg-flight-carrier-link {
    color: inherit;
    text-decoration: none;
}

.sg-flight-carrier-link strong {
    text-decoration: underline;
    text-decoration-color: var(--r);
    text-underline-offset: 3px;
    transition: color 150ms;
}

.sg-flight-carrier-link:hover strong {
    color: var(--r);
}

/* ── Flight table CTA cell & button ── */
.sg-flight-cta-cell {
    white-space: nowrap;
    width: 1%;
    /* shrink to content */
    vertical-align: middle;
}

.sg-flight-btn {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: .35rem .75rem;
    border-radius: var(--r1);
    background: var(--r);
    color: #fff;
    font-family: var(--sans);
    font-size: .75rem;
    font-weight: 600;
    text-decoration: none;
    transition: background 150ms, transform 120ms;
    white-space: nowrap;
}

.sg-flight-btn:hover {
    background: var(--rd);
    transform: translateY(-1px);
}

.sg-flight-btn:active {
    transform: translateY(0);
}

.sg-flight-btn svg {
    flex-shrink: 0;
    transition: transform 150ms;
}

.sg-flight-btn:hover svg {
    transform: translateX(2px);
}

/* ══════════════════════════════════════════════
   AMAZING PASS BLOCK
   ══════════════════════════════════════════════ */
.sg-amazing-pass {
    display: grid;
    grid-template-columns: 220px 1fr;
    gap: 1.5rem;
    background: var(--p);
    border: 2px solid var(--r);
    border-radius: var(--r2);
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    align-items: start;
}

.sg-amazing-pass__banner img {
    width: 100%;
    border-radius: var(--r1);
    display: block;
}

.sg-amazing-pass__desc {
    font-size: .85rem;
    color: var(--ink3);
    line-height: 1.7;
    margin-bottom: 1rem;
}

.sg-amazing-pass__desc p {
    margin: 0 0 .5rem;
    max-width: none;
}

.sg-pass-ctas {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}

@media (max-width: 640px) {
    .sg-amazing-pass {
        grid-template-columns: 1fr;
    }
}

/* ══════════════════════════════════════════════
   OSAKA PASSES GRID
   ══════════════════════════════════════════════ */
.sg-passes-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 14px;
}

.sg-pass-card {
    background: var(--p);
    border: 1px solid var(--p2);
    border-radius: var(--r2);
    padding: 1.15rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .6rem;
    transition: box-shadow 200ms, border-color 200ms;
}

.sg-pass-card:hover {
    box-shadow: var(--sh-md);
    border-color: var(--p3);
}

.sg-pass-card__label {
    font-family: var(--sans);
    font-size: .88rem;
    font-weight: 700;
    color: var(--ink);
    line-height: 1.35;
}

.sg-pass-card__subtitle {
    font-size: .76rem;
    color: var(--ink3);
    line-height: 1.55;
}

.sg-pass-card__ctas {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-top: auto;
}

/* ══════════════════════════════════════════════
   ESIM GRID
   ══════════════════════════════════════════════ */
.sg-esim-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 14px;
    margin-top: .75rem;
}

.sg-esim-card {
    background: var(--p);
    border: 1px solid var(--p2);
    border-radius: var(--r2);
    padding: 1.15rem 1.25rem;
    display: flex;
    flex-direction: column;
    gap: .6rem;
    transition: box-shadow 200ms, border-color 200ms;
}

.sg-esim-card:hover {
    box-shadow: var(--sh-md);
    border-color: var(--p3);
}

.sg-esim-card__label {
    font-family: var(--sans);
    font-size: .88rem;
    font-weight: 700;
    color: var(--ink);
}

.sg-esim-card__subtitle {
    font-size: .76rem;
    color: var(--ink3);
    line-height: 1.55;
}

.sg-esim-card__ctas {
    display: flex;
    flex-direction: column;
    gap: .5rem;
    margin-top: auto;
}

/* ══════════════════════════════════════════════
   NEIGHBORHOODS MAP
   ══════════════════════════════════════════════ */
.sg-neighborhoods-map {
    border-radius: var(--r2);
    overflow: hidden;
    border: 1px solid var(--p2);
    margin-top: .75rem;
}

.sg-neighborhoods-map__img {
    display: block;
    width: 100%;
    height: auto;
    /* max-height: 600px;
    object-fit: cover; */
    border-radius: var(--r2, 1rem) !important;
    border: 1px solid var(--p2, #d9d0c0) !important;
    box-shadow:
        0 4px 16px oklch(0.15 0.02 40 / 0.10),
        0 1px 3px oklch(0.15 0.02 40 / 0.08) !important;
}

/* ══════════════════════════════════════════════
   NEIGHBORHOOD GRID — inside sg-section
   Reuses global .hood-card styles; this modifier
   only adjusts spacing/column count for the
   narrower content-column context.
   ══════════════════════════════════════════════ */
.sg-hood-grid {
    margin-top: 1.5rem;
    /* tighter columns for the sidebar-adjacent layout */
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
}

/* Make card names h3 (not h2) visually smaller in this context */
.sg-hood-grid .hood-card-name {
    font-size: clamp(.95rem, 1.8vw, 1.15rem);
}

@media (max-width: 720px) {
    .sg-hood-grid {
        grid-template-columns: repeat(auto-fill, minmax(130px, 1fr));
    }
}

/* ═══════════════════════════════════════════════════════════════════════
   FULL-WIDTH IMAGES (with bleed effect)
   ═══════════════════════════════════════════════════════════════════════ */

/* === Uncaptioned full-width images (direct img, no figure wrapper) === */
.page-template-page-from-singapore .sg-content img.aligncenter.size-full,
.page-template-page-from-singapore .dt-article-prose img.aligncenter.size-full {
    --_bleed: 30%;

    display: block !important;
    width: calc(100% + var(--_bleed)) !important;
    max-width: none !important;
    margin-left: calc(-1 * (var(--_bleed) / 2)) !important;
    margin-right: calc(-1 * (var(--_bleed) / 2)) !important;
    margin-top: 2.5rem !important;
    margin-bottom: 2.5rem !important;
    height: auto !important;

    border-radius: var(--r2, 1rem) !important;
    border: 1px solid var(--p2, #d9d0c0) !important;
    box-shadow:
        0 4px 16px oklch(0.15 0.02 40 / 0.10),
        0 1px 3px oklch(0.15 0.02 40 / 0.08) !important;
}

/* === Captioned images (figure.wp-caption wrapper) === */
.page-template-page-from-singapore .sg-content figure.wp-caption.aligncenter,
.page-template-page-from-singapore .dt-article-prose figure.wp-caption.aligncenter {
    --_bleed: 30%;

    display: block !important;
    width: calc(100% + var(--_bleed)) !important;
    max-width: none !important;
    margin-left: calc(-1 * (var(--_bleed) / 2)) !important;
    margin-right: calc(-1 * (var(--_bleed) / 2)) !important;
    margin-top: 2.5rem !important;
    margin-bottom: 2.5rem !important;

    border-radius: var(--r2, 1rem) !important;
    border: 1px solid var(--p2, #d9d0c0) !important;
    box-shadow:
        0 4px 16px oklch(0.15 0.02 40 / 0.10),
        0 1px 3px oklch(0.15 0.02 40 / 0.08) !important;

    overflow: hidden !important;
}

/* Inner img inside figure — no independent styling */
.page-template-page-from-singapore .sg-content figure.wp-caption.aligncenter img,
.page-template-page-from-singapore .dt-article-prose figure.wp-caption.aligncenter img {
    display: block !important;
    width: 100% !important;
    max-width: none !important;
    height: auto !important;
    margin: 0 !important;
    border-radius: 0 !important;
    border: none !important;
    box-shadow: none !important;
}

/* Caption text */
.page-template-page-from-singapore .sg-content figure.wp-caption.aligncenter .wp-caption-text,
.page-template-page-from-singapore .dt-article-prose figure.wp-caption.aligncenter .wp-caption-text {
    margin: 0 !important;
    padding: 0.6rem 1rem 0.7rem !important;
    font-size: 0.8125rem !important;
    color: var(--p3, #6b6559) !important;
    background: var(--p, #faf8f4) !important;
    border-top: 1px solid var(--p2, #d9d0c0) !important;
    text-align: left !important;
    line-height: 1.5 !important;
}

/* === Mobile: collapse bleed on both === */
@media (max-width: 768px) {

    .page-template-page-from-singapore .sg-content img.aligncenter.size-full,
    .page-template-page-from-singapore .dt-article-prose img.aligncenter.size-full,
    .page-template-page-from-singapore .sg-content figure.wp-caption.aligncenter,
    .page-template-page-from-singapore .dt-article-prose figure.wp-caption.aligncenter {
        --_bleed: 0%;

        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
        border-radius: var(--r1, 0.75rem) !important;
    }
}

/* === Horizontal Rule === */
.page-template-page-from-singapore .sg-content hr,
.page-template-page-from-singapore .dt-article-prose hr {
    display: block !important;
    width: 100% !important;
    height: 1px !important;
    border: none !important;
    background: var(--p2, #d9d0c0) !important;
    margin-top: 3rem !important;
    margin-bottom: 3rem !important;
    position: relative !important;
}

/* Center ornament — Japanese diamond mark */
.page-template-page-from-singapore .sg-content hr::before,
.page-template-page-from-singapore .dt-article-prose hr::before {
    content: '◆' !important;
    position: absolute !important;
    top: 50% !important;
    left: 50% !important;
    transform: translate(-50%, -50%) !important;
    font-size: 0.5rem !important;
    color: var(--r, #c1281a) !important;
    background: var(--p, #ede7da) !important;
    padding: 0 0.75rem !important;
    line-height: 1 !important;
}

/* ══════════════════════════════════════════════
   FAQ ACCORDION
   Mirrors single-post.css rules so the JS
   max-height animation works on this template.
   ══════════════════════════════════════════════ */
.sg-body .sec-title-faq {
    margin: 0 0 1.5rem;
    scroll-margin-top: 88px;
}

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

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

.faq-trigger {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1.25rem 0;
    text-align: left;
    background: none;
    border: none;
    cursor: pointer;
    transition: opacity var(--t);
}

.faq-trigger:hover {
    opacity: 0.8;
}

.faq-question {
    font-family: var(--serif);
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--ink);
    margin: 0;
    line-height: 1.3;
    font-optical-sizing: auto;
}

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

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

/* Key rule: panel must have overflow:hidden + transition for JS max-height to animate */
.faq-panel {
    overflow: hidden;
    transition: max-height 0.3s var(--ease, ease);
    max-height: 0;
}

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

.faq-answer p {
    margin-bottom: 0.75rem;
}

.faq-answer p:last-child {
    margin-bottom: 0;
}

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

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

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

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

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

.faq-answer 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);
}
.faq-answer a:hover { text-decoration-color: var(--r); }

/* ══════════════════════════════════════════════
   WIDGETS
   ══════════════════════════════════════════════ */
.from-singapore-widget {
    --_bleed: 30%;
    display: block !important;
    width: calc(100% + var(--_bleed)) !important;
    max-width: none !important;
    margin-left: calc(-1 * (var(--_bleed) / 2)) !important;
    margin-right: calc(-1 * (var(--_bleed) / 2)) !important;
    margin-top: 2.5rem !important;
    margin-bottom: 2.5rem !important;
    height: auto !important;
    overflow: hidden;
}

/* === Mobile: collapse bleed on both === */
@media (max-width: 768px) {
    .from-singapore-widget {
        --_bleed: 0%;
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}