﻿/* ================= HERO SECTION ================= */
.hero-section {
    height: 80vh;
    min-height: 520px;
    background-image: url('../img/city-banner-Prop-Keys.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 0;
}

    /* Dark overlay */
    .hero-section::before {
        content: '';
        position: absolute;
        inset: 0;
        background: linear-gradient(90deg, rgba(0,0,0,.10), rgba(0,0,0,.35));
    }

.hero-content {
    position: relative;
    z-index: 2;
    width: 100%;
}

/* CENTER BLOCK */
.hero-box {
    max-width: 920px;
    margin: 0 auto;
    text-align: center;
}

/* ================= TEXT ================= */
.hero-title {
    font-weight: 700;
    line-height: 1.15;
    color: #fff;
}

.hero-subtitle {
    font-size: 18px;
    color: #fff;
    margin-bottom: 16px;
}

/* ================= SEARCH BAR ================= */
.search-bar {
    background: #fff;
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px;
    border-radius: 16px;
    max-width: 920px;
    margin: 18px auto 0 auto;
    box-shadow: 0 10px 30px rgba(0,0,0,.25);
    position: relative;
    overflow: visible;
}

    /* SAME HEIGHT */
    .search-bar > * {
        height: 52px;
        display: flex;
        align-items: center;
        position: relative;
    }

/* ================= AUTOCOMPLETE DROPDOWN ================= */
.search-suggestions {
    position: absolute;
    top: 100%;
    left: 300px;
    right: 150px;
    background: #fff;
    border: none;
    z-index: 99999;
    border-radius: 0 0 16px 16px;
    box-shadow: 0 14px 35px rgba(0,0,0,0.15);
    height: auto;
    max-height: 410px;
    overflow-y: auto;
    overflow-x: hidden;
    display: none;
    margin: 0;
    padding: 0;
}

/* OPEN EFFECT */
@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(4px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* SCROLLBAR */
.search-suggestions::-webkit-scrollbar {
    width: 8px;
}

.search-suggestions::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 10px;
}

.search-suggestions::-webkit-scrollbar-thumb {
    background: #c7c7c7;
    border-radius: 10px;
}

    .search-suggestions::-webkit-scrollbar-thumb:hover {
        background: #999;
    }

/* SINGLE ITEM */
.search-item {
    height: 50px;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 12px;
    cursor: pointer;
    font-size: 16px;
    color: #222;
    font-weight: 500;
    border-bottom: 1px solid #f1f1f1;
    transition: all .2s ease;
    background: #fff;
    flex-shrink: 0;
}

    /* LAST ITEM */
    .search-item:last-child {
        border-bottom: none;
    }

    /* HOVER EFFECT */
    .search-item:hover {
        background: #f7f9fc;
        color: #084298;
        padding-left: 28px;
    }

    /* ICON */
    .search-item i {
        font-size: 16px;
        color: #8b8b8b;
        min-width: 18px;
    }

/* CITY DROPDOWN */
.city-btn {
    min-width: 200px;
    border: none;
    background: #fff;
    font-weight: 600;
    padding: 0 16px;
    border-radius: 8px;
    cursor: pointer;
    outline: none;
}

/* SEARCH ICON */
.search-icon {
    width: 52px;
    justify-content: center;
    color: #111;
    font-size: 20px;
}

/* SEARCH INPUT */
.search-input {
    flex: 1;
    border: none !important;
    outline: none !important;
    padding: 0 10px;
    font-size: 15px;
    background: transparent;
    position: relative;
    z-index: 2;
}

/* SEARCH BUTTON */
.search-btn {
    border: none;
    font-weight: 700;
    padding: 0 34px;
    border-radius: 12px;
    font-size: 16px;
    cursor: pointer;
    height: 52px;
    transition: .3s;
}

    .search-btn:hover {
        transform: translateY(-1px);
    }

/* ================= SEARCH BY ================= */
.search-by {
    margin-top: 14px;
    background: #000;
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 16px;
    border-radius: 10px;
    font-weight: 600;
}

/* ================= MOBILE DESIGN ================= */
@media (max-width: 992px) {

    .hero-section {
        height: auto;
        min-height: auto;
        padding: 48px 0 28px;
    }

    .hero-box {
        text-align: center;
        padding: 0 10px;
    }

    /* SEARCH BAR */
    .search-bar {
        flex-wrap: wrap;
        gap: 12px;
        padding: 14px;
        width: 100%;
        border-radius: 18px;
        overflow: visible;
        position: relative;
    }

        /* ALL ELEMENT SAME WIDTH */
        .search-bar > * {
            height: 50px;
            width: 100%;
        }

    /* CITY DROPDOWN */
    .city-btn {
        width: 100%;
        min-width: 100%;
        border-radius: 12px;
        padding: 0 14px;
        font-size: 16px;
    }

    /* HIDE ICON */
    .search-icon {
        display: none;
    }

    /* SEARCH INPUT */
    .search-input {
        width: 100% !important;
        height: 52px;
        border-radius: 12px;
        font-size: 16px;
        padding: 0 14px;
        background: #fff;
    }

    /* SEARCH BUTTON */
    .search-btn {
        width: 100%;
        height: 52px;
        border-radius: 12px;
        font-size: 17px;
    }

    /* AUTOCOMPLETE DROPDOWN */
    .search-suggestions {
        position: absolute;
        left: 0 !important;
        right: 0 !important;
        top: 120px !important;
        width: 100% !important;
        background: #fff;
        border-radius: 14px;
        box-shadow: 0 12px 35px rgba(0,0,0,.18);
        max-height: 220px;
        height: auto;
        overflow-y: auto;
        overflow-x: hidden;
        z-index: 999999;
        padding: 0;
        margin: 0;
    }

    /* SHOW 10 ITEMS */
    .search-item {
        min-height: 58px;
        padding: 0 18px;
        font-size: 16px;
        display: flex;
        align-items: center;
        gap: 12px;
        border-bottom: 1px solid #f1f1f1;
        background: #fff;
        font-weight: 500;
    }

        .search-item:last-child {
            border-bottom: none;
        }
}

/* Desktop / Laptop Only */
@media (min-width: 992px) {

    .hero-title {
        margin-top: 5px !important;
    }

    .search-bar {
        margin-top: 5px !important;
    }
}
