/* ================================
   HEADER SEARCH ICON
================================ */

/* =====================================================
   HEADER SEARCH BUTTON
===================================================== */

.search-icon {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-left: 15px;
}


/* Button */

.header-search-btn {
    width: 35px;
    height: 35px;

    padding: 0;

    border: 1px solid rgba(200, 164, 94, 0.45);

    border-radius: 50%;

    background: transparent;

    display: flex;
    align-items: center;
    justify-content: center;

    position: relative;

    cursor: pointer;

    color: #222;

    transition:
        background 0.35s ease,
        border-color 0.35s ease,
        transform 0.35s ease,
        box-shadow 0.35s ease;
}


/* Search SVG */

.home-page .header-search-btn svg {

    width: 19px;
    height: 19px;

    fill: none;

    stroke: #fff;

    stroke-width: 1.7;

    stroke-linecap: round;

    stroke-linejoin: round;

    transition:
        transform 0.4s cubic-bezier(.2,.8,.2,1),
        stroke 0.3s ease;
}

.header-search-btn svg {

    width: 19px;
    height: 19px;

    fill: none;

    stroke: #c8a45e;

    stroke-width: 1.7;

    stroke-linecap: round;

    stroke-linejoin: round;

    transition:
        transform 0.4s cubic-bezier(.2,.8,.2,1),
        stroke 0.3s ease;
}
.header-search-btn:hover svg {
    stroke: #fff;
}
/* Hover */

.header-search-btn:hover {

    background: #c8a45e;

    border-color: #c8a45e;

    color: #fff;

    transform: translateY(-2px);

    box-shadow:
        0 8px 22px rgba(0,0,0,0.12);
}


.header-search-btn:hover svg {

    transform:
        scale(1.12)
        rotate(-8deg);
}


/* Click */

.header-search-btn:active {

    transform: translateY(0) scale(0.94);

    box-shadow: none;
}


/* =====================================================
   SEARCH PULSE
===================================================== */

.header-search-btn::before {

    content: "";

    position: absolute;

    inset: -5px;

    border-radius: 50%;

    border: 1px solid rgba(200, 164, 94, 0);

    transform: scale(0.8);

    opacity: 0;

    pointer-events: none;
}


.header-search-btn:hover::before {

    animation: searchPulse 1.2s ease-out infinite;
}


@keyframes searchPulse {

    0% {

        transform: scale(0.85);

        opacity: 0.7;

        border-color: rgba(200, 164, 94, 0.65);
    }

    100% {

        transform: scale(1.35);

        opacity: 0;

        border-color: rgba(200, 164, 94, 0);
    }
}


/* =====================================================
   TOOLTIP
===================================================== */

.search-tooltip {

    position: absolute;

    top: calc(100% + 12px);

    left: 50%;

    transform:
        translateX(-50%)
        translateY(-5px);

    white-space: nowrap;

    padding: 7px 11px;

    background: #222;

    color: #fff;

    font-size: 11px;

    letter-spacing: 0.3px;

    opacity: 0;

    visibility: hidden;

    pointer-events: none;

    transition:
        opacity 0.25s ease,
        transform 0.25s ease;
}


.search-tooltip::before {

    content: "";

    position: absolute;

    top: -5px;

    left: 50%;

    transform: translateX(-50%) rotate(45deg);

    width: 9px;

    height: 9px;

    background: #222;
}


.header-search-btn:hover .search-tooltip {

    opacity: 1;

    visibility: visible;

    transform:
        translateX(-50%)
        translateY(0);
}


/* =====================================================
   HEADER SCROLLED STATE
===================================================== */

/*
   Agar tumhare header mein .scrolled class already
   use ho rahi hai, toh ye automatically apply hoga.
*/

.site-header.scrolled .header-search-btn {

    width: 37px;

    height: 37px;

    background: #222;

    border-color: #222;

    color: #fff;
}


.site-header.scrolled .header-search-btn:hover {

    background: #c8a45e;

    border-color: #c8a45e;
}


/* =====================================================
   MOBILE
===================================================== */

@media (max-width: 768px) {

    .search-icon {

        margin-left: 8px;
    }


    .header-search-btn {

        width: 42px;

        height: 42px;
    }


    .header-search-btn svg {

        width: 18px;

        height: 18px;
    }


    .search-tooltip {

        display: none;
    }

}
/* ================================
   SEARCH OVERLAY
================================ */

.property-search-overlay {
    position: fixed;
    inset: 0;
    z-index: 99999;

    background: rgba(0, 0, 0, 0.62);

    display: flex;
    align-items: center;
    justify-content: center;

    padding: 30px;

    opacity: 0;
    visibility: hidden;
    pointer-events: none;

    transition:
        opacity 0.3s ease,
        visibility 0.3s ease;
}

.property-search-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}


/* ================================
   POPUP
================================ */

.property-search-popup {
    width: 100%;
    max-width: 900px;
    max-height: 90vh;

    background: #fff;

    padding: 40px;

    position: relative;

    overflow-y: auto;

    transform: translateY(30px) scale(0.98);

    transition: transform 0.3s ease;
}

.property-search-overlay.active .property-search-popup {
    transform: translateY(0) scale(1);
}


/* CLOSE */

.property-search-close {
    position: absolute;
    right: 20px;
    top: 18px;

    width: 38px;
    height: 38px;

    border: 1px solid #ddd;
    background: #fff;

    font-size: 27px;
    line-height: 1;

    cursor: pointer;
}


/* HEADER */

.property-search-header {
    margin-bottom: 30px;
    padding-right: 40px;
}

.property-search-header span {
    font-size: 11px;
    letter-spacing: 2px;
    font-weight: 600;
    color: #c8a45e;
}

.property-search-header h2 {
    margin: 7px 0;
    font-size: 32px;
    font-weight: 500;
}

.property-search-header p {
    margin: 0;
    color: #777;
}


/* ================================
   FORM GRID
================================ */

#propertySearchForm {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 22px;
}

.search-field {
    min-width: 0;
}

.search-field.full-width {
    grid-column: 1 / -1;
}

.search-field label {
    display: block;
    margin-bottom: 9px;

    font-size: 13px;
    font-weight: 600;
    color: #222;
}


/* INPUT */

.search-input-icon {
    position: relative;
}

.search-input-icon svg {
    position: absolute;
    left: 16px;
    top: 50%;

    width: 19px;
    height: 19px;

    transform: translateY(-50%);

    fill: none;
    stroke: #999;
    stroke-width: 1.5;
}

.search-input-icon input {
    padding-left: 48px;
}

.search-field input[type="text"], .search-field input[type="number"], .search-field select {
    width: 100%;
    height: 48px;
    border: 1px solid #ddd;
    background: #fff;
    padding: 0 15px 0 40px;
    font-family: inherit;
    outline: none;
}

.search-field input:focus,
.search-field select:focus {
    border-color: #c8a45e;
}


/* ================================
   PROPERTY TYPE
================================ */

.property-type-options {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.property-type-option input {
    display: none;
}

.property-type-option span {
    display: block;

    padding: 10px 15px;

    border: 1px solid #ddd;

    font-size: 12px;

    cursor: pointer;

    transition: 0.2s;
}

.property-type-option input:checked + span {
    background: #c8a45e;
    color: #fff;
    border-color: #c8a45e;
}


/* ================================
   RANGE
================================ */

.range-values {
    display: flex;
    justify-content: space-between;

    margin-bottom: 8px;

    font-size: 12px;
    color: #777;
}

.search-field input[type="range"] {
    width: 100%;
    accent-color: #c8a45e;
}


/* ================================
   DOUBLE INPUT
================================ */

.double-input {
    display: flex;
    align-items: center;
    gap: 10px;
}

.double-input input {
    min-width: 0;
}


/* ================================
   FEATURES
================================ */

.feature-options {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.feature-options label {
    display: flex;
    align-items: center;
    gap: 7px;

    border: 1px solid #ddd;

    padding: 9px 13px;

    cursor: pointer;

    font-size: 12px;
    font-weight: 500;
}

.feature-options input {
    accent-color: #c8a45e;
}


/* ================================
   BUTTONS
================================ */

.property-search-actions {
    grid-column: 1 / -1;

    display: flex;
    gap: 12px;

    margin-top: 5px;
}

.search-reset-btn,
.search-submit-btn {
    height: 50px;

    padding: 0 25px;

    border: 0;

    cursor: pointer;

    font-family: inherit;
}

.search-reset-btn {
    background: #f2f2f2;
    color: #333;
}

.search-submit-btn {
    flex: 1;

    background: #c8a45e;
    color: #fff;

    display: flex;
    align-items: center;
    justify-content: center;
    gap: 9px;
}

.search-submit-btn svg {
    width: 18px;
    height: 18px;

    fill: none;
    stroke: currentColor;
    stroke-width: 1.7;
}


/* ================================
   MOBILE
================================ */

@media (max-width: 700px) {

    .property-search-overlay {
        padding: 15px;
    }

    .property-search-popup {
        padding: 25px 20px;
        max-height: 94vh;
    }

    #propertySearchForm {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .search-field.full-width {
        grid-column: auto;
    }

    .property-search-actions {
        grid-column: auto;
        flex-direction: column;
    }

    .search-submit-btn {
        flex: none;
    }

    .property-search-header h2 {
        font-size: 25px;
    }

}