/* ==========================================================================
   DreamWorld Vacation — theme
   Palette: ocean navy, lagoon teal, sunset coral, warm sand.
   Day/night uses Bootstrap's data-bs-theme plus the tokens below.
   ========================================================================== */

:root {
    --dw-navy: #0B2545;
    --dw-navy-2: #13315C;
    --dw-teal: #0FA3B1;
    --dw-teal-dark: #0B7E89;
    --dw-coral: #FF7A59;
    --dw-coral-dark: #E85D3B;
    --dw-sand: #FFF6EC;
    --dw-gold: #F7B32B;

    --dw-bg: #ffffff;
    --dw-bg-alt: #F5F8FB;
    --dw-surface: #ffffff;
    --dw-text: #1E2A3B;
    --dw-muted: #5B6779;
    --dw-border: #E3E8EF;
    --dw-heading: #0B2545;
    --dw-shadow: 0 10px 30px rgba(11, 37, 69, .08);
    --dw-shadow-lg: 0 20px 50px rgba(11, 37, 69, .15);
    --dw-radius: 16px;

    --bs-body-font-family: 'Poppins', system-ui, -apple-system, 'Segoe UI', sans-serif;
    --bs-link-color-rgb: 11, 126, 137;
    --bs-link-hover-color-rgb: 232, 93, 59;
    --a11y-scale: 1;
}

[data-bs-theme="dark"] {
    --dw-bg: #0A1626;
    --dw-bg-alt: #0F1F33;
    --dw-surface: #13263D;
    --dw-text: #DCE5F0;
    --dw-muted: #9AAAC0;
    --dw-border: #22385A;
    --dw-heading: #F3F7FC;
    --dw-shadow: 0 10px 30px rgba(0, 0, 0, .35);
    --dw-shadow-lg: 0 20px 50px rgba(0, 0, 0, .5);
    --bs-body-bg: #0A1626;
    --bs-body-color: #DCE5F0;
    --bs-link-color-rgb: 74, 214, 226;
    --bs-link-hover-color-rgb: 255, 150, 120;
    --bs-secondary-color: #9AAAC0;
    --bs-border-color: #22385A;
}

html { font-size: calc(16px * var(--a11y-scale)); scroll-padding-top: 90px; }
body {
    background: var(--dw-bg);
    color: var(--dw-text);
    line-height: 1.7;
    transition: background-color .3s ease, color .3s ease;
}
h1, h2, h3, h4, h5, .display-font { color: var(--dw-heading); font-weight: 700; line-height: 1.25; }
.display-font, .section-title, .hero h1, .page-hero h1 { font-family: 'Playfair Display', Georgia, serif; }
.text-accent { color: var(--dw-coral) !important; }
.text-teal { color: var(--dw-teal) !important; }
.text-muted-dw { color: var(--dw-muted) !important; }
.bg-alt { background: var(--dw-bg-alt); }
img { max-width: 100%; }

.skip-link {
    position: absolute; left: 1rem; top: -60px; z-index: 2000;
    background: var(--dw-coral); color: #fff; padding: .6rem 1rem; border-radius: 8px; font-weight: 600;
}
.skip-link:focus { top: 1rem; }
:focus-visible { outline: 3px solid var(--dw-gold) !important; outline-offset: 2px; }
.hp-field { position: absolute !important; left: -9999px !important; width: 1px; height: 1px; opacity: 0; }

/* Buttons */
.btn { border-radius: 50px; font-weight: 600; padding: .65rem 1.5rem; display: inline-flex; align-items: center; justify-content: center; }
.btn-sm { padding: .4rem 1rem; }
.btn-lg { padding: .85rem 1.9rem; font-size: 1.05rem; }
.btn-accent { background: var(--dw-coral); border: 2px solid var(--dw-coral); color: #fff; box-shadow: 0 8px 20px rgba(255, 122, 89, .3); }
.btn-accent:hover, .btn-accent:focus { background: var(--dw-coral-dark); border-color: var(--dw-coral-dark); color: #fff; transform: translateY(-1px); }
.btn-teal { background: var(--dw-teal); border: 2px solid var(--dw-teal); color: #fff; }
.btn-teal:hover { background: var(--dw-teal-dark); border-color: var(--dw-teal-dark); color: #fff; }
.btn-outline-teal { border: 2px solid var(--dw-teal); color: var(--dw-teal); background: transparent; }
.btn-outline-teal:hover { background: var(--dw-teal); color: #fff; }

/* Top bar + header */
.topbar { background: var(--dw-navy); color: rgba(255,255,255,.8); font-size: .82rem; padding: .45rem 0; }
.topbar a { color: rgba(255,255,255,.85); text-decoration: none; }
.topbar a:hover { color: var(--dw-coral); }

.site-header { background: color-mix(in srgb, var(--dw-surface) 92%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--dw-border); z-index: 1030; }
.navbar { padding: .6rem 0; }
.navbar-brand { display: flex; align-items: center; gap: .55rem; text-decoration: none; }
.brand-logo { width: 44px; height: 44px; }
.brand-text { font-family: 'Playfair Display', serif; font-weight: 700; font-size: 1.35rem; color: var(--dw-heading); letter-spacing: -.3px; }
.brand-text span, .footer-brand span span { color: var(--dw-coral); }
.navbar .nav-link { color: var(--dw-text); font-weight: 500; font-size: .93rem; padding: .5rem .75rem !important; border-radius: 30px; }
.navbar .nav-link:hover, .navbar .nav-link.active { color: var(--dw-teal); }
.navbar .nav-link.active { background: color-mix(in srgb, var(--dw-teal) 12%, transparent); }
.navbar-toggler { border: 1px solid var(--dw-border); color: var(--dw-heading); padding: .45rem .7rem; border-radius: 10px; }

.site-tools { display: flex; gap: .3rem; }
.tool-btn {
    width: 38px; height: 38px; border-radius: 50%; border: 1px solid var(--dw-border);
    background: var(--dw-surface); color: var(--dw-heading); display: inline-flex; align-items: center; justify-content: center;
    transition: all .2s ease;
}
.tool-btn:hover, .tool-btn[aria-pressed="true"] { background: var(--dw-teal); color: #fff; border-color: var(--dw-teal); }
[data-bs-theme="light"] .icon-night, [data-bs-theme="dark"] .icon-day { display: none; }
[data-bs-theme="dark"] .icon-night { color: var(--dw-gold); }
@media (max-width: 400px) { .tool-btn { width: 34px; height: 34px; font-size: .85rem; } .brand-text { font-size: 1.1rem; } .brand-logo { width: 36px; height: 36px; } }

/* Hero */
.hero {
    position: relative; min-height: 88vh; display: flex; align-items: center; color: #fff;
    background: linear-gradient(100deg, rgba(11,37,69,.88) 0%, rgba(11,37,69,.55) 50%, rgba(11,37,69,.15) 100%), var(--hero-img) center/cover no-repeat;
    padding: 5rem 0;
}
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5vw, 4rem); }
.hero h1 em { color: var(--dw-coral); font-style: italic; }
.hero .lead { color: rgba(255,255,255,.88); max-width: 560px; }
.hero-badge { display: inline-flex; gap: .5rem; align-items: center; background: rgba(255,255,255,.14); border: 1px solid rgba(255,255,255,.25); padding: .4rem 1rem; border-radius: 50px; font-size: .85rem; backdrop-filter: blur(6px); }
.hero-stats { display: flex; gap: 2rem; flex-wrap: wrap; margin-top: 2.5rem; }
.hero-stats strong { display: block; font-size: 1.6rem; color: #fff; }
.hero-stats span { font-size: .85rem; color: rgba(255,255,255,.75); }

.quote-card { background: var(--dw-surface); color: var(--dw-text); border-radius: var(--dw-radius); padding: 1.75rem; box-shadow: var(--dw-shadow-lg); }
.quote-card h2 { font-size: 1.35rem; }

/* Page hero (inner pages) */
.page-hero {
    position: relative; color: #fff; padding: 5.5rem 0 4.5rem;
    background: linear-gradient(rgba(11,37,69,.78), rgba(11,37,69,.78)), var(--hero-img, none) center/cover no-repeat, var(--dw-navy);
}
.page-hero h1 { color: #fff; font-size: clamp(2rem, 4vw, 3rem); }
.page-hero p { color: rgba(255,255,255,.85); max-width: 680px; margin: 0 auto; }
.breadcrumb-dw { display: flex; gap: .5rem; justify-content: center; font-size: .85rem; list-style: none; padding: 0; margin: 0 0 1rem; }
.breadcrumb-dw a { color: rgba(255,255,255,.8); text-decoration: none; }
.breadcrumb-dw li + li::before { content: "›"; margin-right: .5rem; color: rgba(255,255,255,.5); }

/* Sections */
.section { padding: 5rem 0; }
.section-sm { padding: 3rem 0; }
.eyebrow { display: inline-block; color: var(--dw-coral); font-weight: 600; letter-spacing: 2px; text-transform: uppercase; font-size: .8rem; margin-bottom: .6rem; }
.section-title { font-size: clamp(1.8rem, 3.2vw, 2.6rem); margin-bottom: 1rem; }
.section-intro { color: var(--dw-muted); max-width: 640px; margin: 0 auto 3rem; }

/* Cards */
.dw-card { background: var(--dw-surface); border: 1px solid var(--dw-border); border-radius: var(--dw-radius); box-shadow: var(--dw-shadow); height: 100%; transition: transform .25s ease, box-shadow .25s ease; overflow: hidden; }
.dw-card:hover { transform: translateY(-4px); box-shadow: var(--dw-shadow-lg); }
.icon-card { padding: 2rem; }
.icon-circle { width: 60px; height: 60px; border-radius: 16px; display: inline-flex; align-items: center; justify-content: center; font-size: 1.5rem; color: #fff; background: linear-gradient(135deg, var(--dw-teal), var(--dw-navy-2)); margin-bottom: 1.2rem; }
.icon-card:nth-child(even) .icon-circle, .col:nth-child(even) .icon-circle { background: linear-gradient(135deg, var(--dw-coral), #f2a65a); }
.icon-card h3 { font-size: 1.15rem; }
.icon-card p { color: var(--dw-muted); margin: 0; }

.package-card .pkg-img { position: relative; aspect-ratio: 16/10; overflow: hidden; }
.package-card .pkg-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .5s ease; }
.package-card:hover .pkg-img img { transform: scale(1.06); }
.pkg-tag { position: absolute; top: 1rem; left: 1rem; background: var(--dw-coral); color: #fff; font-size: .75rem; font-weight: 600; padding: .3rem .8rem; border-radius: 50px; }
.pkg-nights { position: absolute; bottom: 1rem; right: 1rem; background: rgba(11,37,69,.85); color: #fff; font-size: .78rem; padding: .3rem .8rem; border-radius: 50px; }
.package-card .pkg-body { padding: 1.4rem; display: flex; flex-direction: column; }
.pkg-place { color: var(--dw-teal); font-size: .85rem; font-weight: 500; }
.package-card h3 { font-size: 1.15rem; margin: .3rem 0 .6rem; }
.package-card h3 a { color: inherit; text-decoration: none; }
.package-card h3 a::after { content: ""; position: absolute; inset: 0; }
.package-card { position: relative; }
.package-card .btn { position: relative; z-index: 2; }
.pkg-price { display: flex; align-items: baseline; gap: .5rem; margin-top: auto; padding-top: 1rem; border-top: 1px dashed var(--dw-border); }
.pkg-price strong { font-size: 1.6rem; color: var(--dw-coral); }
.pkg-price s { color: var(--dw-muted); font-size: .9rem; }
.pkg-price small { color: var(--dw-muted); }

.blog-card img { aspect-ratio: 16/9; object-fit: cover; width: 100%; }
.blog-card .card-body-dw { padding: 1.4rem; }
.blog-card h3 { font-size: 1.12rem; }
.blog-card h3 a { color: var(--dw-heading); text-decoration: none; }
.blog-card h3 a:hover { color: var(--dw-teal); }
.meta { font-size: .82rem; color: var(--dw-muted); }

/* Steps */
.step { text-align: center; padding: 1.5rem; }
.step-num { width: 64px; height: 64px; border-radius: 50%; margin: 0 auto 1rem; display: flex; align-items: center; justify-content: center; font-weight: 700; font-size: 1.4rem; color: var(--dw-coral); border: 2px dashed var(--dw-coral); }

/* Testimonials */
.testimonial { padding: 2rem; }
.testimonial .stars { color: var(--dw-gold); margin-bottom: .8rem; }
.testimonial blockquote { font-style: italic; margin-bottom: 1rem; }
.sample-note { font-size: .8rem; color: var(--dw-muted); text-align: center; margin-top: 1rem; }

/* Split image */
.split-img { border-radius: var(--dw-radius); box-shadow: var(--dw-shadow-lg); width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.check-list { list-style: none; padding: 0; }
.check-list li { padding-left: 1.9rem; position: relative; margin-bottom: .7rem; }
.check-list li::before { content: "\f00c"; font-family: "Font Awesome 6 Free"; font-weight: 900; position: absolute; left: 0; top: .1rem; color: var(--dw-teal); }

/* FAQ */
.accordion { --bs-accordion-bg: var(--dw-surface); --bs-accordion-border-color: var(--dw-border); --bs-accordion-active-bg: color-mix(in srgb, var(--dw-teal) 10%, var(--dw-surface)); --bs-accordion-active-color: var(--dw-heading); --bs-accordion-btn-focus-box-shadow: none; }
.accordion-item { border-radius: 12px !important; overflow: hidden; margin-bottom: .75rem; border: 1px solid var(--dw-border) !important; }
.accordion-button { font-weight: 600; color: var(--dw-heading); }

/* Forms */
.form-control, .form-select { border-radius: 10px; padding: .7rem 1rem; border-color: var(--dw-border); background-color: var(--dw-surface); color: var(--dw-text); }
.form-control:focus, .form-select:focus { border-color: var(--dw-teal); box-shadow: 0 0 0 .2rem rgba(15,163,177,.2); }
.form-label { font-weight: 500; font-size: .9rem; }
.form-alert { display: none; }

/* Article */
.article-body { font-size: 1.05rem; }
.article-body h2 { font-size: 1.5rem; margin-top: 2rem; }
.article-hero-img { width: 100%; border-radius: var(--dw-radius); aspect-ratio: 16/8; object-fit: cover; margin-bottom: 2rem; }
.sidebar-box { background: var(--dw-surface); border: 1px solid var(--dw-border); border-radius: var(--dw-radius); padding: 1.5rem; margin-bottom: 1.5rem; }

/* Posts gallery */
.post-tile { display: block; border-radius: var(--dw-radius); overflow: hidden; box-shadow: 0 4px 14px rgba(0,0,0,.08); transition: transform .2s, box-shadow .2s; }
.post-tile img { display: block; width: 100%; height: auto; aspect-ratio: 1 / 1; object-fit: cover; }
.post-tile:hover, .post-tile:focus-visible { transform: translateY(-3px); box-shadow: 0 10px 24px rgba(0,0,0,.15); }
.post-tile-title { margin: .6rem 0 0; font-weight: 600; font-size: .95rem; color: var(--dw-heading); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.post-lightbox .modal-content { background: var(--dw-navy); color: #fff; border: 0; overflow: hidden; }
.post-lightbox .modal-footer { border-top-color: rgba(255,255,255,.15); }
.post-lightbox #postLightboxTitle { color: #fff; font-weight: 700; }
.post-lightbox-count { color: rgba(255,255,255,.75); }
.post-lightbox-image { display: block; width: 100%; max-height: 80vh; object-fit: contain; background: #000; }
.post-lightbox-nav { position: absolute; top: 50%; transform: translateY(-50%); width: 2.75rem; height: 2.75rem; border: 0; border-radius: 50%; background: rgba(11,37,69,.8); color: #fff; font-size: 1.75rem; line-height: 1; padding: 0 0 .2rem; }
.post-lightbox-nav:hover, .post-lightbox-nav:focus-visible { background: var(--dw-coral-dark); }
.post-lightbox-prev { left: .75rem; }
.post-lightbox-next { right: .75rem; }

/* Posts timeline */
.timeline { position: relative; padding-left: 2rem; border-left: 3px solid var(--dw-border); }
.timeline-item { position: relative; margin-bottom: 2rem; }
.timeline-icon { position: absolute; left: -3.05rem; top: 0; width: 40px; height: 40px; border-radius: 50%; background: var(--dw-teal); color: #fff; display: flex; align-items: center; justify-content: center; }

/* CTA strip + footer */
.cta-strip { background: linear-gradient(110deg, var(--dw-teal-dark), var(--dw-navy-2)); color: #fff; padding: 3rem 0; }
.cta-strip h2 { color: #fff; }
.cta-strip p { color: rgba(255,255,255,.85); }
.site-footer { background: var(--dw-navy); color: rgba(255,255,255,.72); padding: 4rem 0 0; font-size: .93rem; }
.footer-brand { display: inline-flex; align-items: center; gap: .5rem; text-decoration: none; font-family: 'Playfair Display', serif; font-size: 1.3rem; font-weight: 700; color: #fff; }
.footer-title { color: #fff; font-size: 1rem; font-family: 'Poppins', sans-serif; margin-bottom: 1rem; }
.footer-links, .footer-contact { list-style: none; padding: 0; margin: 0; }
.footer-links li, .footer-contact li { margin-bottom: .55rem; }
.site-footer a { color: rgba(255,255,255,.75); text-decoration: none; }
.site-footer a:hover { color: var(--dw-coral); }
.footer-contact i { width: 24px; color: var(--dw-coral); }
.footer-bottom { border-top: 1px solid rgba(255,255,255,.1); padding: 1.3rem 0; display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem; font-size: .85rem; }

/* Reveal on scroll */
.reveal { opacity: 0; transform: translateY(24px); transition: opacity .7s ease, transform .7s ease; }
.reveal.in { opacity: 1; transform: none; }

/* --------------------------------------------------------------------------
   Widgets: chat, read-aloud bar, music bar, accessibility panel
   -------------------------------------------------------------------------- */
.chat-launcher-wrap { position: fixed; right: 20px; bottom: 20px; z-index: 1080; display: flex; align-items: flex-end; gap: .75rem; }
.chat-launcher { width: 62px; height: 62px; border-radius: 50%; border: 0; background: linear-gradient(135deg, var(--dw-coral), #f2a65a); color: #fff; font-size: 1.5rem; box-shadow: 0 10px 25px rgba(255,122,89,.45); position: relative; transition: transform .2s; }
.chat-launcher:hover { transform: scale(1.06); }
.chat-launcher .icon-close, .chat-launcher[aria-expanded="true"] .icon-open { display: none; }
.chat-launcher[aria-expanded="true"] .icon-close { display: inline; }
.chat-dot { position: absolute; top: 4px; right: 4px; width: 14px; height: 14px; border-radius: 50%; background: #22c55e; border: 2px solid #fff; }
.chat-teaser { background: var(--dw-surface); color: var(--dw-text); border: 1px solid var(--dw-border); padding: .8rem 2rem .8rem 1rem; border-radius: 14px 14px 4px 14px; box-shadow: var(--dw-shadow-lg); max-width: 240px; font-size: .9rem; position: relative; cursor: pointer; animation: pop .4s ease; }
.chat-teaser-close { position: absolute; top: 2px; right: 6px; border: 0; background: none; color: var(--dw-muted); font-size: 1.2rem; }

.chat-window { position: fixed; right: 20px; bottom: 96px; width: 380px; max-width: calc(100vw - 32px); height: 560px; max-height: calc(100vh - 120px); z-index: 1080; background: var(--dw-surface); border: 1px solid var(--dw-border); border-radius: 20px; box-shadow: var(--dw-shadow-lg); display: flex; flex-direction: column; overflow: hidden; animation: pop .25s ease; }
.chat-window[hidden] { display: none; }
.chat-head { display: flex; align-items: center; gap: .7rem; padding: .9rem 1rem; background: linear-gradient(110deg, var(--dw-navy), var(--dw-teal-dark)); color: #fff; }
.chat-head small { display: block; color: rgba(255,255,255,.8); font-size: .75rem; }
.chat-avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--dw-coral); display: flex; align-items: center; justify-content: center; }
.online-dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: #4ade80; margin-right: 2px; }
.chat-head-btn { width: 34px; height: 34px; border-radius: 50%; border: 0; background: rgba(255,255,255,.15); color: #fff; display: inline-flex; align-items: center; justify-content: center; }
.chat-head-btn:hover { background: rgba(255,255,255,.3); color: #fff; }
.chat-log { flex: 1; overflow-y: auto; padding: 1rem; display: flex; flex-direction: column; gap: .6rem; background: var(--dw-bg-alt); }
.msg { max-width: 85%; padding: .65rem .9rem; border-radius: 16px; font-size: .9rem; line-height: 1.5; word-wrap: break-word; }
.msg.bot { background: var(--dw-surface); border: 1px solid var(--dw-border); border-bottom-left-radius: 4px; align-self: flex-start; }
.msg.user { background: var(--dw-teal); color: #fff; border-bottom-right-radius: 4px; align-self: flex-end; }
.msg a { font-weight: 600; }
.msg.typing span { display: inline-block; width: 7px; height: 7px; margin: 0 2px; border-radius: 50%; background: var(--dw-muted); animation: blink 1.2s infinite; }
.msg.typing span:nth-child(2) { animation-delay: .2s; } .msg.typing span:nth-child(3) { animation-delay: .4s; }
.chat-quick { display: flex; flex-wrap: wrap; gap: .4rem; padding: .5rem 1rem; background: var(--dw-bg-alt); }
.chat-quick:empty { display: none; }
.chat-quick button { border: 1px solid var(--dw-teal); color: var(--dw-teal); background: var(--dw-surface); border-radius: 50px; font-size: .8rem; padding: .35rem .8rem; }
.chat-quick button:hover { background: var(--dw-teal); color: #fff; }
.chat-input { display: flex; border-top: 1px solid var(--dw-border); }
.chat-input input { flex: 1; border: 0; padding: .9rem 1rem; background: var(--dw-surface); color: var(--dw-text); outline: none; }
/* The site-wide outline would be clipped by the chat window, so show focus inside the input bar instead. */
.chat-input input:focus, .chat-input input:focus-visible { outline: none !important; }
.chat-input:focus-within { box-shadow: inset 0 0 0 2px var(--dw-teal); }
.chat-input button { border: 0; background: var(--dw-surface); color: var(--dw-coral); padding: 0 1.1rem; font-size: 1.1rem; }
.chat-foot { font-size: .7rem; text-align: center; color: var(--dw-muted); padding: .3rem; border-top: 1px solid var(--dw-border); }

.tts-bar, .music-bar { position: fixed; left: 20px; bottom: 20px; z-index: 1070; display: flex; align-items: center; gap: .6rem; background: var(--dw-navy); color: #fff; padding: .55rem .8rem; border-radius: 50px; box-shadow: var(--dw-shadow-lg); }
.tts-bar[hidden], .music-bar[hidden] { display: none; }
.music-bar { bottom: 76px; }
.tts-bar[hidden] + .music-bar { bottom: 20px; }
.music-bar select { width: 140px; border-radius: 50px; padding: .25rem 2rem .25rem .8rem; }
.music-bar input[type=range] { width: 80px; }
.tts-status { font-size: .85rem; max-width: 180px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tts-reading { background: rgba(247,179,43,.35); border-radius: 4px; }

.a11y-panel { background: var(--dw-surface); color: var(--dw-text); }
.a11y-group { margin-bottom: 1.2rem; }
.a11y-label { display: block; font-weight: 600; font-size: .9rem; margin-bottom: .4rem; }
.a11y-switch { padding: .55rem 0 .55rem 2.8em; border-bottom: 1px solid var(--dw-border); }
.btn-group .btn { border-radius: 10px; }
.btn-group .btn.active { background: var(--dw-teal); border-color: var(--dw-teal); color: #fff; }

/* Exit-intent modal (landing page) */
.exit-modal .modal-content { border-radius: 20px; overflow: hidden; border: 0; background: var(--dw-surface); }
.exit-modal .exit-top { background: linear-gradient(rgba(11,37,69,.6), rgba(11,37,69,.85)), var(--hero-img) center/cover; color: #fff; padding: 2rem; text-align: center; }
.exit-modal .exit-top h2 { color: #fff; }

/* "Website for sale" modal (all pages) */
.sale-modal .modal-content { position: relative; border-radius: 20px; border: 0; padding: 2.5rem 2rem 2rem; background: var(--dw-surface); color: var(--dw-text); box-shadow: var(--dw-shadow-lg); }
.sale-modal .sale-close { position: absolute; top: 1rem; right: 1rem; }
.sale-modal .sale-icon { width: 64px; height: 64px; margin: 0 auto 1rem; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; color: #fff; background: var(--dw-coral); }
.sale-modal h2 { color: var(--dw-heading); }

/* Landing page */
.landing .hero { min-height: auto; padding: 3.5rem 0 4rem; }
.landing-ways .way { text-align: center; padding: 1.5rem 1rem; }
.landing-ways .way i { font-size: 1.8rem; color: var(--dw-coral); margin-bottom: .6rem; }

@keyframes pop { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } }
@keyframes blink { 0%, 80%, 100% { opacity: .3; } 40% { opacity: 1; } }

@media (max-width: 991px) {
    .navbar-collapse { padding: 1rem 0; }
    .hero { min-height: auto; padding: 3.5rem 0; }
    .section { padding: 3.5rem 0; }
}
@media (max-width: 575px) {
    .chat-window { right: 16px; bottom: 90px; height: calc(100vh - 120px); }
    .chat-launcher-wrap { right: 16px; bottom: 16px; }
    .tts-bar, .music-bar { left: 16px; }
}

/* --------------------------------------------------------------------------
   Accessibility modes (set as data-a11y-* attributes on <html>)
   -------------------------------------------------------------------------- */
html[data-a11y-size="1"] { --a11y-scale: 1.15; }
html[data-a11y-size="2"] { --a11y-scale: 1.3; }
html[data-a11y-size="3"] { --a11y-scale: 1.45; }
html[data-a11y-size="-1"] { --a11y-scale: .9; }

html[data-a11y-dyslexia] body, html[data-a11y-dyslexia] h1, html[data-a11y-dyslexia] h2, html[data-a11y-dyslexia] h3,
html[data-a11y-dyslexia] h4, html[data-a11y-dyslexia] .brand-text, html[data-a11y-dyslexia] .section-title,
html[data-a11y-dyslexia] button, html[data-a11y-dyslexia] input { font-family: 'Atkinson Hyperlegible', Verdana, sans-serif !important; letter-spacing: .02em; }
html[data-a11y-spacing] body { line-height: 2.1 !important; word-spacing: .12em; }
html[data-a11y-spacing] p { margin-bottom: 1.6em; }
html[data-a11y-links] a { text-decoration: underline !important; text-underline-offset: 3px; outline: 2px dashed var(--dw-gold); outline-offset: 2px; }
html[data-a11y-grayscale] body > *:not(.offcanvas) { filter: grayscale(1); }
html[data-a11y-cursor], html[data-a11y-cursor] * { cursor: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='40' height='40' viewBox='0 0 24 24'%3E%3Cpath d='M4 2l16 10-7 1.5L9.5 21z' fill='%23000' stroke='%23fff' stroke-width='1.5'/%3E%3C/svg%3E") 4 2, auto !important; }
.fireworks-canvas { position: fixed; inset: 0; width: 100%; height: 100%; pointer-events: none; z-index: 1090; }
html[data-a11y-motion] *, html[data-a11y-motion] *::before, html[data-a11y-motion] *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
html[data-a11y-motion] .reveal { opacity: 1; transform: none; }
html[data-a11y-motion] .fireworks-canvas { display: none; }
@media (prefers-reduced-motion: reduce) {
    .reveal { opacity: 1; transform: none; transition: none; }
    * { animation-duration: .01ms !important; }
}

html[data-a11y-contrast] {
    --dw-bg: #000; --dw-bg-alt: #000; --dw-surface: #000; --dw-text: #fff; --dw-muted: #fff; --dw-heading: #ffff00;
    --dw-border: #fff; --dw-teal: #00ffff; --dw-teal-dark: #000; --dw-coral: #ffff00; --dw-navy: #000; --dw-navy-2: #000;
    --bs-body-bg: #000; --bs-body-color: #fff; --bs-link-color-rgb: 0, 255, 255;
}
html[data-a11y-contrast] .hero, html[data-a11y-contrast] .page-hero, html[data-a11y-contrast] .exit-top { background: #000 !important; }
html[data-a11y-contrast] a { color: #00ffff !important; }
html[data-a11y-contrast] .btn-accent { color: #000 !important; }
html[data-a11y-contrast] .dw-card, html[data-a11y-contrast] .quote-card { border: 2px solid #fff; }
html[data-a11y-contrast] img { filter: contrast(1.2); }

/* Menu collapses below 1200px (9 links + tools need the room) */
.navbar .nav-link { white-space: nowrap; }
@media (max-width: 1199px) { .navbar-collapse { padding: 1rem 0; } }

/* --------------------------------------------------------------------------
   Floating buttons: Read aloud (bottom-left) + Accessibility (bottom-right,
   stacked above the chat launcher)
   -------------------------------------------------------------------------- */
.fab {
    position: fixed; z-index: 1075; width: 58px; height: 58px; border-radius: 50%; border: 3px solid #fff;
    color: #fff; font-size: 1.4rem; display: flex; align-items: center; justify-content: center;
    box-shadow: 0 10px 25px rgba(11, 37, 69, .35); transition: transform .2s ease, box-shadow .2s ease;
}
.fab:hover, .fab:focus-visible { transform: scale(1.08); color: #fff; }
.fab-read { right: 22px; bottom: 20px; background: linear-gradient(135deg, var(--dw-teal), var(--dw-teal-dark)); }
.fab-a11y { left: 20px; bottom: 20px; background: linear-gradient(135deg, #2563EB, #1E3A8A); }
.fab-read .icon-stop, .fab-read[aria-pressed="true"] .icon-play { display: none; }
.fab-read[aria-pressed="true"] .icon-stop { display: inline; }
.fab-read[aria-pressed="true"] { background: linear-gradient(135deg, var(--dw-coral), var(--dw-coral-dark)); animation: fabPulse 1.6s infinite; }
@keyframes fabPulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(255,122,89,.55); } 50% { box-shadow: 0 0 0 12px rgba(255,122,89,0); } }

/* Hover label */
.fab-label {
    position: absolute; white-space: nowrap; background: var(--dw-navy); color: #fff; font-size: .8rem; font-weight: 600;
    padding: .35rem .75rem; border-radius: 8px; opacity: 0; pointer-events: none; transition: opacity .2s ease;
}
.fab-read .fab-label { right: calc(100% + 10px); }
.fab-a11y .fab-label { left: calc(100% + 10px); }
.fab:hover .fab-label, .fab:focus-visible .fab-label { opacity: 1; }

/* Chat launcher sits above the read-aloud button (bottom-right) */
.chat-launcher-wrap { bottom: 92px; right: 20px; }
.chat-window { bottom: 168px; max-height: calc(100vh - 190px); }

/* Read-aloud bar beside its button (right); music bar beside accessibility (left) */
.tts-bar { left: auto; right: 92px; bottom: 26px; }
.music-bar, .tts-bar[hidden] + .music-bar { left: 90px; bottom: 26px; }
@media (max-width: 575px) {
    .fab { width: 50px; height: 50px; font-size: 1.2rem; }
    .fab-read { right: 22px; bottom: 16px; }
    .fab-a11y { left: 14px; bottom: 16px; }
    .chat-launcher-wrap { right: 16px; bottom: 78px; }
    .chat-window { bottom: 150px; height: calc(100vh - 170px); }
    .tts-bar { left: auto; right: 82px; }
    .music-bar, .tts-bar[hidden] + .music-bar { left: 74px; }
    .fab-label { display: none; }
}
html[data-a11y-contrast] .fab { background: #000; border-color: #ffff00; color: #ffff00; }

/* Accessibility panel opens on the left; keep floating buttons from covering it */
.fab { z-index: 1035; }
body:has(.a11y-panel.show) .chat-launcher-wrap,
body:has(.a11y-panel.showing) .chat-launcher-wrap,
body:has(.a11y-panel.show) .chat-window { display: none; }
#musicBtn[aria-pressed="true"] { background: var(--dw-teal); border-color: var(--dw-teal); color: #fff; }

/* --------------------------------------------------------------------------
   Responsive: phones (320px+), tablets, laptops, large and short screens
   -------------------------------------------------------------------------- */
body { overflow-x: clip; }
body { overflow-wrap: break-word; }
.footer-contact a, .footer-bottom a { word-break: break-word; }

/* Destination cards: image beside text, stacked on phones */
.dest-card img { width: 38%; object-fit: cover; flex-shrink: 0; }

/* Open mobile menu scrolls instead of running off the screen */
@media (max-width: 1199px) {
    .navbar-collapse { max-height: calc(100dvh - 80px); overflow-y: auto; }
    .navbar-nav .nav-link { padding: .65rem .75rem !important; }
}

/* Tablets */
@media (max-width: 991px) {
    .page-hero { padding: 4rem 0 3rem; }
    .section-intro { margin-bottom: 2rem; }
    .cta-strip { text-align: center; }
    .cta-strip .d-flex { justify-content: center; }
    .site-footer { padding-top: 3rem; }
}

/* Phones */
@media (max-width: 767px) {
    .hero { padding: 2.5rem 0 3rem; }
    .hero-stats { gap: 1.25rem; margin-top: 1.75rem; }
    .hero-stats strong { font-size: 1.35rem; }
    .section { padding: 3rem 0; }
    .section-sm { padding: 2rem 0; }
    .icon-card, .testimonial { padding: 1.5rem; }
    .footer-bottom { flex-direction: column; text-align: center; }
    /* Keep the floating buttons from covering the last lines of the footer */
    .site-footer { padding-bottom: 80px; }
}
@media (max-width: 575px) {
    .page-hero { padding: 3rem 0 2.5rem; }
    .quote-card { padding: 1.25rem; }
    .hero .btn-lg, .cta-strip .btn-lg { flex: 1 1 auto; font-size: 1rem; padding: .75rem 1.2rem; }
    .dest-card { flex-direction: column; }
    .dest-card img { width: 100%; aspect-ratio: 16/9; }
    .timeline { padding-left: 1.5rem; }
    .timeline-icon { left: -2.6rem; width: 34px; height: 34px; font-size: .85rem; }
    .article-hero-img { aspect-ratio: 16/10; }
    .accordion-button { font-size: .95rem; }

    /* Chat fills most of the screen on phones */
    .chat-window { left: 12px; right: 12px; width: auto; max-width: none; height: auto; top: 12px; bottom: 140px; max-height: none; }
    .chat-teaser { max-width: 200px; }

    /* Media bars span the screen above the floating buttons */
    .tts-bar, .music-bar, .tts-bar[hidden] + .music-bar { left: 12px; right: 12px; bottom: 76px; justify-content: space-between; }
    .tts-bar:not([hidden]) + .music-bar { bottom: 132px; }
    .tts-status { max-width: none; flex: 1; }
    .music-bar select { flex: 1; width: auto; min-width: 0; font-size: 16px; }
    .music-bar input[type=range] { width: 70px; }
}

/* Very small phones (iPhone SE, Galaxy Fold) */
@media (max-width: 360px) {
    .container { padding-left: 12px; padding-right: 12px; }
    .brand-text { font-size: 1rem; }
    .brand-logo { width: 32px; height: 32px; }
    .navbar-toggler { padding: .35rem .55rem; }
    .hero h1 { font-size: 2rem; }
    .pkg-price strong { font-size: 1.35rem; }
    .pkg-price { flex-wrap: wrap; }
    .col-6 > .dw-card.p-3, .landing-ways .way { padding: 1rem .5rem !important; }
}

/* Short screens: landscape phones and small laptops */
@media (max-height: 560px) and (orientation: landscape) {
    .hero { min-height: auto; padding: 2rem 0; }
    .site-header.sticky-top { position: relative; }
    .chat-window { top: 8px; bottom: 8px; height: auto; max-height: none; right: 90px; }
    .chat-launcher-wrap { bottom: 16px; right: 16px; }
    .fab-read { right: 90px; bottom: 16px; }
    .tts-bar { right: 160px; bottom: 22px; }
    .chat-teaser { display: none; }
}

/* Large desktops and TVs */
@media (min-width: 1600px) {
    .container { max-width: 1440px; }
    .hero { min-height: 80vh; }
}
@media (min-width: 2200px) {
    html { font-size: calc(18px * var(--a11y-scale)); }
    .container { max-width: 1680px; }
}

/* Touch devices: no hover lift, comfortable tap targets */
@media (hover: none) {
    .dw-card:hover, .chat-launcher:hover, .fab:hover { transform: none; }
    .package-card:hover .pkg-img img { transform: none; }
    .footer-links a, .footer-bottom a { display: inline-block; padding: .2rem 0; }
}
.min-w-0 { min-width: 0; }
.timeline { margin-left: 1rem; }
@media (max-width: 575px) {
    .table-responsive .table th, .table-responsive .table td { padding: .6rem !important; font-size: .9rem; }
    .table-responsive .table thead th { font-size: .85rem; }
}

/* Q&A: nav dropdown with chapter-group submenus */
.navbar .dropdown-menu { --bs-dropdown-bg: var(--dw-surface); --bs-dropdown-border-color: var(--dw-border); --bs-dropdown-link-color: var(--dw-text); --bs-dropdown-link-hover-bg: color-mix(in srgb, var(--dw-teal) 12%, transparent); --bs-dropdown-link-hover-color: var(--dw-teal); --bs-dropdown-link-active-bg: var(--dw-teal); border-radius: 12px; box-shadow: var(--dw-shadow); font-size: .9rem; }
.qa-menu { min-width: 15rem; }
.dropdown-submenu { position: relative; }
.qa-group-toggle { display: flex; justify-content: space-between; align-items: center; gap: 1rem; }
.qa-group-toggle::after { content: "\f054"; font: var(--fa-font-solid); font-size: .7rem; opacity: .6; transition: transform .2s; }
.qa-submenu { display: none; }
.dropdown-submenu.open > .qa-submenu { display: block; }
@media (min-width: 1200px) {
    .qa-submenu { position: absolute; top: -.5rem; right: 100%; margin-right: .25rem; min-width: 19rem; }
    .qa-group-toggle::after { transform: rotate(180deg); }
}
@media (max-width: 1199px) {
    .qa-submenu { position: static; border: 0; box-shadow: none; padding: 0 0 .25rem .75rem; background: transparent; }
    .dropdown-submenu.open > .qa-group-toggle::after { transform: rotate(90deg); }
    .qa-submenu .dropdown-item { white-space: normal; }
}

/* Q&A: chapter index */
.qa-group-title { color: var(--dw-teal); margin-bottom: 1rem; }
.qa-chapter-list { list-style: none; padding: 0; margin: 0; }
.qa-chapter-list a { display: flex; gap: .75rem; align-items: center; padding: .55rem 0; border-top: 1px solid var(--dw-border); color: var(--dw-text); text-decoration: none; font-weight: 500; }
.qa-chapter-list li:first-child a { border-top: 0; }
.qa-chapter-list a:hover { color: var(--dw-teal); }
.qa-chapter-num { flex-shrink: 0; width: 2rem; height: 2rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .8rem; font-weight: 600; background: color-mix(in srgb, var(--dw-teal) 12%, transparent); color: var(--dw-teal); }

/* Q&A: chapter page */
.qa-list { list-style: none; padding: 0; margin: 0; }
.qa-item { display: flex; gap: 1rem; padding: 1.25rem 0; border-bottom: 1px solid var(--dw-border); scroll-margin-top: 90px; }
.qa-item:target { background: color-mix(in srgb, var(--dw-gold) 12%, transparent); border-radius: 12px; }
.qa-num { flex-shrink: 0; width: 2.25rem; height: 2.25rem; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-size: .85rem; font-weight: 600; background: var(--dw-teal); color: #fff; }
.qa-question { font-family: inherit; font-size: 1.05rem; font-weight: 600; color: var(--dw-heading); margin: .3rem 0 .4rem; }
.qa-answer { color: var(--dw-muted); margin: 0; }
.qa-pager { display: flex; justify-content: space-between; gap: 1rem; margin-top: 2.5rem; }
.qa-pager-link { display: flex; flex-direction: column; max-width: 48%; padding: 1rem 1.25rem; border: 1px solid var(--dw-border); border-radius: var(--dw-radius); background: var(--dw-surface); color: var(--dw-heading); text-decoration: none; font-weight: 600; }
.qa-pager-link small { color: var(--dw-muted); font-weight: 500; }
.qa-pager-link:hover { border-color: var(--dw-teal); color: var(--dw-teal); }
.qa-pager-next { margin-left: auto; text-align: right; }
@media (max-width: 575px) {
    .qa-item { gap: .75rem; }
    .qa-num { width: 2rem; height: 2rem; font-size: .8rem; }
    .qa-pager-link { padding: .75rem 1rem; font-size: .9rem; }
}
