/* =============================================================
   KL SUITES — Dual Theme System
   Theme 1 (default): Dark / Gold   — navy background palette
   Theme 2:           Light / Bright — warm cream palette
   ============================================================= */

/* ── Scrolled-header base ──────────────────────────────────── */
#main-header {
    transition: background-color .3s ease, box-shadow .3s ease, backdrop-filter .3s ease;
}
#main-header.scrolled {
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    background-color: rgba(14, 47, 61, 0.95);
    box-shadow: 0 8px 32px rgba(0,0,0,.28);
}

/* ── Theme-toggle button ───────────────────────────────────── */
#theme-toggle {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    /* min 44×44px tap target on mobile */
    padding: 10px 14px;
    border-radius: 9999px;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: .04em;
    cursor: pointer;
    transition: all .2s ease;
    white-space: nowrap;
    border: 1px solid rgba(255,255,255,.22);
    color: rgba(255,255,255,.7);
    background: transparent;
    line-height: 1;
    min-height: 44px;
}
@media (min-width: 640px) {
    #theme-toggle { padding: 5px 12px; min-height: unset; }
}
#theme-toggle:hover {
    border-color: rgba(255,255,255,.45);
    color: #fff;
}
#theme-toggle .th-icon {
    font-size: 13px;
    line-height: 1;
}
/* Hide text label on mobile; show on sm+ */
#theme-toggle .th-label { display: none; }
@media (min-width: 640px) {
    #theme-toggle .th-label { display: inline; }
}

/* ════════════════════════════════════════════════════════════
   LIGHT / BRIGHT THEME
   ════════════════════════════════════════════════════════════ */

/* ── Body background ───────────────────────────────────────── */
html[data-theme="light"] body {
    background-color: #faf7f2;
    color: #1a2638;
}

/* ── Header — always cream in light mode ───────────────────── */
/* (transparent header with white text is invisible on cream bg) */
html[data-theme="light"] #main-header {
    background-color: rgba(250, 247, 242, 0.93);
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    box-shadow: 0 2px 16px rgba(0,0,0,.05);
}
html[data-theme="light"] #main-header.scrolled {
    background-color: rgba(250, 247, 242, 0.97);
    box-shadow: 0 4px 24px rgba(0,0,0,.08);
}

/* Nav links */
html[data-theme="light"] #main-header .nav-link {
    color: rgba(14, 47, 61, .65) !important;
}
html[data-theme="light"] #main-header .nav-link:hover {
    color: #d4933a !important;
}
/* Logo subtitle */
html[data-theme="light"] #main-header .logo-sub {
    color: rgba(14, 47, 61, .4) !important;
}
/* Lang pill border & inactive links */
html[data-theme="light"] #main-header .lang-pill {
    border-color: rgba(14, 47, 61, .18) !important;
}
html[data-theme="light"] #main-header .lang-pill .lang-opt {
    color: rgba(14, 47, 61, .4) !important;
}
html[data-theme="light"] #main-header .lang-pill .lang-opt:hover {
    color: #0e2f3d !important;
}
/* Hamburger icon */
html[data-theme="light"] #hamburger-btn {
    color: rgba(14, 47, 61, .72) !important;
}
html[data-theme="light"] #hamburger-btn:hover {
    color: #0e2f3d !important;
}
/* Mobile menu */
html[data-theme="light"] #mobile-menu {
    background-color: rgba(250, 247, 242, .98) !important;
    border-color: rgba(14, 47, 61, .07) !important;
}
html[data-theme="light"] #mobile-menu a {
    color: rgba(14, 47, 61, .70) !important;
    border-color: rgba(14, 47, 61, .05) !important;
}
html[data-theme="light"] #mobile-menu a:hover {
    color: #d4933a !important;
}
html[data-theme="light"] #mobile-menu .text-gold {
    color: #d4933a !important;
}
/* Theme-toggle button – light colours */
html[data-theme="light"] #theme-toggle {
    border-color: rgba(14, 47, 61, .18);
    color: rgba(14, 47, 61, .58);
}
html[data-theme="light"] #theme-toggle:hover {
    border-color: rgba(14, 47, 61, .38);
    color: #0e2f3d;
}

/* ── Hero sections (.hero-bg) ──────────────────────────────── */
html[data-theme="light"] .hero-bg {
    background: linear-gradient(150deg, #fdf9f2 0%, #faf4e4 45%, #f2e8cc 100%) !important;
}
/* Headings in hero → dark navy */
html[data-theme="light"] .hero-bg h1,
html[data-theme="light"] .hero-bg h2 {
    color: #0e2f3d !important;
    -webkit-text-fill-color: initial !important;
}
/* Spans with Tailwind white-color classes (text-white, text-white/90, etc.) inside hero */
html[data-theme="light"] .hero-bg h1 span,
html[data-theme="light"] .hero-bg h2 span {
    color: #0e2f3d !important;
    -webkit-text-fill-color: initial !important;
}
/* .gold-text keeps its gradient — restore transparent fill */
html[data-theme="light"] .hero-bg .gold-text {
    -webkit-text-fill-color: transparent !important;
}
/* Sub-text in hero */
html[data-theme="light"] .hero-bg p {
    color: rgba(14, 47, 61, .58) !important;
}
/* Stats strip dividers inside hero */
html[data-theme="light"] .hero-bg [class*="border-t"],
html[data-theme="light"] .hero-bg [class*="border-x"] {
    border-color: rgba(14, 47, 61, .1) !important;
}
/* Gold labels stay gold */
html[data-theme="light"] .hero-bg .text-gold {
    color: #d4933a !important;
}
/* Border CTA button in hero */
html[data-theme="light"] .hero-bg a.border {
    border-color: rgba(14, 47, 61, .22) !important;
    color: #0e2f3d !important;
}
html[data-theme="light"] .hero-bg a.border:hover {
    border-color: #d4933a !important;
    color: #d4933a !important;
}
/* Decorative rings */
html[data-theme="light"] .hero-bg .pointer-events-none[class*="border-gold"] {
    opacity: .5;
}

/* ── Dark navy sections → warm cream ──────────────────────── */
html[data-theme="light"] .dark-section {
    background: linear-gradient(135deg, #ede7d9 0%, #e4dcc8 100%) !important;
}
html[data-theme="light"] .dark-section h2,
html[data-theme="light"] .dark-section h3 {
    color: #0e2f3d !important;
    -webkit-text-fill-color: initial !important;
}
html[data-theme="light"] .dark-section p,
html[data-theme="light"] .dark-section li {
    color: rgba(14, 47, 61, .62) !important;
}
html[data-theme="light"] .dark-section [class*="text-white"] {
    color: rgba(14, 47, 61, .62) !important;
}
html[data-theme="light"] .dark-section .text-gold {
    color: #d4933a !important;
}
/* Stat cards within dark section */
html[data-theme="light"] .dark-section .bg-white\/5 {
    background-color: rgba(255,255,255,.55) !important;
    border-color: rgba(14, 47, 61, .1) !important;
}
/* Texture overlay — invert so it reads warm */
html[data-theme="light"] .dark-section > .absolute.opacity-5 {
    opacity: .025 !important;
    filter: invert(1);
}

/* ── Content section backgrounds ───────────────────────────── */
html[data-theme="light"] section.bg-white {
    background-color: #fffcf5 !important;
}
html[data-theme="light"] section.bg-gray-50 {
    background-color: #f5edd8 !important;
}
/* Listings filter sticky bar */
html[data-theme="light"] div.sticky.bg-white {
    background-color: #fffcf5 !important;
    border-color: rgba(212, 147, 58, .12) !important;
}

/* ── Cards ─────────────────────────────────────────────────── */
html[data-theme="light"] .bg-white.rounded-2xl {
    background-color: #fff !important;
}
html[data-theme="light"] .bg-white.rounded-2xl.shadow-md {
    box-shadow: 0 4px 20px rgba(0,0,0,.06) !important;
}
html[data-theme="light"] .bg-white.rounded-2xl.border-gray-100 {
    border-color: rgba(212, 147, 58, .1) !important;
}

/* ── Footer ─────────────────────────────────────────────────── */
html[data-theme="light"] #site-footer {
    background-color: #ede7d9 !important;
    color: rgba(14, 47, 61, .62) !important;
}
html[data-theme="light"] #site-footer h4 {
    color: #0e2f3d !important;
}
html[data-theme="light"] #site-footer a:not([class*="bg-"]):hover {
    color: #d4933a !important;
}
html[data-theme="light"] #site-footer .footer-tagline {
    color: rgba(14, 47, 61, .52) !important;
}
html[data-theme="light"] #site-footer .footer-bottom {
    border-color: rgba(14, 47, 61, .1) !important;
    color: rgba(14, 47, 61, .3) !important;
}
html[data-theme="light"] #site-footer .lang-pill-footer {
    border-color: rgba(14, 47, 61, .18) !important;
}
html[data-theme="light"] #site-footer .lang-opt-footer:not([class*="bg-gold"]) {
    color: rgba(14, 47, 61, .4) !important;
}
html[data-theme="light"] #site-footer .lang-opt-footer:not([class*="bg-gold"]):hover {
    color: #0e2f3d !important;
}

/* ══════════════════════════════════════════════════════════════
   SUITE DESCRIPTION — Styled Content
   .sdesc-* classes: render markdown-sourced text beautifully
   while keeping semantic h3/ul/li/p tags intact for SEO.
   ══════════════════════════════════════════════════════════════ */

/* Container */
.suite-desc {
    font-family: inherit;
}

/* Lead paragraph (first paragraph — intro tone) */
.sdesc-lead {
    font-size: 0.9375rem;
    line-height: 1.8;
    color: #374151;
    font-weight: 500;
    margin-bottom: 1.1rem;
}

/* Regular paragraphs */
.sdesc-p {
    font-size: 0.875rem;
    line-height: 1.75;
    color: #4b5563;
    margin-bottom: 0.875rem;
}

/* Section headings — keep as h3 for SEO, style with gold accent bar */
.sdesc-h3 {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #0e2f3d;
    margin-top: 1.75rem;
    margin-bottom: 0.75rem;
    padding-top: 0.45rem;
    padding-bottom: 0.45rem;
    padding-inline-start: 0.9rem;
    border-inline-start: 3px solid #d4933a;
    background: linear-gradient(to right, rgba(212, 147, 58, 0.07) 0%, transparent 80%);
    border-radius: 0 4px 4px 0;
    line-height: 1.4;
}
[dir="rtl"] .sdesc-h3 {
    background: linear-gradient(to left, rgba(212, 147, 58, 0.07) 0%, transparent 80%);
    border-radius: 4px 0 0 4px;
}

/* Bullet list container */
.sdesc-ul {
    list-style: none;
    margin: 0.25rem 0 1.1rem 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.45rem;
}

/* Each bullet item — gold dot via ::before */
.sdesc-li {
    position: relative;
    padding-inline-start: 1.35rem;
    font-size: 0.875rem;
    line-height: 1.65;
    color: #4b5563;
}
.sdesc-li::before {
    content: '';
    position: absolute;
    inset-inline-start: 0;
    top: 0.52rem;
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background-color: #d4933a;
    flex-shrink: 0;
}

/* Bold text inside descriptions */
.suite-desc strong {
    color: #0e2f3d;
    font-weight: 700;
}

/* ── Light theme overrides ─────────────────────────────────── */
html[data-theme="light"] .sdesc-lead {
    color: #1a2638;
}
html[data-theme="light"] .sdesc-p,
html[data-theme="light"] .sdesc-li {
    color: rgba(14, 47, 61, .68);
}
html[data-theme="light"] .sdesc-h3 {
    color: #0e2f3d;
    background: linear-gradient(to right, rgba(212, 147, 58, 0.1) 0%, transparent 80%);
}
html[data-theme="light"] [dir="rtl"] .sdesc-h3 {
    background: linear-gradient(to left, rgba(212, 147, 58, 0.1) 0%, transparent 80%);
}
html[data-theme="light"] .suite-desc strong {
    color: #0e2f3d;
}

/* ── Search button (light mode) ─────────────────────────────────────────── */
html[data-theme="light"] #search-open-btn {
    border-color: rgba(14, 47, 61, .18);
    color: rgba(14, 47, 61, .58);
}
html[data-theme="light"] #search-open-btn:hover {
    border-color: rgba(14, 47, 61, .38);
    color: #0e2f3d;
}

/* ── Search overlay (always dark regardless of theme) ───────────────────── */
#search-overlay {
    /* always dark — intentional; no light-mode override */
}

/* ── Listings inline search input (light mode) ──────────────────────────── */
html[data-theme="light"] .sticky.bg-white input[type="search"] {
    background-color: #fff;
    border-color: rgba(14, 47, 61, .15);
    color: #0e2f3d;
}
html[data-theme="light"] .sticky.bg-white input[type="search"]:focus {
    border-color: rgba(212, 147, 58, .6);
}
