/* --- CSS Custom Properties & Color Palette --- */
:root {
    /* Main Design Tokens */
    --color-dark-blue: #001BB7;
    --color-primary-blue: #0046FF;
    --color-accent-orange: #FF8040;
    --color-beige-bg: #F5F1DC;
    
    --color-accent-red: #FF5A5F;
    --color-accent-green: #28a745;
    --color-gray-bg: var(--color-beige-bg);
    --color-gray-border: #E5E9F0;
    
    /* Variables Mapping */
    --color-dark: #1E293B;
    --color-primary: var(--color-primary-blue);
    --color-secondary: var(--color-accent-orange);
    --color-mint: #AFDDFF;
    
    /* Utility Colors */
    --color-white: #FFFFFF;
    --color-gray-light: var(--color-beige-bg);
    --color-gray-text: #8E9AAF;
    --color-danger: var(--color-accent-red);
    --color-star: var(--color-accent-orange);

    /* Theme Design Tokens */
    --app-bg: var(--color-white);
    --surface-bg: var(--color-white); 
    --text-main: var(--color-dark);
    --text-sub: var(--color-gray-text);
    --card-bg: var(--color-white);
    --card-content-bg: var(--color-white);
    --border-glass: rgba(11, 16, 33, 0.1);
    
    /* Typography & Shadows */
    --font-family: 'Cairo', sans-serif;
    --shadow-soft: 0 4px 12px rgba(11, 16, 33, 0.08);
    --shadow-medium: 0 8px 24px rgba(11, 16, 33, 0.12);
    --border-radius-lg: 32px;
    --border-radius-md: 20px;
    --border-radius-sm: 8px;
    --transition-fast: 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    --transition-bounce: 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
    --transition-smooth: 0.5s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    --shadow-glow-blue: 0 8px 24px rgba(0, 70, 255, 0.25);
    --shadow-glow-orange: 0 8px 24px rgba(255, 128, 64, 0.25);
    --shadow-lift: 0 16px 40px rgba(11, 16, 33, 0.16);
}

/* --- Base Reset --- */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-family);
    background-color: var(--color-dark-blue); /* Dark background for desktop contrast */
    color: var(--text-main);
    min-height: 100vh;
    display: flex;
    justify-content: center;
    transition: background-color var(--transition-fast);
}

button {
    font-family: var(--font-family);
    border: none;
    background: none;
    cursor: pointer;
    outline: none;
}

a {
    text-decoration: none;
    color: inherit;
}

input, select {
    font-family: var(--font-family);
    border: none;
    outline: none;
    background: transparent;
}

/* --- Mobile App Container --- */
.app-container {
    width: 100%;
    height: 100vh;
    background: #ffffff;
    background-image: 
        radial-gradient(at 0% 0%, rgba(0, 70, 255, 0.05) 0px, transparent 50%),
        radial-gradient(at 100% 100%, rgba(255, 128, 64, 0.05) 0px, transparent 50%);
    position: relative;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

/* Elegant Grid Pattern */
.app-container::before {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: radial-gradient(rgba(0, 27, 183, 0.03) 1px, transparent 1px);
    background-size: 24px 24px;
    pointer-events: none;
    z-index: 0;
}



/* --- Main Scrollable Area --- */
.main-content {
    flex: 1;
    overflow-y: auto;
    padding: 0 20px;
    scroll-behavior: smooth;
    padding-top: 10px;
}
.main-content::-webkit-scrollbar {
    display: none;
}

/* --- Header --- */
.header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 18px;
    margin: 12px 16px;
    background-color: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    position: sticky;
    top: 12px;
    z-index: 100;
    border-radius: 24px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.header-right, .header-left, .logo-header {
    display: flex;
    align-items: center;
    flex: 1;
}

.header-left {
    justify-content: flex-end;
}

.logo-header {
    justify-content: center;
    gap: 10px;
    color: var(--color-primary);
}

.logo-header i {
    font-size: 24px;
}

.logo-header span {
    font-size: 20px;
    font-weight: 800;
    color: var(--text-main);
    letter-spacing: -0.5px;
}

/* Glassy Buttons */
.header-search-btn, .notification-btn {
    border: 1px solid rgba(255, 255, 255, 0.5);
    background-color: rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}


.header-search-btn, .notification-btn, .theme-toggle-btn {
    width: 44px;
    height: 44px;
    background-color: var(--surface-bg);
    color: var(--text-main);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    box-shadow: var(--shadow-soft);
    position: relative;
    border: 1px solid rgba(255, 255, 255, 0.4);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    transition: var(--transition-fast);
}

.header-search-btn:active, .notification-btn:active {
    transform: scale(0.9);
    background-color: var(--color-mint);
}

.notification-btn {
    width: 44px;
    height: 44px;
    background-color: var(--color-white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    color: var(--color-dark);
    box-shadow: var(--shadow-soft);
    position: relative;
    transition: var(--transition-fast);
}

.notification-btn:hover {
    background-color: var(--color-mint);
}

.notification-badge {
    position: absolute;
    top: 10px;
    right: 12px;
    width: 8px;
    height: 8px;
    background-color: var(--color-danger);
    border-radius: 50%;
    border: 2px solid var(--color-white);
}

/* --- Ad Slider Section --- */
.ads-section {
    margin-left: -20px; /* Counter main-content padding */
    margin-right: -20px;
    margin-bottom: 32px;
    overflow: hidden;
}

.ads-swiper {
    width: 100%;
    height: 220px; /* Slightly taller for more impact */
    border-radius: 0; /* Full bleed means no rounded corners on sides */
    box-shadow: none; /* Shadow doesn't make sense for full-bleed */
}

.ads-swiper .swiper-slide {
    position: relative;
}

.ads-swiper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ad-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(0deg, rgba(0, 0, 0, 0.8) 0%, transparent 100%);
    color: var(--color-white);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.ad-content h4 {
    font-size: 18px;
    font-weight: 800;
}

.ad-content p {
    font-size: 13px;
    opacity: 0.9;
}

/* Custom Pagination styling */
.ads-swiper .swiper-pagination-bullet {
    background: var(--color-white);
    opacity: 0.5;
    transition: var(--transition-fast);
}

.ads-swiper .swiper-pagination-bullet-active {
    background: var(--color-primary-blue);
    width: 24px; /* Stretching effect for active slide */
    border-radius: 4px;
    opacity: 1;
}

/* --- Search Section --- */
.search-section {
    margin-top: 16px;
}

.search-title {
    font-size: 22px;
    font-weight: 800;
    margin-bottom: 16px;
    color: var(--color-dark);
    line-height: 1.4;
}

.provinces-container {
    margin-top: 10px;
    margin-left: -20px; /* Counter main-content padding */
    margin-right: -20px;
    overflow: hidden; /* Clip contents that exceed app container */
}

.provinces-grid {
    display: flex;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 12px;
    padding: 10px 20px; /* Restore internal spacing */
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
    -webkit-overflow-scrolling: touch; /* Smooth scroll for iOS */
    scroll-snap-type: x proximity;
}

.provinces-grid::-webkit-scrollbar {
    display: none; /* Chrome, Safari and Opera */
}

.province-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    transition: var(--transition-fast);
    padding: 8px;
    border-radius: var(--border-radius-md);
    min-width: 72px;
    flex-shrink: 0;
    scroll-snap-align: start;
}

.province-item:active {
    background-color: var(--color-mint);
    transform: scale(0.95);
}

.province-icon {
    width: 54px;
    height: 54px;
    background-color: var(--color-white);
    color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 20px;
    box-shadow: var(--shadow-soft);
    border: 2px solid transparent;
    transition: var(--transition-fast);
}

.province-item:hover .province-icon {
    border-color: var(--color-secondary);
    color: var(--color-secondary);
}

.province-item span {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-dark);
    text-align: center;
    white-space: nowrap;
}

.province-item.active .province-icon {
    background-color: var(--color-primary);
    color: var(--color-white);
    border-color: var(--color-primary);
    transform: translateY(-4px);
    box-shadow: var(--shadow-medium);
}

.province-item.active span {
    color: var(--color-primary);
}


/* --- Categories Section --- */
.categories-section .section-header {
    display: flex;
    justify-content: center; /* Center the title */
    align-items: center;
    margin-bottom: 20px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
}

.section-header h3 {
    font-size: 18px;
    font-weight: 800;
}

/* --- Filter Bar --- */
.filter-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    padding: 4px 0;
}

.filter-toggle-btn {
    width: 42px;
    height: 42px;
    border-radius: 14px;
    border: 1.5px solid var(--color-gray-border);
    background: var(--color-white);
    color: var(--color-gray-text);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    flex-shrink: 0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1),
                border-color 0.25s ease, background-color 0.25s ease,
                box-shadow 0.25s ease, color 0.25s ease;
}
.filter-toggle-btn:hover {
    transform: scale(1.1) rotate(15deg);
    border-color: var(--color-primary-blue);
    color: var(--color-primary-blue);
    background: #eef2ff;
    box-shadow: 0 4px 14px rgba(0, 70, 255, 0.18);
}
.filter-toggle-btn:active {
    transform: scale(0.92);
}

.filter-shortcuts {
    display: flex;
    gap: 8px;
    overflow: visible;
    flex: 1;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 4px 2px;
}
.filter-shortcuts::-webkit-scrollbar { display: none; }

.filter-shortcut {
    padding: 9px 18px;
    border-radius: 24px;
    border: 1.5px solid var(--color-gray-border);
    background: var(--color-white);
    font-family: var(--font-family);
    font-size: 12px;
    font-weight: 800;
    color: var(--color-gray-text);
    cursor: pointer;
    white-space: nowrap;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    letter-spacing: 0.2px;
    transition: transform 0.35s cubic-bezier(0.34, 1.56, 0.64, 1),
                border-color 0.25s ease, background-color 0.25s ease,
                box-shadow 0.25s ease, color 0.25s ease;
}
.filter-shortcut:hover {
    transform: scale(1.06);
    border-color: var(--color-primary-blue);
    color: var(--color-primary-blue);
    box-shadow: 0 4px 14px rgba(0, 70, 255, 0.16);
}
.filter-shortcut:active {
    transform: scale(0.93);
    box-shadow: none;
}
.filter-shortcut.active {
    background-color: var(--color-primary-blue);
    border-color: var(--color-primary-blue);
    color: var(--color-white);
    transform: scale(1.06);
    box-shadow: 0 4px 16px rgba(0, 70, 255, 0.30);
    font-weight: 800;
}

.view-all {
    font-size: 14px;
    color: var(--color-secondary);
    font-weight: 700;
}

.categories-list {
    display: flex;
    justify-content: center; /* Center the items */
    gap: 25px;
    padding: 24px;
    background-color: var(--color-dark-blue);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-medium);
    margin: 0 auto 30px;
    max-width: 500px;
    transition: var(--transition-fast);
}

.categories-list::-webkit-scrollbar {
    display: none;
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 10px;
    min-width: 80px;
    transition: var(--transition-fast);
}

.category-icon {
    width: 64px;
    height: 64px;
    background-color: rgba(255, 255, 255, 0.1);
    border-radius: var(--border-radius-md);
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 24px;
    color: var(--color-white);
    transition: var(--transition-fast);
}

.category-item span {
    font-size: 14px;
    font-weight: 700;
    color: rgba(255, 255, 255, 0.6);
}

.category-item.active .category-icon {
    background-color: var(--color-white);
    color: var(--color-dark-blue);
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}

.category-item.active span {
    color: var(--color-white);
}

/* --- Top Rated Section / Cards --- */
.top-rated-section {
    margin-top: 28px;
}

.slider-arrows {
    display: flex;
    gap: 12px;
}

.slider-arrow {
    width: 32px;
    height: 32px;
    background-color: var(--color-white);
    border: 1px solid var(--color-gray-border);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-dark);
    font-size: 14px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-fast);
}

.slider-arrow:active {
    background-color: var(--color-mint);
    transform: scale(0.95);
}

.cards-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cards-container.horizontal-scroll {
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    gap: 16px;
    padding-bottom: 20px;
    padding-right: 20px; /* Counter margin to show start edge */
    padding-left: 20px;  /* For cut off at left edge */
    margin-right: -20px; /* Expand out of main-content padding */
    scroll-snap-type: x mandatory;
    scroll-padding: 0 20px;
}

.cards-container.horizontal-scroll > * {
    scroll-snap-align: start;
}

.cards-container.horizontal-scroll::-webkit-scrollbar {
    display: none;
}

/* --- Featured Card (Horizontal Scroll) --- */
.featured-card {
    background-color: var(--app-bg);
    border-radius: var(--border-radius-md);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    min-width: 240px;
    width: 240px;
    flex-shrink: 0;
    scroll-snap-align: start;
    border: 1px solid var(--border-glass);
    transition: var(--transition-fast);
}

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

.featured-card .card-image-wrapper {
    position: relative;
    width: 100%;
    height: 160px;
}

.featured-card .card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--border-radius-md) var(--border-radius-md) 0 0;
}

.featured-card .rating-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: rgba(255, 255, 255, 0.95);
    padding: 4px 8px;
    border-radius: 12px;
    font-size: 12px;
    font-weight: 800;
    color: var(--color-dark);
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.featured-card .rating-badge i {
    color: #FFC107;
    font-size: 10px;
}

.featured-card .card-content {
    padding: 12px 14px;
    background-color: transparent;
    border-radius: 0;
    margin-top: 0;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none;
    border: none;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.featured-card .property-title {
    font-size: 16px;
    font-weight: 800;
    color: var(--color-dark);
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.featured-card .property-type {
    font-size: 13px;
    color: var(--color-gray-text);
    font-weight: 600;
}

.featured-card .property-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
    margin-top: 4px;
}

.featured-card .price-value {
    font-size: 16px;
    font-weight: 800;
    color: var(--color-dark);
}

.featured-card .currency {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-gray-text);
}

/* --- Regular Property Card (Favorites, Search, etc.) --- */
.property-card {
    background-color: var(--card-bg);
    border-radius: var(--border-radius-lg);
    overflow: hidden;
    position: relative;
    margin-bottom: 24px;
    box-shadow: var(--shadow-soft);
    transition: var(--transition-fast);
    border: 1px solid var(--color-gray-border);
}

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

.property-card .card-image-wrapper {
    position: relative;
    width: 100%;
    height: 220px;
}

.property-card .card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.favorite-btn {
    position: absolute;
    top: 12px;
    left: 12px;
    width: 36px;
    height: 36px;
    background-color: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    color: var(--color-gray-text);
    backdrop-filter: blur(4px);
    transition: var(--transition-fast);
}

.favorite-btn.active {
    color: var(--color-danger);
}

.badge {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 800;
    color: var(--color-white);
    backdrop-filter: blur(4px);
}

.farm-badge { background-color: var(--color-primary); }
.hotel-badge { background-color: var(--color-secondary); }
.apt-badge { background-color: var(--color-gray-text); }

.vip-badge {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: linear-gradient(135deg, #7c3aed, #4f46e5);
    color: white;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 800;
    display: flex;
    align-items: center;
    gap: 6px;
    box-shadow: 0 4px 12px rgba(124, 58, 237, 0.3);
    z-index: 5;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.vip-badge i {
    font-size: 10px;
}

.card-content {
    padding: 24px;
    background-color: rgba(255, 255, 255, 0.7); /* Translucent content area */
    border-radius: 32px;
    margin-top: -40px; /* Deeper overlap for frosty effect */
    position: relative;
    backdrop-filter: blur(24px);
    -webkit-backdrop-filter: blur(24px);
    box-shadow: 0 -4px 24px rgba(255, 255, 255, 0.3); /* Soft inner glow */
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-bottom: none;
    border-left: none;
    border-right: none;
}

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.property-card .card-content {
    padding: 24px 20px;
    background-color: rgba(255, 255, 255, 0.85);
    border-radius: 32px;
    margin: -40px 16px 16px;
    position: relative;
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    box-shadow: var(--shadow-medium);
    border: 1px solid rgba(255, 255, 255, 0.4);
}

.property-title {
    font-size: 19px;
    font-weight: 800;
    color: var(--color-dark);
}

.rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-dark);
}

.rating i {
    color: var(--color-star);
    font-size: 12px;
}

.property-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--color-gray-text);
    margin-bottom: 16px;
}

.card-footer-row {
    display: flex;
    justify-content: flex-end; /* Pushes price to the left in RTL */
    align-items: center;
}

.property-price {
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.price-value {
    font-size: 22px;
    font-weight: 800;
    color: var(--color-dark); /* Using dark color for premium strong contrast */
}

.currency {
    font-size: 12px;
    font-weight: 700;
    color: var(--color-gray-text);
}

/* --- Reusable Components --- */
.btn-primary {
    background-color: var(--color-primary);
    color: var(--color-white);
    font-weight: 700;
    border-radius: var(--border-radius-md);
    transition: var(--transition-fast);
}

.btn-primary:hover {
    background-color: var(--color-secondary);
    box-shadow: var(--shadow-medium);
}

.bottom-spacer {
    height: 100px;
}

/* --- Suggestions Grid (Two Columns) --- */
.grid-2-cols {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    padding-bottom: 20px;
}

.grid-2-cols .property-card {
    margin-bottom: 0;
}

.grid-2-cols .property-card .card-image-wrapper {
    height: 130px;
}

.grid-2-cols .property-card .card-content {
    padding: 12px 10px;
    margin: -16px 8px 8px;
    border-radius: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.grid-2-cols .property-title {
    font-size: 13px;
    font-weight: 800;
}

.grid-2-cols .property-type {
    display: none;
}

.grid-2-cols .property-location {
    font-size: 11px;
    margin-bottom: 8px;
}

.grid-2-cols .price-value {
    font-size: 15px;
}

.grid-2-cols .currency {
    font-size: 10px;
}

.grid-2-cols .badge {
    font-size: 10px;
    padding: 4px 8px;
    top: 8px;
    right: 8px;
}

.grid-2-cols .favorite-btn {
    width: 28px;
    height: 28px;
    top: 8px;
    left: 8px;
    font-size: 12px;
}

/* --- SPA Views --- */
.page-view {
    display: none;
    animation: fadeIn 0.4s ease forwards;
    width: 100%;
    box-sizing: border-box;
}

.page-view.active {
    display: block;
    width: 100%;
}

.page-header {
    padding: 24px 0 16px;
    margin-bottom: 16px;
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.page-header h2 {
    font-size: 24px;
    font-weight: 800;
    color: var(--color-dark);
}

.page-header .subtitle {
    font-size: 14px;
    color: var(--color-gray-text);
    margin-top: 4px;
}

/* Bookings Tabs */
.tabs-container {
    display: flex;
    background-color: var(--color-gray-bg);
    border-radius: 12px;
    padding: 4px;
    margin-bottom: 24px;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.tab-btn {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-gray-text);
    transition: var(--transition-fast);
}

.tab-btn.active {
    background-color: var(--color-white);
    color: var(--color-dark-blue);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Bookings List */
.bookings-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.booking-card {
    background-color: var(--color-white);
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.06);
    border: 1px solid var(--color-gray-border);
    transition: transform 0.2s ease;
}

.booking-status-banner {
    padding: 10px 16px;
    font-size: 12px;
    font-weight: 700;
    color: var(--color-white);
    display: flex;
    justify-content: space-between;
}

.status-cancelled { background-color: var(--color-accent-red); }
.status-confirmed { background-color: var(--color-accent-green); }

.booking-info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-bottom: 1px solid var(--color-gray-border);
}

.grid-item {
    padding: 16px;
    border-bottom: 1px solid var(--color-gray-border);
    border-left: 1px solid var(--color-gray-border);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.grid-item:nth-child(even) { border-left: none; }
.grid-item:nth-child(n+3) { border-bottom: none; }

.grid-label {
    font-size: 11px;
    color: var(--color-gray-text);
    font-weight: 600;
}

.grid-value {
    font-size: 14px;
    color: var(--color-dark-blue);
    font-weight: 800;
}

.btn-view-details {
    width: 100%;
    padding: 16px;
    background-color: var(--color-dark-blue);
    color: var(--color-white);
    font-size: 14px;
    font-weight: 700;
    text-align: center;
}

/* Favorites Grid */
.fav-grid {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

/* Account Section */
.account-header {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding-top: 32px;
}

.avatar-large {
    width: 96px;
    height: 96px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 40px;
    margin-bottom: 16px;
    box-shadow: var(--shadow-medium);
}

.account-menu {
    display: flex;
    flex-direction: column;
    gap: 24px;
    margin-top: 24px;
}

/* Subpage Header */
.subpage-header {
    display: flex;
    align-items: center;
    gap: 20px;
    padding: 24px 0;
}

.back-btn {
    width: 44px;
    height: 44px;
    background-color: var(--color-white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    color: var(--color-dark);
    box-shadow: var(--shadow-soft);
    transition: var(--transition-fast);
}

.back-btn:hover {
    background-color: var(--color-mint);
    color: var(--color-primary);
}

/* Form Styles */
.form-container {
    background-color: rgba(255, 255, 255, 0.5); /* Glass form */
    padding: 24px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 20px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.form-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.form-group label {
    font-size: 14px;
    font-weight: 700;
    color: var(--color-gray-text);
}

.form-input {
    width: 100%;
    padding: 14px 18px;
    background-color: var(--color-gray-light);
    border-radius: var(--border-radius-md);
    font-size: 15px;
    font-weight: 600;
    color: var(--color-dark);
    border: 2px solid transparent;
    transition: var(--transition-fast);
}

.form-input:focus {
    border-color: var(--color-secondary);
    background-color: var(--color-white);
}

.save-btn {
    margin-top: 10px;
    padding: 16px;
    width: 100%;
}

/* Settings List & Switches */
.settings-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.setting-item {
    background-color: var(--color-white);
    padding: 20px;
    border-radius: var(--border-radius-lg);
    display: flex;
    justify-content: space-between;
    align-items: center;
    box-shadow: var(--shadow-soft);
}

.setting-text h4 {
    font-size: 16px;
    font-weight: 800;
    color: var(--color-dark);
    margin-bottom: 2px;
}

.setting-text p {
    font-size: 13px;
    color: var(--color-gray-text);
}

/* Switch UI */
.switch {
    position: relative;
    display: inline-block;
    width: 52px;
    height: 32px;
}

.switch input {
    opacity: 0;
    width: 0;
    height: 0;
}

.slider {
    position: absolute;
    cursor: pointer;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: var(--color-gray-light);
    transition: .4s;
    border-radius: 34px;
}

.slider:before {
    position: absolute;
    content: "";
    height: 24px;
    width: 24px;
    left: 4px;
    bottom: 4px;
    background-color: white;
    transition: .4s;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

input:checked + .slider {
    background-color: var(--color-primary);
}

input:checked + .slider:before {
    transform: translateX(20px);
}

.menu-section {
    background-color: var(--color-white);
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    overflow: hidden;
}

.menu-title {
    padding: 20px 24px 10px;
    font-size: 14px;
    font-weight: 700;
    color: var(--color-gray-text);
    opacity: 0.8;
}

.menu-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 18px 24px;
    border-bottom: 1px solid rgba(0,0,0,0.03);
    transition: var(--transition-fast);
}

.menu-item:last-child {
    border-bottom: none;
}

.menu-item:hover {
    background-color: #FAFAFA;
}

.menu-item-left {
    display: flex;
    align-items: center;
    gap: 16px;
}

.menu-icon {
    width: 44px;
    height: 44px;
    background-color: var(--color-mint);
    color: var(--color-primary);
    border-radius: 14px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
}

.menu-item-left span {
    font-size: 16px;
    font-weight: 800;
    color: var(--color-dark);
}

.menu-item .fa-chevron-left {
    color: var(--color-gray-text);
    font-size: 14px;
}

.status-upcoming { background-color: rgba(40, 90, 72, 0.1); color: var(--color-mint); }
.status-previous { background-color: #f1f1f1; color: #666; }
.status-cancelled { background-color: rgba(220, 53, 69, 0.1); color: var(--color-danger); }

.logout-btn {
    background-color: rgba(230, 57, 70, 0.1);
    color: var(--color-danger);
    font-size: 15px;
    font-weight: 700;
    padding: 16px;
    border-radius: var(--border-radius-lg);
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-bottom: 24px;
    transition: var(--transition-fast);
}

.logout-btn:hover {
    background-color: rgba(230, 57, 70, 0.15);
}

/* --- Bottom Navigation --- */
.bottom-nav {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 85px;
    background-color: rgba(255, 255, 255, 0.7); /* Glass background */
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.3);
    /* Removed large top radius to allow it to feel "complete" and full-bleed */
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-around;
    align-items: center;
    padding: 0 10px;
    z-index: 20;
}

.nav-items-wrapper {
    display: flex;
    justify-content: space-around;
    align-items: center;
    width: 100%;
    height: 100%;
}

.nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 6px;
    color: var(--color-gray-text);
    transition: var(--transition-fast);
    width: 60px;
    height: 100%;
}

.nav-item i {
    font-size: 22px;
}

.nav-item span {
    font-size: 11px;
    font-weight: 700;
}

.nav-item.active {
    color: var(--color-primary);
}

.nav-item.active i {
    animation: bounce 0.4s ease;
}

@keyframes bounce {
    0% { transform: translateY(0) scale(1); }
    50% { transform: translateY(-6px) scale(1.1); }
    100% { transform: translateY(0) scale(1); }
}

/* For larger desktop/tablet views of the mobile app container */
@media (min-width: 480px) {
    .bottom-nav {
        /* Keep it full width and at the very bottom even on simulated desktop */
        border-radius: 0;
        bottom: 0;
        width: 100%;
        left: 0;
    }
}
/* --- Login Screen --- */
.login-screen {
    min-height: 100%;
    display: flex;
    flex-direction: column;
    padding: 40px 20px;
    background-color: var(--app-bg);
}

.login-header {
    text-align: center;
    margin-bottom: 40px;
}

.logo-large {
    width: 80px;
    height: 80px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 36px;
    margin: 0 auto 20px;
    box-shadow: var(--shadow-medium);
}

.login-header h1 {
    font-size: 26px;
    font-weight: 800;
    color: var(--color-dark);
    margin-bottom: 8px;
}

.login-header p {
    color: var(--color-gray-text);
    font-size: 15px;
}

.login-card {
    background-color: rgba(255, 255, 255, 0.5); /* Glass card */
    padding: 30px 24px;
    border-radius: var(--border-radius-lg);
    box-shadow: var(--shadow-soft);
    display: flex;
    flex-direction: column;
    gap: 24px;
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.2);
}

/* Iraqi Phone Input Specifics */
.phone-input-container {
    display: flex;
    align-items: stretch;
    background-color: var(--color-gray-light);
    border-radius: var(--border-radius-md);
    border: 2px solid transparent;
    overflow: hidden;
    transition: var(--transition-fast);
}

.phone-input-container:focus-within {
    border-color: var(--color-secondary);
    background-color: var(--color-white);
    box-shadow: 0 0 0 4px rgba(64, 138, 113, 0.1);
}

.country-code {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 800;
    font-size: 16px;
    letter-spacing: 0.5px;
}

.phone-input-container input {
    flex: 1;
    padding: 16px;
    font-size: 17px;
    font-weight: 700;
    color: var(--color-dark);
    letter-spacing: 1px;
}

.phone-input-container input::placeholder {
    letter-spacing: normal;
    font-weight: 400;
    color: #a0ada9;
}

.input-hint {
    font-size: 12px;
    color: var(--color-gray-text);
    margin-top: 8px;
    padding: 0 4px;
}

.login-submit-btn {
    padding: 18px;
    font-size: 16px;
    width: 100%;
}

.login-submit-btn:disabled {
    background-color: var(--color-gray-text);
    opacity: 0.5;
    cursor: not-allowed;
    transform: none !important;
    box-shadow: none !important;
}

.login-footer {
    margin-top: auto;
    text-align: center;
    padding-top: 30px;
}

.login-footer p {
    font-size: 12px;
    color: var(--color-gray-text);
    line-height: 1.6;
}

.login-footer a {
    color: var(--color-primary);
    font-weight: 700;
    text-decoration: underline;
}

/* Adjustments for RTL country code if needed (text already handled by container but border/radius might need it) */
[dir="rtl"] .country-code {
    border-left: 1px solid rgba(255,255,255,0.1);
}

/* --- Details View --- */
.details-page {
    padding-top: 10px; /* Space for the bottom bar */
    padding-bottom: 100px;
}

.details-hero {
    position: relative;
    width: calc(100% - 32px);
    margin: 0 auto;
    height: 350px;
    border-radius: 32px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
}

.details-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.details-hero-overlay {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    display: flex;
    justify-content: space-between;
    z-index: 10;
}

.back-btn-float, .favorite-btn-float {
    width: 44px;
    height: 44px;
    background-color: rgba(255, 255, 255, 0.7);
    color: var(--color-dark);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    box-shadow: var(--shadow-soft);
    cursor: pointer;
    transition: var(--transition-fast);
}

.back-btn-float:active, .favorite-btn-float:active {
    transform: scale(0.9);
}

.details-body {
    padding: 24px 20px;
}

.details-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 8px;
}

.details-header-row h2 {
    font-size: 24px;
    font-weight: 800;
}

.details-location {
    font-size: 15px;
}

.details-section {
    margin-top: 32px;
}

.details-section h3 {
    font-size: 18px;
    font-weight: 800;
    margin-bottom: 16px;
    text-align: center;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.amenity-item {
    background-color: var(--color-white);
    padding: 12px 16px;
    border-radius: 12px;
    display: flex;
    justify-content: center;
    align-items: center;
    border: 1px solid var(--color-gray-border);
    box-shadow: 0 2px 8px rgba(0,0,0,0.04);
    transition: var(--transition-fast);
}

.amenity-item:hover {
    border-color: var(--color-dark-blue);
    transform: translateY(-2px);
}

.property-area-box {
    background-color: var(--color-white);
    padding: 16px;
    border-radius: 14px;
    border: 1px solid var(--color-gray-border);
    text-align: center;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.area-label {
    font-size: 11px;
    color: var(--color-gray-text);
    font-weight: 700;
}

.property-area-box .area-value {
    font-size: 16px;
    font-weight: 800;
    color: var(--color-dark-blue);
}



.amenity-item i {
    font-size: 20px;
    color: var(--color-primary);
}

.amenity-item span {
    font-size: 14px;
    font-weight: 700;
}

.details-description {
    font-size: 14px;
    line-height: 1.8;
    color: var(--color-gray-text);
    text-align: center;
}

.details-bottom-bar {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    height: 90px;
    background-color: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-top: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 -10px 30px rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 24px;
    z-index: 30;
    border-radius: 32px 32px 0 0;
}

@media (min-width: 480px) {
    .details-bottom-bar {
        border-radius: 0;
    }
}

.details-price-info p {
    font-size: 12px;
    color: var(--color-gray-text);
    margin-bottom: 4px;
    font-weight: 600;
}

.details-book-btn {
    padding: 16px 32px;
    font-size: 16px;
    border-radius: 100px;
    box-shadow: var(--shadow-soft);
}

/* --- Skeleton Loading Styles --- */
.skeleton {
    pointer-events: none;
}
.skeleton-img {
    background: linear-gradient(90deg, var(--color-gray-light) 25%, var(--surface-bg) 50%, var(--color-gray-light) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite linear;
}
.skeleton-text {
    height: 14px;
    margin-bottom: 12px;
    border-radius: 4px;
    background: linear-gradient(90deg, var(--color-gray-light) 25%, var(--surface-bg) 50%, var(--color-gray-light) 75%);
    background-size: 200% 100%;
    animation: loading 1.5s infinite linear;
}
.skeleton-text.title { width: 70%; height: 18px; }
.skeleton-text.location { width: 40%; }
.skeleton-text.price { width: 30%; height: 22px; }

@keyframes loading {
    0% { background-position: 200% 0; }
    100% { background-position: -200% 0; }
}

.empty-state-container {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
}

.empty-state-icon {
    font-size: 64px;
    color: var(--color-mint);
    margin-bottom: 20px;
}

.empty-state-title {
    font-size: 18px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 8px;
}

.empty-state-desc {
    font-size: 14px;
    color: var(--text-sub);
    margin-bottom: 24px;
}

.booking-id {
    font-size: 10px;
    font-weight: 800;
    color: var(--color-primary);
    background-color: rgba(96, 181, 255, 0.1);
    padding: 2px 8px;
    border-radius: 10px;
    margin-bottom: 6px;
    display: inline-block;
}

.booking-actions {
    display: flex;
    gap: 8px;
    padding-top: 12px;
    border-top: 1px dashed var(--border-glass);
}

.btn-action {
    flex: 1;
    padding: 10px;
    border-radius: var(--border-radius-sm);
    font-size: 12px;
    font-weight: 700;
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 6px;
    transition: var(--transition-fast);
}

.btn-cancel { color: var(--color-danger); background-color: rgba(255, 145, 73, 0.1); }
.btn-contact { color: var(--color-primary); background-color: rgba(96, 181, 255, 0.1); }
.btn-rebook { color: var(--color-white); background-color: var(--color-primary); }
.btn-rate { color: var(--color-dark); background-color: var(--color-gray-light); }
.btn-search-similar { color: var(--color-white); background-color: var(--color-secondary); }

/* --- Swiper Customization --- */
.details-swiper {
    width: 100%;
    height: 100%;
}
.swiper-pagination-bullet {
    background: var(--color-white);
    opacity: 0.6;
    transition: var(--transition-fast);
}
.swiper-pagination-bullet-active {
    background: var(--color-white);
    opacity: 1;
    transform: scale(1.3);
}

/* --- Reviews Section --- */
.reviews-section {
    margin-top: 16px;
}
.reviews-list {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.review-card {
    background-color: var(--card-content-bg);
    padding: 20px;
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-soft);
    border: 1px solid var(--border-glass);
}
.review-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 12px;
}
.reviewer-info {
    display: flex;
    align-items: center;
    gap: 12px;
}
.reviewer-avatar {
    width: 40px;
    height: 40px;
    background-color: var(--color-primary);
    color: var(--color-white);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 16px;
    font-weight: 800;
}
.reviewer-name h4 {
    font-size: 15px;
    font-weight: 800;
    color: var(--text-main);
    margin-bottom: 2px;
}
.reviewer-name span {
    font-size: 12px;
    color: var(--text-sub);
}
.review-text {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-sub);
}

/* --- Booking Details View --- */
.details-header {
    background-color: var(--color-dark-blue);
    color: var(--color-white);
    padding: 16px 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    position: sticky;
    top: 0;
    z-index: 100;
}

.details-header h2 {
    font-size: 18px;
    font-weight: 700;
}

.booking-details-content {
    padding: 20px;
    background-color: var(--color-gray-bg);
    min-height: calc(100vh - 60px);
}

.details-card {
    background-color: var(--color-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.05);
    margin-bottom: 20px;
}

.details-status-badge {
    padding: 12px;
    text-align: center;
    font-weight: 800;
    font-size: 14px;
}

.badge-red { background-color: rgba(255, 90, 95, 0.1); color: var(--color-accent-red); }
.badge-green { background-color: rgba(40, 167, 69, 0.1); color: var(--color-accent-green); }

.details-table {
    display: grid;
    grid-template-columns: 1fr 1fr;
    border-top: 1px solid var(--color-gray-border);
}

.table-cell {
    padding: 16px;
    border-bottom: 1px solid var(--color-gray-border);
    border-left: 1px solid var(--color-gray-border);
}

.table-cell:nth-child(even) { border-left: none; }

.cell-label {
    font-size: 11px;
    color: var(--color-gray-text);
    margin-bottom: 4px;
    display: block;
}

.cell-value {
    font-size: 13px;
    color: var(--color-dark-blue);
    font-weight: 700;
}

.cell-value.price { color: var(--color-accent-green); font-weight: 800; font-size: 15px; }

.cell-full-width {
    grid-column: span 2;
    border-left: none;
}

.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(11, 16, 33, 0.8);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    display: none;
    justify-content: center;
    align-items: flex-end; /* Center it at the bottom to avoid stretching */
    z-index: 2000;
}

.modal-overlay.active {
    display: flex;
}

.modal-content {
    width: 100%;
    background-color: var(--color-white);
    border-radius: 32px 32px 0 0;
    padding: 20px 24px 34px; /* Reduced bottom padding */
    animation: slideUp 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 -10px 40px rgba(0,0,0,0.2);
    max-height: 90vh;
    overflow-y: auto;
}

.drag-handle {
    width: 40px;
    height: 5px;
    background-color: var(--color-gray-border);
    border-radius: 10px;
    margin: 0 auto 20px;
}

@keyframes slideUp {
    from { transform: translateY(100%); }
    to { transform: translateY(0); }
}

.modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.modal-header h3 {
    font-size: 20px;
    font-weight: 800;
    color: var(--color-dark-blue);
}

.close-btn {
    width: 40px;
    height: 40px;
    background-color: var(--color-gray-bg);
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 18px;
    color: var(--color-dark-blue);
}

.form-group {
    margin-bottom: 20px;
}

.form-group label {
    display: block;
    font-size: 13px;
    font-weight: 700;
    color: var(--color-gray-text);
    margin-bottom: 8px;
}

.form-group input {
    width: 100%;
    padding: 16px;
    background-color: var(--color-gray-bg);
    border: 1px solid var(--color-gray-border);
    border-radius: 16px;
    font-size: 15px;
    font-weight: 700;
    color: var(--color-dark-blue);
}

.form-group input:focus {
    border-color: var(--color-dark-blue);
    outline: none;
}

.form-row {
    display: flex;
    gap: 12px;
}

.form-row .form-group {
    flex: 1;
}

.calculated-info {
    background-color: var(--color-gray-bg);
    border: 1px dashed var(--color-gray-border);
    border-radius: 16px;
    padding: 18px 20px;
    margin-bottom: 24px;
    transition: var(--transition-fast);
}

.calculated-info:hover {
    border-color: var(--color-dark-blue);
    background-color: #f7f9fc;
}

.info-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.info-label {
    font-size: 14px;
    color: var(--color-gray-text);
    font-weight: 700;
    display: flex;
    align-items: center;
    gap: 8px;
}

.info-label i {
    color: var(--color-primary);
    font-size: 16px;
}

.info-value {
    font-size: 14px;
    color: var(--color-dark-blue);
    font-weight: 800;
    background-color: var(--color-white);
    padding: 8px 14px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.03);
    border: 1px solid rgba(0,0,0,0.05);
}

.w-full { width: 100%; }

.modal-footer button {
    padding: 18px;
    border-radius: 18px;
    font-size: 16px;
}

.time-picker-row {
    display: flex;
    align-items: center;
    gap: 6px;
    background-color: var(--color-gray-bg);
    border: 2px solid var(--color-gray-border);
    border-radius: 16px;
    padding: 10px 14px;
    transition: border-color var(--transition-fast);
}

.time-picker-row:focus-within {
    border-color: var(--color-dark-blue);
    background-color: var(--color-white);
}

/* Duration Input Group */
.duration-input-group {
    display: flex;
    align-items: stretch;
    background-color: var(--color-gray-bg);
    border: 2px solid var(--color-gray-border);
    border-radius: 16px;
    overflow: hidden;
    transition: var(--transition-fast);
}

.duration-input-group:focus-within {
    border-color: var(--color-dark-blue);
    background-color: var(--color-white);
}

.duration-input-group input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 16px;
    font-size: 16px;
    font-weight: 800;
    color: var(--color-dark-blue);
    outline: none;
    text-align: center;
}

.duration-input-group .divider {
    width: 2px;
    background-color: var(--color-gray-border);
    margin: 12px 0;
}

.duration-input-group select {
    border: none;
    background: transparent;
    padding: 0 20px 0 40px;
    font-size: 15px;
    font-weight: 700;
    color: var(--color-dark-blue);
    outline: none;
    cursor: pointer;
    font-family: inherit;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;utf8,<svg fill="%23001BB7" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M7 10l5 5 5-5z"/></svg>');
    background-repeat: no-repeat;
    background-position: 10px 50%;
}

/* Number input: hide spinners in all browsers */
.time-input {
    width: 44px;
    text-align: center;
    font-size: 22px;
    font-weight: 800;
    color: var(--color-dark-blue);
    background: transparent;
    border: none;
    outline: none;
    font-family: var(--font-family);
    -moz-appearance: textfield;
    appearance: textfield;
    padding: 0;
}

.time-input::-webkit-outer-spin-button,
.time-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.time-input::placeholder {
    color: var(--color-gray-border);
    font-weight: 400;
}

.time-sep {
    font-size: 22px;
    font-weight: 800;
    color: var(--color-gray-text);
    line-height: 1;
    flex-shrink: 0;
}

/* AM/PM Toggle Button */
.ampm-toggle {
    margin-right: auto;
}

.ampm-btn {
    background-color: var(--color-dark-blue);
    color: var(--color-white);
    font-size: 14px;
    font-weight: 800;
    font-family: var(--font-family);
    padding: 6px 14px;
    border-radius: 10px;
    border: none;
    cursor: pointer;
    transition: background-color var(--transition-fast), transform 0.15s ease;
    min-width: 42px;
    text-align: center;
}

.ampm-btn:active {
    transform: scale(0.93);
    background-color: var(--color-accent-red);
}

/* --- Login Full-Page Specifics --- */
.login-box {
    width: 100%;
    height: 100%;
    border-radius: 0 !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 40px 32px !important;
    background-color: var(--color-white);
    position: relative;
    animation: fadeIn 0.4s ease-out;
}

@keyframes fadeIn {
    from { opacity: 0; transform: scale(0.95); }
    to { opacity: 1; transform: scale(1); }
}

.login-box .modal-header {
    margin-bottom: 48px;
    flex-direction: column;
    text-align: center;
}

.login-box .modal-header h3 {
    font-size: 28px;
    margin-top: 16px;
}

.login-box .modal-header p {
    font-size: 15px;
    color: var(--color-gray-text);
    margin-top: 8px;
}

.login-box .close-modal {
    position: absolute;
    top: 24px;
    right: 24px;
    font-size: 32px;
    background: var(--color-gray-bg);
    width: 44px;
    height: 44px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: var(--color-dark-blue);
}

.login-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--color-primary-blue) 0%, var(--color-dark-blue) 100%);
    color: var(--color-white);
    border-radius: 24px;
    display: flex;
    justify-content: center;
    align-items: center;
    font-size: 36px;
    margin: 0 auto;
    box-shadow: 0 10px 25px rgba(0, 70, 255, 0.2);
}

.phone-input-wrapper {
    display: flex;
    align-items: center;
    background-color: var(--color-gray-bg);
    border: 2px solid var(--color-gray-border);
    border-radius: 20px;
    overflow: hidden;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    margin-bottom: 32px;
}

.phone-input-wrapper:focus-within {
    border-color: var(--color-primary-blue);
    background-color: var(--color-white);
    box-shadow: 0 0 0 4px rgba(0, 70, 255, 0.1);
    transform: translateY(-2px);
}

.country-code {
    padding: 20px;
    background-color: rgba(0, 0, 0, 0.03);
    color: var(--color-dark-blue);
    font-weight: 800;
    font-size: 16px;
    border-right: 1px solid var(--color-gray-border);
}

#user-phone-input {
    flex: 1;
    border: none;
    background: transparent;
    padding: 20px;
    font-size: 18px;
    font-weight: 700;
    color: var(--color-dark-blue);
    letter-spacing: 1.5px;
}

.login-box .btn-primary {
    padding: 20px;
    font-size: 18px;
    border-radius: 20px;
    font-weight: 800;
    letter-spacing: 0.5px;
}

/* --- LTR / Language Specific Overrides --- */
html[dir="ltr"] {
    font-family: 'Inter', sans-serif; /* Cleaner for English */
}

html[dir="ltr"] .arrow-icon {
    transform: rotate(180deg);
}

html[dir="ltr"] .province-item span {
    letter-spacing: 0;
}

html[dir="ltr"] .menu-item-left {
    gap: 12px;
}

html[dir="ltr"] .login-box {
    text-align: left;
}

html[dir="ltr"] .login-box .modal-header {
    text-align: center;
}

html[dir="ltr"] .country-code {
    border-right: none;
    border-left: 1px solid var(--color-gray-border);
}

/* Ensure the check icon in language selection is flipped in LTR if needed */
html[dir="ltr"] .lang-option .check-icon {
    margin-left: auto;
    margin-right: 0;
}

.lang-option.active .check-icon {
    display: block;
    color: var(--color-accent-green);
}

.lang-option .check-icon {
    display: none;
}


/* --- Booking Success View Styles --- */
.success-card {
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-soft);
    margin-top: 10px;
    border: 1px solid var(--color-gray-border);
}

.success-header {
    background-color: var(--color-accent-green);
    color: var(--color-white);
    padding: 14px 18px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    font-weight: 800;
}

.success-header span {
    font-size: 15px;
}

.success-content-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    background-color: var(--color-white);
}

.success-grid-item {
    padding: 20px 10px;
    display: flex;
    flex-direction: column;
    gap: 12px;
    align-items: center;
    text-align: center;
}

.grid-label {
    font-size: 12px;
    color: var(--color-gray-text);
    font-weight: 600;
}

.grid-value {
    font-size: 17px;
    color: var(--color-dark-blue);
    font-weight: 800;
}

.border-left {
    border-left: 1px solid #eff2f6;
}

.border-bottom {
    border-bottom: 1px solid #eff2f6;
}

.success-view-details-btn {
    width: 100%;
    background-color: #001BB7;
    color: var(--color-white);
    padding: 16px;
    font-size: 16px;
    font-weight: 800;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: opacity var(--transition-fast);
}

.success-view-details-btn:active {
    opacity: 0.9;
}

/* ====== قسم المميزات - صفحة التفاصيل ====== */
.details-section {
    margin-top: 20px;
    padding-top: 18px;
    border-top: 1px solid rgba(0, 0, 0, 0.07);
}

.details-section h3 {
    font-size: 15px;
    font-weight: 800;
    color: var(--color-dark-blue, #001BB7);
    margin-bottom: 14px;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #ffffff;
    border: 1px solid #e8ecf2;
    border-radius: 14px;
    padding: 11px 14px;
    box-shadow: 0 2px 8px rgba(0, 27, 183, 0.05);
    transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.amenity-item:active {
    transform: scale(0.97);
}

.amenity-item i {
    font-size: 15px;
    color: var(--color-primary-blue, #0046FF);
    flex-shrink: 0;
    width: 18px;
    text-align: center;
}

.amenity-item span {
    font-size: 13px;
    font-weight: 700;
    color: var(--color-dark, #1E293B);
    line-height: 1.3;
}

/* --- Heart Animation --- */
@keyframes heartPop {
    0% { transform: scale(1); }
    40% { transform: scale(1.3); }
    100% { transform: scale(1); }
}

.favorite-btn i, .favorite-btn-float i {
    transition: transform 0.2s cubic-bezier(0.175, 0.885, 0.32, 1.275), color 0.2s ease;
}

.favorite-btn.active i, .favorite-btn-float.active i {
    animation: heartPop 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- Favorites Grid Setup --- */
.fav-grid {
    display: grid !important;
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 16px;
    padding-bottom: 20px;
}

.fav-grid .property-card {
    margin-bottom: 0;
}

.fav-grid .property-card .card-image-wrapper {
    height: 130px;
}

.fav-grid .property-card .card-content {
    padding: 12px 10px;
    margin: -16px 8px 8px;
    border-radius: 16px;
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
}

.fav-grid .property-title {
    font-size: 13px;
    font-weight: 800;
}

.fav-grid .property-type {
    display: none;
}

.fav-grid .property-location {
    font-size: 11px;
    margin-bottom: 8px;
}

.fav-grid .price-value {
    font-size: 15px;
}

.fav-grid .currency {
    font-size: 10px;
}

.fav-grid .badge {
    font-size: 10px;
    padding: 4px 8px;
    top: 8px;
    right: 8px;
}

/* Desktop Navbar elements hidden on Mobile */
.desktop-nav-brand, .desktop-nav-actions {
    display: none;
}

/* ========================================================
   Booking Ticket Card & Details UI (Added)
   ======================================================== */

.booking-ticket-card {
    background-color: var(--color-white);
    border-radius: 16px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08);
    margin-bottom: 24px;
    border: 1px solid var(--color-gray-border);
    transition: transform var(--transition-fast), box-shadow var(--transition-fast);
    cursor: pointer;
    display: flex;
    flex-direction: column;
}

.booking-ticket-card:active {
    transform: scale(0.97);
}

.booking-ticket-card.sync-update {
    animation: pulseUpdate 1s ease-out;
}

@keyframes pulseUpdate {
    0% { box-shadow: 0 0 0 0 rgba(0, 70, 255, 0.4); border-color: var(--color-primary); }
    70% { box-shadow: 0 0 0 15px rgba(0, 70, 255, 0); }
    100% { box-shadow: 0 8px 30px rgba(0, 0, 0, 0.08); border-color: var(--color-gray-border); }
}

/* Ticket Side Cutouts */
.ticket-cutout {
    position: absolute;
    width: 24px;
    height: 24px;
    background-color: var(--color-gray-bg);
    border-radius: 50%;
    top: 90px;
    z-index: 2;
    border: 1px solid var(--color-gray-border);
}

.ticket-cutout.left { left: -12px; border-right-color: transparent; border-top-color: transparent; transform: rotate(45deg); }
.ticket-cutout.right { right: -12px; border-left-color: transparent; border-bottom-color: transparent; transform: rotate(45deg); }

.ticket-divider {
    position: absolute;
    top: 102px;
    left: 12px;
    right: 12px;
    height: 0;
    border-top: 2px dashed rgba(0,0,0,0.1);
    z-index: 1;
}

/* Ticket Sections */
.ticket-header {
    height: 102px;
    display: flex;
    align-items: stretch;
}

.ticket-thumb {
    width: 100px;
    height: 100%;
    object-fit: cover;
}

.ticket-header-info {
    flex: 1;
    padding: 16px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.ticket-header-info h4 {
    font-size: 16px;
    font-weight: 800;
    color: var(--color-dark);
    margin-bottom: 4px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ticket-header-info p {
    font-size: 12px;
    color: var(--text-sub);
    display: flex;
    align-items: center;
    gap: 4px;
}

.ticket-body {
    padding: 24px 16px 16px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: linear-gradient(180deg, rgba(255,255,255,0) 0%, rgba(245,247,250,0.5) 100%);
}

.ticket-date-box {
    text-align: center;
}

.ticket-date-box span {
    display: block;
    font-size: 11px;
    color: var(--text-sub);
    text-transform: uppercase;
    font-weight: 700;
    margin-bottom: 2px;
}

.ticket-date-box strong {
    font-size: 16px;
    color: var(--color-dark);
    font-weight: 800;
}

.ticket-status-badge {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 700;
}

/* Specific Status Colors */
.status-pending { background: #fff3cd; color: #856404; }
.status-accepted { background: #d4edda; color: #155724; }
.status-active { background: var(--color-mint); color: var(--color-primary); }
.status-completed { background: #e2e3e5; color: #383d41; }
.status-rejected, .status-cancelled { background: #f8d7da; color: #721c24; }

/* Status Stepper */
.status-stepper {
    display: flex;
    justify-content: space-between;
    position: relative;
    padding: 24px 20px;
    background: var(--color-white);
    border-radius: var(--border-radius-md);
    box-shadow: var(--shadow-soft);
    margin-bottom: 24px;
}

.stepper-line {
    position: absolute;
    top: 36px;
    left: 40px;
    right: 40px;
    height: 3px;
    background: var(--color-gray-border);
    z-index: 1;
}

.stepper-line-active {
    position: absolute;
    top: 36px;
    right: 40px;
    height: 3px;
    background: var(--color-primary);
    z-index: 2;
    transition: width 0.4s ease;
}

.stepper-step {
    position: relative;
    z-index: 3;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    flex: 1;
}

.stepper-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--color-white);
    border: 3px solid var(--color-gray-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-gray-border);
    font-size: 10px;
    transition: all 0.3s ease;
}

.stepper-step.active .stepper-icon, .stepper-step.completed .stepper-icon {
    border-color: var(--color-primary);
    background: var(--color-primary);
    color: var(--color-white);
}

.stepper-step.current .stepper-icon {
    border-color: var(--color-primary);
    color: var(--color-primary);
    background: var(--color-white);
    box-shadow: 0 0 0 4px rgba(0, 70, 255, 0.1);
}

.stepper-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-sub);
    text-align: center;
}

.stepper-step.active .stepper-label, .stepper-step.current .stepper-label {
    color: var(--color-dark);
}

/* Booking Details Specifics */
.booking-details-pass {
    padding: 20px;
}

.ticket-full {
    background: var(--color-white);
    border-radius: 20px;
    overflow: hidden;
    box-shadow: var(--shadow-medium);
    margin-bottom: 24px;
    border: 1px solid var(--color-gray-border);
}

.ticket-full-hero {
    height: 160px;
    position: relative;
}

.ticket-full-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.ticket-full-hero-overlay {
    position: absolute;
    bottom: 0; left: 0; right: 0;
    padding: 40px 20px 20px;
    background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
    color: white;
}

.ticket-full-hero-overlay h2 {
    font-size: 22px;
    margin-bottom: 4px;
}

.ticket-info-grid {
    padding: 24px;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    border-bottom: 2px dashed rgba(0,0,0,0.1);
}

.info-box span {
    display: block;
    font-size: 12px;
    color: var(--text-sub);
    margin-bottom: 4px;
}

.info-box strong {
    font-size: 15px;
    color: var(--color-dark);
}

.qr-box {
    padding: 30px;
    text-align: center;
    background: #fafafa;
}

.qr-box img {
    width: 140px;
    height: 140px;
    margin: 0 auto 16px;
    mix-blend-mode: multiply;
}

.qr-box p {
    font-size: 12px;
    color: var(--text-sub);
    letter-spacing: 2px;
}

/* Countdown Timer */
.countdown-box {
    background: linear-gradient(135deg, var(--color-dark-blue), var(--color-primary-blue));
    border-radius: 16px;
    padding: 16px;
    color: white;
    text-align: center;
    margin-bottom: 24px;
    box-shadow: 0 10px 20px rgba(0, 70, 255, 0.2);
}

.countdown-box h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
    opacity: 0.9;
}

.countdown-timer {
    display: flex;
    justify-content: center;
    gap: 16px;
}

.timer-item {
    display: flex;
    flex-direction: column;
}

.timer-item span:first-child {
    font-size: 24px;
    font-weight: 800;
}

.timer-item span:last-child {
    font-size: 10px;
    opacity: 0.7;
}

/* Action Buttons Grid */
.action-buttons-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    padding-bottom: 40px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 14px;
    border-radius: 12px;
    font-size: 14px;
    font-weight: 700;
    transition: var(--transition-fast);
}

.btn-message {
    background: var(--color-mint);
    color: var(--color-primary);
}

.btn-call {
    background: #e8f5e9;
    color: #2e7d32;
}

.btn-map {
    background: #f5f5f5;
    color: var(--color-dark);
}

.btn-cancel {
    background: #ffebee;
    color: #c62828;
    grid-column: span 2;
}

/* Empty State Animations */
.empty-animation {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 60px 20px;
    text-align: center;
    animation: fadeIn 0.6s ease;
}

.empty-icon-wrap {
    width: 100px;
    height: 100px;
    background: rgba(0, 70, 255, 0.05);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 40px;
    color: var(--color-primary);
    margin-bottom: 24px;
    position: relative;
}

.empty-icon-wrap::after {
    content: '';
    position: absolute;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    border: 2px dashed var(--color-primary);
    animation: rotate 10s linear infinite;
    opacity: 0.2;
}

@keyframes rotate {
    from { transform: rotate(0deg); }
    to { transform: rotate(360deg); }
}

/* ========================================================
   Desktop Responsive Layout (Added)
   ======================================================== */

@media (min-width: 768px) {
    /* ── Desktop Layout: Flex with explicit LTR direction to avoid RTL confusion ── */
    .app-container {
        height: 100vh;
        min-height: 100vh;
        overflow: hidden;
        display: flex;
        flex-direction: row-reverse; /* sidebar on right, main on left — reliable in RTL */
        background: #f5f7ff;
    }

    /* Sidebar on the RIGHT */
    .bottom-nav {
        position: relative;
        top: auto;
        right: auto;
        bottom: auto;
        left: auto;
        flex-shrink: 0;
        width: 260px;
        height: 100vh;
        border-radius: 0;
        flex-direction: column;
        justify-content: flex-start;
        align-items: flex-start;
        gap: 8px;
        background: #ffffff;
        border-left: 1px solid var(--color-gray-border);
        border-top: none;
        padding: 40px 20px;
        z-index: 100;
        box-shadow: -4px 0 24px rgba(0, 27, 183, 0.06);
        overflow-y: auto;
        display: flex;
    }

    /* Main content on the LEFT — fills remaining space */
    .main-content {
        flex: 1;
        min-width: 0;
        height: 100vh;
        overflow-y: auto;
        padding: 0 48px;
        background: #ffffff;
        margin: 0;
    }

    /* All page-views fill full width of main-content */
    .page-view {
        width: 100%;
        min-width: 0;
        box-sizing: border-box;
    }
    .page-view.active {
        display: block;
        width: 100%;
    }
    
    .desktop-nav-brand {
        display: flex;
        align-items: center;
        gap: 12px;
        font-size: 24px;
        font-weight: 800;
        color: var(--color-primary);
        width: 100%;
        margin-bottom: 20px;
    }
    .desktop-nav-brand span {
        font-size: 28px;
        color: var(--color-dark-blue);
    }
    .desktop-nav-actions {
        display: flex;
        align-items: center;
        width: 100%;
        margin-top: auto; /* Push to bottom */
    }
    .header-search-btn.desktop-search {
        background: var(--color-gray-bg);
        border: none;
        border-radius: 16px;
        width: 100%; /* Full width in sidebar */
        height: 54px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 12px;
        cursor: pointer;
        transition: all var(--transition-fast);
        color: var(--color-dark);
        font-size: 16px;
        font-weight: 700;
    }
    .header-search-btn.desktop-search::after {
        content: 'البحث';
        font-family: var(--font-family);
    }
    .header-search-btn.desktop-search:hover {
        background: var(--color-mint);
        color: var(--color-primary);
    }
    .nav-items-wrapper {
        display: flex;
        flex-direction: column; /* Vertical menu */
        align-items: flex-start;
        width: 100%;
        gap: 8px;
    }
    .nav-item {
        flex-direction: row;
        justify-content: flex-start;
        align-items: center;
        gap: 16px;
        padding: 16px 20px;
        border-radius: 16px;
        width: 100%;
        height: auto;
        transition: all var(--transition-fast);
    }
    .nav-item.active {
        background-color: var(--color-mint);
        transform: translateY(0);
    }
    .nav-item:hover:not(.active) {
        background-color: var(--color-gray-bg);
    }
    .nav-item.active i, .nav-item.active span {
        color: var(--color-primary);
    }
    .nav-item i {
        font-size: 22px;
        width: 24px;
        text-align: center;
    }
    .nav-item span {
        font-size: 16px;
    }
    .nav-indicator {
        display: none; /* Hide bottom indicator dot for top nav */
    }

    /* Hide Mobile-Only Header since we now use the Sidebar */
    .header {
        display: none;
    }

    /* Hide mobile bottom spacer */
    .bottom-spacer {
        display: none;
    }

    /* Grid System for Cards */
    .cards-container {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
        gap: 24px;
    }
    /* Override horizontal scroll snap on desktop for featured cards */
    .cards-container.horizontal-scroll {
        overflow-x: visible;
        flex-wrap: wrap;
        display: grid;
        padding-bottom: 0;
        scroll-snap-type: none;
    }
    .horizontal-scroll::after {
        display: none;
    }
    .featured-card {
        width: auto;
        min-width: 0;
        scroll-snap-align: none;
    }
    .property-card {
        margin-bottom: 0; /* Let grid gap handle spacing */
    }

    /* ======================================
       Property Details Page - Desktop Layout
       ====================================== */
    #view-details.active {
        display: grid;
        grid-template-columns: 1fr 360px;
        grid-template-rows: auto auto 1fr;
        column-gap: 32px;
        align-items: start;
        padding: 32px 0;
    }

    /* Remove mobile padding */
    .details-page {
        padding-bottom: 0;
        padding-top: 0;
    }

    /* Hero Image - Column 1, Row 1 */
    .details-hero {
        grid-column: 1;
        grid-row: 1;
        border-radius: 24px;
        height: 460px;
        margin: 0;
        width: 100%;
        box-shadow: var(--shadow-medium);
    }

    /* Details Body - Column 1, Row 2+ */
    .details-body {
        grid-column: 1;
        grid-row: 2;
        padding: 28px 0 0;
    }

    .details-header-row h2 {
        font-size: 30px;
        font-weight: 800;
    }

    .details-location {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .details-section {
        margin-top: 28px;
        padding-top: 24px;
        border-top: 1px solid var(--color-gray-border);
    }

    .details-section h3 {
        font-size: 18px;
        font-weight: 800;
        margin-bottom: 16px;
        text-align: right;
        color: var(--color-dark);
    }

    /* Wider amenities grid on desktop */
    .amenities-grid {
        grid-template-columns: repeat(3, 1fr);
        gap: 12px;
    }

    /* Booking Panel - Column 2, Rows 1+2 (Sticky) */
    .details-bottom-bar {
        /* Override ALL mobile fixed positioning */
        position: sticky !important;
        top: 24px !important;
        bottom: auto !important;
        left: auto !important;
        right: auto !important;
        width: 100% !important;
        height: auto !important;
        /* Grid placement */
        grid-column: 2;
        grid-row: 1 / span 2;
        /* Reset mobile border-radius */
        border-radius: 24px !important;
        border-top: none !important;
        /* Proper flex layout */
        display: flex !important;
        flex-direction: column;
        gap: 20px;
        align-items: stretch;
        /* Styling */
        background: var(--color-white) !important;
        border: 1px solid var(--color-gray-border) !important;
        box-shadow: 0 8px 32px rgba(0, 27, 183, 0.1) !important;
        padding: 28px 24px !important;
        z-index: 10;
    }

    /* Add a label above the price in the panel */
    .details-price-info {
        border-bottom: 1px solid var(--color-gray-border);
        padding-bottom: 20px;
    }

    .details-price-info p {
        font-size: 13px;
        color: var(--color-gray-text);
        margin-bottom: 8px;
        font-weight: 600;
    }

    .details-price-info .price-value {
        font-size: 32px;
        font-weight: 800;
        color: var(--color-dark);
    }

    .details-price-info .currency {
        font-size: 14px;
        color: var(--color-gray-text);
        font-weight: 700;
    }

    .details-book-btn {
        width: 100%;
        padding: 18px;
        font-size: 18px;
        font-weight: 800;
        border-radius: 16px;
        box-shadow: 0 8px 20px rgba(0, 70, 255, 0.25);
        transition: var(--transition-fast);
    }

    .details-book-btn:hover {
        background-color: var(--color-dark-blue);
        transform: translateY(-2px);
        box-shadow: 0 12px 28px rgba(0, 70, 255, 0.35);
    }

    /* Booking Ticket Cards Layout */
    #bookings-list {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(400px, 1fr));
        gap: 24px;
    }
    .booking-ticket-card {
        margin-bottom: 0;
    }

    /* Modals (Centered Dialog Card instead of Bottom Sheet) */
    .modal-overlay {
        align-items: center;
        justify-content: center;
    }
    .modal-content {
        border-radius: 24px;
        max-width: 520px;
        width: 100%;
        margin: auto;
        height: auto;
        max-height: 90vh;
        position: relative;
        top: auto;
        transform: none !important;
        bottom: auto;
        box-shadow: 0 20px 60px rgba(0,0,0,0.2);
    }
    .drag-handle {
        display: none;
    }

    /* Desktop modal animation: fade + scale instead of slide-up */
    @keyframes modalFadeIn {
        from { opacity: 0; transform: scale(0.95); }
        to   { opacity: 1; transform: scale(1); }
    }
    .modal-overlay.active .modal-content {
        animation: modalFadeIn 0.25s cubic-bezier(0.4, 0, 0.2, 1);
        border-radius: 24px !important;
    }


    /* Horizontal Scrollers (Provinces/Categories) */
    .provinces-grid {
        justify-content: flex-start;
        flex-wrap: wrap; 
        overflow: visible;
        padding-bottom: 0;
        scroll-snap-type: none;
        gap: 10px;
    }
    .provinces-container {
        overflow: visible;
        margin-left: 0;
        margin-right: 0;
    }
    .provinces-grid::after {
        display: none;
    }
    
    .categories-list {
        max-width: none;
        justify-content: center;
        flex-wrap: wrap;
        overflow: visible;
    }
    .categories-list::after {
        display: none;
    }

    /* Ads section: remove negative margins on desktop */
    .ads-section {
        margin-left: 0;
        margin-right: 0;
        border-radius: 24px;
        overflow: hidden;
    }
    .ads-swiper {
        height: 320px;
        border-radius: 24px;
    }

    /* Page views */
    .page-view.active {
        padding-bottom: 48px;
    }

    /* Sections: align headings */
    .search-title {
        font-size: 26px;
    }

    .section-header h3 {
        font-size: 22px;
    }

    /* Page headers */
    .page-header h2 {
        font-size: 30px;
    }

    /* Bookings tabs */
    .tabs-container {
        max-width: 500px;
    }

    /* Sidebar separator before search button */
    .desktop-nav-actions {
        position: relative;
        padding-top: 20px;
    }

    .desktop-nav-actions::before {
        content: '';
        display: block;
        width: 100%;
        height: 1px;
        background: var(--color-gray-border);
        position: absolute;
        top: 0;
        right: 0;
        left: 0;
    }

    /* Sidebar brand icon size */
    .desktop-nav-brand i {
        font-size: 28px;
    }

    /* Fav grid columns increase on desktop */
    .fav-grid {
        grid-template-columns: repeat(3, 1fr) !important;
    }

    /* Success card desktop: nicer width */
    .success-card {
        max-width: 600px;
        margin: 0 auto;
        border-radius: 20px;
    }

    /* Booking details */
    .booking-details-pass {
        padding: 0;
    }
}

/* ============================================================
   ✨ ENHANCED UI & ANIMATIONS — plaCEE v2
   ============================================================ */

/* --- Page Transition Animations --- */
@keyframes pageSlideIn {
    from { opacity: 0; transform: translateY(18px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes pageSlideInLeft {
    from { opacity: 0; transform: translateX(28px); }
    to   { opacity: 1; transform: translateX(0); }
}
@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(24px); }
    to   { opacity: 1; transform: translateY(0); }
}
@keyframes scaleIn {
    from { opacity: 0; transform: scale(0.92); }
    to   { opacity: 1; transform: scale(1); }
}
@keyframes shimmer {
    0%   { background-position: -600px 0; }
    100% { background-position: 600px 0; }
}

.page-view.active {
    animation: pageSlideIn 0.38s cubic-bezier(0.25, 0.46, 0.45, 0.94) both;
}

/* --- Enhanced Header --- */
.header {
    transition: box-shadow var(--transition-fast), transform var(--transition-fast);
}
.header:hover {
    box-shadow: 0 8px 28px rgba(0, 70, 255, 0.10);
}
.logo-header span {
    background: linear-gradient(135deg, var(--color-primary-blue), var(--color-dark-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}
.logo-header i {
    filter: drop-shadow(0 2px 6px rgba(0, 70, 255, 0.30));
    animation: logoFloat 3s ease-in-out infinite;
}
@keyframes logoFloat {
    0%, 100% { transform: translateY(0px); }
    50%       { transform: translateY(-3px); }
}

/* --- Header Buttons Enhanced --- */
.header-search-btn,
.notification-btn {
    transition: transform var(--transition-bounce), box-shadow var(--transition-fast), background-color var(--transition-fast);
}
.header-search-btn:hover,
.notification-btn:hover {
    transform: translateY(-2px) scale(1.05);
    box-shadow: var(--shadow-glow-blue);
    background-color: var(--color-mint);
    color: var(--color-primary);
}
.header-search-btn:active,
.notification-btn:active {
    transform: scale(0.9);
}

/* --- Province Items Enhanced --- */
.province-item {
    transition: transform var(--transition-bounce), background-color var(--transition-fast);
    position: relative;
}
.province-item:hover {
    transform: translateY(-4px);
}
.province-item:active {
    transform: scale(0.92) translateY(0);
}
.province-item .province-icon {
    transition: background-color var(--transition-fast), color var(--transition-fast),
                transform var(--transition-bounce), box-shadow var(--transition-fast);
}
.province-item:hover .province-icon {
    transform: scale(1.08);
    box-shadow: var(--shadow-glow-blue);
}
.province-item.active .province-icon {
    transform: translateY(-6px) scale(1.05);
    box-shadow: var(--shadow-glow-blue);
    background: linear-gradient(135deg, var(--color-primary-blue), var(--color-dark-blue));
}

/* --- Category Items Enhanced --- */
.category-item {
    cursor: pointer;
    transition: transform var(--transition-bounce);
}
.category-item:hover {
    transform: translateY(-5px);
}
.category-item:active {
    transform: scale(0.93);
}
.category-item .category-icon {
    transition: background-color var(--transition-fast), color var(--transition-fast),
                transform var(--transition-bounce), box-shadow var(--transition-fast);
}
.category-item:hover .category-icon {
    background-color: rgba(255, 255, 255, 0.2);
    transform: scale(1.1);
}
.category-item.active .category-icon {
    transform: translateY(-6px) scale(1.08);
    box-shadow: 0 12px 28px rgba(0, 0, 0, 0.25);
}

/* --- Filter Shortcuts Enhanced --- */
/* (filter-bar redesign already applied above — overrides removed to avoid conflict */

/* --- Featured Cards Enhanced --- */
.featured-card {
    transition: transform var(--transition-bounce), box-shadow var(--transition-fast);
    box-shadow: var(--shadow-soft);
}
.featured-card:hover {
    transform: translateY(-6px) scale(1.02);
    box-shadow: var(--shadow-lift);
}
.featured-card:active {
    transform: scale(0.97);
}
.featured-card .card-image {
    transition: transform var(--transition-smooth);
}
.featured-card:hover .card-image {
    transform: scale(1.06);
}
.featured-card .card-image-wrapper {
    overflow: hidden;
}

/* --- Property Cards Enhanced --- */
.property-card {
    transition: transform var(--transition-bounce), box-shadow var(--transition-fast);
}
.property-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lift);
}
.property-card:active {
    transform: scale(0.98);
}
.property-card .card-image {
    transition: transform var(--transition-smooth);
}
.property-card:hover .card-image {
    transform: scale(1.05);
}

/* --- Favorite Button Enhanced --- */
.favorite-btn,
.favorite-btn-float {
    transition: transform var(--transition-bounce), background-color var(--transition-fast),
                color var(--transition-fast);
}
.favorite-btn:hover,
.favorite-btn-float:hover {
    transform: scale(1.15);
    background-color: rgba(255, 90, 95, 0.1);
    color: var(--color-danger);
}
.favorite-btn.active,
.favorite-btn-float.active {
    color: var(--color-danger);
    background-color: rgba(255, 90, 95, 0.12);
}
@keyframes heartPulse {
    0%  { transform: scale(1); }
    30% { transform: scale(1.45); }
    60% { transform: scale(0.9); }
    100%{ transform: scale(1); }
}
.favorite-btn.active i,
.favorite-btn-float.active i {
    animation: heartPulse 0.5s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

/* --- Bottom Navigation Enhanced --- */
.nav-item {
    position: relative;
    transition: color var(--transition-fast), transform var(--transition-bounce);
}
.nav-item::before {
    content: '';
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%) scaleX(0);
    width: 24px;
    height: 3px;
    border-radius: 2px;
    background: var(--color-primary);
    transition: transform var(--transition-bounce);
}
.nav-item.active::before {
    transform: translateX(-50%) scaleX(1);
}
.nav-item:not(.active):hover {
    color: var(--color-primary);
    transform: translateY(-3px);
}
.nav-item.active i {
    animation: navBounce 0.45s cubic-bezier(0.34, 1.56, 0.64, 1);
}
@keyframes navBounce {
    0%  { transform: translateY(0) scale(1); }
    40% { transform: translateY(-8px) scale(1.2); }
    70% { transform: translateY(2px) scale(0.95); }
    100%{ transform: translateY(0) scale(1); }
}
.nav-item span {
    transition: color var(--transition-fast), transform var(--transition-fast);
}
.nav-item.active span {
    transform: scale(1.05);
    color: var(--color-primary);
    font-weight: 800;
}

/* --- Bottom Nav Glass Shimmer (Mobile Only) --- */
@media (max-width: 767px) {
    .bottom-nav {
        background: rgba(255, 255, 255, 0.78);
        backdrop-filter: blur(24px) saturate(180%);
        -webkit-backdrop-filter: blur(24px) saturate(180%);
        border-top: 1px solid rgba(255, 255, 255, 0.5);
        box-shadow: 0 -8px 32px rgba(0, 27, 183, 0.07);
    }
}

/* --- Ads Slider Enhanced --- */
.ads-swiper .swiper-slide {
    transition: transform 0.4s ease;
}
.ads-swiper img {
    transition: transform 0.6s ease;
}
.ads-swiper .swiper-slide-active img {
    transform: scale(1.02);
}
.ad-content h4 {
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
    letter-spacing: -0.3px;
}
.ads-swiper .swiper-pagination-bullet {
    transition: width 0.3s ease, opacity 0.3s ease, background-color 0.3s ease;
    background: rgba(255,255,255,0.6);
}
.ads-swiper .swiper-pagination-bullet-active {
    width: 28px;
    border-radius: 4px;
    background: var(--color-primary);
    opacity: 1;
}

/* --- Section Headers Enhanced --- */
.section-header h3 {
    position: relative;
    display: inline-block;
}
.section-header h3::after {
    content: '';
    display: block;
    width: 30px;
    height: 3px;
    background: linear-gradient(90deg, var(--color-primary), var(--color-secondary));
    border-radius: 3px;
    margin-top: 4px;
}

/* --- Slider Arrows Enhanced --- */
.slider-arrow {
    transition: transform var(--transition-bounce), background-color var(--transition-fast),
                box-shadow var(--transition-fast), color var(--transition-fast);
}
.slider-arrow:hover {
    background-color: var(--color-primary);
    color: white;
    border-color: transparent;
    transform: scale(1.1);
    box-shadow: var(--shadow-glow-blue);
}
.slider-arrow:active {
    transform: scale(0.92);
}

/* --- Categories List Enhanced --- */
.categories-list {
    background: linear-gradient(135deg, var(--color-dark-blue) 0%, #0034CC 100%);
    position: relative;
    overflow: hidden;
}
.categories-list::before {
    content: '';
    position: absolute;
    top: -40px; right: -40px;
    width: 120px; height: 120px;
    background: rgba(255,255,255,0.05);
    border-radius: 50%;
    pointer-events: none;
}
.categories-list::after {
    content: '';
    position: absolute;
    bottom: -30px; left: -30px;
    width: 90px; height: 90px;
    background: rgba(255,128,64,0.08);
    border-radius: 50%;
    pointer-events: none;
}

/* --- Primary Button Enhanced --- */
.btn-primary {
    transition: transform var(--transition-bounce), background-color var(--transition-fast),
                box-shadow var(--transition-fast);
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-blue);
}
.btn-primary:active {
    transform: scale(0.97) translateY(0);
    box-shadow: none;
}

/* --- Back Button Enhanced --- */
.back-btn,
.back-btn-float {
    transition: transform var(--transition-bounce), background-color var(--transition-fast),
                box-shadow var(--transition-fast);
}
.back-btn:hover,
.back-btn-float:hover {
    transform: scale(1.08) translateX(3px);
    box-shadow: var(--shadow-soft);
    background-color: var(--color-mint);
    color: var(--color-primary);
}
.back-btn:active,
.back-btn-float:active {
    transform: scale(0.93);
}

/* --- Amenity Items Enhanced --- */
.amenity-item {
    transition: transform var(--transition-bounce), box-shadow var(--transition-fast),
                border-color var(--transition-fast);
}
.amenity-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 6px 18px rgba(0, 70, 255, 0.10);
    border-color: rgba(0, 70, 255, 0.2);
}
.amenity-item i {
    transition: transform var(--transition-bounce), color var(--transition-fast);
}
.amenity-item:hover i {
    transform: scale(1.2);
    color: var(--color-dark-blue);
}

/* --- Modal Enhanced --- */
.modal-overlay {
    transition: opacity 0.3s ease, backdrop-filter 0.3s ease;
}
.modal-content {
    border-radius: 32px 32px 0 0;
    box-shadow: 0 -8px 48px rgba(0, 27, 183, 0.15);
}
.drag-handle {
    background: linear-gradient(90deg, transparent, var(--color-gray-border), transparent);
    transition: background 0.3s ease;
}
.drag-handle:hover {
    background: linear-gradient(90deg, transparent, var(--color-primary), transparent);
}

/* --- Form Inputs Enhanced --- */
.form-group input,
.form-input {
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast),
                background-color var(--transition-fast), transform 0.2s ease;
}
.form-group input:focus,
.form-input:focus {
    border-color: var(--color-primary);
    box-shadow: 0 0 0 4px rgba(0, 70, 255, 0.10);
    background-color: var(--color-white);
    transform: scale(1.01);
}

/* --- Menu Items Enhanced --- */
.menu-item {
    transition: background-color var(--transition-fast), transform var(--transition-bounce);
    border-radius: 12px;
    margin: 0 8px;
}
.menu-item:hover {
    background-color: var(--color-mint);
    transform: translateX(-4px);
}
.menu-item:active {
    transform: scale(0.98);
}
.menu-icon {
    transition: transform var(--transition-bounce), background-color var(--transition-fast);
}
.menu-item:hover .menu-icon {
    transform: scale(1.1) rotate(-5deg);
    background-color: rgba(0, 70, 255, 0.15);
}
.menu-item .fa-chevron-left {
    transition: transform var(--transition-fast), color var(--transition-fast);
}
.menu-item:hover .fa-chevron-left,
.menu-item:hover .arrow-icon {
    transform: translateX(-4px);
    color: var(--color-primary);
}

/* --- Tab Buttons Enhanced --- */
.tab-btn {
    transition: background-color var(--transition-fast), color var(--transition-fast),
                transform var(--transition-bounce), box-shadow var(--transition-fast);
}
.tab-btn:hover:not(.active) {
    background-color: rgba(255,255,255,0.6);
}
.tab-btn.active {
    background-color: var(--color-white);
    color: var(--color-dark-blue);
    box-shadow: 0 4px 14px rgba(0, 27, 183, 0.12);
    transform: scale(1.03);
}

/* --- Booking Ticket Cards Enhanced --- */
.booking-ticket-card {
    transition: transform var(--transition-bounce), box-shadow var(--transition-fast);
}
.booking-ticket-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lift);
}
.booking-ticket-card:active {
    transform: scale(0.98);
}

/* --- Details Hero Enhanced --- */
.details-book-btn {
    transition: transform var(--transition-bounce), box-shadow var(--transition-fast),
                background-color var(--transition-fast);
    background: linear-gradient(135deg, var(--color-primary-blue), var(--color-dark-blue));
}
.details-book-btn:hover {
    transform: translateY(-3px) scale(1.02);
    box-shadow: 0 12px 30px rgba(0, 70, 255, 0.35);
}
.details-book-btn:active {
    transform: scale(0.97);
}

/* --- Province Section Search Title Enhanced --- */
.search-title {
    background: linear-gradient(135deg, var(--color-dark-blue), var(--color-primary-blue));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* --- Staggered Card Entrance Animation --- */
.suggestions-section .property-card:nth-child(1) { animation: fadeInUp 0.4s ease 0.05s both; }
.suggestions-section .property-card:nth-child(2) { animation: fadeInUp 0.4s ease 0.12s both; }
.suggestions-section .property-card:nth-child(3) { animation: fadeInUp 0.4s ease 0.19s both; }
.suggestions-section .property-card:nth-child(4) { animation: fadeInUp 0.4s ease 0.26s both; }
.suggestions-section .property-card:nth-child(5) { animation: fadeInUp 0.4s ease 0.33s both; }
.suggestions-section .property-card:nth-child(6) { animation: fadeInUp 0.4s ease 0.40s both; }

.featured-card:nth-child(1) { animation: scaleIn 0.4s ease 0.05s both; }
.featured-card:nth-child(2) { animation: scaleIn 0.4s ease 0.12s both; }
.featured-card:nth-child(3) { animation: scaleIn 0.4s ease 0.19s both; }
.featured-card:nth-child(4) { animation: scaleIn 0.4s ease 0.26s both; }

/* --- Enhanced Notification Badge Pulse --- */
.notification-badge {
    animation: badgePulse 2s ease infinite;
}
@keyframes badgePulse {
    0%, 100% { transform: scale(1); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.4); }
    50%       { transform: scale(1.15); box-shadow: 0 0 0 5px rgba(239, 68, 68, 0); }
}

/* --- VIP Badge Shimmer --- */
.vip-badge {
    position: relative;
    overflow: hidden;
}
.vip-badge::after {
    content: '';
    position: absolute;
    top: -50%; left: -80%;
    width: 50%; height: 200%;
    background: linear-gradient(120deg, transparent, rgba(255,255,255,0.35), transparent);
    animation: vipShimmer 2.5s ease-in-out infinite;
}
@keyframes vipShimmer {
    0%   { left: -80%; opacity: 0; }
    30%  { opacity: 1; }
    100% { left: 120%; opacity: 0; }
}

/* --- Success Card Enhanced --- */
.success-view-details-btn {
    transition: background-color var(--transition-fast), transform var(--transition-bounce),
                box-shadow var(--transition-fast);
}
.success-view-details-btn:hover {
    background-color: var(--color-primary-blue);
    transform: translateY(-2px);
    box-shadow: var(--shadow-glow-blue);
}
.success-view-details-btn:active {
    transform: scale(0.97);
}

/* --- Action Buttons Enhanced --- */
.action-btn {
    transition: transform var(--transition-bounce), box-shadow var(--transition-fast);
}
.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-soft);
}
.action-btn:active {
    transform: scale(0.95);
}

/* --- Countdown Timer Pulse --- */
.timer-item span:first-child {
    display: inline-block;
    animation: timerTick 1s ease infinite;
}
@keyframes timerTick {
    0%, 100% { opacity: 1; }
    50%       { opacity: 0.7; }
}

/* --- Badge Enhanced --- */
.badge {
    transition: transform var(--transition-bounce);
}
.property-card:hover .badge {
    transform: scale(1.08) translateY(-1px);
}

/* --- Rating Badge Enhanced --- */
.featured-card .rating-badge {
    backdrop-filter: blur(8px);
    background: rgba(255,255,255,0.95);
    transition: transform var(--transition-bounce);
}
.featured-card:hover .rating-badge {
    transform: scale(1.05) translateY(-1px);
}

/* --- Phone Input Enhanced --- */
.phone-input-wrapper {
    transition: border-color var(--transition-fast), box-shadow var(--transition-fast),
                transform 0.25s ease;
}
.phone-input-wrapper:focus-within {
    transform: scale(1.01);
}

/* --- Smooth Scroll Indicator (Bottom Glow) --- */
.main-content::after {
    content: '';
    display: block;
    height: 1px;
}

/* --- Skeleton Loader Pulse --- */
.skeleton-img,
.skeleton-text {
    background: linear-gradient(90deg,
        var(--color-gray-border) 0%,
        rgba(255,255,255,0.8) 40%,
        var(--color-gray-border) 80%
    );
    background-size: 600px 100%;
    animation: shimmer 1.4s linear infinite;
}

/* --- Stepper Active Pulse --- */
.stepper-step.current .stepper-icon {
    animation: stepPulse 1.5s ease infinite;
}
@keyframes stepPulse {
    0%, 100% { box-shadow: 0 0 0 4px rgba(0, 70, 255, 0.1); }
    50%       { box-shadow: 0 0 0 8px rgba(0, 70, 255, 0.05); }
}

/* --- Slide Arrow Scroll Indicator --- */
.cards-container.horizontal-scroll {
    scroll-behavior: smooth;
}

/* --- General Tap Feedback (Mobile) --- */
button:active {
    transition: transform 0.1s ease;
}
a:active {
    opacity: 0.8;
}

/* --- App Container Subtle Background Animation --- */
.app-container::after {
    content: '';
    position: absolute;
    top: -20%; left: -20%;
    width: 60%; height: 60%;
    background: radial-gradient(circle, rgba(0,70,255,0.04) 0%, transparent 70%);
    animation: bgFloat 8s ease-in-out infinite alternate;
    pointer-events: none;
    z-index: 0;
}
@keyframes bgFloat {
    0%   { transform: translate(0, 0) scale(1); }
    100% { transform: translate(15%, 10%) scale(1.15); }
}

/* --- View: Search Input Focus Glow --- */
#global-search-input:focus {
    outline: none;
}
.search-input-wrapper:focus-within {
    border-color: var(--color-primary) !important;
    box-shadow: 0 0 0 4px rgba(0, 70, 255, 0.10) !important;
    transform: scale(1.01);
    transition: all 0.25s ease;
}

/* --- Close Button Enhanced --- */
.close-btn {
    transition: transform var(--transition-bounce), background-color var(--transition-fast),
                color var(--transition-fast);
}
.close-btn:hover {
    transform: rotate(90deg) scale(1.1);
    background-color: var(--color-danger);
    color: white;
}


/* Active Booking Dots CSS */
.active-booking-dots-container { position: absolute; top: 10px; right: 10px; display: flex; gap: 4px; z-index: 10; }
.active-booking-dot { width: 12px; height: 12px; border-radius: 50%; background-color: #ef4444; border: 2px solid white; box-shadow: 0 0 8px rgba(239, 68, 68, 0.8); animation: pulseDot 1.5s infinite; }
@keyframes pulseDot { 0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0.7); } 70% { transform: scale(1); box-shadow: 0 0 0 6px rgba(239, 68, 68, 0); } 100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(239, 68, 68, 0); } }

 

/* =====================================================
   Desktop Layout — Full Fix (>=1025px)
   ===================================================== */
@media (min-width: 1025px) {

    /* Wider sidebar on large screens */
    .bottom-nav {
        width: 280px;
    }
    .main-content {
        margin-right: 280px;
        width: calc(100% - 280px);
    }

    /* All page-views fill full width of main-content */
    .page-view {
        width: 100%;
        box-sizing: border-box;
    }

    /* Default active state: block, full width */
    .page-view.active {
        display: block;
        width: 100%;
    }

    /* ── HOME VIEW ── */
    #view-home.active {
        display: block;
        width: 100%;
    }

    /* ── BOOKINGS VIEW ── */
    #view-bookings.active {
        display: block;
        width: 100%;
        padding-bottom: 60px;
    }
    #view-bookings .page-header {
        padding: 36px 0 20px;
        margin-bottom: 4px;
    }
    #view-bookings .page-header h2 {
        font-size: 34px;
    }
    #bookings-tabs {
        max-width: 420px !important;
        margin: 0 0 28px 0 !important;
    }
    #bookings-list {
        display: grid !important;
        grid-template-columns: repeat(auto-fill, minmax(400px, 1fr)) !important;
        gap: 24px !important;
        margin: 0 !important;
        width: 100% !important;
        max-width: 100% !important;
        padding: 0 !important;
    }
    .booking-ticket-card {
        max-width: 100% !important;
        margin-bottom: 0 !important;
    }

    /* ── FAVORITES VIEW ── */
    #view-favorites.active {
        display: block;
        width: 100%;
        padding-bottom: 60px;
    }
    #view-favorites .page-header {
        padding: 36px 0 20px;
    }
    #favorites-list {
        max-width: 100% !important;
        margin: 0 !important;
        width: 100% !important;
    }
    .fav-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 24px !important;
    }

    /* ── MORE VIEW ── */
    #view-more.active {
        display: block;
        width: 100%;
        padding-bottom: 60px;
    }
    #view-more .page-header {
        padding: 36px 0 20px;
    }
    .menu-list {
        max-width: 640px;
    }

    /* ── SEARCH VIEW ── */
    #view-search.active {
        display: block;
        width: 100%;
    }

    /* ── DETAILS VIEW ── */
    #view-details.active {
        width: 100%;
    }

    /* ── BOOKING DETAILS VIEW ── */
    #view-booking-details.active {
        display: block;
        width: 100%;
        padding-bottom: 60px;
    }

    /* ── Tabs ── */
    .tabs-container {
        max-width: 440px;
        margin-bottom: 28px;
    }

    /* ── Page headers ── */
    .page-header h2 {
        font-size: 30px;
    }
}

/* --- Hamburger Menu Reordering --- */
.page-header .hamburger-menu-btn-global {
    order: -1;
}

#mobile-header {
    flex-direction: row-reverse;
}

#mobile-header > div:last-child {
    flex-direction: row-reverse;
}
