/* გაუმჯობესებული შედეგების სექცია - ელეგანტური და კომპლექსური */
.results-section {
    padding: 40px 20px;
    background-color: #fafbfc;
    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 {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
    padding: 0 15px;
}

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

.property-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 8px 35px rgba(0, 0, 0, 0.12);
    border-color: #d1d9e0;
}

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

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

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

.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;
}

/* 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: 12px;
    right: 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;
}

/* 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);
}

/* ფასი სურათზე */
.image-price {
    position: absolute;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #1a7a3c, #28a745);
    color: white;
    padding: 6px 13px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 700;
    z-index: 5;
    box-shadow: 0 2px 8px rgba(0,0,0,0.25);
    letter-spacing: 0.3px;
}

/* ხელმისაწვდომობის badge */
.image-avail-badge {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(30, 144, 255, 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: #1e90ff;
    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: #e3f2fd;
    border-color: #bbdefb;
    transform: translateY(-1px);
}

.property-detail i {
    color: #1e90ff;
    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-color: #1e90ff;
    color: white;
    padding: 6px 14px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.feature-tag:hover {
    background-color: #1565c0;
    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-color: #1e90ff;
    color: white;
    order: 1; /* დეტალები პირველი (მარცხნივ) */
}

.details-button:hover {
    background-color: #1565c0;
    transform: translateY(-1px);
}

.booking-button {
    background-color: #28a745;
    color: white;
    order: 2; /* ჯავშანი მეორე (მარჯვნივ) */
}

.booking-button:hover {
    background-color: #218838;
    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;
}

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

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

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

    .property-card {
        width: 100%;
        max-width: 450px;
        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 20px;
        justify-items: center;
    }

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

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

    .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: #fafbfc; 
}

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

.property-list { 
    max-width: 1200px; 
    margin: 0 auto;
    display: grid; 
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr)); 
    gap: 25px; 
    padding: 0 15px;
}

/* 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: #e3f2fd;
    border-color: #bbdefb;
    transform: translateY(-1px);
}

/* Unicode icons instead of Font Awesome - more reliable */
.property-info p:before {
    color: #1e90ff;
    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: #1e90ff !important; 
    font-size: 16px !important; 
    margin-top: 12px !important;
    padding: 12px 16px !important;
    background-color: #e3f2fd !important;
    border: 1px solid #bbdefb !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;
}