/*
Theme Name: Cornerstone Tours
Theme URI: https://cornerstonetours.example
Author: Cornerstone Tours
Author URI: https://cornerstonetours.example
Description: A custom WordPress theme for Cornerstone Tours, a Washington, DC tour company. Features a light blue color scheme, dedicated public and private tour pages, an inquiry form for custom itineraries, and a floating "Book Now" button for the Peek booking widget.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Text Domain: cornerstone-tours
Tags: tour, travel, light-blue, custom-menu, featured-images, block-styles, wide-blocks
*/

/* =========================================================
   Cornerstone Tours — Theme Stylesheet
   Light blue color scheme
   ========================================================= */

:root {
    --color-primary:        #4A90C2;   /* light blue */
    --color-primary-dark:   #2F6E9E;
    --color-primary-light:  #B8DCEF;
    --color-accent:         #1A3D5C;   /* deep navy for contrast */
    --color-bg:             #FBFDFE;
    --color-surface:        #FFFFFF;
    --color-text:           #1F2A37;
    --color-text-muted:     #5B6B7B;
    --color-border:         #D8E6F1;
    --shadow-sm:            0 1px 3px rgba(26, 61, 92, 0.08);
    --shadow-md:            0 6px 18px rgba(26, 61, 92, 0.10);
    --shadow-lg:            0 16px 40px rgba(26, 61, 92, 0.14);
    --radius:               10px;
    --radius-lg:            18px;
    --content-width:        1180px;
    --font-serif:           Georgia, 'Times New Roman', serif;
    --font-sans:            -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

* { box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--font-sans);
    font-size: 17px;
    line-height: 1.6;
    color: var(--color-text);
    background: var(--color-bg);
    -webkit-font-smoothing: antialiased;
}

a {
    color: var(--color-primary-dark);
    text-decoration: none;
    transition: color .15s ease;
}
a:hover { color: var(--color-accent); }

img { max-width: 100%; height: auto; display: block; }

h1, h2, h3, h4 {
    font-family: var(--font-serif);
    color: var(--color-accent);
    line-height: 1.2;
    margin: 0 0 .6em;
    font-weight: 600;
    letter-spacing: -0.01em;
}
h1 { font-size: clamp(2rem, 4vw, 3.25rem); }
h2 { font-size: clamp(1.6rem, 3vw, 2.25rem); }
h3 { font-size: 1.35rem; }

p { margin: 0 0 1.1em; }

.container {
    max-width: var(--content-width);
    margin: 0 auto;
    padding: 0 24px;
}

/* ---------- Header — floating dark glass pill ---------- */
.site-header {
    position: fixed;
    top: 16px;
    left: 16px;
    right: 16px;
    margin: 0 auto;
    max-width: calc(var(--content-width) + 40px);
    z-index: 100;
    border-radius: 999px;
    border: 0;
    background: transparent;
}
.hero, .tour-detail-hero { margin-top: 0; }
main > .section:first-child { padding-top: 140px; }
.site-header-inner {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 10px 14px 10px 22px;
    max-width: none;
    margin: 0;
}
.site-header-inner .site-logo { flex: 0 0 auto; }
.site-header-inner .main-nav { flex: 1; display: flex; justify-content: center; }
.site-header-inner .site-cta { flex: 0 0 auto; }
.site-logo a {
    display: flex;
    align-items: center;
    gap: 12px;
    color: #ffffff;
    transition: transform .25s ease, filter .25s ease;
}
.site-logo a:hover {
    transform: translateY(-1px);
    filter: drop-shadow(0 4px 14px rgba(255, 255, 255, 0.2));
}
.site-logo img {
    height: 68px;
    width: auto;
    display: block;
    filter:
        invert(1)
        brightness(1.4)
        contrast(1.15)
        drop-shadow(0 1px 2px rgba(0, 0, 0, 0.5))
        drop-shadow(0 0 8px rgba(255, 255, 255, 0.15));
    transition: filter .25s ease;
}
.site-logo .site-title {
    position: absolute;
    width: 1px; height: 1px;
    padding: 0; margin: -1px; overflow: hidden;
    clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.site-cta {
    display: inline-flex;
    align-items: center;
    padding: 11px 22px;
    border-radius: 999px;
    background: var(--color-primary);
    color: #fff;
    font-weight: 600;
    letter-spacing: .01em;
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.25),
        0 4px 16px rgba(74, 144, 194, 0.35);
    transition: background .15s ease, transform .12s ease, box-shadow .15s ease;
    white-space: nowrap;
}
.site-cta:hover {
    background: var(--color-primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.3),
        0 6px 20px rgba(47, 110, 158, 0.45);
}
@media (max-width: 860px) {
    .site-header { top: 8px; margin-top: 8px; border-radius: 24px; width: calc(100% - 16px); }
    .site-header-inner { padding: 8px 8px 8px 14px; }
    .site-logo img { height: 44px; }
    .site-cta { padding: 9px 16px; font-size: .9rem; }
}

/* ---------- Navigation ---------- */
.main-nav ul {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 8px;
    align-items: center;
}
.main-nav a {
    display: inline-block;
    padding: 10px 14px;
    color: var(--color-accent);
    font-weight: 500;
    border-radius: 6px;
    transition: background .15s ease, color .15s ease;
}
.main-nav a:hover,
.main-nav .current-menu-item > a {
    background: var(--color-primary-light);
    color: var(--color-accent);
}
.main-nav .menu-item-has-children { position: relative; }
.main-nav .sub-menu {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    background: #fff;
    box-shadow: var(--shadow-md);
    border-radius: var(--radius);
    padding: 8px;
    min-width: 240px;
    flex-direction: column;
    gap: 2px;
}
.main-nav .menu-item-has-children:hover .sub-menu,
.main-nav .menu-item-has-children:focus-within .sub-menu { display: flex; }

/* Section heading inside a dropdown — non-clickable label */
.main-nav .sub-menu-heading {
    display: block;
    padding: 8px 14px 6px;
    color: var(--color-primary-dark);
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: 0.16em;
    text-transform: uppercase;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 6px;
    pointer-events: none;
    cursor: default;
}
.main-nav .sub-menu-heading:hover { background: transparent; }

.menu-toggle {
    display: none;
    background: transparent;
    border: 0;
    font-size: 1.6rem;
    color: var(--color-accent);
    cursor: pointer;
}

/* ---------- Buttons ---------- */
.btn {
    display: inline-block;
    background: var(--color-primary);
    color: #fff;
    padding: 13px 26px;
    border-radius: 999px;
    font-weight: 600;
    letter-spacing: .02em;
    border: 0;
    cursor: pointer;
    transition: transform .12s ease, background .15s ease, box-shadow .15s ease;
    box-shadow: 0 4px 14px rgba(74, 144, 194, 0.35);
}
.btn:hover {
    background: var(--color-primary-dark);
    color: #fff;
    transform: translateY(-1px);
    box-shadow: 0 6px 18px rgba(47, 110, 158, 0.4);
}
.btn-outline {
    background: transparent;
    color: var(--color-primary-dark);
    border: 2px solid var(--color-primary);
    box-shadow: none;
}
.btn-outline:hover {
    background: var(--color-primary);
    color: #fff;
}
.btn-lg { padding: 16px 32px; font-size: 1.05rem; }

/* ---------- Hero ---------- */
.hero {
    position: relative;
    min-height: 78vh;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    text-align: center;
    overflow: hidden;
    background: linear-gradient(180deg, rgba(26,61,92,0.45), rgba(26,61,92,0.55)),
                linear-gradient(135deg, var(--color-primary-light), var(--color-primary));
    background-size: cover;
    background-position: center;
}
.hero.has-image {
    background-image:
        linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.42) 55%, rgba(0,0,0,0.55) 100%),
        var(--hero-image, none);
}

/* ---------- Hero slider (fading background images) ---------- */
.hero.has-slider { background: #1A3D5C; }
.hero-slides {
    position: absolute;
    inset: 0;
    z-index: 0;
    overflow: hidden;
}
.hero-slide {
    position: absolute;
    inset: 0;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1.2s ease-in-out;
    will-change: opacity;
}
.hero-slide.is-active { opacity: 1; }
.hero-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.42) 55%, rgba(0,0,0,0.55) 100%);
    pointer-events: none;
}
.hero.has-slider .hero-inner { position: relative; z-index: 2; }
@media (prefers-reduced-motion: reduce) {
    .hero-slide { transition: none; }
}

.hero-inner { max-width: 820px; padding: 80px 24px; }
.hero h1 { color: #fff; margin-bottom: .35em; }
.hero p {
    font-size: 1.2rem;
    color: rgba(255,255,255,0.95);
    margin-bottom: 1.8em;
}
.hero .btn { background: #fff; color: var(--color-primary-dark); }
.hero .btn:hover { background: var(--color-primary-light); color: var(--color-accent); }

/* ---------- Sections ---------- */
.section { padding: 80px 0; }
.section-tight { padding: 56px 0; }
.section-alt { background: #fff; }
.section-header {
    text-align: center;
    max-width: 720px;
    margin: 0 auto 48px;
}
.section-header .eyebrow {
    color: var(--color-primary-dark);
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-size: .85rem;
    font-weight: 600;
    display: inline-block;
    margin-bottom: 12px;
}
.section-header p { color: var(--color-text-muted); font-size: 1.1rem; }

/* ---------- Tour cards ---------- */
.tour-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 28px;
}
.tour-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: transform .2s ease, box-shadow .2s ease;
    display: flex;
    flex-direction: column;
}
.tour-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.tour-card-image {
    aspect-ratio: 4 / 3;
    background-color: var(--color-primary-light);
    background-image: linear-gradient(135deg, #4A90C2, #1A3D5C);
    background-size: cover;
    background-position: center;
    display: block;
    position: relative;
    overflow: hidden;
}
.tour-card-image::after {
    content: "";
    position: absolute; inset: 0;
    background:
        linear-gradient(180deg, rgba(0,0,0,0) 60%, rgba(0,0,0,0.15) 100%),
        radial-gradient(ellipse at center, rgba(255,255,255,0.06), transparent 70%);
    pointer-events: none;
}
.tour-card-badge {
    position: absolute;
    top: 14px; left: 14px;
    background: rgba(255, 255, 255, 0.92);
    color: var(--color-accent);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .06em;
    padding: 6px 12px;
    border-radius: 999px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
    z-index: 1;
}
.tour-card-body {
    padding: 22px 24px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}
.tour-card h3 { margin-bottom: .35em; }
.tour-card p { color: var(--color-text-muted); margin-bottom: 1em; }
.tour-card-meta {
    display: flex;
    gap: 14px;
    color: var(--color-primary-dark);
    font-size: .9rem;
    font-weight: 500;
    margin-bottom: 14px;
    flex-wrap: wrap;
}
.tour-card-actions {
    margin-top: auto;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* ---------- Two-column ---------- */
.two-col {
    display: grid;
    grid-template-columns: 1.1fr 1fr;
    gap: 56px;
    align-items: center;
}
.two-col.reverse { direction: rtl; }
.two-col.reverse > * { direction: ltr; }
.two-col img { border-radius: var(--radius-lg); box-shadow: var(--shadow-md); }
@media (max-width: 820px) {
    .two-col { grid-template-columns: 1fr; gap: 32px; }
}

/* ---------- Tour detail ---------- */
.tour-detail-hero {
    min-height: 60vh;
    background: linear-gradient(180deg, rgba(26,61,92,0.35), rgba(26,61,92,0.55)),
                var(--hero-image, linear-gradient(135deg, var(--color-primary-light), var(--color-primary)));
    background-size: cover;
    background-position: center;
    color: #fff;
    display: flex;
    align-items: flex-end;
}
.tour-detail-hero .container { padding-bottom: 56px; padding-top: 100px; }
.tour-detail-hero h1 { color: #fff; }
.tour-detail-hero .lede { font-size: 1.15rem; max-width: 700px; color: rgba(255,255,255,0.95); }
.tour-badge {
    display: inline-block;
    background: rgba(255,255,255,0.18);
    backdrop-filter: blur(6px);
    color: #fff;
    padding: 6px 14px;
    border-radius: 999px;
    font-size: .8rem;
    letter-spacing: .12em;
    text-transform: uppercase;
    margin-bottom: 16px;
}
.tour-body { padding: 64px 0; }
.tour-body-grid {
    display: grid;
    grid-template-columns: 1.6fr 1fr;
    gap: 56px;
    align-items: start;
}
@media (max-width: 900px) {
    .tour-body-grid { grid-template-columns: 1fr; }
}
.tour-body h2 { margin-top: 1.8em; }
.tour-body h2:first-child { margin-top: 0; }
.tour-body ul { padding-left: 1.2em; }
.tour-body ul li { margin-bottom: .35em; }

.tour-sidebar {
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 28px;
    position: sticky;
    top: 100px;
    box-shadow: var(--shadow-sm);
}
.tour-sidebar h3 { margin-top: 0; }
.tour-sidebar .peek-widget-placeholder {
    background: var(--color-primary-light);
    border: 2px dashed var(--color-primary);
    border-radius: var(--radius);
    padding: 24px;
    text-align: center;
    color: var(--color-accent);
    font-size: .92rem;
    margin-bottom: 18px;
}

/* ---------- Highlights / Includes ---------- */
.feature-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 24px;
}
.feature {
    background: #fff;
    padding: 28px 24px;
    border-radius: var(--radius);
    border: 1px solid var(--color-border);
    text-align: center;
}
.feature-icon {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--color-primary-light);
    color: var(--color-primary-dark);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 14px;
}

/* ---------- Form ---------- */
.inquiry-form {
    background: #fff;
    padding: 36px;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    border: 1px solid var(--color-border);
}
.inquiry-form .form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
@media (max-width: 640px) {
    .inquiry-form .form-row { grid-template-columns: 1fr; }
}
.inquiry-form label {
    display: block;
    font-weight: 600;
    color: var(--color-accent);
    margin-bottom: 6px;
    font-size: .92rem;
}
.inquiry-form input,
.inquiry-form select,
.inquiry-form textarea {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid var(--color-border);
    border-radius: 8px;
    font: inherit;
    font-size: 1rem;
    background: #fff;
    color: var(--color-text);
    transition: border-color .15s ease, box-shadow .15s ease;
    margin-bottom: 16px;
}
.inquiry-form input:focus,
.inquiry-form select:focus,
.inquiry-form textarea:focus {
    outline: none;
    border-color: var(--color-primary);
    box-shadow: 0 0 0 3px rgba(74, 144, 194, 0.18);
}
.inquiry-form textarea { min-height: 140px; resize: vertical; }
.form-message {
    padding: 14px 18px;
    border-radius: 8px;
    margin-bottom: 18px;
    font-weight: 500;
}
.form-message.success { background: #E6F4EA; color: #1E5C2E; }
.form-message.error   { background: #FBEAEA; color: #8A1E1E; }

/* ---------- Blog ---------- */
.post-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
}
.post-card {
    background: #fff;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
}
.post-card-image {
    aspect-ratio: 16/9;
    background: var(--color-primary-light);
    background-size: cover;
    background-position: center;
}
.post-card-body { padding: 22px 24px; display: flex; flex-direction: column; flex: 1; }
.post-card h3 { margin-bottom: .35em; line-height: 1.25; }
.post-card h3 a { color: var(--color-accent); }
.post-card h3 a:hover { color: var(--color-primary-dark); }
.post-card time { font-size: .85rem; color: var(--color-text-muted); display: block; margin-bottom: 10px; }
.post-card p { color: var(--color-text-muted); margin-bottom: 16px; }
.post-card-cat {
    display: inline-block;
    font-size: .72rem;
    font-weight: 700;
    letter-spacing: .12em;
    text-transform: uppercase;
    color: var(--color-primary-dark);
    margin-bottom: 8px;
}
.post-card-link {
    margin-top: auto;
    font-weight: 600;
    color: var(--color-primary-dark);
}
.post-card-link:hover { color: var(--color-accent); }

/* Pagination */
.post-pagination {
    display: flex;
    justify-content: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 48px;
}
.post-pagination .page-numbers {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 40px;
    padding: 10px 14px;
    border-radius: 999px;
    background: #fff;
    color: var(--color-primary-dark);
    border: 1px solid var(--color-border);
    font-weight: 600;
    text-decoration: none;
    transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.post-pagination .page-numbers:hover {
    background: var(--color-primary-light);
    border-color: var(--color-primary-light);
}
.post-pagination .page-numbers.current {
    background: var(--color-primary);
    color: #fff;
    border-color: var(--color-primary);
}
.post-pagination .dots { border: 0; background: transparent; }

/* Single post layout */
.single-post-section { padding-top: 110px; }
.single-post-back {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--color-primary-dark);
    font-size: .95rem;
    text-decoration: underline;
}
.single-post-back:hover { color: var(--color-accent); }
.single-post-header { max-width: 760px; margin-left: auto; margin-right: auto; }
.single-post-excerpt { font-size: 1.1rem; color: var(--color-text-muted); }
.single-post-featured {
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin: 0 0 36px;
    box-shadow: var(--shadow-md);
}
.single-post-featured img { width: 100%; height: auto; display: block; }
.single-post-content { max-width: 760px; margin: 0 auto; }
.single-post-content > * + * { margin-top: 1em; }
.single-post-content h2 { margin-top: 1.6em; }
.single-post-content h3 { margin-top: 1.4em; }
.single-post-content img { max-width: 100%; height: auto; border-radius: var(--radius); }
.single-post-content blockquote {
    border-left: 3px solid var(--color-primary);
    padding: 4px 0 4px 18px;
    color: var(--color-accent);
    font-style: italic;
    margin: 1.4em 0;
}
.single-post-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    max-width: 760px;
    margin: 32px auto 0;
}
.post-page-links { margin-top: 1.6em; display: flex; gap: 8px; align-items: center; }

/* Prev/next nav */
.post-nav {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
    max-width: 760px;
    margin: 60px auto 0;
    border-top: 1px solid var(--color-border);
    padding-top: 28px;
}
.post-nav a {
    display: block;
    padding: 16px 20px;
    background: #fff;
    border: 1px solid var(--color-border);
    border-radius: var(--radius);
    transition: background .15s ease, border-color .15s ease, transform .15s ease;
}
.post-nav a:hover {
    background: var(--color-primary-light);
    border-color: var(--color-primary-light);
    transform: translateY(-1px);
}
.post-nav-next { text-align: right; }
.post-nav-label { display: block; font-size: .8rem; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--color-text-muted); margin-bottom: 6px; }
.post-nav-title { display: block; color: var(--color-accent); font-weight: 600; }
@media (max-width: 640px) {
    .post-nav { grid-template-columns: 1fr; }
    .post-nav-next { text-align: left; }
}

.coming-soon-card {
    background: linear-gradient(135deg, var(--color-primary-light), #fff);
    border: 1px solid var(--color-border);
    border-radius: var(--radius-lg);
    padding: 64px 40px;
    text-align: center;
    max-width: 720px;
    margin: 0 auto;
}

/* ---------- Footer ---------- */
.site-footer {
    background: var(--color-accent);
    color: rgba(255,255,255,0.85);
    padding: 64px 0 24px;
    margin-top: 80px;
}
.site-footer h4 { color: #fff; margin-bottom: 14px; font-family: var(--font-sans); font-size: 1rem; text-transform: uppercase; letter-spacing: .1em; }
.site-footer a { color: var(--color-primary-light); }
.site-footer a:hover { color: #fff; }
.footer-grid {
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr;
    gap: 48px;
    margin-bottom: 48px;
}
@media (max-width: 820px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 480px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid ul { list-style: none; padding: 0; margin: 0; }
.footer-grid li { margin-bottom: 8px; }
.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 24px;
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 16px;
    font-size: .9rem;
}

/* ---------- Floating book-now button ---------- */
.floating-book-now {
    position: fixed;
    right: 24px;
    bottom: 24px;
    z-index: 99;
    padding: 16px 28px;
    border-radius: 999px;
    background: var(--color-primary);
    color: #fff;
    font-weight: 700;
    box-shadow: 0 10px 30px rgba(26, 61, 92, 0.3);
    transition: transform .15s ease, background .15s ease;
}
.floating-book-now:hover {
    background: var(--color-primary-dark);
    color: #fff;
    transform: translateY(-2px);
}
.floating-book-now::before {
    content: "🎟";
    margin-right: 8px;
}

/* ---------- Responsive nav ---------- */
@media (max-width: 860px) {
    .menu-toggle {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        width: 40px;
        height: 40px;
        margin-left: auto;
        color: #ffffff;
        background: transparent;
        border: 0;
        border-radius: 10px;
        cursor: pointer;
    }
    .menu-toggle:focus-visible { outline: 2px solid rgba(255,255,255,0.6); outline-offset: 2px; }

    .site-header-inner .main-nav { display: block; flex: 0 0 auto; }
    .main-nav {
        position: absolute;
        top: calc(100% + 10px);
        left: 8px;
        right: 8px;
        background: rgba(10, 22, 36, 0.95);
        -webkit-backdrop-filter: blur(28px) saturate(180%);
        backdrop-filter: blur(28px) saturate(180%);
        border: 1px solid rgba(255, 255, 255, 0.14);
        border-radius: 22px;
        box-shadow:
            inset 0 1px 0 rgba(255, 255, 255, 0.18),
            inset 0 -1px 0 rgba(0, 0, 0, 0.25),
            0 20px 48px rgba(0, 0, 0, 0.4);
        max-height: 0;
        opacity: 0;
        overflow: hidden;
        transform: translateY(-6px);
        pointer-events: none;
        transition: max-height .28s ease, opacity .2s ease, transform .25s ease;
    }
    .main-nav.is-open {
        max-height: calc(100vh - 120px);
        opacity: 1;
        pointer-events: auto;
        transform: translateY(0);
        overflow-y: auto;
    }
    .main-nav ul {
        flex-direction: column;
        align-items: stretch;
        padding: 10px;
        gap: 2px;
    }

    .site-header .main-nav > ul > li > a,
    .main-nav > ul > li > a {
        color: rgba(255, 255, 255, 0.92);
        font-size: 1rem;
        font-weight: 500;
        padding: 13px 18px;
        border-radius: 12px;
        background: transparent;
    }
    .site-header .main-nav > ul > li > a:hover,
    .site-header .main-nav > ul > li.current-menu-item > a,
    .main-nav > ul > li > a:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #ffffff;
    }

    .main-nav .menu-item-has-children::after { display: none; }
    .main-nav .sub-menu {
        position: static;
        display: flex;
        flex-direction: column;
        background: transparent !important;
        box-shadow: none;
        border: 0;
        backdrop-filter: none;
        -webkit-backdrop-filter: none;
        margin: 2px 0 4px 12px;
        padding: 0 0 0 10px;
        border-left: 2px solid rgba(255, 255, 255, 0.16);
        border-radius: 0;
    }
    .main-nav .sub-menu a {
        color: rgba(255, 255, 255, 0.78);
        font-size: .95rem;
        font-weight: 500;
        padding: 10px 14px;
        border-radius: 10px;
        background: transparent;
        border-bottom: 0;
    }
    .main-nav .sub-menu a:hover {
        background: rgba(255, 255, 255, 0.1);
        color: #ffffff;
    }
    .main-nav .sub-menu .sub-menu-heading {
        color: rgba(255, 255, 255, 0.55);
        font-size: .72rem;
        font-weight: 700;
        letter-spacing: .14em;
        text-transform: uppercase;
        padding: 8px 14px 6px;
        border-bottom: 1px solid rgba(255, 255, 255, 0.12);
        border-radius: 0;
    }

    .site-header-inner .site-cta { font-size: .85rem; padding: 8px 14px; }

    body.has-nav-open .floating-book-now { display: none; }
}

/* ---------- Utility ---------- */
.text-center { text-align: center; }
.mt-0 { margin-top: 0; }
.mb-0 { margin-bottom: 0; }
.muted { color: var(--color-text-muted); }
.lede { font-size: 1.15rem; color: var(--color-text-muted); }

.alignwide  { max-width: 1280px; margin-left: auto; margin-right: auto; }
.alignfull  { width: 100%; }

/* =========================================================
   Liquid Glass — translucent surfaces with depth and shine
   ========================================================= */

.glass {
    background: rgba(255, 255, 255, 0.55);
    -webkit-backdrop-filter: blur(22px) saturate(180%);
    backdrop-filter: blur(22px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.75),
        inset 0 -1px 0 rgba(26, 61, 92, 0.06),
        0 8px 28px rgba(26, 61, 92, 0.12);
}
.glass-dark {
    background: rgba(26, 61, 92, 0.28);
    -webkit-backdrop-filter: blur(24px) saturate(160%);
    backdrop-filter: blur(24px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.22);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.35),
        0 10px 30px rgba(0, 0, 0, 0.18);
    color: #fff;
}

.site-header {
    background: rgba(10, 22, 36, 0.72);
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.14);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.22),
        inset 0 -1px 0 rgba(0, 0, 0, 0.22),
        0 16px 44px rgba(0, 0, 0, 0.32),
        0 4px 14px rgba(0, 0, 0, 0.16);
}
.site-header .main-nav > ul > li > a {
    color: rgba(255, 255, 255, 0.88);
    font-weight: 500;
}
.site-header .main-nav > ul > li > a:hover,
.site-header .main-nav > ul > li.current-menu-item > a {
    background: rgba(255, 255, 255, 0.1);
    color: #ffffff;
}
.site-header .menu-toggle { color: #ffffff; }
.main-nav .sub-menu { margin-top: 12px; }
.main-nav .sub-menu a { color: var(--color-accent); }

.main-nav .sub-menu {
    background: #ffffff;
    -webkit-backdrop-filter: blur(28px) saturate(180%);
    backdrop-filter: blur(28px) saturate(180%);
    border: 1px solid rgba(216, 230, 241, 0.9);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 1),
        0 16px 48px rgba(26, 61, 92, 0.22),
        0 4px 12px rgba(26, 61, 92, 0.08);
}

.floating-book-now {
    background: rgba(74, 144, 194, 0.78);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.55),
        inset 0 -1px 0 rgba(0, 0, 0, 0.1),
        0 12px 36px rgba(26, 61, 92, 0.3);
}
.floating-book-now:hover {
    background: rgba(47, 110, 158, 0.85);
    border-color: rgba(255, 255, 255, 0.5);
}

.tour-badge {
    background: rgba(255, 255, 255, 0.18);
    -webkit-backdrop-filter: blur(14px) saturate(180%);
    backdrop-filter: blur(14px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.32);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.45),
        0 4px 14px rgba(0, 0, 0, 0.1);
}

.hero .btn {
    background: rgba(255, 255, 255, 0.78);
    -webkit-backdrop-filter: blur(16px) saturate(180%);
    backdrop-filter: blur(16px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 10px 30px rgba(0, 0, 0, 0.18);
    color: var(--color-primary-dark);
}
.hero .btn:hover {
    background: rgba(255, 255, 255, 0.92);
    border-color: rgba(255, 255, 255, 0.7);
    color: var(--color-accent);
}

.tour-sidebar {
    background: rgba(255, 255, 255, 0.62);
    -webkit-backdrop-filter: blur(20px) saturate(180%);
    backdrop-filter: blur(20px) saturate(180%);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.75),
        0 12px 36px rgba(26, 61, 92, 0.14);
}

.coming-soon-card {
    background: linear-gradient(135deg, rgba(184, 220, 239, 0.55), rgba(255, 255, 255, 0.65));
    -webkit-backdrop-filter: blur(18px) saturate(160%);
    backdrop-filter: blur(18px) saturate(160%);
    border: 1px solid rgba(255, 255, 255, 0.55);
    box-shadow:
        inset 0 1px 0 rgba(255, 255, 255, 0.8),
        0 12px 36px rgba(26, 61, 92, 0.12);
}

.peek-widget-placeholder {
    background: rgba(184, 220, 239, 0.45);
    -webkit-backdrop-filter: blur(12px) saturate(160%);
    backdrop-filter: blur(12px) saturate(160%);
    border: 1px dashed rgba(74, 144, 194, 0.5);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.55);
}

@supports not ((-webkit-backdrop-filter: blur(1px)) or (backdrop-filter: blur(1px))) {
    .site-header              { background: rgba(10, 22, 36, 0.95); }
    .main-nav                 { background: rgba(10, 22, 36, 0.98); }
    .main-nav .sub-menu       { background: transparent; }
    .floating-book-now        { background: var(--color-primary); }
    .hero .btn                { background: #ffffff; }
    .tour-sidebar             { background: #ffffff; }
    .coming-soon-card         { background: linear-gradient(135deg, var(--color-primary-light), #fff); }
}

/* =========================================================
   Tour product page — TripAdvisor-style layout
   ========================================================= */
.tour-product { padding: 110px 0 80px; }
/* Match the floating header pill: viewport - 32px, capped at 1220px */
.tour-product .container {
    max-width: calc(var(--content-width) + 40px);
    width: calc(100% - 32px);
    padding-left: 0;
    padding-right: 0;
}

.tour-product-header { margin-bottom: 18px; padding: 0 8px; }
.tour-product-grid { padding: 0 8px; }
.tour-back {
    display: inline-block;
    margin-bottom: 14px;
    color: var(--color-primary-dark);
    font-size: .95rem;
    text-decoration: underline;
}
.tour-back:hover { color: var(--color-accent); }
.tour-badges { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.tour-pill {
    display: inline-block;
    padding: 5px 12px;
    border-radius: 6px;
    font-size: .8rem;
    font-weight: 600;
    background: var(--color-primary-light);
    color: var(--color-accent);
    letter-spacing: .04em;
}
.tour-pill-dark { background: var(--color-accent); color: #fff; }

.tour-title {
    font-size: clamp(1.7rem, 3vw, 2.4rem);
    margin: 0 0 12px;
    color: var(--color-accent);
}

.tour-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 18px;
    align-items: center;
    color: var(--color-text);
    font-size: .95rem;
}
.tour-rating { display: inline-flex; align-items: center; gap: 8px; }
.tour-stars { color: #f5a623; display: inline-flex; gap: 2px; align-items: center; }
.tour-stars [data-lucide] {
    width: 1em;
    height: 1em;
    fill: currentColor;
    stroke: currentColor;
}
.tour-stars [data-lucide].is-empty,
.tour-stars .tour-star.is-empty {
    fill: none;
    color: rgba(245, 166, 35, 0.32);
}
.tour-meta-item { color: var(--color-text-muted); }

/* ---------- Lucide icon helpers (also applied site-wide) ---------- */
[data-lucide] {
    display: inline-block;
    vertical-align: -0.15em;
    width: 1em;
    height: 1em;
    stroke-width: 1.75;
}
.menu-toggle [data-lucide] { width: 1.4rem; height: 1.4rem; vertical-align: middle; }
.tour-card-badge [data-lucide] {
    width: 0.9em;
    height: 0.9em;
    vertical-align: -0.15em;
    margin-right: 4px;
    fill: currentColor;
    stroke: currentColor;
}
.tour-card-meta [data-lucide],
.tour-meta-item [data-lucide] {
    width: 1em;
    height: 1em;
    margin-right: 4px;
    color: var(--color-primary);
    vertical-align: -0.18em;
    stroke-width: 1.75;
}
.tour-gallery-more [data-lucide] {
    width: 0.95em;
    height: 0.95em;
    margin-right: 6px;
    vertical-align: -0.15em;
}
.feature-icon [data-lucide] {
    width: 22px;
    height: 22px;
    stroke-width: 1.75;
}

/* ---------- Gallery grid ---------- */
.tour-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr;
    gap: 8px;
    margin: 18px 0 36px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 16 / 9;
    width: 100%;
    max-height: 720px;
}
.tour-gallery-main {
    position: relative;
    overflow: hidden;
    background: #e8eef4;
}
.tour-gallery-main img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.tour-gallery-main:hover img { transform: scale(1.02); }
.tour-gallery-side {
    display: grid;
    grid-template-rows: 1fr 1fr;
    gap: 8px;
    min-width: 0;
}
.tour-gallery-cell {
    position: relative;
    overflow: hidden;
    background: #e8eef4;
}
.tour-gallery-cell img {
    width: 100%; height: 100%;
    object-fit: cover;
    display: block;
    transition: transform .4s ease;
}
.tour-gallery-cell:hover img { transform: scale(1.04); }
.tour-gallery-cell-empty {
    background: linear-gradient(135deg, var(--color-primary-light), #e8eef4);
}
.tour-gallery-more {
    position: absolute;
    right: 12px;
    bottom: 12px;
    background: rgba(255,255,255,0.92);
    color: var(--color-accent);
    font-weight: 600;
    font-size: .9rem;
    padding: 8px 14px;
    border-radius: 999px;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 2px 8px rgba(26,61,92,0.18);
}
.tour-gallery-hidden { display: none; }
@media (max-width: 760px) {
    .tour-gallery { grid-template-columns: 1fr; aspect-ratio: 4 / 3; }
    .tour-gallery-side { grid-template-rows: 1fr 1fr; grid-template-columns: 1fr 1fr; display: grid; grid-auto-flow: column; }
}

/* ---------- Tabs ---------- */
.tour-product-grid {
    display: grid;
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr);
    gap: 48px;
    align-items: start;
}
@media (max-width: 900px) {
    .tour-product-grid { grid-template-columns: 1fr; }
}
.tour-tabs {
    display: flex;
    gap: 0;
    border-bottom: 1px solid var(--color-border);
    margin-bottom: 24px;
    overflow-x: auto;
    scrollbar-width: thin;
}
.tour-tab {
    padding: 14px 18px;
    font-weight: 600;
    color: var(--color-text-muted);
    border-bottom: 2px solid transparent;
    margin-bottom: -1px;
    white-space: nowrap;
    text-decoration: none;
    transition: color .15s ease, border-color .15s ease;
}
.tour-tab:hover { color: var(--color-accent); }
.tour-tab.is-active {
    color: var(--color-accent);
    border-bottom-color: var(--color-accent);
}

.tour-section { margin-bottom: 40px; scroll-margin-top: 90px; }
.tour-section h2 { margin-top: 0; }
.tour-section h3 { margin-top: 1.6em; }
.tour-bullets { padding-left: 1.2em; }
.tour-bullets li { margin-bottom: .35em; }

/* ---------- Sidebar booking card ---------- */
.tour-sidebar-card {
    padding: 24px;
    position: sticky;
    top: 100px;
}
.tour-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px;
    margin-bottom: 14px;
}
.tour-price-label { font-size: .9rem; color: var(--color-text-muted); }
.tour-price-amount {
    font-size: 1.9rem;
    font-weight: 700;
    color: var(--color-accent);
    line-height: 1;
}
.tour-price-unit { font-size: .9rem; color: var(--color-text-muted); }

.btn-block { display: block; width: 100%; text-align: center; }
.btn-cta {
    background: var(--color-primary);
    color: #fff;
    border: 0;
    padding: 14px 18px;
    font-size: 1rem;
    border-radius: 999px;
    font-weight: 700;
    transition: background .15s ease, transform .15s ease;
    box-shadow: 0 4px 14px rgba(74, 144, 194, 0.35);
}
.btn-cta:hover { background: var(--color-primary-dark); transform: translateY(-1px); color: #fff; }
.tour-sidebar-card .btn + .btn { margin-top: 12px; }

.tour-book-section { padding: 60px 0 80px; scroll-margin-top: 90px; }
.tour-book-section .container { max-width: 880px; }

.tour-book-widgets { margin-top: 20px; }
.tour-book-widgets h4 { margin: 0 0 6px; }

/* ---------- Lightbox ---------- */
.tour-lightbox {
    position: fixed; inset: 0;
    background: rgba(10, 18, 28, 0.92);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tour-lightbox[hidden] { display: none; }
.tour-lightbox-img {
    max-width: 92vw;
    max-height: 86vh;
    object-fit: contain;
    box-shadow: 0 20px 60px rgba(0,0,0,0.55);
    border-radius: 6px;
}
.tour-lightbox-close,
.tour-lightbox-prev,
.tour-lightbox-next {
    position: absolute;
    background: rgba(255,255,255,0.14);
    border: 1px solid rgba(255,255,255,0.25);
    color: #fff;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 22px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
}
.tour-lightbox-close { top: 24px; right: 24px; }
.tour-lightbox-prev  { left: 24px;  top: 50%; transform: translateY(-50%); }
.tour-lightbox-next  { right: 24px; top: 50%; transform: translateY(-50%); }
.tour-lightbox-close:hover,
.tour-lightbox-prev:hover,
.tour-lightbox-next:hover { background: rgba(255,255,255,0.28); }
.tour-lightbox-counter {
    position: absolute;
    bottom: 24px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    font-size: .9rem;
    background: rgba(255,255,255,0.14);
    padding: 6px 12px;
    border-radius: 999px;
}

/* =========================================================
   Mobile optimization
   ========================================================= */
html, body { overflow-x: hidden; }
img, video, iframe { max-width: 100%; }

@media (max-width: 860px) {
    main > .section:first-child { padding-top: 96px; }
    .tour-product { padding-top: 88px; }
    .single-post-section { padding-top: 88px; }
}

@media (max-width: 760px) {
    body { font-size: 16px; }

    .container { padding-left: 18px; padding-right: 18px; }

    .section { padding: 56px 0; }
    .section-tight { padding: 40px 0; }
    .section-header { margin-bottom: 32px; }
    .section-header p { font-size: 1rem; }

    .hero-inner { padding: 56px 18px; }
    .hero p { font-size: 1.05rem; margin-bottom: 1.4em; }

    .tour-card-actions { flex-direction: column; align-items: stretch; }
    .tour-card-actions .btn { width: 100%; text-align: center; }
    .btn { padding: 12px 22px; }
    .btn-lg { padding: 14px 24px; font-size: 1rem; }

    .tour-product .container { width: calc(100% - 24px); }
    .tour-product-grid { gap: 28px; }
    .tour-title { font-size: clamp(1.4rem, 6vw, 1.9rem); }
    .tour-meta-row { gap: 12px; font-size: .9rem; }
    .tour-gallery { aspect-ratio: 4 / 3; max-height: none; }
    .tour-gallery-more { font-size: .8rem; padding: 6px 10px; }

    .tour-tabs { flex-wrap: wrap; gap: 0 4px; }
    .tour-tab { padding: 12px 12px; font-size: .92rem; }

    .inquiry-form { padding: 22px; }
    .inquiry-form input,
    .inquiry-form select,
    .inquiry-form textarea { font-size: 16px; }
    .inquiry-form textarea { min-height: 120px; }

    .tour-sidebar-card { position: static; padding: 20px; }

    .feature-row { gap: 16px; }
    .feature { padding: 22px 18px; }

    .two-col { gap: 24px; }

    .floating-book-now {
        right: 14px;
        bottom: max(14px, env(safe-area-inset-bottom));
        padding: 12px 18px;
        font-size: .92rem;
    }
    .floating-book-now [data-lucide] { width: 16px; height: 16px; }

    .site-footer { padding-top: 56px; padding-bottom: 32px; }

    .single-post-header { padding: 0; }
    .single-post-excerpt { font-size: 1rem; }
    .post-nav a { padding: 14px 16px; }

    .tour-lightbox-close { top: 12px; right: 12px; }
    .tour-lightbox-prev  { left: 8px; }
    .tour-lightbox-next  { right: 8px; }

    .contact-grid { gap: 20px; }
    .contact-info { padding: 24px; }

    .post-pagination .page-numbers { min-width: 36px; padding: 8px 12px; }
}

@media (max-width: 480px) {
    .container { padding-left: 14px; padding-right: 14px; }

    .section { padding: 44px 0; }
    main > .section:first-child { padding-top: 88px; }

    .hero-inner { padding: 44px 16px; }
    .hero h1 { font-size: clamp(1.6rem, 7vw, 2.1rem); }
    .hero p { font-size: .98rem; }

    .site-header-inner { padding: 6px 6px 6px 10px; gap: 8px; }
    .site-logo img { height: 36px; }
    .site-cta { padding: 8px 12px; font-size: .82rem; }

    .tour-card-image { aspect-ratio: 16 / 10; }
    .tour-card-body { padding: 18px 18px 20px; }
    .tour-product { padding-top: 80px; padding-bottom: 60px; }

    .tour-gallery { grid-template-columns: 1fr; aspect-ratio: 16 / 10; }
    .tour-gallery-side { display: none; }

    .floating-book-now { padding: 11px 16px; font-size: .88rem; }

    .footer-grid { gap: 24px; }
}
