/* ============================================
   PROPERTY CARDS & LISTINGS
   ============================================ */

.property-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.property-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
}

.property-image {
    position: relative;
    height: 200px;
    overflow: hidden;
    background: #e0ddd6;
}

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

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

.property-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: #d4a574;
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.property-badge.rent-badge {
    background: #4caf50;
}

.property-type-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.6);
    color: white;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
}

.property-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.property-title {
    color: #2d5a3d;
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
    line-height: 1.4;
    transition: color 0.3s ease;
}

.property-card:hover .property-title {
    color: #d4a574;
}

.property-location {
    color: #666;
    font-size: 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.property-location i {
    color: #d4a574;
    font-size: 12px;
}

.property-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 15px;
    font-size: 14px;
    color: #666;
}

.property-meta span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.property-meta i {
    color: #d4a574;
    font-size: 14px;
    width: 16px;
    text-align: center;
}

.property-price-section {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
    padding-bottom: 12px;
    border-bottom: 1px solid #e0ddd6;
}

.property-price {
    font-size: 18px;
    font-weight: 700;
    color: #d4a574;
}

.property-deposit {
    font-size: 12px;
    color: #999;
}

.property-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 15px;
    flex-grow: 1;
}

.amenity-tag {
    background: #f0f0f0;
    color: #666;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 500;
}

/* ============================================
   FILTERS & SIDEBAR
   ============================================ */

.properties-container {
    display: grid;
    grid-template-columns: 250px 1fr;
    gap: 30px;
    margin-bottom: 60px;
}

.filters-sidebar {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.08);
    height: fit-content;
    position: sticky;
    top: 80px;
}

.filter-group {
    margin-bottom: 25px;
    padding-bottom: 25px;
    border-bottom: 1px solid #e0ddd6;
}

.filter-group:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

.filter-group h3 {
    color: #2d5a3d;
    font-size: 16px;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.filter-group h4 {
    color: #2d5a3d;
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 12px;
}

.filter-checkbox {
    display: flex;
    align-items: center;
    cursor: pointer;
    margin-bottom: 10px;
    transition: all 0.2s ease;
}

.filter-checkbox:hover {
    color: #d4a574;
}

.filter-checkbox input[type="checkbox"] {
    width: 16px;
    height: 16px;
    margin-right: 8px;
    cursor: pointer;
    accent-color: #d4a574;
}

.filter-checkbox span {
    font-size: 14px;
    color: #666;
}

.btn-reset-filters {
    background: #e74c3c;
    color: white;
    border: none;
    padding: 8px 12px;
    border-radius: 6px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-reset-filters:hover {
    background: #c0392b;
}

.properties-main {
    display: flex;
    flex-direction: column;
}

.properties-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 2px solid #e0ddd6;
}

.results-count {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.sort-select {
    padding: 8px 12px;
    border: 1px solid #e0ddd6;
    border-radius: 6px;
    font-size: 14px;
    background: white;
    cursor: pointer;
    transition: all 0.3s ease;
    color: #666;
}

.sort-select:hover {
    border-color: #d4a574;
}

.sort-select:focus {
    outline: none;
    border-color: #d4a574;
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

.properties-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.no-results {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    background: #f8f7f5;
    border-radius: 12px;
}

.no-results p {
    color: #999;
    font-size: 16px;
}

/* ============================================
   PROPERTY GALLERY
   ============================================ */

.property-detail-container {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    margin-bottom: 60px;
}

.property-gallery {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.gallery-main {
    position: relative;
    width: 100%;
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    background: #e0ddd6;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

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

.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    font-size: 18px;
    z-index: 10;
}

.gallery-btn:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: translateY(-50%) scale(1.1);
}

.gallery-btn.prev {
    left: 15px;
}

.gallery-btn.next {
    right: 15px;
}

.gallery-thumbnails {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding: 0;
}

.gallery-thumbnails::-webkit-scrollbar {
    height: 6px;
}

.gallery-thumbnails::-webkit-scrollbar-track {
    background: #e0ddd6;
    border-radius: 10px;
}

.gallery-thumbnails::-webkit-scrollbar-thumb {
    background: #d4a574;
    border-radius: 10px;
}

.thumbnail {
    width: 70px;
    height: 70px;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    flex-shrink: 0;
    background: #e0ddd6;
}

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

.thumbnail:hover,
.thumbnail.active {
    border-color: #d4a574;
    transform: scale(1.05);
}

/* ============================================
   PROPERTY DETAILS SECTION
   ============================================ */

.property-details {
    display: flex;
    flex-direction: column;
}

.property-details h1 {
    color: #2d5a3d;
    font-size: 32px;
    margin-bottom: 15px;
}

.property-price {
    font-size: 28px;
    font-weight: 700;
    color: #d4a574;
    margin-bottom: 5px;
}

.property-price-section {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e0ddd6;
}

.property-price-section .property-type-badge {
    position: static;
    display: inline-block;
}

.property-location {
    font-size: 16px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 20px;
}

.property-location i {
    color: #d4a574;
}

.property-meta {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
    gap: 15px;
    margin-bottom: 30px;
}

.meta-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px;
    background: #f8f7f5;
    border-radius: 8px;
}

.meta-item i {
    color: #d4a574;
    font-size: 18px;
}

.meta-item span {
    color: #666;
    font-size: 14px;
}

.property-section {
    margin-bottom: 30px;
}

.property-section h3 {
    color: #2d5a3d;
    font-size: 20px;
    margin-bottom: 15px;
    border-bottom: 2px solid #d4a574;
    padding-bottom: 10px;
}

.features-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.feature-item {
    padding: 10px 15px;
    background: white;
    border: 1px solid #e0ddd6;
    border-radius: 8px;
    color: #666;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.feature-item::before {
    content: "✓";
    color: #4caf50;
    font-weight: 700;
    font-size: 16px;
}

.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
    gap: 15px;
}

.amenity-badge {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 20px;
    background: #f8f7f5;
    border-radius: 8px;
    text-align: center;
    transition: all 0.3s ease;
}

.amenity-badge:hover {
    background: #e8ddd0;
    transform: translateY(-4px);
}

.amenity-badge i {
    font-size: 24px;
    color: #d4a574;
    margin-bottom: 8px;
}

.amenity-badge span {
    color: #666;
    font-size: 14px;
    font-weight: 500;
}

.property-section p {
    color: #666;
    line-height: 1.8;
}

/* ============================================
   CONTACT/ENQUIRY FORM
   ============================================ */

.contact-form {
    background: white;
    padding: 0;
}

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

.form-group label {
    display: block;
    color: #2d5a3d;
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 8px;
}

.form-group input,
.form-group textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0ddd6;
    border-radius: 6px;
    font-family: var(--font-family);
    font-size: 14px;
    transition: all 0.3s ease;
    color: #333;
}

.form-group input::placeholder,
.form-group textarea::placeholder {
    color: #999;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #d4a574;
    box-shadow: 0 0 0 3px rgba(212, 165, 116, 0.1);
}

.form-group textarea {
    resize: vertical;
    min-height: 100px;
}

.btn-block {
    width: 100%;
}

.btn-small {
    padding: 10px 20px;
    font-size: 14px;
}

/* ============================================
   BREADCRUMB
   ============================================ */

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 30px;
    font-size: 14px;
    color: #666;
}

.breadcrumb a {
    color: #d4a574;
    transition: color 0.3s ease;
}

.breadcrumb a:hover {
    color: #2d5a3d;
}

.breadcrumb span {
    color: #2d5a3d;
    font-weight: 600;
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */

@media (max-width: 1024px) {
    .property-detail-container {
        grid-template-columns: 1fr;
        gap: 30px;
    }
    
    .properties-container {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .filters-sidebar {
        position: relative;
        top: 0;
    }
}

@media (max-width: 768px) {
    .properties-grid {
        grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    }
    
    .property-meta {
        grid-template-columns: 1fr;
    }
    
    .amenities-grid {
        grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    }
    
    .gallery-main {
        height: 300px;
    }
    
    .properties-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }
}

@media (max-width: 480px) {
    .properties-grid {
        grid-template-columns: 1fr;
    }
    
    .property-details h1 {
        font-size: 24px;
    }
    
    .gallery-main {
        height: 250px;
    }
    
    .gallery-btn {
        width: 36px;
        height: 36px;
        font-size: 14px;
    }
}
