/* ========================================
   Borneo Tree House - Design System
   ======================================== */

/* ----------------------------------------
   1. CSS Variables (Design Tokens)
   ---------------------------------------- */
:root {
    --bg-dark: #1A3C34;
    --bg-card: #243D38;
    --bg-card-hover: #2D4F48;
    --text-light: #E8F0EE;
    --text-muted: #9BB8B0;
    --accent-green: #4CAF50;
    --accent-gold: #D4A574;
    --accent-red: #E57373;
    --accent-success: #4CAF50;

    --radius-sm: 6px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 20px;

    --shadow-sm: 0 2px 8px rgba(0,0,0,0.2);
    --shadow-md: 0 4px 20px rgba(0,0,0,0.3);
    --shadow-lg: 0 8px 40px rgba(0,0,0,0.4);

    --transition-fast: 0.15s ease;
    --transition-base: 0.2s ease;
    --transition-slow: 0.3s ease;

    --nav-height: 64px;
    --max-width: 1200px;
}

/* ----------------------------------------
   2. Reset & Base
   ---------------------------------------- */
*,
*::before,
*::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: Inter, -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background-color: var(--bg-dark);
    color: var(--text-light);
    line-height: 1.6;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

h1, h2, h3, h4 {
    font-family: Merriweather, Georgia, 'Times New Roman', serif;
    line-height: 1.3;
}

a {
    color: var(--accent-green);
    text-decoration: none;
    transition: color var(--transition-fast);
}
a:hover {
    color: #66BB6A;
    text-decoration: underline;
}

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

/* Focus visible for keyboard users */
:focus-visible {
    outline: 2px solid var(--accent-green);
    outline-offset: 2px;
}
:focus:not(:focus-visible) {
    outline: none;
}

/* Screen reader only utility */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    white-space: nowrap;
    border: 0;
}

/* ----------------------------------------
   3. Navigation
   ---------------------------------------- */
.nav {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    background: rgba(26, 60, 52, 0.92);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-bottom: 1px solid rgba(255,255,255,0.08);
    height: var(--nav-height);
}
.nav-inner {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 2rem;
    height: 100%;
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.nav-logo {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    color: var(--text-light);
    transition: opacity var(--transition-fast);
}
.nav-logo:hover {
    opacity: 0.85;
    text-decoration: none;
}
.nav-logo img {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    object-fit: cover;
    aspect-ratio: 1;
}
.nav-logo span {
    font-family: Merriweather, serif;
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--text-light);
}
.nav-links {
    display: flex;
    gap: 2rem;
    align-items: center;
}
.nav-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
    font-weight: 500;
    transition: color var(--transition-fast);
}
.nav-links a:hover {
    color: var(--text-light);
    text-decoration: none;
}
.nav-toggle {
    display: none;
    background: none;
    border: none;
    color: var(--text-light);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
}

/* ----------------------------------------
   4. Hero Section
   ---------------------------------------- */
.hero {
    min-height: 70vh;
    background:
        linear-gradient(135deg, rgba(26,60,52,0.65) 0%, rgba(26,60,52,0.85) 100%),
        url('/static/images/hero.webp') center/cover no-repeat fixed;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: calc(var(--nav-height) + 3rem) 2rem 5rem;
    position: relative;
}
.hero-content {
    max-width: 720px;
    width: 100%;
}
.hero h1 {
    font-size: 3rem;
    margin-bottom: 0.75rem;
    text-shadow: 0 2px 15px rgba(0,0,0,0.3);
}
.hero p {
    font-size: 1.2rem;
    color: var(--text-muted);
    margin-bottom: 2rem;
}

/* ----------------------------------------
   5. Search Box & Sticky Search
   ---------------------------------------- */
.search-section {
    display: contents;
}
.search-wrapper {
    max-width: var(--max-width);
    margin: -3rem auto 0;
    padding: 0 2rem;
    position: sticky;
    top: 0;
    z-index: 50;
    transition: padding-top var(--transition-slow);
}
.search-box {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    box-shadow: var(--shadow-lg);
    transition: padding var(--transition-slow), border-radius var(--transition-slow), background var(--transition-slow);
    border: 1px solid rgba(255,255,255,0.06);
}
.search-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
    margin-bottom: 1rem;
    transition: gap var(--transition-slow);
}
.search-field label {
    display: block;
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    transition: font-size var(--transition-slow);
}
.search-field input,
.search-field select {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--bg-dark);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    color: var(--text-light);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color var(--transition-fast), padding var(--transition-slow);
    -webkit-appearance: none;
    appearance: none;
}
.search-field input:focus,
.search-field select:focus {
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
}
.search-field input::-webkit-calendar-picker-indicator {
    filter: invert(0.8);
    cursor: pointer;
}

/* Sticky compressed state */
.search-wrapper.compressed {
    padding-top: 0.5rem;
}
.search-wrapper.compressed .search-box {
    padding: 0.75rem 1rem;
    border-radius: var(--radius-md);
    background: rgba(36, 61, 56, 0.98);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}
.search-wrapper.compressed .search-grid {
    gap: 0.75rem;
    margin-bottom: 0;
}
.search-wrapper.compressed .search-field label {
    font-size: 0.65rem;
    margin-bottom: 0.2rem;
}
.search-wrapper.compressed .search-field input,
.search-wrapper.compressed .search-field select {
    padding: 0.6rem 0.75rem;
    font-size: 0.9rem;
}
.search-wrapper.compressed .search-box .btn {
    padding: 0.6rem 1rem;
    font-size: 0.85rem;
}
.search-wrapper.compressed .trust-badges {
    display: none;
}
.search-wrapper.compressed .guest-counter .guest-btn {
    width: 28px;
    height: 28px;
    font-size: 1rem;
}
.search-wrapper.compressed .guest-counter .guest-value .guest-count {
    font-size: 1rem;
}
.search-wrapper.compressed .guest-counter .guest-value .guest-label {
    font-size: 0.7rem;
}

/* ----------------------------------------
   6. Guest Counter
   ---------------------------------------- */
.guest-counter {
    display: flex;
    align-items: center;
    gap: 0;
    background: var(--bg-dark);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    padding: 0.25rem;
    height: 48px;
    transition: height var(--transition-slow), padding var(--transition-slow);
}
.guest-btn {
    width: 36px;
    height: 36px;
    border: none;
    background: rgba(76, 175, 80, 0.15);
    color: var(--accent-green);
    border-radius: var(--radius-sm);
    cursor: pointer;
    font-size: 1.25rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background var(--transition-fast), opacity var(--transition-fast);
    flex-shrink: 0;
    line-height: 1;
}
.guest-btn:hover:not(:disabled) {
    background: rgba(76, 175, 80, 0.3);
}
.guest-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}
.guest-value {
    flex: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0;
    min-width: 60px;
    padding: 0 0.5rem;
}
.guest-value .guest-count {
    font-size: 1.15rem;
    font-weight: 600;
    color: var(--text-light);
    line-height: 1.2;
    transition: font-size var(--transition-slow);
}
.guest-value .guest-label {
    font-size: 0.7rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    line-height: 1;
    transition: font-size var(--transition-slow);
}

/* ----------------------------------------
   7. Trust Badges
   ---------------------------------------- */
.trust-badges {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-top: 1.25rem;
    flex-wrap: wrap;
    transition: opacity var(--transition-slow), max-height var(--transition-slow);
    overflow: hidden;
    max-height: 40px;
    opacity: 1;
}
.trust-badge {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.8rem;
    color: var(--text-muted);
}
.trust-badge svg {
    width: 16px;
    height: 16px;
    fill: var(--accent-green);
    flex-shrink: 0;
}

/* ----------------------------------------
   8. Skeleton Loading
   ---------------------------------------- */
.skeleton-card {
    pointer-events: none;
}
.skeleton-image {
    width: 100%;
    height: 200px;
    background: rgba(255,255,255,0.06);
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    position: relative;
    overflow: hidden;
}
.skeleton-body {
    padding: 1.5rem;
}
.skeleton-line {
    height: 14px;
    background: rgba(255,255,255,0.06);
    border-radius: 4px;
    margin-bottom: 0.75rem;
    position: relative;
    overflow: hidden;
}
.skeleton-title {
    width: 70%;
    height: 18px;
}
.skeleton-meta {
    width: 40%;
}
.skeleton-price {
    width: 50%;
    height: 22px;
}
.skeleton-btn {
    height: 44px;
    background: rgba(255,255,255,0.06);
    border-radius: var(--radius-md);
    margin-top: 1rem;
    position: relative;
    overflow: hidden;
}

/* Shimmer effect */
.skeleton-image::after,
.skeleton-line::after,
.skeleton-btn::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(
        90deg,
        transparent 0%,
        rgba(255,255,255,0.04) 40%,
        rgba(255,255,255,0.08) 50%,
        rgba(255,255,255,0.04) 60%,
        transparent 100%
    );
    animation: shimmer 1.5s ease-in-out infinite;
    transform: translateX(-100%);
}

/* ----------------------------------------
   9. Main Content & Room Grid
   ---------------------------------------- */
.main {
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 3rem 2rem 4rem;
}
.section-title {
    font-size: 2rem;
    text-align: center;
    margin-bottom: 0.5rem;
}
.section-subtitle {
    text-align: center;
    color: var(--text-muted);
    margin-bottom: 3rem;
    font-size: 1.05rem;
}
.room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 2rem;
}

/* Room Card */
.room-card {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base), box-shadow var(--transition-base);
    animation: cardFadeIn 0.4s ease both;
}
.room-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}
.room-card:nth-child(2) { animation-delay: 0.05s; }
.room-card:nth-child(3) { animation-delay: 0.1s; }
.room-card:nth-child(4) { animation-delay: 0.15s; }
.room-card:nth-child(5) { animation-delay: 0.2s; }
.room-card:nth-child(6) { animation-delay: 0.25s; }

.room-body {
    padding: 1.25rem 1.5rem 1.5rem;
}
.room-name {
    font-size: 1.2rem;
    margin-bottom: 0.5rem;
    font-family: Merriweather, serif;
}
.room-meta {
    display: flex;
    gap: 1rem;
    font-size: 0.85rem;
    color: var(--text-muted);
    margin-bottom: 1rem;
}
.room-meta span {
    display: flex;
    align-items: center;
    gap: 0.3rem;
}
.room-price-section {
    margin-bottom: 1.25rem;
}
.room-per-night {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.room-price {
    display: flex;
    align-items: baseline;
    gap: 0.75rem;
    flex-wrap: wrap;
}
.price-current {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--accent-green);
}
.price-original {
    font-size: 0.95rem;
    color: var(--text-muted);
    text-decoration: line-through;
}
.price-badge {
    font-size: 0.7rem;
    background: var(--accent-gold);
    color: var(--bg-dark);
    padding: 0.2rem 0.5rem;
    border-radius: 4px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}
.nights-badge {
    font-size: 0.75rem;
    color: var(--text-muted);
    display: block;
    margin-top: 0.25rem;
}
.room-card .btn {
    width: 100%;
}

/* ----------------------------------------
   10. Image Carousel
   ---------------------------------------- */
.room-carousel {
    position: relative;
    z-index: 60;
    width: 100%;
    aspect-ratio: 16 / 10;
    max-height: 250px;
    overflow: hidden;
    background: var(--bg-dark);
}
.room-carousel .carousel-slides {
    display: flex;
    height: 100%;
    transition: transform 0.35s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    will-change: transform;
}
.room-carousel .carousel-slide {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
}
.room-carousel {
    cursor: grab;
    user-select: none;
    -webkit-user-select: none;
}
.room-carousel:active {
    cursor: grabbing;
}
.room-carousel .carousel-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0.6;
    transition: opacity var(--transition-base), background var(--transition-fast), transform var(--transition-fast);
    z-index: 10;
}
.room-carousel:hover .carousel-arrow {
    opacity: 1;
}
.room-carousel .carousel-arrow:hover {
    background: rgba(0,0,0,0.7);
    transform: translateY(-50%) scale(1.1);
}
.room-carousel .carousel-arrow:active {
    transform: translateY(-50%) scale(0.92);
}
.room-carousel .carousel-arrow.prev { left: 8px; }
.room-carousel .carousel-arrow.next { right: 8px; }
.room-carousel:focus-visible {
    outline: 2px solid var(--accent-green);
    outline-offset: 2px;
}
.room-carousel .carousel-arrow:focus-visible {
    outline: 2px solid var(--accent-green);
    outline-offset: 2px;
}
.room-carousel .carousel-dots {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    z-index: 2;
    padding: 4px 10px;
    background: rgba(0,0,0,0.4);
    border-radius: 12px;
}
.room-carousel .carousel-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background: rgba(255,255,255,0.45);
    cursor: pointer;
    transition: background var(--transition-fast), transform var(--transition-fast);
    border: none;
    padding: 0;
}
.room-carousel .carousel-dot:hover {
    background: rgba(255,255,255,0.75);
}
.room-carousel .carousel-dot.active {
    background: white;
    transform: scale(1.3);
}

/* ----------------------------------------
   11. Alert & Empty State
   ---------------------------------------- */
.alert {
    background: rgba(229, 115, 115, 0.12);
    border: 1px solid var(--accent-red);
    color: var(--accent-red);
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    font-size: 0.9rem;
    line-height: 1.5;
}
.alert-success {
    background: rgba(76, 175, 80, 0.1);
    border-color: var(--accent-green);
    color: var(--accent-success);
}
.empty-state {
    text-align: center;
    padding: 4rem 2rem;
    color: var(--text-muted);
}
.empty-state p {
    font-size: 1.05rem;
}

/* ----------------------------------------
   12. Booking Modal
   ---------------------------------------- */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.65);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
    padding: 1rem;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    animation: overlayFadeIn 0.2s ease;
}
.modal-overlay.active {
    display: flex;
}
.modal {
    background: var(--bg-card);
    border-radius: var(--radius-lg);
    width: 100%;
    max-width: 500px;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: var(--shadow-lg);
    animation: modalSlideUp 0.3s ease;
    position: relative;
}
.modal::-webkit-scrollbar {
    width: 6px;
}
.modal::-webkit-scrollbar-track {
    background: transparent;
}
.modal::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.15);
    border-radius: 3px;
}
.modal-header {
    padding: 1.25rem 1.5rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    position: sticky;
    top: 0;
    background: var(--bg-card);
    z-index: 10;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}
.modal-header h2 {
    font-size: 1.15rem;
    font-family: Inter, sans-serif;
    font-weight: 600;
}
.modal-close {
    background: none;
    border: none;
    color: var(--text-muted);
    font-size: 1.5rem;
    cursor: pointer;
    padding: 0.25rem;
    line-height: 1;
    transition: color var(--transition-fast);
    border-radius: 4px;
}
.modal-close:hover {
    color: var(--text-light);
}
.modal-body {
    padding: 1.5rem;
}

/* ----------------------------------------
   13. Step Wizard
   ---------------------------------------- */
.step-wizard {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0;
    margin-bottom: 1.5rem;
    padding: 0 1rem;
}
.step-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.4rem;
    flex: 1;
    max-width: 120px;
}
.step-circle {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    font-weight: 600;
    color: var(--text-muted);
    transition: all var(--transition-base);
    position: relative;
}
.step-item.active .step-circle {
    background: var(--accent-green);
    color: white;
    box-shadow: 0 0 0 4px rgba(76, 175, 80, 0.2);
}
.step-item.completed .step-circle {
    background: var(--accent-green);
    color: white;
}
.step-item.completed .step-circle .step-number {
    display: none;
}
.step-item.completed .step-circle::after {
    content: '✓';
    font-size: 1.1rem;
}
.step-label {
    font-size: 0.75rem;
    color: var(--text-muted);
    text-align: center;
    transition: color var(--transition-base);
    font-weight: 500;
}
.step-item.active .step-label {
    color: var(--text-light);
}
.step-item.completed .step-label {
    color: var(--accent-green);
}
.step-connector {
    flex: 1;
    max-width: 60px;
    height: 2px;
    background: rgba(255,255,255,0.1);
    margin: 0 0.5rem 1.25rem;
    position: relative;
    transition: background var(--transition-base);
}
.step-connector.active {
    background: var(--accent-green);
}

/* Step transitions */
.step-content {
    animation: stepFadeIn 0.3s ease;
}

/* ----------------------------------------
   14. Form Styles
   ---------------------------------------- */
.form-group {
    margin-bottom: 1.25rem;
    position: relative;
}
.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    margin-bottom: 0.4rem;
    color: var(--text-light);
}
.form-group input {
    width: 100%;
    padding: 0.85rem 1rem;
    background: var(--bg-dark);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: var(--radius-md);
    color: var(--text-light);
    font-size: 1rem;
    font-family: inherit;
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast);
}
.form-group input:focus {
    border-color: var(--accent-green);
    box-shadow: 0 0 0 3px rgba(76, 175, 80, 0.15);
    outline: none;
}
.form-group input.error {
    border-color: var(--accent-red);
    box-shadow: 0 0 0 3px rgba(229, 115, 115, 0.12);
}
.form-group input.valid {
    border-color: var(--accent-green);
}
.form-group input::placeholder {
    color: rgba(255,255,255,0.25);
}
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
}
.error-text {
    color: var(--accent-red);
    font-size: 0.78rem;
    margin-top: 0.3rem;
    display: none;
    line-height: 1.4;
}
.error-text.visible {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.error-text.visible::before {
    content: '⚠';
    font-size: 0.75rem;
}
.valid-text {
    color: var(--accent-green);
    font-size: 0.78rem;
    margin-top: 0.3rem;
    display: none;
}
.valid-text.visible {
    display: flex;
    align-items: center;
    gap: 0.25rem;
}
.valid-text.visible::before {
    content: '✓';
    font-weight: 700;
}
.form-field-wrapper {
    position: relative;
}
.form-field-icon {
    position: absolute;
    right: 12px;
    top: 50%;
    transform: translateY(-50%);
    font-size: 1rem;
    display: none;
    pointer-events: none;
}
.form-field-icon.visible {
    display: block;
}
.form-field-icon.valid-icon {
    color: var(--accent-green);
}
.form-field-icon.error-icon {
    color: var(--accent-red);
}

/* ----------------------------------------
   15. Room Summary (in modal)
   ---------------------------------------- */
.room-summary {
    background: var(--bg-dark);
    border-radius: var(--radius-md);
    padding: 1rem 1.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255,255,255,0.06);
}
.room-summary-name {
    font-weight: 600;
    font-size: 1rem;
    margin-bottom: 0.5rem;
}
.room-summary-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    color: var(--text-muted);
    font-size: 0.85rem;
}
.room-summary-price {
    color: var(--accent-green);
    font-weight: 600;
    font-size: 1rem;
}

/* Google Sign-In Section */
.google-section {
    margin-bottom: 1.25rem;
}
.google-btn {
    width: 100%;
    padding: 0.85rem 1rem;
    background: white;
    color: #333;
    border: none;
    border-radius: var(--radius-md);
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.6rem;
    transition: box-shadow var(--transition-fast), transform var(--transition-fast);
    font-family: inherit;
}
.google-btn:hover {
    box-shadow: 0 2px 12px rgba(255,255,255,0.15);
    transform: translateY(-1px);
}
.google-btn:active {
    transform: translateY(0);
}
.google-btn svg {
    flex-shrink: 0;
}
.divider {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin: 1rem 0;
    color: var(--text-muted);
    font-size: 0.8rem;
}
.divider::before,
.divider::after {
    content: '';
    flex: 1;
    height: 1px;
    background: rgba(255,255,255,0.08);
}
.google-connected {
    background: rgba(76, 175, 80, 0.08);
    border: 1px solid var(--accent-green);
    border-radius: var(--radius-md);
    padding: 1rem;
    margin-bottom: 1.25rem;
    display: none;
}
.google-connected.visible {
    display: block;
}
.google-connected p {
    color: var(--accent-green);
    font-size: 0.9rem;
    margin: 0;
}
.google-connected a {
    font-size: 0.8rem;
    color: var(--text-muted);
}
.google-connected a:hover {
    color: var(--text-light);
}

/* ----------------------------------------
   16. Review Section
   ---------------------------------------- */
.review-section {
    background: var(--bg-dark);
    border-radius: var(--radius-md);
    padding: 1.25rem;
    margin-bottom: 1.5rem;
    border: 1px solid rgba(255,255,255,0.04);
}
.review-header {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 0.75rem;
    padding-bottom: 0.75rem;
    border-bottom: 1px solid rgba(255,255,255,0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.review-header .edit-link {
    font-size: 0.8rem;
    color: var(--accent-green);
    font-weight: 500;
    cursor: pointer;
    background: none;
    border: none;
    font-family: inherit;
    padding: 0;
}
.review-header .edit-link:hover {
    text-decoration: underline;
}
.review-row {
    display: flex;
    justify-content: space-between;
    padding: 0.5rem 0;
    font-size: 0.9rem;
}
.review-row + .review-row {
    border-top: 1px solid rgba(255,255,255,0.04);
}
.review-row .label {
    color: var(--text-muted);
}
.review-row .value {
    font-weight: 500;
    text-align: right;
}
.review-total {
    background: var(--accent-green);
    color: white;
    padding: 1rem 1.25rem;
    border-radius: var(--radius-md);
    margin-top: 1rem;
    text-align: center;
}
.review-total .label {
    font-size: 0.85rem;
    opacity: 0.9;
}
.review-total .price {
    font-size: 1.5rem;
    font-weight: 700;
}
.review-nights-breakdown {
    margin: 1rem 0;
}
.review-nights-breakdown .breakdown-row {
    display: flex;
    justify-content: space-between;
    padding: 0.4rem 0;
    font-size: 0.85rem;
    color: var(--text-muted);
}
.review-nights-breakdown .breakdown-row:last-child {
    border-top: 1px solid rgba(255,255,255,0.08);
    padding-top: 0.6rem;
    margin-top: 0.2rem;
    color: var(--text-light);
    font-weight: 600;
}
.policy-text {
    font-size: 0.8rem;
    color: var(--text-muted);
    margin: 1rem 0;
    line-height: 1.6;
    padding: 0.75rem 1rem;
    background: rgba(212, 165, 116, 0.08);
    border-left: 3px solid var(--accent-gold);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
}
.policy-text a {
    color: var(--accent-gold);
}

/* ----------------------------------------
   17. Buttons
   ---------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    background: var(--accent-green);
    color: white;
    padding: 0.85rem 1.5rem;
    border-radius: var(--radius-md);
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    border: none;
    font-family: inherit;
    transition: background var(--transition-fast), transform var(--transition-fast), box-shadow var(--transition-fast);
    text-align: center;
    line-height: 1.4;
}
.btn:hover {
    background: #43A047;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(76, 175, 80, 0.3);
}
.btn:active {
    transform: translateY(0);
}
.btn:disabled {
    background: rgba(255,255,255,0.1);
    color: var(--text-muted);
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}
.btn-secondary {
    background: rgba(255,255,255,0.08);
    color: var(--text-light);
}
.btn-secondary:hover {
    background: rgba(255,255,255,0.15);
    box-shadow: none;
}
.btn-row {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.25rem;
}
.btn-row .btn {
    flex: 1;
}
.btn .spinner {
    display: inline-block;
    width: 16px;
    height: 16px;
    border: 2px solid rgba(255,255,255,0.25);
    border-top-color: white;
    border-radius: 50%;
    animation: spin 0.7s linear infinite;
}

/* ----------------------------------------
   18. Confirmation Page
   ---------------------------------------- */
.confirmation-page {
    min-height: 100vh;
    background: var(--bg-dark);
    padding: 2rem 1rem;
    display: flex;
    flex-direction: column;
    align-items: center;
}
.confirmation-card {
    max-width: 560px;
    width: 100%;
    margin: 0 auto;
}
.confirmation-header {
    background: linear-gradient(135deg, #1B5E20 0%, #2E7D32 100%);
    padding: 2rem 2rem 1.5rem;
    text-align: center;
    border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    color: white;
}
.confirmation-header h1 {
    font-size: 1.5rem;
    margin-bottom: 0.25rem;
}
.confirmation-header p {
    color: #A5D6A7;
    font-size: 0.95rem;
}
.confirmation-body {
    background: var(--bg-card);
    padding: 2rem;
    border-radius: 0 0 var(--radius-lg) var(--radius-lg);
    box-shadow: var(--shadow-md);
}
.success-icon {
    width: 72px;
    height: 72px;
    background: var(--accent-green);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: -2.5rem auto 1.5rem;
    font-size: 2rem;
    color: white;
    box-shadow: 0 4px 16px rgba(76, 175, 80, 0.3);
    position: relative;
    z-index: 1;
    animation: successPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}
.booking-ref {
    background: rgba(0,0,0,0.2);
    padding: 1.25rem;
    border-radius: var(--radius-md);
    text-align: center;
    margin-bottom: 1.5rem;
}
.booking-ref p {
    color: var(--text-muted);
    font-size: 0.85rem;
    margin-bottom: 0.35rem;
}
.booking-ref strong {
    font-size: 1.5rem;
    color: var(--accent-green);
    font-family: 'Courier New', monospace;
    letter-spacing: 2px;
}
.confirmation-details {
    border: 1px solid rgba(255,255,255,0.06);
    border-radius: var(--radius-md);
    overflow: hidden;
    margin-bottom: 1.25rem;
}
.confirmation-details .review-row {
    padding: 0.75rem 1rem;
}
.confirmation-details .review-row:nth-child(odd) {
    background: rgba(0,0,0,0.1);
}
.confirmation-body .price-breakdown {
    background: rgba(0,0,0,0.15);
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1.25rem;
}
.confirmation-body .price-breakdown .review-row {
    padding: 0.35rem 0;
    border: none;
}
.confirmation-body .price-breakdown .review-row.total {
    border-top: 1px solid rgba(255,255,255,0.1);
    margin-top: 0.5rem;
    padding-top: 0.75rem;
    font-weight: 700;
    font-size: 1.05rem;
}
.confirmation-info-box {
    padding: 1rem;
    border-radius: var(--radius-md);
    margin-bottom: 1rem;
    border-left: 4px solid;
    font-size: 0.85rem;
    line-height: 1.6;
}
.confirmation-info-box strong {
    display: block;
    margin-bottom: 0.3rem;
    font-size: 0.9rem;
}
.confirmation-info-box.success {
    background: rgba(76, 175, 80, 0.08);
    border-color: var(--accent-green);
    color: #A5D6A7;
}
.confirmation-info-box.location {
    background: rgba(212, 165, 116, 0.08);
    border-color: var(--accent-gold);
    color: var(--accent-gold);
}
.confirmation-info-box.info {
    background: rgba(100, 181, 246, 0.08);
    border-color: #64B5F6;
    color: #64B5F6;
}
.confirmation-info-box.what-to-bring {
    background: rgba(240, 98, 146, 0.08);
    border-color: #F06292;
    color: #F06292;
}
.confirmation-info-box a {
    color: inherit;
    text-decoration: underline;
}
.confirmation-actions {
    display: flex;
    gap: 0.75rem;
    margin-top: 1.5rem;
}
.confirmation-actions .btn {
    flex: 1;
}
.confirmation-footer {
    text-align: center;
    margin-top: 2rem;
    color: var(--text-muted);
    font-size: 0.8rem;
    max-width: 560px;
    width: 100%;
}
.confirmation-footer a {
    color: var(--text-muted);
}
.confirmation-footer a:hover {
    color: var(--text-light);
}

/* ----------------------------------------
   19. Footer
   ---------------------------------------- */
.footer {
    background: rgba(0,0,0,0.25);
    padding: 2rem;
    text-align: center;
    margin-top: 4rem;
}
.footer-links {
    display: flex;
    justify-content: center;
    gap: 2rem;
    margin-bottom: 0.75rem;
    flex-wrap: wrap;
}
.footer-links a {
    color: var(--text-muted);
    font-size: 0.9rem;
}
.footer-links a:hover {
    color: var(--text-light);
    text-decoration: none;
}
.footer-copy {
    color: var(--text-muted);
    font-size: 0.85rem;
}
.footer-meta {
    font-size: 0.65rem;
    color: rgba(155, 184, 176, 0.5);
    margin-top: 6px;
    line-height: 1.5;
}

/* ----------------------------------------
   20. Animations
   ---------------------------------------- */
@keyframes shimmer {
    0% { transform: translateX(-100%); }
    100% { transform: translateX(200%); }
}
@keyframes cardFadeIn {
    from {
        opacity: 0;
        transform: translateY(12px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}
@keyframes overlayFadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}
@keyframes modalSlideUp {
    from {
        opacity: 0;
        transform: translateY(20px) scale(0.98);
    }
    to {
        opacity: 1;
        transform: translateY(0) scale(1);
    }
}
@keyframes stepFadeIn {
    from {
        opacity: 0;
        transform: translateX(8px);
    }
    to {
        opacity: 1;
        transform: translateX(0);
    }
}
@keyframes spin {
    to { transform: rotate(360deg); }
}
@keyframes successPop {
    0% {
        transform: scale(0);
        opacity: 0;
    }
    60% {
        transform: scale(1.15);
    }
    100% {
        transform: scale(1);
        opacity: 1;
    }
}

/* Reduced motion */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* ----------------------------------------
   21. Responsive
   ---------------------------------------- */
@media (max-width: 768px) {
    .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--bg-dark);
        padding: 0.75rem 1.5rem;
        gap: 0.75rem;
        flex-direction: column;
        border-bottom: 1px solid rgba(255,255,255,0.08);
        box-shadow: var(--shadow-md);
    }
    .nav-links.active {
        display: flex;
    }
    .nav-toggle {
        display: block;
    }
    .hero {
        min-height: auto;
        padding: calc(var(--nav-height) + 2rem) 1.25rem 4rem;
        background-attachment: scroll;
    }
    .hero h1 {
        font-size: 2rem;
    }
    .hero p {
        font-size: 1rem;
    }
    .search-wrapper {
        padding: 0 1.25rem;
        margin-top: -3rem;
    }
    .search-box {
        padding: 1rem;
    }
    .search-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
    .guest-counter {
        height: 44px;
    }
    .search-wrapper.compressed .search-grid {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }
    .search-wrapper.compressed .search-box {
        padding: 0.75rem;
    }
    .search-wrapper.compressed .guest-counter {
        height: 36px;
    }
    .room-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
    }
    .room-carousel {
        height: 180px;
    }
    .section-title {
        font-size: 1.5rem;
    }
    .form-row {
        grid-template-columns: 1fr;
    }
    .modal {
        max-width: 100%;
        max-height: 95vh;
        margin: auto 0 0;
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
        animation: modalSlideUpMobile 0.3s ease;
    }
    .modal-overlay {
        align-items: flex-end;
        padding: 0;
    }
    .modal-header {
        border-radius: var(--radius-lg) var(--radius-lg) 0 0;
    }
    .confirmation-body {
        padding: 1.5rem;
    }
    .confirmation-actions {
        flex-direction: column;
    }
}

@keyframes modalSlideUpMobile {
    from {
        opacity: 0;
        transform: translateY(30px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@media (max-width: 480px) {
    .hero h1 {
        font-size: 1.6rem;
    }
    .hero p {
        font-size: 0.9rem;
    }
    .trust-badges {
        gap: 0.75rem;
    }
    .trust-badge {
        font-size: 0.7rem;
    }
    .room-card .room-body {
        padding: 1rem 1.25rem 1.25rem;
    }
    .btn {
        padding: 0.75rem 1rem;
        font-size: 0.9rem;
    }
    .review-row {
        font-size: 0.85rem;
    }
}
