/* ================================================================
   LF BnB — Arama Widget'ı  [lf_bnb_search_widget]
   ================================================================ */

/* ── Kapsayıcı ── */
.lf-sw {
    background: #fff;
    width: 100%;
    max-width: 540px;
    margin: 0 auto;
    font-family: 'Plus Jakarta Sans', Georgia, sans-serif;
    color: #1c1916;
    box-shadow: 0 4px 32px rgba(28, 25, 22, .14);
    overflow: hidden;
}

/* ── Panel sistemi ── */
.lf-sw-panel {
    display: none;
    flex-direction: column;
}
.lf-sw-panel.active {
    display: flex;
}

/* ── Ana panel başlık ── */
.lf-sw-header {
    padding: 22px 24px 18px;
    text-align: center;
    border-bottom: 1px solid #E4DDD4;
}
.lf-sw-title {
    font-size: 17px;
    font-weight: 700;
    letter-spacing: 0.4px;
    color: #1c1916;
}

/* ── Satırlar ── */
.lf-sw-row {
    display: flex;
    align-items: center;
    padding: 20px 24px;
    border-bottom: 1px solid #E4DDD4;
    cursor: pointer;
    user-select: none;
    transition: background .15s;
}
.lf-sw-row:hover {
    background: #FAF7F2;
}
.lf-sw-row-body {
    flex: 1;
    min-width: 0;
}
.lf-sw-row-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #8B7355;
    margin-bottom: 5px;
}
.lf-sw-row-val {
    font-size: 15px;
    color: #1c1916;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.lf-sw-row-val.placeholder {
    color: #AEA79F;
}
.lf-sw-chevron {
    color: #AEA79F;
    display: flex;
    align-items: center;
    flex-shrink: 0;
    margin-left: 12px;
}

/* ── Ana panel ARA butonu ── */
.lf-sw-reserve-btn {
    display: block;
    width: 100%;
    padding: 18px 24px;
    background: #6B5A42;
    color: #fff;
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 2.5px;
    text-transform: uppercase;
    text-align: center;
    border: none;
    cursor: pointer;
    transition: background .18s;
    font-family: inherit;
}
.lf-sw-reserve-btn:hover {
    background: #57482F;
}

/* ──────────────────────────────────────────
   Alt panel ortak
   ────────────────────────────────────────── */
.lf-sw-sub-header {
    padding: 20px 24px 16px;
    text-align: center;
    border-bottom: 1px solid #E4DDD4;
    flex-shrink: 0;
}
.lf-sw-sub-title {
    font-size: 16px;
    font-weight: 700;
    letter-spacing: 0.3px;
    color: #1c1916;
}

/* ── Alt panel footer (Geri / Tamam) ── */
.lf-sw-sub-footer {
    display: flex;
    border-top: 1px solid #E4DDD4;
    flex-shrink: 0;
}
.lf-sw-btn-back {
    flex: 1;
    padding: 16px;
    background: none;
    border: none;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: #8B7355;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s;
}
.lf-sw-btn-back:hover {
    background: #FAF7F2;
}
.lf-sw-btn-done {
    flex: 2;
    padding: 16px;
    background: #6B5A42;
    border: none;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 1.8px;
    text-transform: uppercase;
    color: #fff;
    cursor: pointer;
    font-family: inherit;
    transition: background .15s;
}
.lf-sw-btn-done:hover {
    background: #57482F;
}

/* ──────────────────────────────────────────
   Mülk listesi paneli
   ────────────────────────────────────────── */
.lf-sw-prop-list {
    flex: 1;
    overflow-y: auto;
    max-height: 340px;
    padding: 6px 0;
}

.lf-sw-prop-all {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 14px 24px;
    cursor: pointer;
    border-bottom: 1px solid #E4DDD4;
    transition: background .15s;
}
.lf-sw-prop-all:hover {
    background: #FAF7F2;
}
.lf-sw-prop-all-icon {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    background: #F0EAE2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #8B7355;
    flex-shrink: 0;
}
.lf-sw-prop-all-name {
    font-size: 14px;
    font-weight: 600;
    color: #1c1916;
}

.lf-sw-prop-item {
    display: flex;
    align-items: center;
    gap: 14px;
    padding: 12px 24px;
    cursor: pointer;
    border-bottom: 1px solid #F0EAE2;
    transition: background .15s;
}
.lf-sw-prop-item:last-child {
    border-bottom: none;
}
.lf-sw-prop-item:hover {
    background: #FAF7F2;
}
.lf-sw-prop-item.selected {
    background: #FAF7F2;
}
.lf-sw-prop-item.selected .lf-sw-prop-item-name {
    color: #8B7355;
    font-weight: 700;
}
.lf-sw-prop-item-img {
    width: 48px;
    height: 48px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #E4DDD4;
}
.lf-sw-prop-item-name {
    font-size: 14px;
    font-weight: 500;
    color: #1c1916;
}
.lf-sw-prop-item-addr {
    font-size: 12px;
    color: #8B7355;
    margin-top: 2px;
}

/* ──────────────────────────────────────────
   Tarih seçim paneli
   ────────────────────────────────────────── */
.lf-sw-date-summary {
    display: flex;
    align-items: flex-start;
    justify-content: center;
    gap: 12px;
    padding: 16px 24px 0;
    flex-shrink: 0;
}
.lf-sw-date-col {
    text-align: center;
}
.lf-sw-date-col-label {
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: #8B7355;
    margin-bottom: 3px;
}
.lf-sw-date-col-val {
    font-size: 18px;
    font-weight: 700;
    color: #1c1916;
    min-width: 96px;
    display: block;
    padding-bottom: 3px;
}
.lf-sw-date-col-val.active {
    color: #8B7355;
    border-bottom: 2px solid #8B7355;
}
.lf-sw-date-arrow {
    color: #AEA79F;
    font-size: 18px;
    padding-top: 20px;
}

.lf-sw-night-wrap {
    text-align: center;
    padding: 6px 0 2px;
    min-height: 28px;
    flex-shrink: 0;
}
.lf-sw-night-badge {
    display: none;
    font-size: 11px;
    font-weight: 600;
    background: #fff;
    border: 1px solid #E4DDD4;
    padding: 3px 12px;
    border-radius: 20px;
    color: #1c1916;
}

/* ── Takvim ── */
.lf-sw-calendar {
    padding: 12px 20px 8px;
    flex: 1;
    overflow-y: auto;
}

.lf-sw-cal-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 10px;
}
.lf-sw-cal-nav-btn {
    background: none;
    border: none;
    cursor: pointer;
    color: #8B7355;
    display: flex;
    align-items: center;
    padding: 6px 10px;
    border-radius: 4px;
    transition: background .15s;
}
.lf-sw-cal-nav-btn:hover {
    background: #FAF7F2;
}
.lf-sw-cal-month-name {
    font-size: 15px;
    font-weight: 700;
    color: #1c1916;
}

/* 7 sütunlu takvim ızgarası */
.lf-sw-cal-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.lf-sw-cal-dow {
    text-align: center;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: #8B7355;
    padding: 6px 0 8px;
}

/* Gün hücreleri: div = renk şeridi arka planı, span = daire */
.lf-sw-cal-day {
    position: relative;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
}
.lf-sw-cal-day > span {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 13px;
    position: relative;
    z-index: 1;
    transition: background .12s;
}
.lf-sw-cal-day.empty,
.lf-sw-cal-day.past {
    cursor: default;
}
.lf-sw-cal-day.past > span {
    color: #C8C0B8;
}
.lf-sw-cal-day:not(.past):not(.empty):hover > span {
    background: #F0EAE2;
}
.lf-sw-cal-day.today > span {
    font-weight: 700;
}

/* Seçili günler */
.lf-sw-cal-day.selected-in > span,
.lf-sw-cal-day.selected-out > span {
    background: #6B5A42 !important;
    color: #fff;
    font-weight: 700;
}

/* Aralık şeridi */
.lf-sw-cal-day.in-range,
.lf-sw-cal-day.hover-range {
    background: #F0EAE2;
}

/* Hover uç noktası */
.lf-sw-cal-day.hover-end > span {
    background: rgba(107, 90, 66, .25);
}

/* Başlangıç/bitiş için yarım şerit (sadece her iki tarih seçiliyken) */
.lf-sw-cal-day.has-co.selected-in {
    background: linear-gradient(to right, transparent 50%, #F0EAE2 50%);
}
.lf-sw-cal-day.has-co.selected-out {
    background: linear-gradient(to left, transparent 50%, #F0EAE2 50%);
}

/* ──────────────────────────────────────────
   Misafir paneli
   ────────────────────────────────────────── */
.lf-sw-guests-summary {
    text-align: center;
    padding: 12px 24px 4px;
    font-size: 14px;
    color: #1c1916;
    flex-shrink: 0;
    min-height: 40px;
}

.lf-sw-guest-rows {
    padding: 0 24px;
    flex: 1;
}

.lf-sw-guest-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 0;
    border-bottom: 1px solid #E4DDD4;
}
.lf-sw-guest-row:last-child {
    border-bottom: none;
}

.lf-sw-guest-label {
    font-size: 15px;
    font-weight: 500;
    color: #1c1916;
}
.lf-sw-guest-sublabel {
    font-size: 12px;
    color: #8B7355;
    margin-top: 3px;
}

.lf-sw-counter {
    display: flex;
    align-items: center;
    gap: 16px;
}
.lf-sw-counter-btn {
    width: 34px;
    height: 34px;
    border: 1px solid #C8C0B8;
    background: #fff;
    border-radius: 3px;
    font-size: 18px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #1c1916;
    transition: border-color .15s, background .15s;
    font-family: inherit;
}
.lf-sw-counter-btn:disabled {
    color: #C8C0B8;
    border-color: #E4DDD4;
    cursor: not-allowed;
}
.lf-sw-counter-btn:not(:disabled):hover {
    border-color: #6B5A42;
    background: #FAF7F2;
}
.lf-sw-counter-val {
    font-size: 16px;
    font-weight: 600;
    min-width: 24px;
    text-align: center;
    color: #1c1916;
}

/* ──────────────────────────────────────────
   Mobil
   ────────────────────────────────────────── */
@media (max-width: 480px) {
    .lf-sw {
        max-width: 100%;
    }
    .lf-sw-row,
    .lf-sw-calendar,
    .lf-sw-guest-rows {
        padding-left: 16px;
        padding-right: 16px;
    }
    .lf-sw-prop-item,
    .lf-sw-prop-all {
        padding-left: 16px;
        padding-right: 16px;
    }
    .lf-sw-header,
    .lf-sw-sub-header,
    .lf-sw-date-summary,
    .lf-sw-guests-summary {
        padding-left: 16px;
        padding-right: 16px;
    }
    .lf-sw-date-col-val {
        font-size: 15px;
        min-width: 80px;
    }
}
