/* ==========================================
   MOBILE PROPERTY SEARCH BUTTON
   ========================================== */

.mobile-property-search {
    position: fixed;
    right: 0;
    top: 42%;
    z-index: 900;

    width: 70px;
    min-height: 82px;

    border: 0;
    border-radius: 8px 0 0 8px;

    background: #1680b8;
    color: #fff;

    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    cursor: pointer;

    box-shadow: 0 3px 10px rgba(0,0,0,.20);
}

.mobile-property-search .search-icon {
    font-size: 30px;
    line-height: 25px;
    margin-bottom: 5px;
}

.mobile-property-search span:last-child {
    font-size: 9px;
    line-height: 11px;
    text-align: center;
}


/* ==========================================
   MODAL
   ========================================== */

.property-search-modal {
    position: fixed;
    inset: 0;

    z-index: 99999;

    visibility: hidden;
    opacity: 0;

    transition:
        opacity .25s ease,
        visibility .25s ease;
}

.property-search-modal.active {
    visibility: visible;
    opacity: 1;
}


/* ==========================================
   OVERLAY
   ========================================== */

.property-search-overlay {
    position: absolute;
    inset: 0;

    background: rgba(0, 0, 0, .60);
}


/* ==========================================
   BOTTOM SHEET
   ========================================== */

.property-search-sheet {
    position: absolute;

    left: 0;
    right: 0;
    bottom: 0;

    width: 100%;
    max-height: 92vh;

    background: #fff;

    border-radius: 22px 22px 0 0;

    overflow-y: auto;

    transform: translateY(100%);

    transition: transform .30s ease;

    box-shadow: 0 -5px 30px rgba(0,0,0,.20);

    padding: 20px 16px 25px;
}

.property-search-modal.active .property-search-sheet {
    transform: translateY(0);
}


/* ==========================================
   HEADER
   ========================================== */

.property-search-header {
    display: flex;
    align-items: center;
    justify-content: space-between;

    margin-bottom: 18px;
}

.property-search-header h2 {
    margin: 10px 0 0;

    font-size: 24px;
    line-height: 30px;

    font-weight: 600;

    color: #222;
}


/* Small grey handle */

.property-search-handle {
    width: 55px;
    height: 6px;

    margin: 0 auto 10px;

    border-radius: 10px;

    background: #c5c5c5;
}


/* Close button */

.property-search-close {
    position: absolute;

    top: 38px;
    right: 18px;

    width: 40px;
    height: 40px;

    padding: 0;

    border: 0;
    background: transparent;

    color: #111;

    font-size: 38px;
    line-height: 38px;

    cursor: pointer;
}


/* ==========================================
   FORM
   ========================================== */

#mobilePropertySearchForm {
    width: 100%;
}


/* ==========================================
   FIELD
   ========================================== */

.mobile-search-field {
    position: relative;

    margin-bottom: 10px;
}


/* Select */

.mobile-search-select,
.mobile-search-input {
    width: 100%;

    height: 62px;

    box-sizing: border-box;

    border: 1px solid #d7d7d7;

    border-radius: 4px;

    background: #fff;

    color: #252525;

    padding: 0 45px 0 14px;

    font-size: 16px;

    outline: none;
}


/* Custom arrow */

.mobile-search-select {
    appearance: none;
    -webkit-appearance: none;

    background-image:
        linear-gradient(45deg, transparent 50%, #222 50%),
        linear-gradient(135deg, #222 50%, transparent 50%);

    background-position:
        calc(100% - 20px) 27px,
        calc(100% - 14px) 27px;

    background-size:
        6px 6px,
        6px 6px;

    background-repeat: no-repeat;
}

.mobile-search-select:focus,
.mobile-search-input:focus {
    border-color: #aaa;
}


/* Reference */

.mobile-search-input::placeholder {
    color: #999;
}


/* ==========================================
   CHECKBOX DROPDOWNS
   ========================================== */

.mobile-checkbox-dropdown {
    display: none;

    position: absolute;

    left: 0;
    right: 0;

    top: 66px;

    z-index: 20;

    background: #fff;

    border: 1px solid #ddd;

    border-radius: 4px;

    padding: 10px;

    max-height: 300px;

    overflow-y: auto;

    box-shadow: 0 5px 15px rgba(0,0,0,.15);
}

.mobile-checkbox-dropdown.active {
    display: block;
}


/* Town search */

.mobile-town-search {
    width: 100%;
    height: 42px;

    box-sizing: border-box;

    border: 1px solid #ddd;

    padding: 8px 10px;

    margin-bottom: 8px;

    font-size: 15px;
}


/* Checkbox */

.mobile-checkbox {
    display: flex;

    align-items: center;

    gap: 8px;

    padding: 9px 4px;

    font-size: 15px;

    cursor: pointer;
}

.mobile-checkbox input {
    width: 17px;
    height: 17px;
}


/* ==========================================
   SEARCH BUTTON
   ========================================== */

.mobile-search-submit {
    width: 100%;
    height: 62px;
    margin-top: 5px;
    border: 0;
    border-radius: 3px;
    background: #eeb11c;
    color: #fff;
    font-size: 20px;
    font-weight: 700;
    cursor: pointer;
}

.mobile-search-submit:hover {
    background: #dfa20d;
}

.submit-search-icon {
    display: inline-block;

    margin-left: 8px;

    font-size: 27px;

    vertical-align: middle;
}

.mobile-search-reset {
	background-color: #aaa !important;
	width: 100%;
    height: 62px;
	font-size: 20px;
    font-weight: 700;
    cursor: pointer;
}


/* ==========================================
   MOBILE ONLY
   ========================================== */

@media (min-width: 769px) {

    .mobile-property-search,
    .property-search-modal {
        display: none !important;
    }
}


/* ==========================================
   SMALL PHONES
   ========================================== */

@media (max-width: 380px) {

    .property-search-sheet {
        padding-left: 12px;
        padding-right: 12px;
    }

    .mobile-search-select,
    .mobile-search-input {
        height: 56px;
        font-size: 15px;
    }

    .mobile-search-submit,
	.mobile-search-reset {
        height: 58px;
    }

    .property-search-header h2 {
        font-size: 22px;
    }
}