/* ════════════════════════════════════════════════════
   AMIRA HOUSE — Main Site
   Earthy warm palette (stone / cream / gold)
   ════════════════════════════════════════════════════ */

:root {
    --bg:          #faf7f2;   /* warm cream */
    --bg-alt:      #f0e9dd;   /* sand */
    --bg-dark:     #3d3327;   /* walnut */
    --text:        #2c2419;   /* deep warm black */
    --text-soft:   #5c5143;   /* warm gray */
    --text-muted:  #8b8478;   /* stone */
    --primary:     #8b6f47;   /* stone brown */
    --primary-dk:  #6b5536;
    --accent:      #c5a059;   /* gold */
    --accent-dk:   #a8864a;
    --line:        #e5dccb;
    --white:       #ffffff;
    --shadow-sm:   0 2px 8px rgba(61, 51, 39, 0.06);
    --shadow-md:   0 8px 24px rgba(61, 51, 39, 0.1);
    --shadow-lg:   0 20px 48px rgba(61, 51, 39, 0.15);
    --serif:       'Cormorant Garamond', Georgia, serif;
    --sans:        'Outfit', -apple-system, BlinkMacSystemFont, sans-serif;
    --radius:      10px;
    --radius-lg:   18px;
}

* { box-sizing: border-box; margin: 0; padding: 0; }

html { scroll-behavior: smooth; }

body {
    font-family: var(--sans);
    color: var(--text);
    background: var(--bg);
    line-height: 1.6;
    font-weight: 300;
    overflow-x: hidden;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }

h1, h2, h3, h4 {
    font-family: var(--serif);
    font-weight: 500;
    color: var(--text);
    line-height: 1.2;
}

.container { max-width: 1200px; margin: 0 auto; padding: 0 24px; }
.container.narrow { max-width: 780px; }
.centered { text-align: center; }

.eyebrow {
    font-size: 0.75rem;
    letter-spacing: 0.2em;
    text-transform: uppercase;
    color: var(--accent-dk);
    font-weight: 500;
    margin-bottom: 14px;
}

.section { padding: 100px 0; }
.section-alt { background: var(--bg-alt); }
.section-title {
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 24px;
    letter-spacing: -0.01em;
}
.section-sub {
    font-size: 1.1rem;
    color: var(--text-soft);
    margin-bottom: 40px;
}

/* ═══ NAV ═══ */
#navbar {
    position: fixed; top: 0; left: 0; right: 0;
    z-index: 1000;
    background: rgba(250, 247, 242, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border-bottom: 1px solid transparent;
    transition: all 0.3s ease;
}
#navbar.scrolled {
    border-bottom-color: var(--line);
    box-shadow: var(--shadow-sm);
}
.nav-inner {
    max-width: 1280px; margin: 0 auto;
    padding: 16px 24px;
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px;
}
.nav-logo {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 600;
    letter-spacing: 0.05em;
    color: var(--text);
}
.nav-logo span { color: var(--accent); }
.nav-links {
    display: flex; gap: 32px;
    font-size: 0.9rem;
    font-weight: 400;
}
.nav-links a {
    color: var(--text-soft);
    transition: color 0.2s ease;
    position: relative;
    padding: 6px 0;
}
.nav-links a:hover { color: var(--accent-dk); }
.nav-links a::after {
    content: ''; position: absolute; bottom: 0; left: 0;
    width: 0; height: 1px; background: var(--accent);
    transition: width 0.3s ease;
}
.nav-links a:hover::after { width: 100%; }

.nav-right {
    display: flex; align-items: center; gap: 20px;
}
.lang-switch {
    display: flex; gap: 4px;
    border-right: 1px solid var(--line);
    padding-right: 16px;
}
.lang-switch button {
    background: none; border: none; cursor: pointer;
    font-family: var(--sans);
    font-size: 0.7rem; font-weight: 500;
    color: var(--text-muted);
    padding: 4px 8px; border-radius: 4px;
    letter-spacing: 0.1em;
    transition: all 0.2s ease;
}
.lang-switch button:hover { color: var(--text); }
.lang-switch button.active {
    background: var(--accent);
    color: var(--white);
}

.nav-cta {
    display: inline-block;
    background: var(--accent);
    color: var(--white);
    padding: 10px 20px;
    border-radius: var(--radius);
    font-size: 0.85rem;
    font-weight: 500;
    transition: all 0.25s ease;
    white-space: nowrap;
}
.nav-cta:hover {
    background: var(--accent-dk);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.menu-btn {
    display: none;
    background: none; border: none; cursor: pointer;
    color: var(--text);
    padding: 6px;
}
.menu-btn svg { width: 22px; height: 22px; }

/* ═══ HERO ═══ */
.hero {
    position: relative;
    height: 100vh;
    min-height: 620px;
    color: var(--white);
    display: flex; align-items: center; justify-content: center;
    text-align: center;
    overflow: hidden;
}
.hero-slides { position: absolute; inset: 0; }
.hero-slide {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0;
    transition: opacity 1.5s ease;
}
.hero-slide.active { opacity: 1; }
.hero-overlay {
    position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(61,51,39,0.35) 0%, rgba(61,51,39,0.55) 100%);
}
.hero-content {
    position: relative; z-index: 2;
    max-width: 820px;
    padding: 20px;
    animation: fadeUp 1s ease 0.2s both;
}
.hero-eyebrow {
    font-size: 0.85rem;
    letter-spacing: 0.3em;
    text-transform: uppercase;
    margin-bottom: 20px;
    color: rgba(255, 255, 255, 0.85);
    font-weight: 400;
}
.hero-title {
    font-family: var(--serif);
    font-size: clamp(3rem, 9vw, 6rem);
    font-weight: 500;
    margin-bottom: 24px;
    letter-spacing: -0.02em;
    color: var(--white);
    line-height: 1;
}
.hero-title span { color: var(--accent); font-style: italic; }
.hero-subtitle {
    font-size: clamp(1rem, 1.6vw, 1.25rem);
    font-weight: 300;
    max-width: 620px;
    margin: 0 auto 36px;
    color: rgba(255, 255, 255, 0.92);
    line-height: 1.6;
}
.hero-actions {
    display: flex; gap: 16px; justify-content: center;
    flex-wrap: wrap;
}

.btn {
    display: inline-block;
    padding: 14px 32px;
    border-radius: var(--radius);
    font-family: var(--sans);
    font-size: 0.95rem;
    font-weight: 500;
    letter-spacing: 0.02em;
    transition: all 0.25s ease;
    border: 1px solid transparent;
    cursor: pointer;
}
.btn-primary {
    background: var(--accent);
    color: var(--white);
}
.btn-primary:hover {
    background: var(--accent-dk);
    transform: translateY(-2px);
    box-shadow: 0 10px 28px rgba(197, 160, 89, 0.4);
}
.btn-ghost {
    background: rgba(255, 255, 255, 0.08);
    color: var(--white);
    border-color: rgba(255, 255, 255, 0.3);
    backdrop-filter: blur(8px);
}
.btn-ghost:hover { background: rgba(255, 255, 255, 0.18); border-color: rgba(255, 255, 255, 0.5); }
.btn-large { padding: 18px 44px; font-size: 1.05rem; }

.scroll-hint {
    position: absolute;
    bottom: 36px; left: 50%; transform: translateX(-50%);
    width: 22px; height: 36px;
    border: 1.5px solid rgba(255, 255, 255, 0.6);
    border-radius: 12px;
    display: flex; justify-content: center;
    padding-top: 8px;
}
.scroll-hint span {
    width: 3px; height: 8px;
    background: var(--white);
    border-radius: 2px;
    animation: scrollBounce 2s ease infinite;
}
@keyframes scrollBounce {
    0%, 100% { transform: translateY(0); opacity: 1; }
    50% { transform: translateY(10px); opacity: 0.3; }
}
@keyframes fadeUp {
    from { opacity: 0; transform: translateY(24px); }
    to { opacity: 1; transform: translateY(0); }
}

/* ═══ ABOUT ═══ */
.lead {
    font-size: 1.15rem;
    color: var(--text);
    margin-bottom: 24px;
    font-weight: 400;
}
#about p { margin-bottom: 20px; color: var(--text-soft); font-size: 1.02rem; }
.note {
    margin-top: 32px !important;
    padding: 18px 22px;
    background: var(--bg-alt);
    border-left: 3px solid var(--accent);
    border-radius: 0 var(--radius) var(--radius) 0;
    display: flex; align-items: flex-start; gap: 12px;
    font-size: 0.92rem !important;
    color: var(--text-soft) !important;
}
.note svg { width: 18px; height: 18px; color: var(--accent-dk); flex-shrink: 0; margin-top: 3px; }

/* ═══ STATS ═══ */
.stats-section {
    padding: 60px 0;
    background: var(--bg-dark);
    color: var(--white);
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}
.stat {
    text-align: center;
    padding: 20px;
    position: relative;
}
.stat:not(:last-child)::after {
    content: '';
    position: absolute; right: -15px; top: 25%; bottom: 25%;
    width: 1px;
    background: rgba(255, 255, 255, 0.12);
}
.stat svg {
    width: 34px; height: 34px;
    color: var(--accent);
    margin-bottom: 14px;
    stroke-width: 1.2;
}
.stat-num {
    font-family: var(--serif);
    font-size: 3rem;
    font-weight: 500;
    color: var(--white);
    line-height: 1;
    margin-bottom: 8px;
}
.stat-label {
    font-size: 0.85rem;
    color: rgba(255, 255, 255, 0.75);
    font-weight: 300;
    letter-spacing: 0.03em;
}
.stat-label small { font-size: 0.75rem; opacity: 0.7; }

/* ═══ AMENITIES ═══ */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 24px;
    margin-top: 50px;
}
.amenity {
    background: var(--bg);
    padding: 32px 24px;
    border-radius: var(--radius-lg);
    border: 1px solid var(--line);
    transition: all 0.3s ease;
    text-align: center;
}
.amenity:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--accent);
}
.amenity svg {
    width: 32px; height: 32px;
    color: var(--accent);
    margin-bottom: 18px;
    stroke-width: 1.3;
}
.amenity h3 {
    font-size: 1.1rem;
    font-weight: 600;
    margin-bottom: 8px;
    color: var(--text);
}
.amenity p {
    font-size: 0.88rem;
    color: var(--text-muted);
    line-height: 1.5;
}

/* ═══ FLOOR PLAN & LOCATION (SPLIT) ═══ */
.split {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}
.split-text p { color: var(--text-soft); font-size: 1.02rem; margin-bottom: 30px; }
.split-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    background: var(--white);
    min-height: 440px;
    display: flex; align-items: center; justify-content: center;
}
.split-image img {
    width: 100%; height: 100%;
    object-fit: contain;
    background: var(--white);
    padding: 20px;
}
.floorplan-placeholder {
    flex-direction: column;
    align-items: center; justify-content: center;
    color: var(--text-muted);
    padding: 60px;
    text-align: center;
}
.floorplan-placeholder svg { width: 54px; height: 54px; margin-bottom: 14px; opacity: 0.4; }
.floorplan-placeholder p { color: var(--text-muted) !important; font-size: 0.9rem !important; }
.floorplan-placeholder small { opacity: 0.7; }

.map-wrap { min-height: 440px; padding: 0; }
.map-wrap iframe { border-radius: var(--radius-lg); }

.plan-list, .location-list { margin-top: 24px; }
.plan-list li, .location-list li {
    padding: 16px 0;
    border-bottom: 1px solid var(--line);
    display: flex; align-items: center; justify-content: space-between;
    gap: 20px;
}
.plan-list li:last-child, .location-list li:last-child { border-bottom: none; }
.plan-list strong { font-weight: 500; color: var(--text); font-size: 1.02rem; }
.plan-list span { color: var(--text-muted); font-size: 0.9rem; }

.location-list li { justify-content: flex-start; }
.location-list svg {
    width: 22px; height: 22px;
    color: var(--accent);
    flex-shrink: 0;
    stroke-width: 1.3;
}
.location-list div { display: flex; flex-direction: column; gap: 2px; }
.location-list strong { font-weight: 500; color: var(--text); font-size: 1rem; }
.location-list span { color: var(--text-muted); font-size: 0.85rem; }

/* ═══ GALLERY ═══ */
.gallery-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 1fr 1fr;
    gap: 16px;
    margin-top: 50px;
    height: 560px;
}
.g-item {
    background-size: cover; background-position: center;
    border-radius: var(--radius-lg);
    cursor: pointer;
    transition: all 0.4s ease;
    position: relative;
    overflow: hidden;
}
.g-item::after {
    content: '';
    position: absolute; inset: 0;
    background: rgba(61, 51, 39, 0);
    transition: background 0.3s ease;
}
.g-item:hover::after { background: rgba(61, 51, 39, 0.2); }
.g-large { grid-row: span 2; grid-column: 1; }

/* ═══ CTA ═══ */
.cta-section {
    padding: 110px 0;
    background: linear-gradient(135deg, var(--primary) 0%, var(--bg-dark) 100%);
    color: var(--white);
    text-align: center;
}
.cta-section h2 {
    color: var(--white);
    font-size: clamp(2rem, 4vw, 3rem);
    margin-bottom: 16px;
}
.cta-section p {
    font-size: 1.1rem;
    margin-bottom: 36px;
    color: rgba(255, 255, 255, 0.88);
}
.cta-section .btn-primary {
    background: var(--accent);
    box-shadow: 0 12px 30px rgba(197, 160, 89, 0.35);
}
.cta-note {
    margin-top: 24px !important;
    font-size: 0.8rem !important;
    letter-spacing: 0.08em;
    color: rgba(255, 255, 255, 0.6) !important;
}

/* ═══ FOOTER ═══ */
footer {
    background: var(--bg-dark);
    color: rgba(255, 255, 255, 0.75);
    padding: 70px 0 30px;
    font-size: 0.9rem;
}
.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 40px;
    margin-bottom: 50px;
}
.footer-logo {
    font-family: var(--serif);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--white);
    margin-bottom: 14px;
}
.footer-logo span { color: var(--accent); }
footer h4 {
    font-family: var(--sans);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.15em;
    text-transform: uppercase;
    color: var(--accent);
    margin-bottom: 16px;
}
footer a {
    display: block;
    color: rgba(255, 255, 255, 0.7);
    padding: 4px 0;
    transition: color 0.2s ease;
    font-size: 0.88rem;
}
footer a:hover { color: var(--white); }
footer a svg { width: 14px; height: 14px; display: inline-block; vertical-align: middle; margin-right: 6px; }
.footer-bottom {
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    padding-top: 24px;
    text-align: center;
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.45);
}

/* ═══ RESPONSIVE ═══ */
@media (max-width: 960px) {
    .nav-links { display: none; }
    .menu-btn { display: block; }
    .nav-inner.mobile-open { flex-wrap: wrap; }
    .nav-inner.mobile-open .nav-links {
        display: flex;
        flex-direction: column;
        width: 100%;
        order: 4;
        padding: 20px 0;
        gap: 14px;
    }
    .lang-switch { padding-right: 10px; }
    .lang-switch button { font-size: 0.65rem; padding: 4px 6px; }

    .section { padding: 70px 0; }
    .stats-grid { grid-template-columns: repeat(2, 1fr); gap: 40px; }
    .stat:nth-child(2)::after { display: none; }
    .amenities-grid { grid-template-columns: repeat(2, 1fr); }
    .split { grid-template-columns: 1fr; gap: 40px; }
    .split-image, .map-wrap { min-height: 360px; }
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
        height: auto;
    }
    .g-large { grid-column: 1 / -1; height: 280px; }
    .g-item:not(.g-large) { height: 180px; }
    .footer-grid { grid-template-columns: 1fr 1fr; gap: 30px; }
}

@media (max-width: 560px) {
    .hero { min-height: 560px; }
    .stats-grid { grid-template-columns: 1fr 1fr; }
    .amenities-grid { grid-template-columns: 1fr; }
    .footer-grid { grid-template-columns: 1fr; }
    .hero-actions { flex-direction: column; align-items: stretch; }
    .hero-actions .btn { width: 100%; }
}

/* ──────────────── AVAILABILITY ──────────────── */
.availability-frame {
    position: relative;
    margin-top: 40px;
    width: 100%;
    height: 820px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    overflow: hidden;
}
.availability-frame iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}
.availability-loader {
    position: absolute;
    inset: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    pointer-events: none;
    z-index: 1;
}
.availability-loader i {
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
.availability-actions {
    margin-top: 28px;
    text-align: center;
}

@media (max-width: 960px) {
    .availability-frame { height: 740px; }
}
@media (max-width: 560px) {
    .availability-frame { height: 680px; border-radius: var(--radius); }
}

/* ──────────────── TAB NAV LINK ──────────────── */
.nav-tab-link {
    position: relative;
    padding: 4px 12px;
    background: var(--accent);
    color: var(--white) !important;
    border-radius: 6px;
    font-weight: 500;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    transition: background 0.2s;
}
.nav-tab-link:hover { background: var(--accent-dk); }

/* ──────────────── TAB VIEW (inline booking) ──────────────── */
#tab-view {
    position: fixed;
    inset: 0;
    z-index: 2000;
    background: var(--bg);
    display: none;
    flex-direction: column;
    overflow: hidden;
}
body.tab-open { overflow: hidden; }
body.tab-open #tab-view {
    display: flex;
    animation: tab-in 0.35s ease;
}
@keyframes tab-in {
    from { opacity: 0; transform: translateY(12px); }
    to { opacity: 1; transform: none; }
}

.tab-topbar {
    flex: 0 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 18px 40px;
    background: var(--white);
    border-bottom: 1px solid var(--line);
}
.tab-logo {
    font-family: var(--serif);
    font-size: 1.3rem;
    letter-spacing: 2px;
    color: var(--text);
}
.tab-logo span { color: var(--accent); font-style: italic; }
.tab-logo em {
    font-style: normal;
    color: var(--text-soft);
    font-size: 0.9rem;
    letter-spacing: 1px;
    font-family: var(--sans);
    font-weight: 400;
    margin-left: 4px;
}
.tab-close {
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 50%;
    width: 42px;
    height: 42px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text);
    transition: all 0.2s;
}
.tab-close:hover { border-color: var(--accent); color: var(--accent); }

.tab-container {
    flex: 1 1 auto;
    overflow-y: auto;
    padding: 50px 40px 80px;
}
.tab-intro { max-width: 680px; margin: 0 auto 40px; text-align: center; }

.tab-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    max-width: 1200px;
    margin: 0 auto;
    align-items: start;
}

/* Calendar */
.tab-cal {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
}
.tab-cal-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}
.cal-nav {
    background: transparent;
    border: 1px solid var(--line);
    border-radius: 8px;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: var(--text-soft);
    transition: all 0.2s;
}
.cal-nav:hover { border-color: var(--accent); color: var(--accent); }
.cal-nav:disabled { opacity: 0.35; cursor: not-allowed; }
.cal-title {
    font-family: var(--serif);
    font-size: 1.4rem;
    color: var(--text);
    text-transform: capitalize;
}
.cal-weekdays, .cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 4px;
}
.cal-weekdays {
    margin-bottom: 8px;
    font-size: 0.75rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 1px;
}
.cal-weekdays span {
    text-align: center;
    padding: 6px 0;
}
.cal-grid {
    position: relative;
    min-height: 280px;
}
.cal-cell {
    aspect-ratio: 1 / 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    border-radius: 8px;
    font-size: 0.95rem;
    cursor: pointer;
    color: var(--text);
    border: 1px solid transparent;
    transition: all 0.15s;
    position: relative;
}
.cal-cell:hover:not(.muted):not(.booked):not(.past) {
    border-color: var(--accent);
    background: var(--bg-alt);
}
.cal-cell .price {
    font-size: 0.65rem;
    color: var(--text-muted);
    margin-top: 2px;
}
.cal-cell.muted { color: var(--text-muted); opacity: 0.35; cursor: default; }
.cal-cell.past { opacity: 0.25; cursor: not-allowed; text-decoration: line-through; }
.cal-cell.booked {
    background: var(--line);
    color: var(--text-muted);
    cursor: not-allowed;
    text-decoration: line-through;
}
.cal-cell.selected {
    background: var(--accent);
    color: var(--white);
    border-color: var(--accent-dk);
}
.cal-cell.selected .price { color: rgba(255, 255, 255, 0.8); }
.cal-cell.in-range {
    background: var(--bg-alt);
    color: var(--text);
}
.cal-cell.edge-start { border-radius: 8px 0 0 8px; }
.cal-cell.edge-end { border-radius: 0 8px 8px 0; }
.cal-loading {
    position: absolute;
    inset: 0;
    grid-column: 1 / -1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
}
.cal-loading i { animation: spin 1s linear infinite; }

.tab-legend {
    display: flex;
    gap: 28px;
    margin-top: 20px;
    justify-content: center;
    font-size: 0.85rem;
    color: var(--text-soft);
    flex-wrap: wrap;
}
.tab-legend .dot {
    display: inline-block;
    width: 12px;
    height: 12px;
    border-radius: 50%;
    margin-right: 8px;
    vertical-align: middle;
}
.tab-legend .dot.free { background: var(--white); border: 1px solid var(--line); }
.tab-legend .dot.booked { background: var(--line); }
.tab-legend .dot.selected { background: var(--accent); }

/* Right side: summary + form */
.tab-summary {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    margin-bottom: 24px;
}
.tab-summary h3 {
    font-family: var(--serif);
    font-size: 1.3rem;
    margin-bottom: 16px;
    color: var(--text);
}
.sum-row {
    display: flex;
    justify-content: space-between;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
    font-size: 0.95rem;
    color: var(--text-soft);
}
.sum-row:last-child { border-bottom: none; }
.sum-row b { color: var(--text); font-weight: 500; }
.sum-row.total {
    font-size: 1.1rem;
    padding-top: 16px;
    margin-top: 4px;
    border-top: 2px solid var(--accent);
}
.sum-row.total b { color: var(--accent); font-size: 1.3rem; font-weight: 600; }
.sum-row.muted { color: var(--text-muted); font-size: 0.85rem; }

.tab-form {
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius-lg);
    padding: 24px;
    box-shadow: var(--shadow-sm);
    display: flex;
    flex-direction: column;
    gap: 14px;
}
.tab-form .row2 {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.tab-form label {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 0.85rem;
    color: var(--text-soft);
}
.tab-form input,
.tab-form select,
.tab-form textarea {
    font-family: var(--sans);
    font-size: 0.95rem;
    padding: 10px 14px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--bg);
    color: var(--text);
    transition: border-color 0.2s;
    width: 100%;
}
.tab-form input:focus,
.tab-form select:focus,
.tab-form textarea:focus {
    outline: none;
    border-color: var(--accent);
    background: var(--white);
}
.tab-form textarea { resize: vertical; font-family: var(--sans); }
.tab-submit {
    font-family: var(--sans);
    padding: 14px 20px;
    background: var(--accent);
    color: var(--white);
    border: none;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    cursor: pointer;
    margin-top: 6px;
    transition: background 0.2s;
}
.tab-submit:hover:not(:disabled) { background: var(--accent-dk); }
.tab-submit:disabled { background: var(--text-muted); cursor: not-allowed; opacity: 0.7; }
.tab-success {
    color: #2d7a3a;
    padding: 10px 14px;
    background: #e8f5e9;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
}
.tab-error {
    color: #9f1a1a;
    padding: 10px 14px;
    background: #fde8e8;
    border-radius: 8px;
    font-size: 0.9rem;
    text-align: center;
}

@media (max-width: 960px) {
    .tab-topbar { padding: 14px 20px; }
    .tab-container { padding: 30px 20px 60px; }
    .tab-grid { grid-template-columns: 1fr; gap: 24px; }
    .tab-intro { margin-bottom: 24px; }
}
@media (max-width: 560px) {
    .tab-cal { padding: 16px; }
    .cal-cell { font-size: 0.85rem; }
    .cal-cell .price { display: none; }
    .tab-form .row2 { grid-template-columns: 1fr; }
}

/* ──────────────── Gap / Upsell discount badges ──────────────── */
.cal-cell.gap-offer {
    border: 1px dashed var(--accent);
    background: rgba(197, 160, 89, 0.06);
}
.cal-cell .gap-badge {
    position: absolute;
    top: 2px;
    right: 2px;
    background: #e67e22;
    color: #fff;
    font-size: 0.58rem;
    padding: 2px 4px;
    border-radius: 4px;
    font-weight: 700;
    z-index: 5;
    animation: gap-pulse 2s infinite;
    letter-spacing: 0.2px;
}
@keyframes gap-pulse {
    0%, 100% { opacity: 0.75; transform: scale(1); }
    50% { opacity: 1; transform: scale(1.08); }
}

/* ──────────────── BOOK PAGE (standalone /book/) ──────────────── */
.book-page .book-main {
    max-width: 1200px;
    margin: 0 auto;
    padding: 140px 40px 80px;
}
.book-page .tab-intro { max-width: 680px; margin: 0 auto 40px; text-align: center; }
.book-page .tab-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 40px;
    align-items: start;
}
@media (max-width: 960px) {
    .book-page .book-main { padding: 110px 20px 60px; }
    .book-page .tab-grid { grid-template-columns: 1fr; gap: 24px; }
}
