/* Hero Section */
.hero {
    position: relative;
    min-height: 70vh;
    display: flex;
    align-items: center;
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background:
        url('https://images.unsplash.com/photo-1600596542815-ffad4c1539a9?ixlib=rb-4.0.3&auto=format&fit=crop&w=2075&q=80') center/cover no-repeat;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(135deg, rgba(13,13,13,0.88) 0%, rgba(26,26,26,0.75) 50%, rgba(13,13,13,0.85) 100%);
}

.hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 1000px;
    margin: 0 auto;
    padding: 30px 20px;
}

.hero-title {
    font-family: var(--font-heading);
    font-size: 3rem;
    color: #fff;
    margin-bottom: 15px;
    text-shadow: 2px 2px 10px rgba(0,0,0,0.5);
}

.hero-subtitle {
    font-size: 1.1rem;
    color: rgba(255,255,255,0.8);
    margin-bottom: 30px;
}

/* Hero Search Form */
.hero-search {
    background: rgba(0,0,0,0.6);
    backdrop-filter: blur(15px);
    border-radius: 16px;
    padding: 25px 30px;
    border: 1px solid rgba(212,175,55,0.3);
    box-shadow: 0 20px 60px rgba(0,0,0,0.4);
}

.search-row {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: flex-end;
}

.search-field {
    flex: 1;
    min-width: 160px;
    text-align: left;
}

.search-field label {
    display: block;
    color: rgba(255,255,255,0.9);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 6px;
    font-weight: 500;
}

.search-field input,
.search-field select {
    width: 100%;
    padding: 12px 14px;
    background: rgba(255,255,255,0.08);
    border: 1px solid rgba(255,255,255,0.15);
    border-radius: 8px;
    color: #fff;
    font-size: 14px;
    transition: all 0.3s ease;
}

.search-field input:focus,
.search-field select:focus {
    border-color: var(--gold);
    background: rgba(255,255,255,0.12);
    outline: none;
}

.search-field input::placeholder {
    color: rgba(255,255,255,0.5);
}

.search-field select option {
    background: #1A1A1A;
    color: #fff;
}

.search-btn {
    flex: 0 0 auto;
    padding: 14px 40px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border: none;
    border-radius: 8px;
    color: #0D0D0D;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    align-self: flex-end;
    transition: all 0.3s ease;
}

.search-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 5px 20px rgba(212,175,55,0.4);
}

/* Categories Section */
.categories-section {
    padding: 80px 0;
    background: #fff;
}

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

.category-card {
    background: #fff;
    border: 2px solid #f0f0f0;
    border-radius: 12px;
    padding: 30px 20px;
    text-align: center;
    text-decoration: none;
    transition: all 0.3s ease;
}

.category-card:hover {
    border-color: var(--gold);
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

.category-icon {
    width: 70px;
    height: 70px;
    background: linear-gradient(135deg, var(--gold-light), var(--gold));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: #0D0D0D;
}

.category-card h3 {
    color: #1A1A1A;
    margin-bottom: 8px;
    font-size: 18px;
}

.property-count {
    color: #888;
    font-size: 14px;
}

/* Featured/Latest Sections */
.featured-section,
.latest-section {
    padding: 80px 0;
}

.featured-section {
    background: #f8f9fa;
}

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

/* Features/Why Us Section */
.why-us-section {
    padding: 80px 0;
    background: linear-gradient(135deg, #0D0D0D, #1A1A1A);
}

.why-us-section .section-header h2 {
    color: #fff;
}

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

.feature-card {
    text-align: center;
    padding: 40px 30px;
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 12px;
    transition: all 0.3s ease;
}

.feature-card:hover {
    border-color: var(--gold);
    background: rgba(212,175,55,0.05);
}

.feature-icon {
    width: 80px;
    height: 80px;
    background: linear-gradient(135deg, var(--gold), var(--gold-dark));
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 25px;
    font-size: 32px;
    color: #0D0D0D;
}

.feature-card h3 {
    color: #fff;
    margin-bottom: 15px;
    font-size: 20px;
}

.feature-card p {
    color: rgba(255,255,255,0.7);
    line-height: 1.7;
}

/* Instagram Section */
.instagram-section {
    padding: 80px 0;
    background: #fff;
}

.instagram-link {
    color: var(--gold);
    text-decoration: none;
    font-size: 16px;
}

.instagram-grid {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 10px;
}

.instagram-item {
    position: relative;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
}

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

.instagram-item:hover img {
    transform: scale(1.1);
}

.instagram-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.5);
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.instagram-item:hover .instagram-overlay {
    opacity: 1;
}

.instagram-overlay i {
    font-size: 32px;
    color: #fff;
}

.instagram-loading {
    grid-column: span 6;
    text-align: center;
    padding: 40px;
    color: #888;
}

/* CTA Section */
.cta-section {
    padding: 100px 0;
    background: linear-gradient(135deg, var(--gold-dark), var(--gold));
}

.cta-content {
    text-align: center;
    max-width: 700px;
    margin: 0 auto;
}

.cta-content h2 {
    color: #0D0D0D;
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.cta-content p {
    color: rgba(0,0,0,0.7);
    font-size: 18px;
    margin-bottom: 30px;
}

.cta-content .btn {
    background: #0D0D0D;
    color: #fff;
    padding: 16px 40px;
    font-size: 16px;
}

.cta-content .btn:hover {
    background: #1A1A1A;
}

/* Pagination */
.pagination-wrapper {
    display: flex;
    justify-content: center;
    padding: 40px 20px 20px;
}

.pagination {
    display: flex;
    align-items: center;
    gap: 8px;
}

.page-link {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border: 1px solid #E0E0E0;
    border-radius: 6px;
    color: #333;
    text-decoration: none;
    font-weight: 500;
    transition: all 0.2s ease;
    background: #fff;
}

.page-link:hover {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--dark);
}

.page-link.active {
    background: var(--gold);
    border-color: var(--gold);
    color: var(--dark);
}

.page-prev,
.page-next {
    font-size: 14px;
}

.page-ellipsis {
    padding: 0 8px;
    color: #999;
    font-weight: 500;
}

/* Responsive */
@media (max-width: 992px) {
    .hero-title {
        font-size: 2.5rem;
    }

    .instagram-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .hero {
        min-height: 60vh;
    }

    .hero-title {
        font-size: 2rem;
    }

    .search-btn {
        width: 100%;
        justify-content: center;
    }

    .properties-grid {
        grid-template-columns: 1fr;
    }

    .instagram-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 576px) {
    .hero {
        min-height: 50vh;
    }

    .hero-content {
        padding: 20px 10px;
    }

    .hero-title {
        font-size: 1.5rem;
        margin-bottom: 8px;
    }

    .hero-subtitle {
        font-size: 0.9rem;
        margin-bottom: 15px;
    }

    .hero-search {
        padding: 15px;
        border-radius: 10px;
    }

    .search-row {
        gap: 8px;
    }

    .search-field {
        min-width: 100%;
    }

    .search-field label {
        font-size: 10px;
        margin-bottom: 4px;
    }

    .search-field input,
    .search-field select {
        padding: 10px 12px;
        font-size: 13px;
    }

    .search-btn {
        padding: 12px;
        font-size: 14px;
    }

    /* Sections compact */
    .categories-section,
    .featured-section,
    .latest-section {
        padding: 40px 0;
    }

    .categories-grid {
        gap: 10px;
    }

    .category-card {
        padding: 15px 10px;
    }

    .category-icon {
        width: 50px;
        height: 50px;
        font-size: 20px;
        margin-bottom: 10px;
    }

    .category-card h3 {
        font-size: 13px;
    }

    .property-count {
        font-size: 12px;
    }

    .properties-grid {
        gap: 15px;
    }

    /* Why Us compact */
    .why-us-section {
        padding: 40px 0;
    }

    .features-grid {
        gap: 15px;
    }

    .feature-card {
        padding: 20px 15px;
    }

    .feature-icon {
        width: 55px;
        height: 55px;
        font-size: 22px;
        margin-bottom: 15px;
    }

    .feature-card h3 {
        font-size: 16px;
        margin-bottom: 8px;
    }

    .feature-card p {
        font-size: 13px;
    }

    /* Instagram compact */
    .instagram-section {
        padding: 40px 0;
    }

    .instagram-grid {
        gap: 6px;
    }

    /* CTA compact */
    .cta-section {
        padding: 50px 0;
    }

    .cta-content h2 {
        font-size: 1.5rem;
        margin-bottom: 10px;
    }

    .cta-content p {
        font-size: 14px;
        margin-bottom: 20px;
    }

    .cta-content .btn {
        padding: 12px 25px;
        font-size: 14px;
    }

    /* Pagination mobile */
    .pagination-wrapper {
        padding: 20px 10px;
    }

    .pagination {
        gap: 4px;
    }

    .page-link {
        width: 35px;
        height: 35px;
        font-size: 13px;
    }

    .page-ellipsis {
        padding: 0 4px;
        font-size: 13px;
    }
}
