/* ===================================================
   Tour Car Rental — Design System
   Palette: Warm charcoal + amber gold
   Typography: Kantumruy Pro (Khmer) + Outfit (Latin)
   =================================================== */

:root {
    /* Backgrounds — warm charcoal, not blue-black */
    --bg-deep: #111110;
    --bg-base: #1a1a18;
    --bg-elevated: #222220;
    --bg-card: #1e1e1c;

    /* Surfaces */
    --surface: #252523;
    --surface-hover: #2c2c2a;
    --surface-active: #302e28;

    /* Borders — warm undertone */
    --border: #2e2e2b;
    --border-hover: #3d3d38;
    --border-active: #b8860b;

    /* Text — warm whites, not blue-white */
    --text-primary: #ece8e1;
    --text-secondary: #9a9590;
    --text-muted: #6b6660;

    /* Accent — muted amber gold, not neon */
    --accent: #c9a227;
    --accent-soft: rgba(201, 162, 39, 0.12);
    --accent-hover: #d4af37;

    /* Semantic */
    --success: #5a9a68;
    --danger: #c25450;

    /* Radii */
    --radius-xl: 20px;
    --radius-lg: 14px;
    --radius-md: 10px;
    --radius-sm: 6px;

    /* Shadows — warm, grounded */
    --shadow-sm: 0 1px 3px rgba(0, 0, 0, 0.25);
    --shadow-md: 0 4px 12px rgba(0, 0, 0, 0.3);
    --shadow-lg: 0 8px 30px rgba(0, 0, 0, 0.35);

    /* Motion */
    --transition: all 0.4s cubic-bezier(0.16, 1, 0.3, 1);
    --transition-fast: all 0.2s cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out: cubic-bezier(0.16, 1, 0.3, 1);
    --ease-out-back: cubic-bezier(0.34, 1.56, 0.64, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Kantumruy Pro', 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    -webkit-font-smoothing: antialiased;
}

body {
    background-color: var(--bg-deep);
    color: var(--text-primary);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: center;
    overflow-x: hidden;
    padding: 2rem 1rem;
    position: relative;
}

/* Background texture — subtle grain instead of glow blobs */
.ambient-glow {
    display: none;
}

.container {
    width: 100%;
    max-width: 1100px;
    margin: auto 0;
    display: grid;
    grid-template-columns: 1fr 1.1fr;
    gap: 2rem;
    background: var(--bg-base);
    border: 1px solid var(--border);
    border-radius: var(--radius-xl);
    padding: 2.75rem 2.5rem 2.5rem 2.5rem;
    box-shadow: var(--shadow-lg);
    z-index: 1;
    position: relative;
}

/* ================================
   Language Toggle
   ================================ */
.lang-toggle-container {
    position: absolute;
    top: 0.85rem;
    right: 1.25rem;
    z-index: 10;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    background: var(--surface);
    border: 1px solid var(--border);
    color: var(--text-secondary);
    padding: 0.35rem 0.75rem;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.lang-btn:hover {
    background: var(--surface-hover);
    border-color: var(--border-hover);
    color: var(--text-primary);
}

.lang-btn:active {
    transform: scale(0.97);
}

.lang-globe-icon {
    width: 13px;
    height: 13px;
}

/* ================================
   Driver Card
   ================================ */
.driver-card {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.driver-profile-header {
    display: flex;
    align-items: center;
    gap: 1.25rem;
}

.driver-avatar-container {
    position: relative;
    width: 72px;
    height: 72px;
    flex-shrink: 0;
}

.driver-avatar {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
    border: 2px solid var(--border-hover);
}

.status-indicator-dot {
    position: absolute;
    bottom: 2px;
    right: 2px;
    width: 12px;
    height: 12px;
    background-color: var(--success);
    border: 2px solid var(--bg-card);
    border-radius: 50%;
}

.driver-info-meta {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.driver-badge {
    align-self: flex-start;
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    background: var(--accent-soft);
    color: var(--accent);
    padding: 0.15rem 0.45rem;
    border-radius: 4px;
    letter-spacing: 0.5px;
}

.driver-name {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--text-primary);
    line-height: 1.2;
}

.driver-experience {
    font-size: 0.78rem;
    color: var(--text-secondary);
    font-weight: 500;
}

/* ================================
   Contact Grid
   ================================ */
.contacts-list-compact {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 0.5rem;
    border-top: 1px solid var(--border);
    padding-top: 1rem;
    margin-top: 0.15rem;
}

.compact-contact-item {
    display: flex;
    align-items: center;
    gap: 0.6rem;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.55rem 0.75rem;
    text-decoration: none;
    transition: var(--transition);
    cursor: pointer;
}

.compact-contact-item:hover {
    background: var(--surface-hover);
    border-color: var(--border-hover);
}

.compact-contact-item:active {
    transform: scale(0.98);
}

.compact-contact-item .phone-number {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
    transition: var(--transition);
}

.compact-contact-item:hover .phone-number {
    color: var(--accent);
}

/* Telegram contact — very slight warm tint, not neon glow */
.compact-contact-item.telegram-compact {
    background: rgba(0, 136, 204, 0.06);
    border-color: rgba(0, 136, 204, 0.15);
}

.compact-contact-item.telegram-compact:hover {
    background: rgba(0, 136, 204, 0.1);
    border-color: rgba(0, 136, 204, 0.3);
}

.compact-contact-item.telegram-compact .phone-number {
    color: #5bb8de;
}

/* ================================
   Operator Badges
   ================================ */
.operator-badge {
    font-size: 0.6rem;
    font-weight: 700;
    text-transform: uppercase;
    padding: 0.12rem 0.35rem;
    border-radius: 3px;
    letter-spacing: 0.4px;
    flex-shrink: 0;
}

.operator-badge.smart {
    background: rgba(76, 175, 80, 0.12);
    color: #6bba6f;
    border: 1px solid rgba(76, 175, 80, 0.2);
}

.operator-badge.cellcard {
    background: rgba(214, 148, 52, 0.12);
    color: #d69434;
    border: 1px solid rgba(214, 148, 52, 0.2);
}

.operator-badge.metfone {
    background: rgba(198, 78, 78, 0.12);
    color: #c64e4e;
    border: 1px solid rgba(198, 78, 78, 0.2);
}

.operator-badge.telegram {
    background: rgba(0, 136, 204, 0.1);
    color: #5bb8de;
    border: 1px solid rgba(0, 136, 204, 0.18);
}

/* ================================
   Left Panel — Specs & Vehicle
   ================================ */
.visuals-panel {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.specs-hero-container {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
}

.brand-header {
    position: relative;
    text-align: center;
}

.eyebrow {
    font-size: 0.72rem;
    text-transform: uppercase;
    letter-spacing: 2.5px;
    color: var(--accent);
    font-weight: 700;
    margin-bottom: 0.4rem;
    display: inline-block;
}

h1 {
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.15;
    letter-spacing: -0.3px;
    color: var(--text-primary);
}

/* Monthly price badge */
.monthly-price-badge-centered {
    display: flex;
    justify-content: center;
    width: 100%;
    margin-top: 0.65rem;
}

.monthly-price-badge {
    display: inline-flex;
    align-items: baseline;
    gap: 0.25rem;
    background: var(--surface);
    border: 1px solid var(--border);
    padding: 0.3rem 0.85rem;
    border-radius: 20px;
}

.monthly-badge-label {
    font-size: 0.72rem;
    color: var(--text-secondary);
}

.monthly-price-original {
    font-size: 0.85rem;
    color: var(--text-muted);
    text-decoration: line-through;
    margin-left: 0.25rem;
    margin-right: 0.15rem;
}

.monthly-badge-amount {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--accent);
}

.monthly-save-badge {
    font-size: 0.65rem;
    font-weight: 700;
    background: rgba(90, 154, 104, 0.12);
    color: var(--success);
    border: 1px solid rgba(90, 154, 104, 0.25);
    padding: 0.12rem 0.45rem;
    border-radius: 12px;
    margin-left: 0.45rem;
    text-transform: uppercase;
    letter-spacing: 0.01em;
    display: inline-flex;
    align-items: center;
}

.monthly-badge-subtranslate {
    font-size: 0.72rem;
    color: var(--text-secondary);
}

/* ================================
   Benefits List
   ================================ */
.benefits-list {
    list-style: none;
    display: flex;
    flex-direction: column;
    gap: 0.55rem;
    border-top: 1px solid var(--border);
    padding-top: 0.85rem;
}

.benefits-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.78rem;
    font-weight: 500;
    color: var(--text-secondary);
    line-height: 1.35;
}

.benefit-icon {
    width: 13px;
    height: 13px;
    color: var(--success);
    flex-shrink: 0;
}

/* ================================
   Specs Grid
   ================================ */
.specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 0.6rem;
}

.spec-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.85rem 0.5rem;
    text-align: center;
    transition: var(--transition);
    display: flex;
    flex-direction: column;
    align-items: center;
}

.spec-card:hover {
    background: var(--surface-hover);
    border-color: var(--border-hover);
}

.spec-icon-wrapper {
    color: var(--text-muted);
    margin-bottom: 0.4rem;
    display: flex;
    align-items: center;
    justify-content: center;
}

.spec-icon-wrapper svg {
    width: 18px;
    height: 18px;
}

.spec-value {
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--text-primary);
}

.spec-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    margin-top: 0.1rem;
}

/* ================================
   Booking Panel (Right)
   ================================ */
.booking-panel {
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-radius: var(--radius-lg);
    padding: 1.5rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    box-shadow: var(--shadow-sm);
}

.booking-inputs-card {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.section-title {
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: -0.2px;
    color: var(--text-primary);
    position: relative;
    padding-bottom: 0.5rem;
}

.section-title::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 24px;
    height: 2px;
    background: var(--accent);
    border-radius: 1px;
}

/* ================================
   Service Type Selector
   ================================ */
.service-type-selector {
    display: flex;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 3px;
    gap: 3px;
}

.service-type-btn {
    flex: 1;
    background: transparent;
    border: none;
    color: var(--text-muted);
    padding: 0.6rem 0.5rem;
    border-radius: calc(var(--radius-sm) - 2px);
    font-size: 0.78rem;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
}

.service-type-btn:hover {
    color: var(--text-secondary);
    background: rgba(255, 255, 255, 0.02);
}

.service-type-btn.active {
    background: var(--accent);
    color: #111110;
}

/* Service Description Box */
.service-description-box {
    margin-top: 0.6rem;
    padding: 0.6rem 0.85rem;
    background: var(--surface);
    border-left: 2px solid var(--accent);
    border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
    font-size: 0.75rem;
    line-height: 1.45;
    color: var(--text-secondary);
    display: flex;
    align-items: center;
}

/* ================================
   Destination Panel
   ================================ */
.destination-selectors-group {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    transition: opacity 0.2s ease, max-height 0.25s ease;
    max-height: 500px;
    opacity: 1;
    overflow: hidden;
}

.destination-selectors-group.hidden {
    max-height: 0;
    opacity: 0;
    padding: 0;
    margin: 0;
    pointer-events: none;
}

/* ================================
   Form Elements
   ================================ */
.form-group {
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.form-group label {
    font-size: 0.75rem;
    font-weight: 600;
    color: var(--text-secondary);
    letter-spacing: 0.2px;
}

.date-fieldset {
    border: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
}

.date-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.6rem;
}

.input-container {
    position: relative;
}

input[type="date"] {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    box-sizing: border-box;
    -webkit-appearance: none;
    appearance: none;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.7rem 0.8rem;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    outline: none;
    transition: var(--transition);
}

input[type="date"]::-webkit-calendar-picker-indicator {
    filter: invert(0.75);
    cursor: pointer;
    opacity: 0.5;
    transition: var(--transition);
}

input[type="date"]::-webkit-calendar-picker-indicator:hover {
    opacity: 0.8;
}

input:focus {
    border-color: var(--border-active);
    background: var(--surface-hover);
}

/* Duration Badge */
.duration-badge-container {
    display: flex;
    justify-content: flex-end;
    margin-top: -0.15rem;
    transition: var(--transition);
}

.duration-badge-container.hidden {
    opacity: 0;
    transform: translateY(-4px);
    pointer-events: none;
}

.duration-badge {
    background: var(--accent-soft);
    color: var(--accent);
    font-size: 0.68rem;
    font-weight: 700;
    padding: 0.15rem 0.5rem;
    border-radius: 12px;
    border: 1px solid rgba(201, 162, 39, 0.18);
}

/* ================================
   Destination Cards
   ================================ */
.destination-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.5rem;
    margin-top: 0.15rem;
}

.dest-card {
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.75rem;
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    text-align: left;
    cursor: pointer;
    transition: var(--transition);
    position: relative;
    user-select: none;
}

.dest-card:hover {
    background: var(--surface-hover);
    border-color: var(--border-hover);
}

.dest-card:active {
    transform: scale(0.98);
}

.dest-card.active {
    background: var(--surface-active);
    border-color: var(--border-active);
}

.dest-icon {
    color: var(--text-muted);
    margin-bottom: 0.3rem;
    transition: var(--transition);
}

.dest-card.active .dest-icon {
    color: var(--accent);
}

.dest-icon svg {
    width: 16px;
    height: 16px;
}

.dest-details {
    display: flex;
    flex-direction: column;
    gap: 0.05rem;
    margin-bottom: 0.4rem;
}

.dest-name {
    font-size: 0.8rem;
    font-weight: 600;
    color: var(--text-primary);
}

.dest-desc {
    font-size: 0.68rem;
    color: var(--text-muted);
    line-height: 1.2;
}

.dest-price {
    font-size: 0.78rem;
    font-weight: 700;
    color: var(--accent);
    margin-top: auto;
}

/* ================================
   Custom Select Dropdown
   ================================ */
.select-wrapper {
    position: relative;
    width: 100%;
}

.select-wrapper select {
    width: 100%;
    background: var(--surface);
    border: 1px solid var(--border);
    border-radius: var(--radius-sm);
    padding: 0.7rem 0.85rem;
    color: var(--text-primary);
    font-size: 0.85rem;
    font-weight: 500;
    outline: none;
    transition: var(--transition);
    appearance: none;
    -webkit-appearance: none;
    cursor: pointer;
}

.select-wrapper::after {
    content: '';
    position: absolute;
    right: 1rem;
    top: 50%;
    transform: translateY(-30%);
    border: 5px solid transparent;
    border-top-color: var(--text-muted);
    pointer-events: none;
}

.select-wrapper select:focus {
    border-color: var(--border-active);
    background: var(--surface-hover);
}

/* ================================
   Price Summary & CTA
   ================================ */
.summary-details {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid var(--border);
    padding-top: 1.15rem;
    gap: 1rem;
}

.price-display {
    display: flex;
    flex-direction: column;
    gap: 0.2rem;
}

.price-header-row {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.price-label {
    font-size: 0.68rem;
    color: var(--text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.discount-badge-label {
    font-size: 0.58rem;
    background: rgba(90, 154, 104, 0.12);
    color: var(--success);
    border: 1px solid rgba(90, 154, 104, 0.22);
    padding: 0.08rem 0.35rem;
    border-radius: 3px;
    font-weight: 700;
}

.discount-badge-label.hidden {
    display: none;
}

.price-total {
    font-size: 1.65rem;
    font-weight: 700;
    color: var(--text-primary);
    letter-spacing: -0.5px;
    font-variant-numeric: tabular-nums;
}

.price-negotiation-notice {
    font-size: 0.68rem;
    color: var(--accent);
    font-weight: 500;
    line-height: 1.4;
    margin-bottom: 0.35rem;
}

.custom-pricing-hint {
    font-size: 0.62rem;
    color: var(--text-muted);
    line-height: 1.3;
}

/* Book Button — solid fill, no gradient glow */
.btn-book {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 0.55rem;
    background: var(--accent);
    border: none;
    border-radius: var(--radius-sm);
    padding: 0.8rem 1.4rem;
    color: #111110;
    font-weight: 700;
    font-size: 0.88rem;
    cursor: pointer;
    transition: var(--transition);
    text-decoration: none;
    white-space: nowrap;
}

.btn-book:hover {
    background: var(--accent-hover);
    transform: translateY(-1px);
    box-shadow: var(--shadow-md);
}

.btn-book:active {
    transform: translateY(0) scale(0.98);
}

.tg-btn-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
}

/* ================================
   Screen Reader Only
   ================================ */
.sr-only {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    border: 0;
}

/* ================================
   Responsive
   ================================ */
@media (max-width: 960px) {
    .container {
        padding: 2.5rem 2rem 2rem 2rem;
        gap: 1.5rem;
    }

    h1 {
        font-size: 1.85rem;
    }
}

@media (max-width: 820px) {
    body {
        padding: 0.75rem;
    }

    .container {
        grid-template-columns: 1fr;
        padding: 3rem 1.25rem 1.25rem 1.25rem;
        gap: 1.25rem;
        max-width: 560px;
        margin: 0 auto;
    }

    .visuals-panel {
        text-align: left;
        align-items: stretch;
        gap: 1.25rem;
    }

    .price-badge-floating {
        justify-content: flex-start;
    }

    .specs-grid {
        width: 100%;
    }
}

@media (max-width: 480px) {
    body {
        padding: 0;
    }

    .container {
        padding: 3rem 1rem 1rem 1rem;
        gap: 1rem;
        border-radius: var(--radius-lg);
        border-left: none;
        border-right: none;
    }

    .visuals-panel {
        gap: 0.85rem;
    }

    .driver-avatar-container {
        width: 64px;
        height: 64px;
    }

    .driver-name {
        font-size: 1.1rem;
    }

    h1 {
        font-size: 1.6rem;
    }

    .specs-grid {
        gap: 0.35rem;
    }

    .spec-card {
        padding: 0.65rem 0.35rem;
    }

    .spec-icon-wrapper svg {
        width: 16px;
        height: 16px;
    }

    .spec-value {
        font-size: 0.75rem;
    }

    .spec-label {
        font-size: 0.62rem;
    }

    .contacts-list-compact {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }

    .compact-contact-item {
        padding: 0.55rem 0.75rem;
    }

    .booking-panel {
        padding: 1.15rem 1rem;
        gap: 1rem;
    }

    .date-row {
        grid-template-columns: 1fr;
        gap: 0.5rem;
    }

    .destination-grid {
        grid-template-columns: 1fr;
        gap: 0.4rem;
    }

    .dest-card {
        flex-direction: row;
        align-items: center;
        padding: 0.65rem 0.85rem;
        gap: 0.65rem;
        width: 100%;
    }

    .dest-icon {
        margin-bottom: 0;
    }

    .dest-details {
        margin-bottom: 0;
        flex: 1;
    }

    .dest-price {
        margin-top: 0;
        margin-left: auto;
    }

    .summary-details {
        flex-direction: column;
        align-items: stretch;
        gap: 0.85rem;
    }

    .price-display {
        align-items: center;
    }

    .btn-book {
        width: 100%;
        padding: 0.8rem;
    }
}

/* ===================================================
   Apple-Style Animations & Scroll Interactions
   =================================================== */

/* Reveal Entrance Transition */
.reveal {
    opacity: 0;
    transform: translateY(20px) scale(0.98);
    transition: opacity 0.8s cubic-bezier(0.16, 1, 0.3, 1), transform 0.8s cubic-bezier(0.16, 1, 0.3, 1);
}

.reveal.reveal-active {
    opacity: 1;
    transform: translateY(0) scale(1);
}

/* Staggered Delay Utilities */
.stagger-1 {
    transition-delay: 0.05s;
}

.stagger-2 {
    transition-delay: 0.1s;
}

.stagger-3 {
    transition-delay: 0.15s;
}

.stagger-4 {
    transition-delay: 0.2s;
}

.stagger-5 {
    transition-delay: 0.25s;
}

/* Tactile Micro-Interactions */
.spec-card,
.dest-card,
.compact-contact-item,
.service-type-btn,
.btn-book,
.lang-btn {
    transition: transform 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        background-color 0.3s ease,
        border-color 0.3s ease,
        box-shadow 0.4s cubic-bezier(0.16, 1, 0.3, 1),
        color 0.3s ease;
}

.spec-card:hover {
    transform: translateY(-4px) scale(1.02);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    border-color: var(--border-active) !important;
}

.spec-card:active {
    transform: translateY(-2px) scale(0.97);
}

.dest-card:hover {
    transform: translateY(-3px) scale(1.01);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    border-color: var(--border-hover);
}

.dest-card:active {
    transform: translateY(0) scale(0.97);
}

.dest-card.active {
    transform: translateY(0) scale(1);
    box-shadow: inset 0 0 0 1px var(--border-active);
}

.compact-contact-item:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.compact-contact-item:active {
    transform: translateY(0) scale(0.97);
}

.service-type-btn:active {
    transform: scale(0.97);
}

/* Smooth collapsing destinations transition */
.destination-selectors-group {
    transition: opacity 0.4s ease,
        max-height 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        margin 0.5s cubic-bezier(0.16, 1, 0.3, 1),
        padding 0.5s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Price Pop Animation */
@keyframes pricePop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.08);
    }

    100% {
        transform: scale(1);
    }
}

.price-pop {
    animation: pricePop 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    display: inline-block;
}

/* Badge and Message Update Animations */
@keyframes badgePop {
    0% {
        transform: scale(1);
    }

    50% {
        transform: scale(1.03);
        border-color: var(--border-active);
    }

    100% {
        transform: scale(1);
    }
}

.badge-pop {
    animation: badgePop 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

@keyframes msgIncoming {
    0% {
        transform: scale(0.95);
        opacity: 0.85;
    }

    50% {
        transform: scale(1.015);
    }

    100% {
        transform: scale(1);
        opacity: 1;
    }
}

.msg-pop {
    animation: msgIncoming 0.35s cubic-bezier(0.34, 1.56, 0.64, 1);
    transform-origin: left top;
}

/* Dynamic Route Info Badge */
.route-info-badge {
    display: flex;
    flex-direction: column;
    align-items: stretch;
    background: var(--bg-card);
    border: 1px solid var(--border);
    border-left: 3px solid var(--accent);
    color: var(--text-primary);
    padding: 0.65rem 0.85rem;
    border-radius: var(--radius-sm);
    margin-top: 0.35rem;
    margin-bottom: 0.15rem;
    transition: var(--transition);
    width: 100%;
}

.route-info-content {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    font-size: 0.78rem;
    font-weight: 500;
}

.route-road-track {
    position: relative;
    height: 8px;
    background: #252523;
    /* Dark asphalt road color */
    margin-top: 0.75rem;
    margin-bottom: 0;
    width: 100%;
    border-radius: 4px;
    border: 1px solid var(--border);
}

/* Dashed middle lane divider line */
.route-road-track::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    height: 1px;
    transform: translateY(-50%);
    background: repeating-linear-gradient(90deg, rgba(236, 232, 225, 0.3) 0px, rgba(236, 232, 225, 0.3) 5px, transparent 5px, transparent 10px);
}

.route-car-emoji {
    position: absolute;
    top: -6px;
    left: 0%;
    font-size: 0.75rem;
    line-height: 1;
    transform: scaleX(-1);
    /* Flip horizontally to face right */
    z-index: 2;
    transition: left 3.2s cubic-bezier(0.25, 1, 0.5, 1);
}

@keyframes carDrive {
    0% {
        left: 0%;
    }

    100% {
        left: calc(100% - 16px);
    }
}

.car-drive {
    animation: carDrive 3.2s cubic-bezier(0.25, 1, 0.5, 1) forwards;
}

.route-info-badge.hidden {
    display: none !important;
}

/* Telegram Preview Container Mockup */
.telegram-preview-container {
    background: #182533;
    border: 1px solid #233446;
    border-radius: var(--radius-lg);
    overflow: hidden;
    margin-top: 1.25rem;
    margin-bottom: 1.25rem;
    box-shadow: var(--shadow-md);
    display: flex;
    flex-direction: column;
}

.telegram-preview-header {
    background: #202d3c;
    padding: 0.55rem 0.85rem;
    display: flex;
    align-items: center;
    gap: 0.55rem;
    border-bottom: 1px solid #16222f;
}

.telegram-avatar-mini {
    width: 26px;
    height: 26px;
    border-radius: 50%;
    position: relative;
    flex-shrink: 0;
}

.telegram-avatar-mini img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.avatar-status-dot {
    width: 7px;
    height: 7px;
    background: #4cb050;
    border: 1.5px solid #202d3c;
    border-radius: 50%;
    position: absolute;
    bottom: 0;
    right: 0;
}

.telegram-header-info {
    display: flex;
    flex-direction: column;
    line-height: 1.2;
}

.telegram-user-name {
    font-size: 0.75rem;
    font-weight: 600;
    color: #ffffff;
}

.telegram-user-status {
    font-size: 0.6rem;
    color: #7994a5;
}

.telegram-chat-body {
    background: #0f1721;
    padding: 0.85rem;
    position: relative;
}

.telegram-bubble-wrapper {
    display: flex;
    justify-content: flex-start;
}

.telegram-bubble {
    background: #182533;
    border: 1px solid #243547;
    color: #f5f5f5;
    padding: 0.65rem 0.75rem;
    border-radius: 0px 12px 12px 12px;
    max-width: 100%;
    position: relative;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.15);
}

.telegram-bubble p {
    font-size: 0.7rem;
    line-height: 1.4;
    margin: 0;
    color: #e5edf5;
}

.telegram-bubble-time {
    display: block;
    text-align: right;
    font-size: 0.55rem;
    color: #657e93;
    margin-top: 0.2rem;
}

/* Customer Memories & Tour Gallery */
.gallery-section {
    width: 100%;
    max-width: 1100px;
    margin: 3.5rem auto 1.5rem auto;
    z-index: 1;
    position: relative;
}

.gallery-title {
    font-size: 1.4rem;
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    margin-bottom: 0.35rem;
}

.gallery-subtitle {
    font-size: 0.82rem;
    color: var(--text-secondary);
    text-align: center;
    margin-bottom: 1.75rem;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
}

.gallery-card {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    aspect-ratio: 1 / 1;
    border: 1px solid var(--border);
    cursor: pointer;
    transition: var(--transition);
    background: var(--bg-card);
}

.gallery-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.gallery-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 0.75rem 0.85rem;
    background: linear-gradient(to top, rgba(17, 17, 16, 0.95) 0%, rgba(17, 17, 16, 0) 100%);
    display: flex;
    align-items: flex-end;
}

.gallery-card-tag {
    font-size: 0.75rem;
    font-weight: 600;
    color: #ffffff;
}

.gallery-card:hover {
    transform: translateY(-4px);
    border-color: var(--border-active);
    box-shadow: var(--shadow-lg);
}

.gallery-card:hover img {
    transform: scale(1.06);
}

/* Responsive configurations for gallery */
@media (max-width: 820px) {
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.85rem;
    }

    .gallery-section {
        margin-top: 2.5rem;
        padding: 0 0.5rem;
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

/* Accessibility: Respect preferences for reduced motion */
@media (prefers-reduced-motion: reduce) {
    .reveal {
        opacity: 1 !important;
        transform: none !important;
        transition: none !important;
    }

    .spec-card:hover,
    .dest-card:hover,
    .compact-contact-item:hover {
        transform: none !important;
        box-shadow: none !important;
    }

    .price-pop {
        animation: none !important;
    }

    * {
        transition-duration: 0s !important;
        animation-duration: 0s !important;
        scroll-behavior: auto !important;
    }
}