﻿@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;600&family=Poppins:wght@600;700&display=swap');


/* Pagination Styles */
.pagination-container {
    margin-top: 2rem;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 1rem;
    background: white;
}
.owner-info {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: -10px;
    font-size: .95rem;
    color: #333;
}

.owner-icon {
    color: #2a7abf;
}

.verified-badge {
    background: #2a7abf;
    color: white;
    font-size: .75rem;
    padding: 3px 8px;
    border-radius: 6px;
    font-weight: 600;
}

.pagination {
    display: flex;
    gap: 0.5rem;
    align-items: center;
}

.pagination-btn {
    padding: 0.5rem 1rem;
    border: 1px solid #e5e7eb;
    background: white;
    color: #374151;
    border-radius: 0.375rem;
    cursor: pointer;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

    .pagination-btn:hover:not(.disabled) {
        background: #f9fafb;
        border-color: #d1d5db;
    }

    .pagination-btn.active {
        background: #3b82f6;
        color:white;
        border-color: #3b82f6;
    }
        .pagination-btn.active:hover {
            background: #3b82f6;
            color: white;
            border-color: #3b82f6;
        }

        .pagination-btn.disabled {
            opacity: 0.5;
            cursor: not-allowed;
        }

.pagination-info {
    color: #6b7280;
    font-size: 0.875rem;
}

/* Home Container */
.hero-content {
    width: 100%;
    text-align: center;
    box-sizing: border-box;
}

/* FAS */
.results-stats .fas {
    color: #2563eb;
}
.card-content .fas {
    color: black;
}
/* Hero Section */
.hero-section {
    background-image: url('hero.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat; 
    width: 100%;
    min-height: 80vh;
    display: flex;
    justify-content: center;
    align-items: center;
}

.hero-content {
    width: 100%;
    text-align: center;
}

.hero-title {
    padding-top: 100px;
    font-size: 2.5rem;
    font-weight: 700;
    color: #2563eb;
    display: flex;
    align-items: center;
    font-family: 'Poppins', sans-serif;
    justify-content: center;
    gap: 20px;
}

.hero-title img {
    height: 60px;
}

.hero-subtitle {
    font-size: 1.1rem;
    color: #2563eb;
    margin: 0 0 40px 0;
    font-family: 'Inter', sans-serif;
    font-weight: 700;
}

/* Search Card */
.search-card {
    background: rgba(255, 255, 255, 0.85);
    border-radius: 15px;
    padding: 40px;
    border: lightgray 2px solid;
    width: 90%;
    margin: 20px auto;
    max-width: 100%;
    box-sizing: border-box;
}


.search-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 25px;
    margin-bottom: 30px;
}

.search-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.field-label {
    font-size: 0.9rem;
    font-weight: 600;
    color: #4a5568;
    margin-bottom: 5px;
}

.modern-select,
.modern-input {
    padding: 15px 20px;
    border: 2px solid #e2e8f0;
    border-radius: 12px;
    font-size: 1rem;
    background: white;
    transition: all 0.3s ease;
    outline: none;
}

    .modern-select:focus,
    .modern-input:focus {
        border-color: #667eea;
        box-shadow: 0 0 0 3px rgba(102, 126, 234, 0.1);
    }

.btn-search {
    background: #f49405;
    color: white;
    border: none;
    padding: 18px 40px;
    border-radius: 16px;
    font-size: 1.1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    transition: all 0.3s ease;
    margin: 0 auto;
    min-width: 200px;
}

    .btn-search:hover:not(:disabled) {
        transform: translateY(-3px);
        box-shadow: 0 12px 35px rgba(102, 126, 234, 0.6);
    }

    .btn-search:disabled {
        opacity: 0.7;
        cursor: not-allowed;
    }

/* Active Filters */
.active-filters {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 10px;
    align-items: center;
}

.filter-chip {
    background: rgba(255, 255, 255, 0.9);
    color: gray;
    padding: 8px 15px;
    margin:10px 0;
    border-radius: 20px;
    font-size: 0.9rem;
    display: flex;
    align-items: center;
    gap: 8px;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

    .filter-chip i {
        font-size: 0.8rem;
    }

.filter-remove {
    background: none;
    border: none;
    color: gray;
    font-size: 1.2rem;
    cursor: pointer;
    padding: 0;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s ease;
}

    .filter-remove:hover {
        background: rgba(255, 255, 255, 0.2);
    }

.btn-clear-filters {
    background: rgba(255, 255, 255, 0.9);
    color: gray;
    border: 1px solid rgba(255, 255, 255, 0.3);
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    backdrop-filter: blur(10px);
}

    .btn-clear-filters:hover {
        background: rgba(255, 255, 255, 0.3);
    }

/* Results Section - Updated with wider container */
.results-section {
    background-color:white;
    backdrop-filter: blur(20px);
    border-radius: 24px 24px 0 0;
    padding: 40px;
    min-height: 60vh;
    max-width: 100%;
}

.loading-container {
    text-align: center;
    padding: 80px 20px;
    color: #718096;
}

.loading-spinner {
    width: 60px;
    height: 60px;
    border: 4px solid #e2e8f0;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin: 0 auto 25px;
}

.empty-state {
    text-align: center;
    padding: 80px 20px;
    color: #718096;
}

    .empty-state i {
        font-size: 5rem;
        color: #cbd5e0;
        margin-bottom: 25px;
    }

    .empty-state h3 {
        color: #4a5568;
        font-size: 1.8rem;
        margin-bottom: 15px;
    }

    .empty-state p {
        font-size: 1.1rem;
        margin-bottom: 30px;
    }

.btn-secondary-modern {
    background: rgba(102, 126, 234, 0.1);
    color: #667eea;
    border: 2px solid #667eea;
    padding: 15px 30px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
}

    .btn-secondary-modern:hover {
        background: #667eea;
        color: white;
        transform: translateY(-2px);
        box-shadow: 0 8px 25px rgba(102, 126, 234, 0.3);
    }

.results-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
    padding-bottom: 20px;
    border-bottom: 2px solid #e2e8f0;
}

.results-title {
    font-size: 2rem;
    font-weight: 700;
    color: #484848;
    margin: 0;
}

.results-stats {
    display: flex;
    gap: 20px;
    align-items: center;
}

.stat-item {
    color: #718096;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    gap: 6px;
}

    .stat-item i {
        color: #667eea;
    }

/* Apartments Grid */
.apartments-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 25px;
    max-width: 100%;
}

@media (min-width: 1800px) {
    .apartments-grid {
        grid-template-columns: repeat(5, 1fr);
    }
}

@media (min-width: 1400px) and (max-width: 1799px) {
    .apartments-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (min-width: 1024px) and (max-width: 1399px) {
    .apartments-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (min-width: 640px) and (max-width: 1023px) {
    .apartments-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 639px) {
    .apartments-grid {
        grid-template-columns: 1fr;
    }
}

/* Apartment Card */
.apartment-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.07);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

    .apartment-card:hover {
        transform: translateY(-8px);
        box-shadow: 0 12px 24px rgba(102, 126, 234, 0.05);
    }

.card-image {
    position: relative;
    width: 100%;
    padding-top: 66.67%;
    background: #f7fafc;
    overflow: hidden;
}

    .card-image img {
        position: absolute;
        top: 0;
        left: 0;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }

.no-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: #cbd5e0;
}

    .no-image i {
        font-size: 4rem;
        margin-bottom: 15px;
    }

    .no-image span {
        font-size: 1.1rem;
    }

.image-count {
    position: absolute;
    top: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    padding: 8px 12px;
    border-radius: 12px;
    font-size: 0.85rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 5px;
    backdrop-filter: blur(10px);
}

.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(37, 99, 235, 0.4);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: all 0.3s ease;
}

.apartment-card:hover .card-overlay {
    opacity: 1;
}

.btn-view-details {
    background: white;
    color: #2563eb;
    border: none;
    padding: 15px 25px;
    border-radius: 12px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: all 0.3s ease;
    transform: translateY(20px);
}

.apartment-card:hover .btn-view-details {
    transform: translateY(0);
}

.btn-view-details:hover {
    background: #f7fafc;
    transform: scale(1.05);
}

.card-content {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 15px;
}

.apartment-title {
    font-size: 1rem;
    font-weight: 700;
    color: #484848;
    margin: 0 0 15px 0;
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    min-height: 2.6em;
}

.apartment-info {
    display: flex;
    flex-direction: column;
    gap: 10px;
    margin-bottom: 15px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #484848;
    font-size: 0.95rem;
}

    .info-item i {
        width: 16px;
        color: #667eea;
        font-size: 0.9rem;
    }

.apartment-description {
    color: #484848;
    font-size: 0.95rem;
    line-height: 1.6;
    margin: 0 0 20px 0;
}

.price-section {
    display: flex;
    align-items: baseline;
    gap: 5px;
    padding-top: 15px;
    margin-top: auto;
    border-top: 1px solid #e2e8f0;
}

.price-amount {
    font-size: 1.8rem;
    font-weight: 700;
    color: #2d3748;
}

.price-period {
    color: #718096;
    font-size: 1rem;
}

.apartment-amenities {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin-bottom: 15px;
}

    .apartment-amenities .info-item {
        display: flex;
        align-items: center;
        gap: 6px;
        font-size: 0.9rem;
        color: #4a5568;
    }

.amenity-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
}

/* Filters Section */
.results-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 25px;
}

.filter-btn {
    background: #fff;
    border: 1px solid #e2e8f0;
    padding: 10px 18px;
    border-radius: 9999px;
    font-size: 0.9rem;
    color: #2d3748;
    cursor: pointer;
    transition: all 0.2s ease;
}

    .filter-btn:hover {
        background: #f7fafc;
        border-color: #cbd5e0;
    }

.filters-section {
    border-radius: 12px;
}

.filters-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

    .filters-header h3 {
        margin: 0;
        font-size: 18px;
        font-weight: 600;
        color: #333;
    }

.btn-clear-filters-small {
    background: none;
    border: 1px solid #dc3545;
    color: #dc3545;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.2s;
}

    .btn-clear-filters-small:hover {
        background: #dc3545;
        color: white;
    }

.filters-grid {
    display: grid;
    grid-template-columns: 1fr 2fr;
    gap: 24px;
    align-items: start;
}

.filter-group label {
    display: block;
    font-weight: 500;
    margin-bottom: 8px;
    color: #555;
}

.price-range {
    display: flex;
    align-items: center;
    gap: 8px;
}

.price-input {
    width: 80px;
    padding: 8px;
    border: 1px solid #ddd;
    border-radius: 6px;
    font-size: 14px;
}

.btn-apply-price {
    padding: 8px 16px;
    background: #007bff;
    color: white;
    border: none;
    border-radius: 6px;
    font-size: 12px;
    cursor: pointer;
}

.amenities-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.amenity-checkbox {
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    background: white;
    border: 1px solid #ddd;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.2s;
    font-size: 15px;
}

    .amenity-checkbox:hover {
        border-color: #007bff;
        background: #f0f8ff;
    }

    .amenity-checkbox input[type="checkbox"] {
        margin: 0;
    }

.amenity-filter-icon {
    width: 16px;
    height: 16px;
    object-fit: contain;
}

/* View Toggle */
.view-toggle {
    display: flex;
    gap: 12px;
    margin-bottom: 24px;
    justify-content: flex-end;
}

.btn-toggle {
    padding: 10px 20px;
    border: 2px solid #e2e8f0;
    background: white;
    border-radius: 8px;
    cursor: pointer;
    font-weight: 500;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
}

    .btn-toggle:hover {
        border-color: #667eea;
        color: #667eea;
    }

    .btn-toggle.active {
        background: #667eea;
        color: white;
        border-color: #667eea;
    }

/* Map View */
.map-view-container .map-container {
    border-radius: 12px;
    overflow: hidden;
}

/* Split Layout for Cards and Map */
.results-split-layout {
    display: grid;
    grid-template-columns: 1fr 45%;
    gap: 30px;
    align-items: start;
}

.apartments-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.apartments-grid-vertical {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

.map-column {
    position: relative;
}

.map-sticky-container {
    position: sticky;
    height: fit-content;
}

    .map-sticky-container .map-container {
        height: 900px;
        border-radius: 16px;
        overflow: hidden;
        box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
        border: 2px solid #e2e8f0;
    }

.apartments-grid-vertical .apartment-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%;
}

    .apartments-grid-vertical .apartment-card:hover {
        transform: translateY(-4px);
        box-shadow: 0 8px 20px rgba(102, 126, 234, 0.15);
    }

.apartments-grid-vertical .card-image {
    padding-top: 60%;
}

.apartments-grid-vertical .card-content {
    padding: 12px;
}

.apartments-grid-vertical .apartment-title {
    font-size: 0.95rem;
    margin: 0 0 10px 0;
    min-height: 2.4em;
}

.apartments-grid-vertical .info-item {
    font-size: 0.85rem;
    gap: 6px;
}

.apartments-grid-vertical .price-amount {
    font-size: 1.4rem;
}

.apartments-grid-vertical .apartment-amenities {
    gap: 6px;
    margin-bottom: 10px;
}

.apartments-column .pagination-container {
    margin-top: 30px;
}

/* Animations */
@keyframes spin {
    0% {
        transform: rotate(0deg);
    }

    100% {
        transform: rotate(360deg);
    }
}

/* Responsive Design */
@media (min-width: 769px) {
    .home-container {
    }
}

@media (max-width: 1400px) {
    .results-split-layout {
        grid-template-columns: 1fr 40%;
    }

    .apartments-grid-vertical {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1024px) {
    .results-split-layout {
        grid-template-columns: 1fr;
    }

    .map-column {
        order: -1;
    }

    .map-sticky-container {
        position: relative;
        top: 0;
    }

        .map-sticky-container .map-container {
            height: 500px;
        }

    .apartments-grid-vertical {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .hero-title {
        font-size: 2.5rem;
        flex-direction: column;
        gap: 15px;
    }

    .hero-subtitle {
        font-size: 1.1rem;
    }
    .hero-section,
    .hero-section::before {
        background-position: 50% 85% !important;
    }

    .hero-section {
        padding: 40px 15px;
        background-position: center 10% !important; /* push visible area lower */
    }
    .search-card {
        padding: 25px;
        margin: 0 15px 20px;
    }

    .search-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .results-section {
        padding: 25px;
    }

    .results-header {
        flex-direction: column;
        align-items: flex-start;
        gap: 15px;
    }

    .results-title {
        font-size: 1.5rem;
    }

    .apartments-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }

    .active-filters {
        justify-content: center;
    }

    .results-stats {
        flex-direction: column;
        align-items: flex-start;
        gap: 8px;
    }

    .filters-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .amenities-filter {
        gap: 8px;
    }

    .amenity-checkbox {
        font-size: 11px;
        padding: 4px 8px;
    }

    .apartments-grid-vertical {
        grid-template-columns: 1fr;
    }

    .map-sticky-container .map-container {
        height: 400px;
    }
}

@media (max-width: 480px) {
    .hero-section {
        padding: 40px 15px;
        background-position: center 10% !important;
    }

    .hero-title {
        font-size: 2rem;
    }

    .search-card {
        padding: 20px;
    }

    .card-content {
        padding: 20px;
    }
}

