/* გაუმჯობესებული შედეგების სექცია - ელეგანტური და კომპლექსური */
.results-section {
    padding: 40px 20px;
    background-color: #e9ecef;
    margin: 0;
}

.results-section h2 {
    font-size: 28px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #2c3e50;
    text-align: center;
    letter-spacing: 0.5px;
}

.results-count {
    text-align: center;
    font-size: 16px;
    color: #7f8c8d;
    margin-bottom: 40px;
    font-weight: 400;
}

#resultsContainer {
    width: 100%;
}


/* ელეგანტური უძრავი ქონების ბარათის დიზაინი */
/* ელეგანტური უძრავი ქონების ბარათის დიზაინი */
.property-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.07);
    transition: transform 0.3s cubic-bezier(0.34, 1.56, 0.64, 1), box-shadow 0.3s ease;
    cursor: pointer;
    border: 1px solid #e8ecf0;
}

.property-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 50px rgba(91, 45, 142, 0.15);
    border-color: #c4a0f5;
}

/* გაუმჯობესებული უძრავი ქონების სურათები */
.property-images {
    position: relative;
    height: 220px;
    overflow: hidden;
    background-color: #f8f9fa;
}

.property-images img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

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

.image-gradient-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.25) 0%, transparent 60%);
    pointer-events: none;
    z-index: 2;
}

.image-counter {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 5px 11px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    z-index: 10;
}

/* Premium / Featured ribbon */
.featured-ribbon {
    position: absolute;
    top: 0;
    left: 0;
    background: linear-gradient(135deg, #f39c12, #e67e22);
    color: white;
    padding: 6px 14px 6px 10px;
    font-size: 12px;
    font-weight: 700;
    z-index: 10;
    border-radius: 0 0 12px 0;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

.featured-ribbon i {
    font-size: 11px;
    color: #fff176;
}

/* სართულის badge — სურათის ქვედა-მარცხენა კუთხეში */
.floor-badge {
    position: absolute;
    bottom: 46px;
    left: 12px;
    background: rgba(44, 62, 80, 0.75);
    color: white;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 4px;
}

.floor-badge i {
    font-size: 10px;
    color: #90caf9;
}

/* შეფასების badge — იმავე (მარცხენა) მხარეს, სურათების მთვლელის დონეზე */
.card-rating-badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    z-index: 5;
}

/* Featured card — ოქროსფერი border */
.property-card:has(.featured-ribbon) {
    border-color: #f39c12;
    box-shadow: 0 4px 20px rgba(243, 156, 18, 0.2);
}

.property-card:has(.featured-ribbon):hover {
    box-shadow: 0 8px 35px rgba(243, 156, 18, 0.35);
}

/* ფასი სურათზე */
.price-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    background: rgba(0, 0, 0, 0.45);
    color: white;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* ხელმისაწვდომობის badge */
.image-avail-badge {
    position: absolute;
    top: 12px;
    right: 54px;
    background: rgba(123,63,190, 0.88);
    color: white;
    padding: 5px 11px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 5px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.avail-dot {
    width: 7px;
    height: 7px;
    background: #7fffb0;
    border-radius: 50%;
    display: inline-block;
    animation: pulse-dot 1.8s infinite;
}

@keyframes pulse-dot {
    0%, 100% { opacity: 1; transform: scale(1); }
    50% { opacity: 0.5; transform: scale(0.75); }
}

/* ვარსკვლავები + რეიტინგი */
.image-rating {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.58);
    color: white;
    padding: 5px 11px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 4px;
}

.image-rating .stars {
    color: #ffd700;
    font-size: 14px;
    line-height: 1;
}

.image-rating .rating-num {
    color: #fff;
    font-weight: 700;
}

.image-rating .rating-count {
    color: rgba(255,255,255,0.75);
    font-size: 11px;
}

.image-navigation {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    color: #495057;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    opacity: 0;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

.property-card:hover .image-navigation {
    opacity: 1;
}

.image-navigation:hover {
    background: white;
    color: var(--color-primary, #7B3FBE);
    transform: translateY(-50%) scale(1.1);
}

.image-navigation.prev {
    left: 12px;
}

.image-navigation.next {
    right: 12px;
}

.no-image-placeholder {
    height: 240px;
    background: linear-gradient(135deg, #ecf0f1, #bdc3c7);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #7f8c8d;
}

.no-image-placeholder i {
    font-size: 2.5rem;
    margin-bottom: 0.8rem;
    opacity: 0.6;
}

.no-image-placeholder p {
    font-size: 14px;
    font-weight: 500;
}

/* გაუმჯობესებული უძრავი ქონების კონტენტი */
.property-card h3 {
    color: #2c3e50;
    margin: 20px 20px 16px 20px;
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.property-details {
    padding: 0 20px;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
    gap: 12px;
    margin-bottom: 20px;
}

.property-detail {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 13px;
    color: #5a6c7d;
    font-weight: 500;
    padding: 10px 14px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
}

.property-detail:hover {
    background-color: var(--color-purple-soft, #f3eeff);
    border-color: var(--color-purple-border, #c4a0f5);
    transform: translateY(-1px);
}

.property-detail i {
    color: var(--color-primary, #7B3FBE);
    width: 16px;
    text-align: center;
    font-size: 14px;
}

.property-detail span {
    font-weight: 600;
    color: #34495e;
}

/* კლასიკური მახასიათებლების ეტიკეტები */
.property-features {
    padding: 0 20px 20px 20px;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.feature-tag {
    background: var(--color-purple-soft, #f3eeff);
    color: var(--color-primary, #7B3FBE);
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.feature-tag:hover {
    background: var(--color-primary, #7B3FBE);
    color: white;
    transform: translateY(-1px);
}

/* გაუმჯობესებული დამატების თარიღი */
.property-card div[style*="margin-top: 10px"] {
    margin: 16px 20px 20px 20px !important;
    padding: 10px 14px;
    background-color: #f1f3f4;
    border-radius: 6px;
    font-size: 12px !important;
    color: #6c757d !important;
    font-weight: 500;
    border-left: 3px solid #34495e;
}

/* განახლებული ღილაკების კონტეინერი - დეტალები მარცხნივ, ჯავშანი მარჯვნივ */
.property-actions {
    padding: 0 20px 20px 20px;
    display: flex;
    gap: 10px;
    justify-content: space-between; /* ცვლილება: flex-end -> space-between */
}

.property-button {
    padding: 10px 15px;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 5px;
}

.details-button {
    background: var(--gradient-btn, linear-gradient(135deg, #7B3FBE, #C06BB0));
    color: white;
    order: 1;
}

.details-button:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

.booking-button {
    background: linear-gradient(135deg, #28a745, #20c997);
    color: white;
    order: 2;
}

.booking-button:hover {
    filter: brightness(1.1);
    transform: translateY(-1px);
}

/* მახასიათებლების ბლოკის საწყისი დამალვა */
.property-features.property-features-hidden {
    display: none;
    opacity: 0;
    transition: opacity 0.4s ease-out;
}

/* მახასიათებლების ბლოკის გამოჩენა */
.property-features.property-features-visible {
    display: flex;
    opacity: 1;
    transition: opacity 0.4s ease-in;
}

/* ID/ნახვების ხაზი — ყოველთვის საკუთარ სრულ ხაზზე, რომ მახასიათებლების
   ჭდეებს არ დაეფაროს/გადაეფაროს (flex-wrap-ში sizing-ის გარეშე ხდებოდა) */
.property-footer-details {
    width: 100%;
    flex-basis: 100%;
}

/* ბინის მდებარეობის მინი-რუქა ჩამოშლად დეტალებში (მობილურის expand) */
.card-mini-map {
    width: 100%;
    height: 180px;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 4px;
    background: #eee;
}

/* Google Maps-ზე გახსნის ღილაკი */
.gmaps-link-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 8px;
    padding: 10px 14px;
    background: #fff;
    border: 1px solid #dadce0;
    border-radius: 8px;
    color: #1a73e8;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s ease;
}

.gmaps-link-btn:hover {
    background: #f1f6ff;
    border-color: #1a73e8;
}

/* Old property-item class (დავტოვოთ fallback-ისთვის) */
.property-item {
    display: none; /* ახლა არ გამოიყენება */
}

/* მობილური რესპონსიული სტილები */
@media (max-width: 768px) {
    #resultsContainer {
        grid-template-columns: 1fr;
        max-width: 700px;
        margin: 0 auto;
        padding: 0 10px;
        justify-items: center;
    }

    .property-list {
        grid-template-columns: 1fr;
        max-width: 700px;
        margin: 0 auto;
        padding: 0 10px;
        justify-items: center;
    }

    .property-card {
        width: 100%;
        max-width: 650px;
        margin: 0;
    }

    .property-actions {
        flex-direction: column;
        gap: 10px;
    }

    .property-button {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    #resultsContainer {
        max-width: 100%;
        padding: 0 10px;
        justify-items: center;
    }

    .property-list {
        max-width: 100%;
        padding: 0 10px;
        justify-items: center;
    }

    .property-card {
        width: 100%;
        max-width: 100%;
    }

    .property-images {
        height: 200px;
    }

    .property-card h3 {
        font-size: 18px;
        margin: 16px 16px 12px 16px;
    }

    .property-details {
        grid-template-columns: 1fr;
        padding: 0 16px;
    }

    .property-features {
        padding: 0 16px 16px 16px;
    }

    .property-actions {
        padding: 0 16px 16px 16px;
    }
}

/* განახლებული Property Section - Grid Layout როგორც Results Section-ში */
.property-section { 
    padding: 40px 20px; 
    background-color: #e9ecef; 
}

.property-section h2 { 
    text-align: center; 
    margin-bottom: 40px; 
    color: #2c3e50; 
    font-size: 28px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.property-list { 
    margin: 0 auto;
}

/* Fallback for browsers that don't support emojis */
@supports not (content: '🏠') {
    .property-info p:nth-child(2):before { content: '■'; }
    .property-info p:nth-child(3):before { content: '●'; }
    .property-info p:nth-child(4):before { content: '□'; }
    .property-info p:nth-child(5):before { content: '○'; }
    .property-info p:nth-child(6):before { content: '▣'; }
    .property-price:before { content: '$' !important; }
}

/* Refined Property Info for old .property-item (if used) */
.property-info { 
    padding: 20px; 
}

.property-info h3 { 
    margin: 0 0 16px 0; 
    color: #2c3e50; 
    font-size: 20px;
    font-weight: 600;
    line-height: 1.3;
}

.property-info p { 
    margin: 8px 0; 
    color: #5a6c7d; 
    font-size: 13px;
    font-weight: 500;
    padding: 10px 14px;
    background-color: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

.property-info p:hover {
    background-color: var(--color-purple-soft, #f3eeff);
    border-color: var(--color-purple-border, #c4a0f5);
    transform: translateY(-1px);
}

/* Unicode icons instead of Font Awesome - more reliable */
.property-info p:before {
    color: var(--color-primary, #7B3FBE);
    width: 16px;
    text-align: center;
    font-size: 14px;
    flex-shrink: 0;
}

/* Unicode იკონები Font Awesome-ის ნაცვლად */
.property-info p:nth-child(2):before { content: '🏠'; }
.property-info p:nth-child(3):before { content: '📍'; }
.property-info p:nth-child(4):before { content: '🚪'; }
.property-info p:nth-child(5):before { content: '🛁'; }
.property-info p:nth-child(6):before { content: '🏢'; }

.property-price { 
    font-weight: 600 !important; 
    color: var(--color-primary, #7B3FBE) !important; 
    font-size: 16px !important; 
    margin-top: 12px !important;
    padding: 12px 16px !important;
    background-color: var(--color-purple-soft, #f3eeff) !important;
    border: 1px solid var(--color-purple-border, #c4a0f5) !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    gap: 8px !important;
}

.property-price:before {
    content: '💰' !important;
    font-size: 16px !important;
    color: #1e90ff !important;
    flex-shrink: 0 !important;
}

.property-price:hover {
    background-color: #bbdefb !important;
    transform: translateY(-1px) !important;
}

/* 🌟 გულის (Favorite) ღილაკის სტილები */
.favorite-btn {
    position: absolute;
    top: 14px;
    right: 14px;
    width: 32px;
    height: 32px;
    border-radius: 50% !important;
    background: white !important;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: transform 0.2s;
    padding: 0;
}
.favorite-btn:hover {
    transform: scale(1.15);
}
.favorite-btn i {
    font-size: 14px;
    color: #d1d5db;
    transition: color 0.2s ease;
}
.favorite-btn.is-active i {
    color: #ec4899 !important;
}

/* Card Body Content wrapper */
.card-body-content {
    padding: 18px 20px 20px;
}

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

.card-header-left h3 {
    font-family: 'Plus Jakarta Sans', 'Noto Sans Georgian', sans-serif;
    font-weight: 700;
    font-size: 16px;
    color: #1a1a2e;
    margin: 0 !important;
    line-height: 1.3;
}

.card-location-text {
    font-size: 12px;
    color: #7B3FBE;
    margin-top: 3px;
    font-weight: 500;
}

/* Rating Badge inside Card Body */
.card-rating-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #fef9ee;
    padding: 4px 8px;
    border-radius: 20px;
    font-size: 13px;
    color: #1a1a2e;
}

.card-rating-badge .star {
    color: #F59E0B;
}

.card-rating-badge strong {
    font-weight: 700;
}

/* Quick Details Row */
.quick-details-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
    flex-wrap: nowrap !important;
    gap: 0 !important;
    font-size: 11px;
    color: #4a5568;
    margin-top: 12px;
    margin-bottom: 16px;
    width: 100%;
}

.quick-details-row span {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 6px;
    text-align: center;
    white-space: nowrap;
}

.quick-details-row i {
    font-size: 16px;
    color: #64748b;
}

/* Feature Tags Wrapper */
.card-features-wrapper {
    display: flex;
    gap: 6px;
    flex-wrap: wrap;
}

.card-feature-tag {
    background: #f3eeff;
    color: #7B3FBE;
    border-radius: 20px;
    font-size: 11px;
    padding: 3px 10px;
    font-weight: 500;
}

/* Short Description (shown on card instead of feature tags) */
.card-short-description {
    font-size: 13px;
    line-height: 1.5;
    color: #6b7280;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* 🛡️ ვერიფიკაციის Badge-ის სტილები */
.verified-badge {
    position: absolute;
    top: 48px;
    left: 12px;
    background: linear-gradient(135deg, #00b4db, #0083b0);
    color: white;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 600;
    z-index: 5;
    display: flex;
    align-items: center;
    gap: 4px;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
    letter-spacing: 0.3px;
}
.verified-badge i {
    color: #00ffcc;
    font-size: 11px;
}

/* =========================================================
   Desktop Property Details Modal (Airbnb Style)
   ========================================================= */
.desktop-property-modal {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.desktop-property-modal.open {
    display: flex;
}

.desktop-property-modal .modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(15, 23, 42, 0.7);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
}

.desktop-property-modal .modal-content.airbnb-style-modal {
    position: relative;
    background: #ffffff;
    width: 98vw;
    max-width: 1800px; /* თითქმის მთელი ეკრანი, "დეტალურად" ფანჯარას მეტი ადგილი რომ ჰქონდეს */
    height: 97vh;
    border-radius: 20px;
    box-shadow: 0 35px 60px -15px rgba(0, 0, 0, 0.3);
    display: flex;
    flex-direction: column;
    overflow: hidden; /* Only scroll the body, not the whole modal if we had fixed header */
    animation: modalSlideUp 0.4s cubic-bezier(0.16, 1, 0.3, 1) forwards;
}

@keyframes modalSlideUp {
    from { opacity: 0; transform: translateY(50px) scale(0.97); }
    to { opacity: 1; transform: translateY(0) scale(1); }
}

.desktop-property-modal .modal-close-btn {
    position: absolute;
    top: 24px;
    left: 24px; /* Move to left like Airbnb or keep right? Let's keep top-left */
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: #f8fafc;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #1e293b;
    cursor: pointer;
    z-index: 100;
    transition: all 0.2s ease;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.desktop-property-modal .modal-close-btn:hover {
    background: #e2e8f0;
}

.desktop-property-modal .modal-body-scrollable {
    flex: 1;
    overflow-y: auto;
    padding: 30px 40px 60px; /* Top padding small because close button is absolute */
    margin-top: 50px; /* Space for close button */
    display: flex;
    flex-direction: column;
    gap: 32px;
}

/* 1. Header Top */
.desktop-property-modal .modal-header-top h2 {
    font-size: 26px;
    font-weight: 700;
    color: #222222;
    margin-bottom: 8px;
    line-height: 1.2;
}

.desktop-property-modal .modal-header-meta #modalLocation i {
    color: #e31c5f;
    margin-right: 2px;
}

.desktop-property-modal .modal-header-meta {
    display: flex;
    align-items: center;
    gap: 15px;
    color: #222222;
    font-size: 15px;
    font-weight: 500;
    text-decoration: underline;
    cursor: pointer;
}

/* 2. Image Grid */
.airbnb-image-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 250px 250px;
    gap: 10px;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    flex-shrink: 0;
}

.airbnb-image-grid .grid-img-wrap {
    position: relative;
    width: 100%;
    height: 100%;
}

.airbnb-image-grid img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: filter 0.2s;
}

.airbnb-image-grid img:hover {
    filter: brightness(0.9);
}

/* Specific image placements in grid */
.airbnb-image-grid .grid-img-wrap:nth-child(1) {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
}
.airbnb-image-grid .grid-img-wrap:nth-child(2) {
    grid-column: 2 / 3;
    grid-row: 1 / 2;
}
.airbnb-image-grid .grid-img-wrap:nth-child(3) {
    grid-column: 3 / 4;
    grid-row: 1 / 2;
}
.airbnb-image-grid .grid-img-wrap:nth-child(4) {
    grid-column: 2 / 3;
    grid-row: 2 / 3;
}
.airbnb-image-grid .grid-img-wrap:nth-child(5) {
    grid-column: 3 / 4;
    grid-row: 2 / 3;
}

/* Adapt grid if fewer images */
.airbnb-image-grid.grid-count-1 {
    grid-template-columns: 1fr;
    grid-template-rows: 500px;
}
.airbnb-image-grid.grid-count-2 {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 500px;
}
.airbnb-image-grid.grid-count-3 {
    grid-template-columns: 2fr 1fr;
    grid-template-rows: 250px 250px;
}
.airbnb-image-grid.grid-count-3 .grid-img-wrap:nth-child(2) { grid-row: 1 / 2; }
.airbnb-image-grid.grid-count-3 .grid-img-wrap:nth-child(3) { grid-row: 2 / 3; grid-column: 2 / 3; }
.airbnb-image-grid.grid-count-4 {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 250px 250px;
}
.airbnb-image-grid.grid-count-4 .grid-img-wrap:nth-child(4) { grid-column: 2 / 4; }

/* Show All Photos button */
.show-all-photos-btn {
    position: absolute;
    bottom: 24px;
    right: 24px;
    background: white;
    border: 1px solid #222222;
    padding: 7px 15px;
    border-radius: 8px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
    transition: transform 0.1s, box-shadow 0.1s;
    z-index: 10;
}
.show-all-photos-btn:active {
    transform: scale(0.96);
}

/* 3. Main Content Split */
.modal-main-content-split {
    display: flex;
    gap: 80px;
    margin-top: 10px;
}

.modal-info-section {
    flex: 1.8;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.modal-booking-sidebar {
    flex: 1;
    position: relative;
}

.modal-sticky-box {
    position: sticky;
    top: 20px;
    background: white;
    border: 1px solid #dddddd;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 6px 16px rgba(0,0,0,0.12);
}

.modal-divider {
    border: none;
    border-top: 1px solid #dddddd;
    margin: 0;
}

/* Info Section Styling */
.modal-quick-details {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.modal-quick-details span {
    font-size: 16px;
    color: #222222;
    display: flex;
    align-items: center;
    gap: 6px;
}
.modal-quick-details span i {
    font-size: 18px;
    color: var(--color-primary, #7B3FBE);
    width: 20px;
    text-align: center;
}

.modal-info-section h3,
.modal-rooms-section h3 {
    font-size: 22px;
    font-weight: 600;
    color: var(--color-primary-dark, #5B2D8E);
    margin-bottom: 20px;
    position: relative;
    padding-left: 14px;
}

.modal-info-section h3::before,
.modal-rooms-section h3::before {
    content: "";
    position: absolute;
    left: 0;
    top: 4px;
    bottom: 4px;
    width: 4px;
    border-radius: 4px;
    background: linear-gradient(180deg, #7B3FBE, #e31c5f);
}

/* When moved to the top of the modal on mobile, give it its own spacing
   since it's no longer inside .modal-info-section's flex gap */
.modal-body-scrollable > .modal-rooms-section {
    margin-bottom: 8px;
}

.modal-description {
    background: #fafafa;
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 18px 20px;
}

.modal-description h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--color-primary, #7B3FBE);
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.modal-description h3::before {
    content: "\f075"; /* fa-comment-dots style quote icon */
    font-family: "Font Awesome 5 Free";
    font-weight: 900;
    font-size: 15px;
    color: #555555;
}

.modal-quick-details span i.bed-count-icon {
    color: #555555;
}

.modal-description p {
    font-size: 16px;
    line-height: 1.6;
    color: #4a4a4a;
    white-space: pre-wrap;
}

.modal-rooms-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
}
.modal-room-card {
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 12px 14px;
    background: #fafafa;
}
.modal-room-card .room-card-title {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: var(--color-primary-dark, #5B2D8E);
    margin-bottom: 6px;
    font-size: 15px;
}
.modal-room-card .room-card-title i {
    color: #e31c5f;
}
.modal-room-card .room-card-beds {
    font-size: 14px;
    color: #444;
    margin-bottom: 4px;
}
.modal-room-card .room-card-bathroom {
    font-size: 13px;
    color: #2e9e5b;
    display: flex;
    align-items: center;
    gap: 5px;
}
.modal-room-card .room-card-bathroom.no-bathroom {
    color: #999;
}

/* შეფასებების სია (კომენტარები) — მახასიათებლების ქვემოთ */
.modal-reviews-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}
.modal-review-card .room-card-title {
    justify-content: space-between;
}
.modal-review-score {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 700;
    color: #1a1a2e;
    font-size: 14px;
}
.modal-review-score .star {
    color: #F59E0B;
}
.modal-review-comment {
    font-size: 14px;
    color: #444;
    margin: 6px 0 4px;
    line-height: 1.5;
}
.modal-review-date {
    font-size: 12px;
    color: #999;
}

.modal-features-list {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 16px;
}
.modal-features-list span {
    font-size: 16px;
    color: #222222;
    display: flex;
    align-items: center;
    gap: 12px;
}
.modal-features-list span i {
    font-size: 13px;
    width: 30px;
    height: 30px;
    min-width: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: #7B3FBE;
    background: rgba(123, 63, 190, 0.08);
    border-radius: 50%;
    flex-shrink: 0;
}

/* Sidebar Styling */
.modal-price-box {
    margin-bottom: 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
}
.modal-price-box > span {
    font-size: 24px;
    font-weight: 700;
    color: #222222;
}

/* ფასის მოპირდაპირე მხარეს — შეფასება + გული, ერთმანეთის გვერდით */
.modal-price-side {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
}

.modal-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    background: #fef9ee;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 13px;
    color: #1a1a2e;
}
.modal-rating .star {
    color: #F59E0B;
}
.modal-rating strong {
    font-weight: 700;
}

/* პატარა შეფასების ვერსია — მისამართის გასწვრივ */
.modal-rating-small {
    padding: 3px 8px;
    font-size: 12px;
    text-decoration: none;
}

/* გული ფასის გვერდით მოდალში (ჩვეულებრივი .favorite-btn ისევ absolute-ია,
   აქ კი ჩვეულებრივ flow-ში გვჭირდება) */
.modal-favorite-btn.favorite-btn {
    position: static;
    width: 40px;
    height: 40px;
    flex-shrink: 0;
    border: 1px solid #dddddd !important;
    box-shadow: 0 1px 4px rgba(0,0,0,0.08);
}

/* გაზიარების ღილაკი რუკის ქვემოთ */
.modal-share-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 14px;
    padding: 11px 14px;
    background: #fff;
    border: 1px solid #dddddd;
    border-radius: 8px;
    color: #222222;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}
.modal-share-btn:hover {
    background: #f7f7f7;
    border-color: #b0b0b0;
}
.modal-share-msg {
    margin-top: 8px;
    text-align: center;
    font-size: 13px;
    color: #1e8e3e;
    font-weight: 600;
}

/* ID (მარჯვნივ) / ნახვები (მარცხნივ) — გაზიარების ღილაკის ქვემოთ, ბოლო ხაზი */
.modal-id-views-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 14px;
    padding-top: 14px;
    border-top: 1px solid #eee;
    font-size: 13px;
    color: #777;
}
.modal-views-display,
.modal-id-display {
    display: flex;
    align-items: center;
    gap: 6px;
}

.desktop-property-modal .modal-book-btn {
    width: 100%;
    background: linear-gradient(to right, #1fa855 0%, #17a35a 50%, #0e8f4f 100%);
    color: white;
    border: none;
    padding: 14px;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: opacity 0.2s;
}
.desktop-property-modal .modal-book-btn:hover {
    opacity: 0.9;
}

.modal-mini-map-wrap {
    margin-top: 18px;
    padding-top: 18px;
    border-top: 1px solid #eee;
}
.modal-mini-map-wrap .map-label {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
    color: var(--color-primary-dark, #5B2D8E);
    margin-bottom: 8px;
}
.modal-mini-map-wrap .map-label i {
    color: #e31c5f;
}
#modalMiniMap {
    height: 180px;
    width: 100%;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid #ddd;
}

/* Calendar Container inside modal */
.modal-calendar-section .flatpickr-calendar {
    box-shadow: none !important;
    border: none !important;
    margin-top: 10px;
}

@media (max-width: 768px) {
    .desktop-property-modal .modal-content.airbnb-style-modal {
        width: 100vw;
        max-width: 100vw;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
    }

    .desktop-property-modal .modal-body-scrollable {
        padding: 20px 16px 40px;
        gap: 24px;
        margin-top: 44px;
    }

    .desktop-property-modal .modal-header-top h2 {
        font-size: 22px;
    }

    /* Stack image grid into a single vertical column on mobile */
    .airbnb-image-grid {
        grid-template-columns: 1fr !important;
        grid-template-rows: none !important;
        gap: 8px !important;
    }
    .airbnb-image-grid .grid-img-wrap {
        grid-column: 1 / 2 !important;
        grid-row: auto !important;
        height: 220px !important;
    }

    /* Stack info + booking sidebar vertically */
    .modal-main-content-split {
        flex-direction: column;
        gap: 24px;
    }
    .modal-sticky-box {
        position: static;
    }
}