/* Featured Lakes - Split Hero Layout */

/* Body */
body {
    background: #f5f7f9;
}

/* Header Override */
header {
    background: #f5f7f9 !important;
    box-shadow: none;
}

header.scrolled {
    box-shadow: 0 1px 0 rgba(0, 0, 0, 0.08);
}

/* Split Hero */
.hero-split-section {
    display: grid;
    grid-template-columns: 1fr 1fr;
    height: calc(100vh - 80px);
    /* Full Viewport minus Header */
    min-height: 600px;
    background: #f5f7f9;
    position: relative;
    border-bottom: 1px solid #f1f5f9;
}

.hero-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    padding: 140px 100px 80px;
    /* Space for fixed header */
    background: #f5f7f9;
    z-index: 2;
}

/* Hero Buttons */
.hero-buttons {
    display: flex;
    gap: 16px;
    margin-top: 32px;
    justify-content: flex-start;
}

.btn-hero-primary {
    background: #3675ff;
    color: white;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s;
}

.btn-hero-primary:hover {
    background: #2563eb;
    transform: translateY(-1px);
}

.btn-hero-secondary {
    background: white;
    border: 1px solid #cbd5e1;
    color: #0f172a;
    padding: 14px 28px;
    border-radius: 50px;
    text-decoration: none;
    font-weight: 600;
    font-size: 15px;
    transition: all 0.2s;
}

.btn-hero-secondary:hover {
    border-color: #0f172a;
    background: #f8fafc;
}

.hero-text-wrapper {
    max-width: 540px;
}

.hero-content .pill-tag {
    display: inline-block;
    padding: 6px 12px;
    background: #eff6ff;
    color: #3675ff;
    border-radius: 50px;
    font-size: 13px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    margin-bottom: 24px;
}

.hero-content h1 {
    font-size: 48px;
    line-height: 1.1;
    font-weight: 600;
    margin-bottom: 16px;
    color: #0f172a;
    letter-spacing: -0.02em;
}

.hero-content p {
    font-size: 16px;
    color: #64748b;
    line-height: 1.6;
    max-width: 480px;
}

/* Map */
.hero-map-container {
    width: 100%;
    height: 100%;
    background: #f8fafc;
    position: relative;
}

#hero-map {
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Listings Section */
.listings-section {
    padding: 60px 40px;
    background: #fff;
    min-height: 600px;
}

.listings-container {
    max-width: 1400px;
    /* Wide but contained */
    margin: 0 auto;
}

.listings-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 40px;
}

.listings-header-row h2 {
    font-size: 24px;
    font-weight: 600;
    color: #0f172a;
}

.search-filter-pill {
    display: flex;
    align-items: center;
    gap: 10px;
    background: #fff;
    border: 1px solid #e2e8f0;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
    padding: 10px 16px;
    border-radius: 50px;
    width: 300px;
    transition: all 0.2s;
}

.search-filter-pill:focus-within {
    border-color: #0f172a;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

.search-filter-pill input {
    border: none;
    outline: none;
    font-size: 14px;
    width: 100%;
    color: #0f172a;
}

.search-filter-pill svg {
    color: #0f172a;
}

/* Cards Grid - Desktop Default */
.properties-grid-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 32px;
    /* Open spacing */
}

/* Card Styles (Clean/Airbnb) */
.lake-card-modern {
    display: flex;
    flex-direction: column;
    gap: 12px;
    text-decoration: none;
    color: inherit;
    position: relative;
    background: transparent;
    transition: opacity 0.2s;
}

.lake-card-modern:hover {
    opacity: 0.95;
}

.lake-card-image {
    width: 100%;
    aspect-ratio: 20/19;
    /* Default Desktop Aspect */
    border-radius: 12px;
    overflow: hidden;
    position: relative;
    background: #f1f5f9;
}

.lake-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.lake-card-modern:hover .lake-card-image img {
    transform: scale(1.03);
}

.favorite-icon {
    position: absolute;
    top: 12px;
    right: 12px;
    background: transparent;
    border: none;
    cursor: pointer;
    z-index: 5;
    padding: 0;
}

.favorite-icon svg {
    fill: rgba(0, 0, 0, 0.5);
    stroke: white;
    stroke-width: 2;
    width: 24px;
    height: 24px;
    transition: transform 0.2s;
}

.favorite-icon:hover svg {
    transform: scale(1.1);
}

.lake-card-content {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

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

.lake-card-title {
    font-size: 16px;
    font-weight: 600;
    color: #171717;
    margin: 0;
}

.lake-card-rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-size: 14px;
    color: #171717;
}

.lake-card-desc {
    font-size: 15px;
    color: #717171;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.lake-card-meta {
    font-size: 15px;
    color: #171717;
    font-weight: 600;
    margin-top: 2px;
}

.lake-card-meta span {
    font-weight: 400;
    color: #717171;
}

/* Pagination */
.pagination-controls {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 16px;
    margin-top: 60px;
}

.pagination-controls button {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #e2e8f0;
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    color: #0f172a;
}

.pagination-controls button:hover:not(:disabled) {
    border-color: #0f172a;
    background: #f8fafc;
}

.pagination-controls button:disabled {
    opacity: 0.5;
    cursor: not-allowed;
    border-color: #eee;
}

/* Standard Responsive (Tablet/Desktop) */
@media (max-width: 1024px) {
    .hero-split-section {
        grid-template-columns: 1fr;
        height: auto;
        min-height: auto;
    }

    .hero-content {
        padding: 100px 24px 40px;
        order: 1;
        text-align: center;
        display: flex;
        flex-direction: column;
        align-items: center;
    }

    .hero-text-wrapper {
        margin: 0 auto;
    }

    .hero-buttons {
        justify-content: center;
    }

    .hero-content h1 {
        font-size: 32px;
        margin-bottom: 12px;
    }

    .hero-content p {
        font-size: 16px;
        margin-bottom: 24px;
    }

    .hero-map-container {
        height: 50vh;
        min-height: 400px;
        order: 2;
        border-top: 1px solid #e2e8f0;
        border-bottom: 1px solid #e2e8f0;
    }

    .listings-section {
        padding: 40px 20px;
    }

    .listings-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }

    .search-filter-pill {
        width: 100%;
    }

    .btn-hero-primary {
        padding: 12px 24px;
        font-size: 14px;
    }
}

/* FINAL MOBILE OVERRIDES (Max 800px) - STRICT ENFORCEMENT */
@media (max-width: 800px) {

    /* Mobile Spacing Overrides */
    .hero-content {
        padding: 80px 20px 20px !important;
        /* Aggressive reduction: Header + small gap */
    }

    .listings-section {
        padding: 20px 16px !important;
        /* Tighter padding */
        min-height: auto !important;
    }

    .listings-header-row {
        margin-bottom: 24px !important;
    }

    /* Revert to Single Column Stack (Match Index Page) */
    .properties-grid-cards {
        display: grid !important;
        grid-template-columns: 1fr !important;
        /* Single column */
        gap: 24px !important;
        /* Standard gap */
        width: 100% !important;
        margin: 0 auto !important;
    }

    /* Card Item reset */
    .lake-card-modern {
        width: 100% !important;
        max-width: 100% !important;
        display: flex !important;
        flex-direction: column !important;
        margin: 0 !important;
        padding: 0 !important;
        /* Match blog-card style */
        background: white;
        border-radius: 16px !important;
        border: 1px solid #e5e7eb !important;
        overflow: hidden;
    }

    /* Match blog-image style (16/9) */
    .lake-card-image {
        width: 100% !important;
        height: auto !important;
        aspect-ratio: 16/9 !important;
        /* Widescreen aspect ratio */
        border-radius: 0 !important;
        /* Flush with card edges */
        margin-bottom: 0 !important;
    }

    .lake-card-content {
        padding: 20px !important;
    }

    /* Text resizing to match blog-card h3 */
    .lake-card-title {
        font-size: 18px !important;
        line-height: 1.4;
        margin-bottom: 8px;
    }

    .lake-card-desc,
    .lake-card-meta,
    .lake-card-rating {
        font-size: 14px !important;
        color: #64748b;
    }

    .lake-card-meta {
        margin-top: 12px !important;
    }
}