/*
 * Property Rental Management - Modern Website Styles
 * Inspired by Airbnb & StayVista
 * Version: 2.0
 */

/* ========================================
   1. CSS VARIABLES & ROOT SETTINGS
   Scoped to .rental-website to avoid affecting other website elements
   ======================================== */
.rental-website {
    /* Primary Colors - Inherit from Odoo Website Theme */
    --rental-primary: var(--o-color-1, #714B67);
    --rental-primary-dark: var(--o-color-1, #5a3b52);
    --rental-primary-light: var(--o-color-1, #8a5d7e);

    /* Secondary Colors */
    --rental-secondary: #00A699;
    --rental-secondary-dark: #008F82;

    /* Neutral Colors */
    --rental-dark: #222222;
    --rental-gray-900: #333333;
    --rental-gray-800: #484848;
    --rental-gray-700: #5A5A5A;
    --rental-gray-600: #717171;
    --rental-gray-500: #8A8A8A;
    --rental-gray-400: #B0B0B0;
    --rental-gray-300: #DDDDDD;
    --rental-gray-200: #EBEBEB;
    --rental-gray-100: #F7F7F7;
    --rental-gray-50: #FAFAFA;
    --rental-white: #FFFFFF;

    /* Semantic Colors */
    --rental-success: #008A05;
    --rental-warning: #FFB400;
    --rental-error: #C13515;
    --rental-info: #428BFF;

    /* Shadows */
    --rental-shadow-xs: 0 1px 2px rgba(0, 0, 0, 0.04);
    --rental-shadow-sm: 0 2px 8px rgba(0, 0, 0, 0.08);
    --rental-shadow-md: 0 4px 16px rgba(0, 0, 0, 0.12);
    --rental-shadow-lg: 0 8px 32px rgba(0, 0, 0, 0.16);
    --rental-shadow-xl: 0 16px 48px rgba(0, 0, 0, 0.2);
    --rental-shadow-hover: 0 6px 20px rgba(0, 0, 0, 0.15);

    /* Border Radius */
    --rental-radius-xs: 4px;
    --rental-radius-sm: 8px;
    --rental-radius-md: 12px;
    --rental-radius-lg: 16px;
    --rental-radius-xl: 24px;
    --rental-radius-full: 9999px;

    /* Typography */
    --rental-font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    --rental-font-size-xs: 12px;
    --rental-font-size-sm: 14px;
    --rental-font-size-base: 16px;
    --rental-font-size-lg: 18px;
    --rental-font-size-xl: 20px;
    --rental-font-size-2xl: 24px;
    --rental-font-size-3xl: 32px;
    --rental-font-size-4xl: 40px;
    --rental-font-size-5xl: 48px;

    /* Spacing */
    --rental-space-1: 4px;
    --rental-space-2: 8px;
    --rental-space-3: 12px;
    --rental-space-4: 16px;
    --rental-space-5: 20px;
    --rental-space-6: 24px;
    --rental-space-8: 32px;
    --rental-space-10: 40px;
    --rental-space-12: 48px;
    --rental-space-16: 64px;

    /* Transitions */
    --rental-transition-fast: 150ms ease;
    --rental-transition-normal: 250ms ease;
    --rental-transition-slow: 350ms ease;

    /* Base styles */
    font-family: var(--rental-font-family);
    color: var(--rental-dark);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
}

/* ========================================
   2. BASE STYLES
   ======================================== */
.rental-website a {
    color: var(--rental-dark);
    text-decoration: none;
    transition: color var(--rental-transition-fast);
}

.rental-website a:hover {
    color: var(--rental-primary);
}

/* Utility Classes for Theme Colors - Scoped to rental website only */
.rental-website .text-primary-theme {
    color: var(--rental-primary) !important;
}

.rental-website .bg-primary-theme {
    background-color: var(--rental-primary) !important;
}

.rental-website .btn-primary-theme {
    background: var(--rental-primary) !important;
    color: var(--rental-white) !important;
    border: none !important;
}

.rental-website .btn-primary-theme:hover {
    filter: brightness(0.9);
    color: var(--rental-white) !important;
}

.rental-website .border-primary-theme {
    border-color: var(--rental-primary) !important;
}

/* ========================================
   3. HERO SECTION
   ======================================== */
.hero-section,
.hero-wrapper {
    position: relative;
    width: 100%;
    height: 70vh;
    min-height: 480px;
    max-height: 650px;
    overflow: visible;
    margin-bottom: 50px;
}

.hero-section::before,
.hero-wrapper::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, rgba(0, 0, 0, 0.35) 0%, rgba(0, 0, 0, 0.15) 40%, rgba(0, 0, 0, 0.4) 100%);
    z-index: 1;
}

.hero-section img.hero-bg,
.hero-section>img,
.hero-wrapper>img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.hero-content {
    position: absolute;
    top: 40%;
    left: 50%;
    transform: translate(-50%, -50%);
    text-align: center;
    z-index: 2;
    width: 90%;
    max-width: 700px;
}

.hero-content h1 {
    font-size: var(--font-size-5xl);
    font-weight: 800;
    color: var(--white);
    margin-bottom: var(--space-4);
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    line-height: 1.1;
}

.hero-content p {
    font-size: var(--font-size-lg);
    color: var(--white);
    opacity: 0.95;
    text-shadow: 0 1px 10px rgba(0, 0, 0, 0.3);
}

/* ========================================
   4. SEARCH BOX
   ======================================== */
.search-wrapper,
.search-container {
    position: absolute;
    bottom: -35px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    width: 95%;
    max-width: 850px;
}

.search-box,
.search-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: 8px;
    display: flex;
    align-items: center;
    border: 1px solid var(--gray-200);
}

.search-field {
    flex: 1;
    padding: var(--space-4) var(--space-5);
    border-radius: var(--radius-lg);
    transition: background var(--transition-fast);
    cursor: pointer;
    position: relative;
}

.search-field:hover {
    background: var(--gray-100);
}

.search-field::after {
    content: '';
    position: absolute;
    right: 0;
    top: 25%;
    height: 50%;
    width: 1px;
    background: var(--gray-300);
}

.search-field:last-of-type::after {
    display: none;
}

.search-field label {
    display: block;
    font-size: var(--font-size-xs);
    font-weight: 700;
    color: var(--dark);
    margin-bottom: var(--space-1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.search-field input,
.search-field select {
    width: 100%;
    border: none;
    background: transparent;
    font-size: var(--font-size-sm);
    color: var(--gray-600);
    outline: none;
    padding: 0;
}

.search-btn,
.search-btn-main {
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius-lg);
    padding: var(--space-4) var(--space-6);
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: var(--space-2);
    transition: all var(--transition-normal);
    box-shadow: 0 4px 14px rgba(255, 56, 92, 0.4);
}

.search-btn:hover,
.search-btn-main:hover {
    transform: scale(1.02);
    box-shadow: 0 6px 20px rgba(255, 56, 92, 0.5);
}

/* ========================================
   5. MAIN CONTENT
   ======================================== */
.main-content {
    padding: var(--space-10) 0 var(--space-12);
    background: var(--gray-100);
    min-height: 50vh;
}

.section-header {
    margin-bottom: var(--space-8);
}

.section-title {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 var(--space-2) 0;
}

.section-subtitle {
    font-size: var(--font-size-base);
    color: var(--gray-600);
    margin: 0;
}

/* ========================================
   6. PROPERTY GRID
   ======================================== */
.property-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-6);
}

@media (max-width: 1200px) {
    .property-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 992px) {
    .property-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .property-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   7. PROPERTY CARD
   ======================================== */
.property-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    border: none;
}

.property-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.property-card-link {
    display: block;
    text-decoration: none;
    color: inherit;
    width: 100%;
    text-align: left;
    cursor: pointer;
    border: none;
    background: none;
    padding: 0;
}

.card-image,
.card-image-wrapper {
    position: relative;
    aspect-ratio: 4/3;
    overflow: hidden;
}

.card-image img,
.card-image-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.property-card:hover .card-image img,
.property-card:hover .card-image-wrapper img {
    transform: scale(1.05);
}

.card-badge {
    position: absolute;
    top: var(--space-3);
    left: var(--space-3);
    background: var(--white);
    padding: 6px 12px;
    border-radius: var(--radius-full);
    font-size: var(--font-size-xs);
    font-weight: 600;
    color: var(--dark);
    box-shadow: var(--shadow-sm);
}

.card-badge.badge-new,
.card-badge.new {
    background: var(--primary);
    color: var(--white);
}

.card-badge.badge-featured,
.card-badge.superhost {
    background: var(--dark);
    color: var(--white);
}

.card-wishlist {
    position: absolute;
    top: var(--space-3);
    right: var(--space-3);
    width: 34px;
    height: 34px;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all var(--transition-fast);
    border: none;
    z-index: 5;
}

.card-wishlist:hover {
    transform: scale(1.1);
    background: var(--white);
}

.card-wishlist i {
    font-size: 16px;
    color: var(--dark);
}

.card-wishlist.active i {
    color: var(--primary);
}

.card-content,
.card-body {
    padding: var(--space-4);
}

.card-header-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: var(--space-1);
}

.card-location {
    font-size: 15px;
    font-weight: 600;
    color: var(--dark);
    margin: 0;
}

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

.card-rating i {
    color: var(--dark);
    font-size: 11px;
}

.card-name {
    font-size: var(--font-size-sm);
    color: var(--gray-600);
    margin: 0 0 var(--space-2) 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.card-features {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-2);
    margin-bottom: var(--space-3);
}

.card-features span {
    font-size: 13px;
    color: var(--gray-600);
    display: flex;
    align-items: center;
    gap: 4px;
}

.card-price {
    font-size: var(--font-size-base);
    color: var(--dark);
    border-top: 1px solid var(--gray-200);
    padding-top: var(--space-3);
}

.card-price strong {
    font-weight: 700;
}

.card-price span {
    color: var(--gray-600);
}

/* ========================================
   8. EMPTY STATE
   ======================================== */
.empty-state {
    text-align: center;
    padding: var(--space-16) var(--space-8);
    background: var(--white);
    border-radius: var(--radius-lg);
    max-width: 500px;
    margin: 0 auto;
}

.empty-state-icon {
    width: 80px;
    height: 80px;
    background: var(--gray-100);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-6);
}

.empty-state-icon i {
    font-size: 32px;
    color: var(--gray-500);
}

.empty-state h4 {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 var(--space-2) 0;
}

.empty-state p {
    font-size: var(--font-size-base);
    color: var(--gray-600);
    margin: 0 0 var(--space-6) 0;
}

.btn-primary-custom {
    background: var(--primary);
    color: var(--white) !important;
    border: none;
    border-radius: var(--radius-sm);
    padding: 14px 28px;
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    display: inline-block;
}

.btn-primary-custom:hover {
    background: var(--primary-dark);
    color: var(--white) !important;
    text-decoration: none;
}

/* ========================================
   9. CATEGORY CARDS
   ======================================== */
.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--space-4);
}

@media (max-width: 768px) {
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

.category-card {
    background: var(--white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    transition: all var(--transition-normal);
    cursor: pointer;
    border: 1px solid var(--gray-200);
}

.category-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-md);
    border-color: var(--primary);
}

.category-card-image {
    height: 120px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.category-card-image i {
    font-size: 40px;
    color: var(--white);
}

.category-card-body {
    padding: var(--space-4);
    text-align: center;
}

.category-card-body h5 {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--dark);
    margin: 0 0 var(--space-1) 0;
}

.category-card-body p {
    font-size: var(--font-size-xs);
    color: var(--gray-600);
    margin: 0;
}

/* Categories Section Container */
.categories-section {
    padding: var(--space-12) 0;
    background: var(--gray-100);
}

/* ========================================
   10. FEATURES SECTION
   ======================================== */
.features-section {
    background: var(--white);
    padding: var(--space-16) 0;
}

.feature-box {
    text-align: center;
    padding: var(--space-6);
}

.feature-icon {
    width: 72px;
    height: 72px;
    background: linear-gradient(135deg, rgba(255, 56, 92, 0.1) 0%, rgba(255, 56, 92, 0.05) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-5);
}

.feature-icon i {
    font-size: 28px;
    color: var(--primary);
}

.feature-box h5 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--dark);
    margin: 0 0 var(--space-2) 0;
}

.feature-box p {
    font-size: var(--font-size-sm);
    color: var(--gray-600);
    line-height: 1.6;
    margin: 0;
}

/* ========================================
   11. PROPERTY DETAIL PAGE
   ======================================== */
.property-detail {
    max-width: 1280px;
    margin: 0 auto;
    padding: 0 var(--space-6);
}

.property-title {
    font-size: var(--font-size-2xl);
    font-weight: 600;
    color: var(--dark);
    margin: 0;
}

.property-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: var(--space-4);
    font-size: var(--font-size-sm);
    color: var(--gray-600);
}

.property-meta-item {
    display: flex;
    align-items: center;
    gap: var(--space-2);
}

.property-meta-rating i {
    color: var(--primary);
}

/* Photo Gallery */
.photo-gallery {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: repeat(2, 200px);
    gap: var(--space-2);
    border-radius: var(--radius-lg);
    overflow: hidden;
    position: relative;
}

.photo-gallery-main {
    grid-row: span 2;
    overflow: hidden;
}

.photo-gallery-main img,
.photo-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
    cursor: pointer;
}

.photo-gallery-main:hover img,
.photo-gallery-item:hover img {
    transform: scale(1.02);
}

.photo-gallery-item {
    overflow: hidden;
}

.photo-gallery-show-all {
    position: absolute;
    bottom: var(--space-4);
    right: var(--space-4);
    background: var(--white);
    border: 1px solid var(--dark);
    padding: var(--space-2) var(--space-4);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
}

.photo-gallery-show-all:hover {
    background: var(--dark);
    color: var(--white);
}

/* Photo Gallery Placeholders */
.photo-gallery-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
    color: #999;
    text-align: center;
    padding: var(--space-4);
}

.photo-gallery-placeholder i {
    color: #ccc;
    margin-bottom: var(--space-3);
}

.photo-gallery-placeholder span {
    font-size: var(--font-size-base);
    font-weight: 500;
}

.photo-gallery-placeholder-small {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, #f0f0f0 0%, #e0e0e0 100%);
    color: #bbb;
}

.photo-gallery-item-empty {
    background: #f5f5f5;
    border: 1px dashed #ddd;
}

.photo-gallery-more-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    display: flex;
    align-items: center;
    justify-content: center;
}

.photo-gallery-more-overlay span {
    color: white;
    font-size: var(--font-size-lg);
    font-weight: 600;
}

.photo-gallery-item {
    overflow: hidden;
    position: relative;
}

/* Gallery Modal Styles */
.gallery-modal .modal-content {
    background: #1a1a1a;
    border: none;
    border-radius: 0;
}

.gallery-modal-header {
    background: rgba(0, 0, 0, 0.8);
    border-bottom: none;
    padding: var(--space-4) var(--space-6);
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
}

.gallery-modal-body {
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 100vh;
    background: #1a1a1a;
}

.gallery-carousel {
    width: 100%;
    height: 100%;
}

.gallery-carousel-inner {
    height: calc(100vh - 120px);
}

.gallery-image-wrapper {
    display: flex;
    align-items: center;
    justify-content: center;
    height: calc(100vh - 120px);
    padding: 60px 80px 80px;
}

.gallery-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    border-radius: var(--radius-md);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

/* Gallery Counter */
.gallery-counter {
    position: absolute;
    top: 70px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    z-index: 10;
}

/* Gallery Controls */
.gallery-control {
    width: 60px;
    height: 60px;
    opacity: 1;
    top: 50%;
    transform: translateY(-50%);
}

.gallery-control-icon {
    width: 50px;
    height: 50px;
    background: rgba(255, 255, 255, 0.95);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.gallery-control-icon i {
    color: #333;
    font-size: 18px;
}

.gallery-control:hover .gallery-control-icon {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
}

.carousel-control-prev.gallery-control {
    left: 20px;
}

.carousel-control-next.gallery-control {
    right: 20px;
}

/* Gallery Thumbnails */
.gallery-thumbnails {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    gap: 8px;
    padding: 10px 16px;
    background: rgba(0, 0, 0, 0.6);
    border-radius: 12px;
    max-width: 90%;
    overflow-x: auto;
}

.gallery-thumb {
    width: 60px;
    height: 45px;
    border-radius: 6px;
    overflow: hidden;
    cursor: pointer;
    opacity: 0.6;
    transition: all 0.2s ease;
    border: 2px solid transparent;
    flex-shrink: 0;
}

.gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gallery-thumb:hover,
.gallery-thumb.active {
    opacity: 1;
    border-color: white;
}

/* No Photos Placeholder */
.gallery-no-photos {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 100vh;
    color: #888;
    text-align: center;
}

.gallery-no-photos i {
    color: #555;
}

.gallery-no-photos h4 {
    color: #aaa;
    margin-bottom: 8px;
}

@media (max-width: 768px) {
    .photo-gallery {
        grid-template-columns: 1fr;
        grid-template-rows: 300px;
    }

    .photo-gallery-main {
        grid-row: span 1;
    }

    .photo-gallery-item {
        display: none;
    }

    .gallery-image-wrapper {
        padding: 60px 20px 100px;
    }

    .gallery-control {
        width: 40px;
        height: 40px;
    }

    .gallery-control-icon {
        width: 36px;
        height: 36px;
    }

    .gallery-control-icon i {
        font-size: 14px;
    }

    .carousel-control-prev.gallery-control {
        left: 10px;
    }

    .carousel-control-next.gallery-control {
        right: 10px;
    }

    .gallery-thumbnails {
        bottom: 10px;
        padding: 8px 12px;
    }

    .gallery-thumb {
        width: 50px;
        height: 38px;
    }
}

/* Property Content Layout */
.property-content-layout {
    display: grid;
    grid-template-columns: 1fr 380px;
    gap: var(--space-16);
    margin-top: var(--space-8);
}

@media (max-width: 992px) {
    .property-content-layout {
        grid-template-columns: 1fr;
    }
}

.property-info>div {
    padding: var(--space-6) 0;
    border-bottom: 1px solid var(--gray-200);
}

.property-info>div:last-child {
    border-bottom: none;
}

.property-info h3 {
    font-size: var(--font-size-xl);
    font-weight: 600;
    color: var(--dark);
    margin: 0 0 var(--space-4) 0;
}

/* Host Info */
.property-host {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.property-host-info h3 {
    font-size: var(--font-size-xl);
    margin-bottom: var(--space-2);
}

.property-host-info p {
    color: var(--gray-600);
    margin: 0;
}

.property-host-avatar {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    overflow: hidden;
}

.property-host-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Highlights */
.property-highlights {
    display: flex;
    flex-direction: column;
    gap: var(--space-5);
}

.highlight-item {
    display: flex;
    gap: var(--space-4);
}

.highlight-icon {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.highlight-icon i {
    font-size: 24px;
    color: var(--dark);
}

.highlight-content h4 {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--dark);
    margin: 0 0 var(--space-1) 0;
}

.highlight-content p {
    font-size: var(--font-size-sm);
    color: var(--gray-600);
    margin: 0;
}

/* Amenities */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-4);
}

.amenity-item {
    display: flex;
    align-items: center;
    gap: var(--space-4);
    padding: var(--space-3) 0;
}

.amenity-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.amenity-icon i {
    font-size: 20px;
    color: var(--gray-700);
}

.amenity-name {
    font-size: var(--font-size-base);
    color: var(--dark);
}

.show-all-amenities {
    margin-top: var(--space-4);
    padding: var(--space-3) var(--space-5);
    background: var(--white);
    border: 1px solid var(--dark);
    border-radius: var(--radius-sm);
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
}

.show-all-amenities:hover {
    background: var(--dark);
    color: var(--white);
}

/* Services */
.services-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: var(--space-4);
}

.service-card {
    background: var(--white);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-md);
    overflow: hidden;
    transition: all var(--transition-fast);
    cursor: pointer;
}

.service-card:hover,
.service-card.selected {
    border-color: var(--primary);
    box-shadow: 0 0 0 1px var(--primary);
}

.service-card-image {
    height: 100px;
    overflow: hidden;
}

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

.service-card-content {
    padding: var(--space-3);
}

.service-card-name {
    font-size: var(--font-size-sm);
    font-weight: 600;
    color: var(--dark);
    margin-bottom: var(--space-1);
}

.service-card-price {
    font-size: var(--font-size-sm);
    color: var(--primary);
    font-weight: 600;
}

/* Nearby */
.nearby-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: var(--space-4);
}

.nearby-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: var(--space-2);
    padding: var(--space-4);
    background: var(--gray-50);
    border-radius: var(--radius-md);
    text-align: center;
}

.nearby-item-name {
    font-size: var(--font-size-sm);
    color: var(--gray-700);
}

/* Policies */
.policies-tabs {
    display: flex;
    gap: var(--space-2);
    margin-bottom: var(--space-5);
    flex-wrap: wrap;
}

.policy-tab {
    padding: var(--space-2) var(--space-4);
    background: var(--gray-100);
    border: none;
    border-radius: var(--radius-full);
    font-size: var(--font-size-sm);
    font-weight: 500;
    color: var(--gray-700);
    cursor: pointer;
}

.policy-tab:hover {
    background: var(--gray-200);
}

.policy-tab.active {
    background: var(--dark);
    color: var(--white);
}

.policy-content {
    display: none;
}

.policy-content.active {
    display: block;
}

.policy-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: var(--space-6);
}

@media (max-width: 768px) {
    .policy-grid {
        grid-template-columns: 1fr;
    }
}

.policy-item h4 {
    font-size: var(--font-size-base);
    font-weight: 600;
    color: var(--dark);
    margin: 0 0 var(--space-3) 0;
}

.policy-item ul {
    margin: 0;
    padding-left: var(--space-5);
    color: var(--gray-700);
}

.policy-item li {
    margin-bottom: var(--space-2);
    font-size: var(--font-size-sm);
}

/* ========================================
   12. BOOKING WIDGET
   ======================================== */
.booking-widget-container {
    position: sticky;
    top: 100px;
    height: fit-content;
}

.booking-widget {
    background: var(--white);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-lg);
    border: 1px solid var(--gray-200);
    padding: var(--space-6);
}

.booking-widget-price {
    display: flex;
    align-items: baseline;
    gap: var(--space-1);
}

.booking-widget-price .amount {
    font-size: var(--font-size-2xl);
    font-weight: 700;
    color: var(--dark);
}

.booking-widget-price .period {
    font-size: var(--font-size-base);
    color: var(--gray-600);
}

.booking-widget-rating {
    display: flex;
    align-items: center;
    gap: var(--space-1);
    font-size: var(--font-size-sm);
}

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

.booking-form {
    margin-top: var(--space-4);
    border: 1px solid var(--gray-300);
    border-radius: var(--radius-md);
    overflow: hidden;
}

.booking-dates {
    display: grid;
    grid-template-columns: 1fr 1fr;
}

.booking-field {
    padding: var(--space-3);
    border-bottom: 1px solid var(--gray-300);
}

.booking-dates .booking-field:first-child {
    border-right: 1px solid var(--gray-300);
}

.booking-field label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: var(--dark);
    margin-bottom: var(--space-1);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.booking-field input,
.booking-field select {
    width: 100%;
    border: none;
    background: transparent;
    font-size: var(--font-size-sm);
    color: var(--dark);
    outline: none;
}

.booking-guests {
    border-bottom: none;
}

.price-breakdown {
    margin-top: var(--space-5);
    padding-top: var(--space-4);
    border-top: 1px solid var(--gray-200);
}

.price-row {
    display: flex;
    justify-content: space-between;
    padding: var(--space-2) 0;
    font-size: var(--font-size-base);
    color: var(--gray-700);
}

.price-row.total {
    font-weight: 700;
    color: var(--dark);
    font-size: var(--font-size-lg);
    padding-top: var(--space-4);
    margin-top: var(--space-2);
    border-top: 1px solid var(--gray-300);
}

.booking-submit {
    width: 100%;
    padding: var(--space-4);
    background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
    color: var(--white);
    border: none;
    border-radius: var(--radius-md);
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-normal);
}

.booking-submit:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 56, 92, 0.4);
}

.booking-note {
    text-align: center;
    color: var(--gray-600);
    font-size: var(--font-size-sm);
    margin: var(--space-4) 0 0 0;
}

/* ========================================
   13. BUTTONS
   ======================================== */
.btn-primary {
    background: var(--primary);
    color: var(--white);
    border: none;
    border-radius: var(--radius-sm);
    padding: var(--space-3) var(--space-6);
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    transition: all var(--transition-fast);
    text-decoration: none;
    display: inline-block;
}

.btn-primary:hover {
    background: var(--primary-dark);
    color: var(--white);
}

.btn-outline {
    background: var(--white);
    color: var(--dark);
    border: 1px solid var(--dark);
    border-radius: var(--radius-sm);
    padding: var(--space-3) var(--space-6);
    font-size: var(--font-size-base);
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-block;
}

.btn-outline:hover {
    background: var(--dark);
    color: var(--white);
}

/* ========================================
   14. MODAL STYLES
   ======================================== */
.modal-modern .modal-content {
    border: none;
    border-radius: var(--radius-lg);
}

.modal-modern .modal-header {
    border-bottom: 1px solid var(--gray-200);
    padding: var(--space-4) var(--space-6);
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.modal-modern .modal-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    color: var(--dark);
    margin: 0;
    flex: 1;
    text-align: center;
}

.modal-modern .modal-body {
    padding: var(--space-6);
    max-height: 60vh;
    overflow-y: auto;
}

.modal-modern .modal-footer {
    border-top: 1px solid var(--gray-200);
    padding: var(--space-4) var(--space-6);
    justify-content: center;
}

/* ========================================
   15. THANK YOU PAGE
   ======================================== */
.thank-you-page {
    min-height: 80vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--gray-50) 0%, var(--white) 100%);
    padding: var(--space-8);
}

.thank-you-card {
    background: var(--white);
    border-radius: var(--radius-xl);
    box-shadow: var(--shadow-lg);
    padding: var(--space-12);
    text-align: center;
    max-width: 500px;
    width: 100%;
}

.thank-you-icon {
    width: 100px;
    height: 100px;
    background: linear-gradient(135deg, var(--secondary) 0%, var(--secondary-dark) 100%);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto var(--space-6);
}

.thank-you-icon i {
    font-size: 48px;
    color: var(--white);
}

.thank-you-card h1 {
    font-size: var(--font-size-3xl);
    font-weight: 700;
    color: var(--dark);
    margin: 0 0 var(--space-4) 0;
}

.thank-you-card p {
    font-size: var(--font-size-base);
    color: var(--gray-600);
    margin: 0 0 var(--space-6) 0;
    line-height: 1.6;
}

.booking-reference {
    background: var(--gray-100);
    border-radius: var(--radius-md);
    padding: var(--space-4) var(--space-6);
    margin-bottom: var(--space-6);
}

.booking-reference-label {
    font-size: var(--font-size-sm);
    color: var(--gray-600);
    margin-bottom: var(--space-1);
}

.booking-reference-number {
    font-size: var(--font-size-xl);
    font-weight: 700;
    color: var(--primary);
    letter-spacing: 2px;
}

/* ========================================
   16. RESPONSIVE
   ======================================== */
@media (max-width: 768px) {

    .hero-section,
    .hero-wrapper {
        height: 60vh;
        margin-bottom: 70px;
    }

    .hero-content h1 {
        font-size: var(--font-size-3xl);
    }

    .search-box,
    .search-card {
        flex-direction: column;
        padding: var(--space-4);
    }

    .search-field {
        width: 100%;
        border-bottom: 1px solid var(--gray-200);
        padding: var(--space-3) var(--space-4);
    }

    .search-field::after {
        display: none;
    }

    .search-btn,
    .search-btn-main {
        width: 100%;
        justify-content: center;
        margin-top: var(--space-2);
    }

    .section-title {
        font-size: var(--font-size-2xl);
    }

    .booking-widget-container {
        position: static;
        margin-top: var(--space-8);
    }

    .amenities-grid {
        grid-template-columns: 1fr;
    }
}
/* ========================================
   REVIEWS SECTION
   ======================================== */
.rental-website .reviews-section {
    padding-top: var(--rental-space-8, 2rem);
    border-top: 1px solid var(--rental-gray-200, #EBEBEB);
}

.rental-website .reviews-section h3 {
    font-size: 1.5rem;
    font-weight: 600;
}

.rental-website .reviews-section .review-card {
    background: var(--rental-white, #fff);
    transition: all 0.2s ease;
}

.rental-website .reviews-section .review-card:hover {
    box-shadow: var(--rental-shadow-sm, 0 2px 8px rgba(0, 0, 0, 0.08));
}

.rental-website .reviews-section .reviewer-avatar {
    font-size: 1rem;
}

.rental-website .reviews-section .fa-star {
    font-size: 0.875rem;
}

.rental-website .reviews-section .badge {
    font-size: 0.7rem;
    font-weight: 500;
}
