﻿:root {
    /* Base colors */
    --bg-primary: #ffffff;
    --bg-secondary: #f8f9fa;
    --bg-tertiary: #f1f3f5;
    
    /* Text colors */
    --text-primary: #2d3748;
    --text-secondary: #4a5568;
    --text-muted: #718096;
    
    /* Card and container colors */
    --card-bg: #ffffff;
    --card-border: rgba(226, 232, 240, 0.8);
    --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.08);
    --card-hover-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
    
    /* Badge and tag gradients */
    --gradient-apartment: linear-gradient(135deg, #4481eb, #04befe);
    --gradient-room: linear-gradient(135deg, #f6d365, #fda085);
    --gradient-house: linear-gradient(135deg, #2ecc71, #27ae60);
    --gradient-area: linear-gradient(135deg, #a445b2, #ff0099);
    
    /* Stats and icons */
    --icon-color: #3498db;
    --stat-bg: #ffffff;
    --stat-border: rgba(226, 232, 240, 0.8);
    
    /* Price ribbon */
    --ribbon-bg: linear-gradient(135deg, #2c3e50, #3498db);
    --ribbon-shadow: rgba(0, 0, 0, 0.2);
    
    /* Navigation elements */
    --nav-bg: rgba(255, 255, 255, 0.9);
    --nav-color: #2c3e50;
    
    /* Action buttons */
    --button-bg: #3498db;
    --button-hover: #2980b9;
    --button-text: #ffffff;
}

.dark-mode {
    /* Base colors */
    --bg-primary: rgba(255, 255, 255, 0.03);
    --bg-secondary: rgba(255, 255, 255, 0.08);
    --bg-tertiary: rgba(255, 255, 255, 0.05);
    
    /* Text colors */
    --text-primary: #e2e8f0;
    --text-secondary: #cbd5e1;
    --text-muted: #94a3b8;
    
    /* Card and container colors */
    --card-bg: rgba(0, 0, 0, 0.25);
    --card-border: rgba(226, 232, 240, 0.1);
    --card-shadow: 0 10px 20px rgba(0, 0, 0, 0.25);
    --card-hover-shadow: 0 15px 30px rgba(0, 0, 0, 0.35);
    
    /* Badge and tag gradients */
    --gradient-apartment: linear-gradient(135deg, #3b82f6, #1d4ed8);
    --gradient-room: linear-gradient(135deg, #f59e0b, #d97706);
    --gradient-house: linear-gradient(135deg, #10b981, #059669);
    --gradient-area: linear-gradient(135deg, #8b5cf6, #7c3aed);
    
    /* Stats and icons */
    /* Stats and icons */
    --stat-bg: rgba(255, 255, 255, 0.03);
    --stat-border: rgba(255, 255, 255, 0.08);
    --stat-hover-bg: rgba(255, 255, 255, 0.05);
    --icon-color: #a0a0a0;
    
    /* Price ribbon */
    --ribbon-bg: linear-gradient(135deg, #1e293b, #3b82f6);
    --ribbon-shadow: rgba(0, 0, 0, 0.4);
    
    /* Navigation elements */
    --nav-bg: rgba(15, 23, 42, 0.9);
    --nav-color: #e2e8f0;
    
    /* Action buttons */
    --button-bg: #3b82f6;
    --button-hover: #2563eb;
    --button-text: #ffffff;
}

.content-header {
    margin-bottom: 1rem;
}

.header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.property-tag {
    padding: 0.5rem 1.25rem;
    border-radius: 2rem;
    font-size: 0.875rem;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    box-shadow: var(--card-shadow);
    color: var(--button-text);
}

.area-tag {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 1.25rem;
    background: var(--gradient-area);
    border-radius: 2rem;
    color: var(--button-text);
    font-weight: 500;
    box-shadow: var(--card-shadow);
}

.area-value {
    font-weight: 700;
}

.title-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1rem;
}

.property-title {
    flex: 1;
    margin: 0;
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--text-primary);
}

.favorite-wrapper {
    flex-shrink: 0;
}

.card-img {
    height: 250px;
    object-fit: cover;
    border-top-left-radius: 0.5rem;
    border-top-right-radius: 0.5rem;
}
.carousel-inner {
    height: 250px;
}
.tag-apartment {
    background: linear-gradient(135deg, #4481eb, #04befe);
    color: white;
}

.tag-room {
    background: linear-gradient(135deg, #f6d365, #fda085);
    color: white;
}

.tag-house {
    background: linear-gradient(135deg, #2ecc71, #27ae60);
    color: white;
}

.area-badge {
    position: absolute;
    top: -25px;
    right: 20px;
    background: var(--gradient-area);
    padding: 0.75rem 1.25rem;
    border-radius: 1rem;
    color: var(--button-text);
    text-align: center;
    box-shadow: var(--card-shadow);
    z-index: 2;
    min-width: 120px;
}

.area-badge-content {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.area-icon {
    font-size: 1.25rem;
    opacity: 0.9;
}

.area-text {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
}

.area-value {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.area-unit {
    font-size: 0.875rem;
    opacity: 0.9;
}

.area-label {
    font-size: 0.75rem;
    opacity: 0.9;
    margin-top: 0.25rem;
}

/* Adjust card content padding to accommodate the badge */
.card-content {
    padding: 2.5rem 1.5rem 1.5rem;
    position: relative;
}

/* Make it responsive */
@media (max-width: 768px) {
    .area-badge {
        right: 15px;
        min-width: 100px;
        padding: 0.5rem 1rem;
    }

    .area-value {
        font-size: 1.25rem;
    }
}
.card-content {
    padding: 2rem 1.5rem 1.5rem;
    position: relative;
}
.property-card {
    background: var(--card-bg);
    border-radius: 16px;
    border: solid 1px #9AC6D7;
    box-shadow: var(--card-shadow);
    overflow: hidden;
    position: relative;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer;
}

.property-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}
.row.justify-content-between {
    display: flex;
    align-items: center;
    width: 100%;
    gap: 1rem;
}
.price-ribbon {
    flex: 1;
    min-width: 0;
}

.favorite-wrapper {
    flex-shrink: 0;
    border: solid 1px gray;
    border-radius: 50%;
    padding: 5px 7px 3px 7px;
    font-size: 12px;
    text-align: center;
}
.price-content {
    display: flex;
}

.price-amount {
    font-size: 1.5rem;
    font-weight: 700;
    line-height: 1;
}

.price-details {
    font-size: 0.75rem;
    margin-left: 0.5rem;
    margin-top: 0.25rem;
    opacity: 0.9;
}

.carousel-wrapper {
    position: relative;
    border-radius: 16px 16px 0 0;
    overflow: hidden;
}

.image-container {
    position: relative;
    padding-top: 66.67%; /* 3:2 Aspect Ratio */
}

.property-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.3);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: white;
    z-index: 10;
    transition: all 0.3s ease;
   
}

.carousel-nav:hover {
    transform: translateY(-50%) scale(1.1);
}

.carousel-nav.prev { left: 15px; }
.carousel-nav.next { right: 15px; }

.card-content {
    padding: 1.5rem;
    padding-top: 0.25rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}


.rating-badge {
    display: flex;
    align-items: center;
    gap: 4px;
    margin-top: 8px;
    font-size: 14px;
}

.rating-value {
    font-weight: 600;
    margin-left: 2px;
}

.rating-count {
    color: #6c757d; 
}

.no-reviews {
    color: #6c757d;
    font-style: italic;
}
.property-title {
    font-size: 1rem;
    font-weight: 100;
    color: var(--text-primary);
    margin-bottom: 0.5rem;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    text-overflow: ellipsis;
/*    min-height: 3em;*/
    line-height: 1.5em;
}


.stats-container {
    flex: 1;
    margin-bottom: 1rem;
}
.stats-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}


.stat-box {
    display: flex;
    align-items: center;
    gap: 0.3rem;
    padding-right:1rem;
    transition: transform 0.2s ease;
}

.stat-box:hover {
    transform: translateY(-2px);
}

.stat-icon {
    font-size: 1rem;
    color: var(--icon-color);
}

.stat-info {
    display: flex;
    align-items: baseline;
    gap: 0.25rem;
    white-space: nowrap;
}

.stat-value {
    font-size: 0.65rem;
    color: var(--text-primary);
    line-height: 1;
}

.stat-label {
    font-size: 0.65rem;
    color: var(--text-secondary);
}

.details-button {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.875rem 1.5rem;
    background: var(--button-bg);
    color: var(--button-text);
    border-radius: 8px;
    text-decoration: none;
    transition: all 0.3s ease;
    width: 100%;
    justify-content: center;
}

.action-wrapper {
    margin-top: 1.5rem;
}

.action-button {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    width: 100%;
    padding: 1rem 1.5rem;
    background: var(--button-bg);
    color: var(--button-text);
    border-radius: 12px;
    font-weight: 500;
    text-decoration: none;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid transparent;
    box-shadow: var(--card-shadow);
}

.action-button:hover {
    background: var(--button-hover);
    transform: translateY(-2px);
    box-shadow: var(--card-hover-shadow);
    color: var(--button-text);
}

.action-button:active {
    transform: translateY(0);
}

.action-button i {
    transition: transform 0.3s ease;
    font-size: 1.1rem;
}

.action-button:hover i {
    transform: translateX(4px);
}

.action-button.tag-apartment {
    background: var(--gradient-apartment);
}

.action-button.tag-room {
    background: var(--gradient-room);
}

.action-button.tag-house {
    background: var(--gradient-house);
}

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

    .price-ribbon {
        padding: 8px 20px;
    }

    .price-amount {
        font-size: 1.25rem;
    }
}
/* Property grid responsive adjustments */
@media (min-width: 768px) and (max-width: 991px) {
  .property-card {
    max-width: 650px;
    margin: 0 auto;
  }
}

/* Center the single cards on medium screens */
@media (min-width: 768px) and (max-width: 991px) {
  .row {
    justify-content: center;
  }
}