/**
 * Advanced Search Results
 * 1) Sidebar: Ana sayfadaki ile aynı Airbnb arama çubuğu (airbnb-search-bar.php)
 * 2) Takvim: seçili tarih aralığı ve tarihlerin net görünmesi
 */

/* ==========================================================================
   #advanced_search_map_list – Sidebar’da aynı Airbnb arama çubuğu
   Sadece genişlik: sidebar’da tam genişlik, max-width kaldırılır.
   ========================================================================== */

/* Sidebar arama: açılan dropdown’lar sağdaki harita/listenin üstünde kalsın */
/* "14 Sonuçlar bulundu! Varsayılan" filtre başlık satırını gizle */
.wprentals_adv_listing_filters_head.advanced_filters {
    display: none !important;
}

#advanced_search_map_list.thenexpoint-results-sidebar-search {
    margin-bottom: 20px;
    position: relative;
    z-index: 100002;
}

#advanced_search_map_list.thenexpoint-results-sidebar-search .airbnb-search-wrapper {
    max-width: none;
    width: 100%;
    position: relative;
    z-index: 1;
}

/* Sidebar’da alanlar her zaman yan yana kalsın; araları dar (gap + daha az yatay padding) */
#advanced_search_map_list.thenexpoint-results-sidebar-search .airbnb-search-fields {
    flex-wrap: nowrap;
    gap: 0;
}

/* Alan içi padding azaltıldı → alanlar birbirine yaklaşır */
#advanced_search_map_list.thenexpoint-results-sidebar-search .airbnb-field-content {
    position: static;
    padding: 12px 14px;
}

/* "Yer" metni üst sınıra çok yakın olmasın */
#advanced_search_map_list.thenexpoint-results-sidebar-search .airbnb-search-field:first-child .airbnb-field-content {
    padding-top: 16px;
}

/* Açılan dropdown’lar tam genişlik: konumlama wrapper’a göre (bar formatı bozulmadan) */
#advanced_search_map_list.thenexpoint-results-sidebar-search .airbnb-search-field {
    position: static;
}

#advanced_search_map_list.thenexpoint-results-sidebar-search .airbnb-field-dropdown {
    z-index: 100003;
    left: 0 !important;
    right: auto !important;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    box-sizing: border-box;
    overflow-x: auto;
}

/* Sidebar’da takvim: %100 genişlik, iki ay yan yana, taşma yok */
#advanced_search_map_list.thenexpoint-results-sidebar-search .airbnb-calendar-dropdown {
    left: 0 !important;
    right: auto !important;
    max-width: 100%;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

#advanced_search_map_list.thenexpoint-results-sidebar-search .airbnb-calendar-dropdown .airbnb-dropdown-content,
#advanced_search_map_list.thenexpoint-results-sidebar-search .airbnb-calendar-dropdown .daterangepicker {
    max-width: 100%;
    box-sizing: border-box;
}

/* Takvim: iki ay yan yana, ekrana sığacak şekilde küçülebilir */
#advanced_search_map_list.thenexpoint-results-sidebar-search .airbnb-calendar-wrapper {
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    max-width: 100%;
    min-width: 0;
    gap: 16px;
}

#advanced_search_map_list.thenexpoint-results-sidebar-search .airbnb-calendar-wrapper .airbnb-calendar-month {
    flex: 1 1 0;
    min-width: 0;
    max-width: 100%;
}

#advanced_search_map_list.thenexpoint-results-sidebar-search .airbnb-calendar-wrapper .airbnb-calendar-grid {
    min-width: 0;
    max-width: 100%;
}

#advanced_search_map_list.thenexpoint-results-sidebar-search .airbnb-calendar-wrapper .airbnb-calendar-day-header,
#advanced_search_map_list.thenexpoint-results-sidebar-search .airbnb-calendar-wrapper .airbnb-calendar-day {
    box-sizing: border-box;
    min-width: 0;
    font-size: clamp(10px, 2.5vw, 14px);
}

#advanced_search_map_list.thenexpoint-results-sidebar-search .daterangepicker {
    left: 0 !important;
}

/* Sidebar’da misafir dropdown: %100 genişlik, taşma yok */
#advanced_search_map_list.thenexpoint-results-sidebar-search .airbnb-guests-dropdown {
    left: 0 !important;
    right: auto !important;
    max-width: 100%;
    min-width: 0;
    width: 100%;
    box-sizing: border-box;
}

#advanced_search_map_list.thenexpoint-results-sidebar-search .airbnb-guests-dropdown .airbnb-dropdown-content {
    max-width: 100%;
    box-sizing: border-box;
}

#advanced_search_map_list.thenexpoint-results-sidebar-search .airbnb-guests-dropdown .airbnb-guest-counter {
    min-width: 0;
}

#advanced_search_map_list.thenexpoint-results-sidebar-search .airbnb-guests-dropdown .airbnb-counter-item {
    min-width: 0;
    flex-wrap: wrap;
}

#advanced_search_map_list.thenexpoint-results-sidebar-search .airbnb-guests-dropdown .airbnb-counter-label {
    min-width: 0;
}

#advanced_search_map_list.thenexpoint-results-sidebar-search .airbnb-guests-dropdown .airbnb-counter-label strong,
#advanced_search_map_list.thenexpoint-results-sidebar-search .airbnb-guests-dropdown .airbnb-counter-label span {
    overflow-wrap: break-word;
}

#advanced_search_map_list.thenexpoint-results-sidebar-search .airbnb-guests-dropdown .airbnb-counter-controls {
    flex-shrink: 0;
}

/* Sidebar’da field-content min-width ile taşmayı önler (konumlama wrapper’da) */
#advanced_search_map_list.thenexpoint-results-sidebar-search .airbnb-field-content {
    min-width: 0;
}

/* Tablette sidebar arama: mobil gibi dikey/tek sütun */
@media (max-width: 1024px) {
    #advanced_search_map_list.thenexpoint-results-sidebar-search .airbnb-search-fields {
        flex-direction: column;
        flex-wrap: wrap;
        gap: 0;
        width: 100%;
    }
    #advanced_search_map_list.thenexpoint-results-sidebar-search .airbnb-search-field {
        flex: 1 1 100%;
        width: 100%;
        min-width: 100%;
        border-radius: 0;
        box-sizing: border-box;
    }
    #advanced_search_map_list.thenexpoint-results-sidebar-search .airbnb-search-field:first-child {
        border-radius: 50px 50px 0 0;
    }
    #advanced_search_map_list.thenexpoint-results-sidebar-search .airbnb-search-field:last-of-type {
        border-radius: 0 0 50px 50px;
    }
    #advanced_search_map_list.thenexpoint-results-sidebar-search .airbnb-field-content {
        padding: 14px 20px;
        width: 100%;
        box-sizing: border-box;
    }
    #advanced_search_map_list.thenexpoint-results-sidebar-search .airbnb-search-button-wrapper {
        padding: 12px 20px;
        width: 100%;
        justify-content: center;
        box-sizing: border-box;
    }
    #advanced_search_map_list.thenexpoint-results-sidebar-search .airbnb-search-button {
        width: 100%;
        min-width: 0;
        height: 50px;
        min-height: 50px;
        border-radius: 25px;
        padding: 0 20px;
        gap: 10px;
    }
    #advanced_search_map_list.thenexpoint-results-sidebar-search .airbnb-search-button-text {
        display: inline;
        font-weight: 600;
    }
    #advanced_search_map_list.thenexpoint-results-sidebar-search .airbnb-field-dropdown {
        position: fixed;
        top: auto;
        bottom: 0;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        border-radius: 24px 24px 0 0;
        max-height: 80vh;
        overflow-y: auto;
        transform: translateY(100%);
        box-sizing: border-box;
    }
    #advanced_search_map_list.thenexpoint-results-sidebar-search .airbnb-search-field.active .airbnb-field-dropdown {
        transform: translateY(0);
    }
    #advanced_search_map_list.thenexpoint-results-sidebar-search .airbnb-calendar-wrapper {
        flex-direction: column;
    }
}

/* ==========================================================================
   Takvim: seçili tarih aralığı ve tarihler
   ========================================================================== */

/* Takvim: seçili tarih aralığı net arka plan rengi */
.daterangepicker td.in-range,
.daterangepicker .calendar-table td.in-range {
    background-color: #e8dcf7 !important;
    color: #2d1b4e !important;
    border-color: transparent !important;
}

.daterangepicker td.off.in-range,
.daterangepicker .calendar-table td.off.in-range {
    background-color: #e8dcf7 !important;
    color: #5a4a6a !important;
}

/* Başlangıç ve bitiş tarihleri – belirgin */
.daterangepicker td.start-date,
.daterangepicker td.end-date,
.daterangepicker .calendar-table td.active,
.daterangepicker .calendar-table td.active.start-date.available,
.daterangepicker .calendar-table td.active.end-date.in-range.available,
.daterangepicker .calendar-table td.off.start-date,
.daterangepicker .calendar-table td.off.end-date {
    background-color: #212CC9 !important;
    color: #fff !important;
    border-color: transparent !important;
}

.daterangepicker .calendar-table td.active:hover,
.daterangepicker .calendar-table td.off.end-date:hover,
.daterangepicker .calendar-table td.off.start-date:hover {
    background-color: #1b24a8 !important;
    color: #fff !important;
}

/* WpRentals takvim sınıfları – başlangıç/bitiş rezervasyon hücreleri */
.wpestate_calendar.start_reservation,
.wpestate_calendar.end_reservation,
.wpestate_booking_class.start_reservation,
.wpestate_booking_class.end_reservation {
    background-color: #212CC9 !important;
    color: #fff !important;
    border: 1px solid #9d6ae8 !important;
}

/* Harita/liste: tarih bilgisi metninin okunaklı olması */
#advanced_search_map_list .check_in_block,
#advanced_search_map_list .check_out_block,
.advanced_search_shortcode .check_in_block,
.advanced_search_shortcode .check_out_block {
    color: inherit;
    opacity: 1;
    font-weight: 500;
}

/* ==========================================================================
   Filtre butonu + pop-up (Airbnb tarzı; renk/font temadan inherit)
   ========================================================================== */

/* Header row: H1 (Mülkler) sol, Filtre butonu sağ – listing’in üstünde, her zaman görünür */
.thenexpoint-sidebar-header-row {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-top: 12px;
    margin-bottom: 16px;
    min-height: 44px;
    visibility: visible !important;
    opacity: 1 !important;
    position: relative;
    z-index: 2;
    flex-shrink: 0;
    background: #f6f6f6;
}

/* Sidebar: Mülkler + Filtreler #listing_ajax_container ile aynı sağ/sol boşluk (margin -10px + padding 10px) */
#google_map_prop_list_sidebar .thenexpoint-sidebar-header-row {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    overflow: visible;
    clear: both;
    flex-shrink: 0;
    margin-left: -10px;
    margin-right: -10px;
    padding: 0 30px;
    box-sizing: border-box;
}
#google_map_prop_list_sidebar #listing_ajax_container {
    margin-top: 0 !important;
    clear: both;
}

.thenexpoint-sidebar-header-row .entry-title.title_prop {
    margin: 0;
    padding-left: 0;
    flex: 1 1 auto;
    min-width: 0;
    font-size: 2.4rem;
    font-weight: 600;
    line-height: 1.3;
    color: inherit;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Mobil ve tablette: başlık sola yasla, sol padding yok */
@media (max-width: 1024px) {
    .thenexpoint-sidebar-header-row .entry-title.title_prop {
        text-align: left;
        padding-left: 0;
    }
}

.thenexpoint-sidebar-header-row .thenexpoint-sidebar-filter-trigger-wrap {
    margin: 0;
    flex-shrink: 0;
    visibility: visible !important;
    opacity: 1 !important;
}

.thenexpoint-sidebar-filter-trigger-wrap {
    margin-top: 12px;
    margin-bottom: 16px;
}

.thenexpoint-filter-trigger {
    display: inline-flex !important;
    align-items: center;
    gap: 6px;
    padding: 10px 14px;
    font-size: inherit;
    font-family: inherit;
    color: inherit;
    background: transparent;
    border: 1px solid currentColor;
    border-color: rgba(0, 0, 0, 0.15);
    border-radius: 9999px;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease;
    visibility: visible !important;
    opacity: 1 !important;
}

.thenexpoint-filter-trigger:hover {
    background-color: rgba(0, 0, 0, 0.04);
    border-color: rgba(0, 0, 0, 0.25);
}

.thenexpoint-filter-trigger-inner {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.thenexpoint-filter-trigger-icon {
    display: block;
    width: 16px;
    height: 16px;
    flex-shrink: 0;
    stroke: currentColor;
    opacity: 0.9;
}

.thenexpoint-filter-trigger-text {
    font-weight: 500;
}

.thenexpoint-filter-trigger-badge {
    min-width: 18px;
    height: 18px;
    padding: 0 5px;
    font-size: 0.75rem;
    font-weight: 600;
    line-height: 18px;
    text-align: center;
    color: inherit;
    background: currentColor;
    background: rgba(0, 0, 0, 0.08);
    border-radius: 9999px;
}

.thenexpoint-filter-modal {
    position: fixed;
    inset: 0;
    z-index: 100010;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 12px;
    box-sizing: border-box;
    overflow: hidden;
}

.thenexpoint-filter-modal[hidden] {
    display: none !important;
}

.thenexpoint-filter-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.4);
    cursor: pointer;
}

.thenexpoint-filter-modal-box {
    position: relative;
    width: 100%;
    max-width: 420px;
    height: min(90vh, 600px);
    max-height: min(90vh, 600px);
    margin: auto;
    background: inherit;
    background-color: var(--airbnb-dropdown-bg, #fff);
    color: inherit;
    font-family: inherit;
    font-size: inherit;
    border-radius: 16px;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.18);
    display: flex;
    flex-direction: column;
    overflow: hidden;
    flex-shrink: 0;
}

.thenexpoint-filter-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 16px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.thenexpoint-filter-modal-title {
    margin: 0;
    font-size: 1.25em;
    font-weight: 600;
    color: inherit;
}

.thenexpoint-filter-modal-close {
    width: 36px;
    height: 36px;
    padding: 0;
    border: none;
    background: transparent;
    font-size: 24px;
    line-height: 1;
    color: inherit;
    opacity: 0.7;
    cursor: pointer;
    border-radius: 50%;
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

.thenexpoint-filter-modal-close:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.06);
}

.thenexpoint-filter-form {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-height: 0;
    overflow: hidden;
}

.thenexpoint-filter-modal-body {
    padding: 16px;
    padding-right: 12px;
    overflow-y: auto;
    overflow-x: hidden;
    flex: 1 1 auto;
    min-height: 0;
    -webkit-overflow-scrolling: touch;
    scrollbar-gutter: stable;
}

.thenexpoint-filter-modal-body .extended_search_check_wrapper {
    border: none;
    padding: 0;
    margin: 0;
}

.thenexpoint-filter-modal-body #adv_extended_close_adv {
    display: none;
}

/* Filtre alanları: category, action, features */
.thenexpoint-filter-modal-body .thenexpoint-filter-group {
    margin-bottom: 20px;
}

.thenexpoint-filter-modal-body .thenexpoint-filter-group:last-child {
    margin-bottom: 0;
}

/* Fiyat aralığı – Airbnb tarzı */
.thenexpoint-filter-group-price .thenexpoint-price-heading {
    margin: 0 0 4px;
    font-size: 1em;
}

.thenexpoint-price-subtitle {
    margin: 0 0 16px;
    font-size: 0.875rem;
    color: rgba(0, 0, 0, 0.7);
}

.thenexpoint-price-fields {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.thenexpoint-price-field {
    flex: 1;
    min-width: 0;
}

.thenexpoint-price-field-label {
    display: block;
    margin: 0 0 8px;
    font-size: 0.75rem;
    font-weight: 600;
    color: inherit;
}

.thenexpoint-price-input-wrap {
    display: flex;
    align-items: center;
    gap: 2px;
    min-height: 48px;
    padding: 8px 12px;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
    background: #fff;
}

.thenexpoint-price-input-wrap:focus-within {
    border-color: rgba(33, 44, 201, 0.5);
    box-shadow: 0 0 0 2px rgba(33, 44, 201, 0.15);
}

.thenexpoint-price-currency {
    flex-shrink: 0;
    font-size: inherit;
    color: rgba(0, 0, 0, 0.7);
}

.thenexpoint-price-input {
    flex: 1;
    min-width: 40px;
    width: 100%;
    padding: 0 4px;
    font-size: inherit;
    font-family: inherit;
    color: inherit;
    background: transparent;
    border: none;
    outline: none;
}

.thenexpoint-price-input::-webkit-outer-spin-button,
.thenexpoint-price-input::-webkit-inner-spin-button {
    -webkit-appearance: none;
    margin: 0;
}

.thenexpoint-price-input[type="number"] {
    -moz-appearance: textfield;
}

.thenexpoint-price-plus {
    flex-shrink: 0;
    margin-right: 2px;
    color: rgba(0, 0, 0, 0.5);
    font-weight: 500;
}

.thenexpoint-price-mirror {
    position: absolute;
    visibility: hidden;
    white-space: pre;
    pointer-events: none;
    height: 0;
    overflow: hidden;
}

.thenexpoint-filter-group-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    margin: 0 0 12px;
    font-size: 1em;
    color: inherit;
}

.thenexpoint-filter-group-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    opacity: 0.85;
}

.thenexpoint-filter-select {
    width: 100%;
    max-width: 100%;
    padding: 10px 12px;
    font-size: inherit;
    font-family: inherit;
    color: inherit;
    background: inherit;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 8px;
}

/* Airbnb tarzı pill/çip alanları (Her türlü, Bütün boyutlar, Olanaklar gibi) */
.thenexpoint-filter-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 12px;
}

.thenexpoint-filter-pill {
    position: relative;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 48px;
    padding: 12px 18px;
    font-size: inherit;
    font-family: inherit;
    font-weight: 500;
    color: inherit;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.15);
    border-radius: 9999px;
    cursor: pointer;
    margin: 0;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

.thenexpoint-filter-pill:hover {
    border-color: rgba(0, 0, 0, 0.25);
    background: rgba(0, 0, 0, 0.03);
}

.thenexpoint-filter-pill.is-selected {
    background: #212CC9;
    color: #fff;
    border-color: #212CC9;
}

.thenexpoint-filter-pill.is-selected:hover {
    background: #1b24a8;
    border-color: #1b24a8;
    color: #fff;
}

.thenexpoint-filter-pill input[type="radio"] {
    position: absolute;
    width: 0;
    height: 0;
    opacity: 0;
    pointer-events: none;
}

.thenexpoint-filter-pill span {
    white-space: nowrap;
}

.thenexpoint-filter-pill-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    opacity: 0.9;
}

.thenexpoint-filter-pill.is-selected .thenexpoint-filter-pill-icon {
    opacity: 1;
}

/* Features: menü/alt menü bölümleri */
.thenexpoint-filter-features-sections {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.thenexpoint-filter-features-section {
    border: 1px solid rgba(0, 0, 0, 0.08);
    border-radius: 8px;
    overflow: hidden;
}

.thenexpoint-filter-features-section-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    width: 100%;
    padding: 10px 12px;
    font-size: inherit;
    font-family: inherit;
    font-weight: 600;
    color: inherit;
    background: rgba(0, 0, 0, 0.03);
    border: none;
    cursor: pointer;
    text-align: left;
    transition: background-color 0.2s ease;
}

.thenexpoint-filter-features-section-toggle:hover {
    background: rgba(0, 0, 0, 0.06);
}

.thenexpoint-filter-features-section-toggle[aria-expanded="true"] .thenexpoint-filter-features-section-chevron {
    transform: rotate(90deg);
}

.thenexpoint-filter-features-section-icon {
    flex-shrink: 0;
    width: 20px;
    height: 20px;
    opacity: 0.85;
}

.thenexpoint-filter-features-section-title {
    flex: 1;
    text-align: left;
}

.thenexpoint-filter-features-section-chevron {
    flex-shrink: 0;
    font-size: 1.1em;
    opacity: 0.7;
    transition: transform 0.2s ease;
}

.thenexpoint-filter-features-section-content {
    padding: 8px 12px 12px;
    border-top: 1px solid rgba(0, 0, 0, 0.06);
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    overflow: visible;
}

.thenexpoint-filter-features-section-content[hidden] {
    display: none !important;
}

.thenexpoint-filter-group-features .thenexpoint-filter-checkboxes {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 16px;
}

.thenexpoint-filter-checkbox-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    font-weight: 400;
    cursor: pointer;
    color: inherit;
}

.thenexpoint-filter-checkbox-icon {
    flex-shrink: 0;
    width: 18px;
    height: 18px;
    opacity: 0.8;
}

.thenexpoint-filter-checkbox-label input,
.thenexpoint-filter-modal-body input[type="checkbox"] {
    margin: 0;
    border-radius: 4px;
    width: 18px;
    height: 18px;
    accent-color: #212CC9;
}

.thenexpoint-filter-modal-body .extended_search_checker {
    margin-bottom: 12px;
}

.thenexpoint-filter-modal-body .extended_search_checker:last-child {
    margin-bottom: 0;
}

.thenexpoint-filter-modal-footer {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 12px;
    padding: 12px 16px;
    border-top: 1px solid rgba(0, 0, 0, 0.08);
    flex-shrink: 0;
}

.thenexpoint-filter-modal-clear {
    padding: 10px 16px;
    font-size: inherit;
    font-family: inherit;
    font-weight: 500;
    color: inherit;
    opacity: 0.85;
    background: transparent;
    border: none;
    cursor: pointer;
    text-decoration: underline;
    text-underline-offset: 2px;
    border-radius: 8px;
    transition: opacity 0.2s ease, background-color 0.2s ease;
}

.thenexpoint-filter-modal-clear:hover {
    opacity: 1;
    background-color: rgba(0, 0, 0, 0.04);
}

.thenexpoint-filter-modal-apply,
.thenexpoint-filter-modal-footer .btn {
    padding: 12px 20px;
    border-radius: 24px;
    font-weight: 600;
    cursor: pointer;
    -webkit-box-shadow: none;
    box-shadow: none;
    background-color: #212CC9;
    color: #fff;
    border: none;
}

.thenexpoint-filter-modal-apply:hover,
.thenexpoint-filter-modal-footer .btn:hover {
    background-color: #1b24a8;
    color: #fff;
}

@media (max-height: 500px) {
    .thenexpoint-filter-modal-box {
        height: 85vh;
        max-height: 85vh;
    }
    .thenexpoint-filter-modal-header,
    .thenexpoint-filter-modal-footer {
        padding: 10px 14px;
    }
    .thenexpoint-filter-modal-body {
        padding: 12px;
    }
}

/* ==========================================================================
   Sayfalama (pagination) – ortalı, Airbnb tarzı
   ========================================================================== */

#google_map_prop_list_sidebar .pagination.pagination_nojax {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    align-items: center;
    gap: 6px;
    margin: 24px 0 !important;
    padding: 0;
    list-style: none;
    float: none;
    width: 100%;
}

#google_map_prop_list_sidebar .pagination.pagination_nojax > li {
    float: none;
}

#google_map_prop_list_sidebar .pagination.pagination_nojax > li > a,
#google_map_prop_list_sidebar .pagination.pagination_nojax > li > span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 12px;
    font-size: 0.9375rem;
    font-weight: 500;
    color: inherit;
    background: transparent;
    border: 1px solid rgba(0, 0, 0, 0.12);
    border-radius: 50%;
    text-decoration: none;
    transition: background-color 0.2s ease, border-color 0.2s ease;
}

#google_map_prop_list_sidebar .pagination.pagination_nojax > li > a:hover,
#google_map_prop_list_sidebar .pagination.pagination_nojax > li > a:focus {
    background-color: rgba(0, 0, 0, 0.06);
    border-color: rgba(0, 0, 0, 0.2);
}

#google_map_prop_list_sidebar .pagination.pagination_nojax > li.active > a,
#google_map_prop_list_sidebar .pagination.pagination_nojax > li.active > span {
    background-color: #212CC9;
    border-color: #212CC9;
    color: #fff;
}

#google_map_prop_list_sidebar .pagination.pagination_nojax > li.roundleft > a,
#google_map_prop_list_sidebar .pagination.pagination_nojax > li.roundright > a {
    padding: 0;
}

#google_map_prop_list_sidebar .pagination.pagination_nojax .fas {
    font-size: 12px;
}

/* ==========================================================================
   Taxonomy listing sayfası: H1, filtre barı, sidebar arama
   ========================================================================== */

/* H1: Sadece taxonomy adı; sol padding 0 */
.thenexpoint-taxonomy-title,
.row.content-fixed .entry-title.title_prop.thenexpoint-taxonomy-title {
    padding-left: 0;
    margin-bottom: 0.5em;
}

/* listing_filters_head: Airbnb tarzı – radius, gölge, modern */
.row.content-fixed .listing_filters_head {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 10px;
    margin-bottom: 20px;
    margin-left: 0;
    margin-right: 0;
}

.row.content-fixed .listing_filters_head .listing_filter_select,
.row.content-fixed .listing_filters_head .dropdown.form_control {
    margin: 0;
    padding: 0;
    border: none;
    background: transparent;
}

.row.content-fixed .listing_filters_head .filter_menu_trigger {
    display: inline-flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-height: 48px;
    padding: 12px 18px;
    background: #fff;
    border: 1px solid #ebebeb;
    border-radius: 24px;
    box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
    font-size: 14px;
    color: #222;
    cursor: pointer;
    transition: box-shadow 0.2s ease, border-color 0.2s ease;
}

.row.content-fixed .listing_filters_head .filter_menu_trigger:hover {
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.08);
    border-color: #b0b0b0;
}

.row.content-fixed .listing_filters_head .caret_filter {
    margin-left: 0;
    padding-right: 4px;
    opacity: 0.7;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.listing_filters_head .listing_filter_select .caret_filter:after {
    float: right;
    margin-top: 0;
    margin-right: 14px;
}

.row.content-fixed .listing_filters_head.thenexpoint-listing-filters .col-md-2,
.row.content-fixed .listing_filters_head .col-md-2,
.row.content-fixed .listing_filters_head .col-md-3 {
    flex: 1 1 0;
    min-width: 0;
    max-width: none;
    padding-left: 0;
    padding-right: 0;
}

.row.content-fixed .listing_filters_head.thenexpoint-listing-filters .filter_menu_trigger {
    width: 100%;
    box-sizing: border-box;
}

/* Filtre açılır menü: radius, gölge, kaydırma */
.row.content-fixed .listing_filters_head .dropdown-menu.filter_menu {
    margin-top: 8px;
    padding: 8px 0;
    min-width: 200px;
    max-height: 280px;
    border: 1px solid #ebebeb;
    border-radius: 16px;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.12);
    background: #fff;
    overflow-x: hidden;
    overflow-y: auto;
}

.row.content-fixed .listing_filters_head .filter_menu li {
    padding: 10px 18px;
    cursor: pointer;
    border-radius: 0;
}

.row.content-fixed .listing_filters_head .filter_menu li:first-child {
    border-radius: 12px 12px 0 0;
}

.row.content-fixed .listing_filters_head .filter_menu li:last-child {
    border-radius: 0 0 12px 12px;
}

.row.content-fixed .listing_filters_head .filter_menu li:only-child {
    border-radius: 12px;
}

.row.content-fixed .listing_filters_head .filter_menu li:hover {
    background: rgba(0, 0, 0, 0.04);
}

/* Taxonomy sidebar: header altında sticky, az üst boşluk */
.row.content-fixed #primary.widget-area-sidebar,
.row.content-fixed ul.xoxo > li#wpestate_advanced_search_widget-1 {
    align-self: start;
}

.row.content-fixed #primary.widget-area-sidebar {
    position: sticky;
    top: 140px;
    z-index: 100;
}

/* Taxonomy sidebar: dikey Airbnb arama modülü */
.thenexpoint-taxonomy-sidebar-search {
    margin-bottom: 24px;
}

.thenexpoint-taxonomy-sidebar-search .airbnb-search-wrapper {
    max-width: none;
    width: 100%;
}

.thenexpoint-taxonomy-sidebar-search .airbnb-search-container.airbnb-vertical {
    border-radius: 16px;
    padding: 16px;
}

.thenexpoint-taxonomy-sidebar-search .airbnb-vertical .airbnb-field-divider {
    display: none;
}

.thenexpoint-taxonomy-sidebar-search .airbnb-search-button-wrapper {
    margin-top: 8px;
}

.thenexpoint-taxonomy-sidebar-search .airbnb-search-button {
    width: 100%;
    border-radius: 12px;
    justify-content: center;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.thenexpoint-taxonomy-sidebar-search .airbnb-search-button-text {
    display: inline;
}

/* Taxonomy sidebar: Yer, Tarih, Kişiler dropdown’ları ilanların üstünde, sola açılsın */
.thenexpoint-taxonomy-sidebar-search .airbnb-search-field {
    position: relative;
    z-index: 1;
}

.thenexpoint-taxonomy-sidebar-search .airbnb-search-field.active {
    z-index: 101;
}

.thenexpoint-taxonomy-sidebar-search .airbnb-field-dropdown,
.thenexpoint-taxonomy-sidebar-search .airbnb-calendar-dropdown,
.thenexpoint-taxonomy-sidebar-search .airbnb-guests-dropdown,
.thenexpoint-taxonomy-sidebar-search .airbnb-location-dropdown {
    left: auto;
    right: 0;
    z-index: 100002;
}

/* Taxonomy sidebar: takvim aşağı, ekrandan taşmasın */
.thenexpoint-taxonomy-sidebar-search .airbnb-calendar-dropdown {
    top: calc(100% + 8px);
    bottom: auto;
    margin-top: 0;
    margin-bottom: 0;
    max-height: min(65vh, 380px);
    overflow-y: auto;
    border-radius: 16px;
}

.thenexpoint-taxonomy-sidebar-search .airbnb-dates-field.active .airbnb-calendar-dropdown {
    transform: translateY(0);
}
