/* Search Form v2 - sf-* prefix */

.sf-icon {
    font-family: 'Material Symbols Outlined';
    font-variation-settings: 'FILL' 1, 'wght' 400, 'GRAD' 0, 'opsz' 24;
    font-size: 20px;
    line-height: 1;
    user-select: none;
    flex-shrink: 0;
    display: inline-block;
    vertical-align: middle;
}

.hero-slider { min-height: 540px !important; overflow: visible !important; }
.slider-nav  { bottom: 220px !important; }

.sf-wrapper {
    position: absolute;
    bottom: 30px;
    left: 50%;
    transform: translateX(-50%);
    width: 100%;
    max-width: 1200px;
    padding: 0 24px;
    box-sizing: border-box;
    z-index: 20;
}

/* Sayfa içi (hero dışında) kullanım — oteller.php vb. */
.sf-wrapper--page {
    position: relative;
    bottom: auto;
    left: auto;
    transform: none;
    max-width: 1200px;
    margin: 0 auto;
    padding: 40px 24px 0;
    z-index: 10;
}

.sf-tabs { display: flex; gap: 6px; padding-left: 20px; }

.sf-tab {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 22px;
    border: none;
    border-radius: 12px 12px 0 0;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    transition: background .2s, color .2s;
    background: rgba(255,255,255,.25);
    color: #fff;
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    letter-spacing: .02em;
}
.sf-tab .sf-icon { font-size: 17px; color: inherit; }
.sf-tab:hover:not(.sf-tab--active) { background: rgba(255,255,255,.38); }
.sf-tab--active { background: #fff; color: var(--primary-blue); box-shadow: 0 -2px 8px rgba(0,0,0,.06); }
.sf-tab--active .sf-icon { color: var(--primary-blue); }

.sf-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 4px 16px rgba(0,0,0,.08);
    padding: 6px;
}

.sf-panel { display: none; }
.sf-panel--active { display: block; }

.sf-row { display: flex; align-items: stretch; }

.sf-field {
    flex: 1;
    position: relative;
    padding: 14px 20px;
    border-radius: 10px;
    cursor: pointer;
    transition: background .15s;
    min-width: 0;
}
.sf-field:hover { background: #f2f4f8; }
.sf-field--narrow { flex: 0 0 260px; }
.sf-field--wide   { flex: 0 0 300px; }

.sf-label {
    display: block;
    font-size: 10px;
    font-weight: 700;
    color: #6c757d;
    text-transform: uppercase;
    letter-spacing: .07em;
    margin-bottom: 6px;
    line-height: 1;
    pointer-events: none;
}

.sf-field-inner { display: flex; align-items: center; gap: 9px; }
.sf-field-inner .sf-icon { color: var(--primary-blue); font-size: 17px; }

.sf-display {
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #343a40;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.sf-display--placeholder { color: #ced4da; font-weight: 400; font-size: 12px; }

.sf-dest-input {
    flex: 1;
    border: none;
    outline: none;
    background: transparent;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    font-weight: 600;
    color: #343a40;
    padding: 0;
    min-width: 0;
    width: 100%;
    pointer-events: auto;
    cursor: text;
}
.sf-dest-input::placeholder { color: #ced4da; font-weight: 400; font-size: 12px; }
.sf-dest-input:focus { box-shadow: none; border: none; outline: none; }

.sf-divider { width: 1px; background: #e9ecef; align-self: stretch; margin: 10px 0; flex-shrink: 0; }

.sf-btn-wrap { display: flex; align-items: center; padding: 5px 6px; flex-shrink: 0; }
.sf-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 15px 32px;
    background: var(--primary-blue);
    color: #fff;
    border: none;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 6px 20px rgba(24,80,163,.35);
    transition: background .2s, box-shadow .2s, transform .1s;
    white-space: nowrap;
    line-height: 1;
}
.sf-btn .sf-icon { color: #fff; font-size: 20px; }
.sf-btn:hover { background: #0f3d8a; box-shadow: 0 8px 24px rgba(24,80,163,.45); }
.sf-btn:active { transform: scale(.97); }

.sf-dropdown {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    background: #fff;
    border: 1.5px solid #dee2e6;
    border-radius: 14px;
    box-shadow: 0 12px 40px rgba(0,0,0,.15);
    z-index: 9999;
    display: none;
    overflow: hidden;
}
.sf-dropdown--open { display: block; }

.sf-dest-dropdown { min-width: 500px; }
.sf-dest-list { max-height: 280px; overflow-y: auto; padding: 8px 0; scrollbar-width: thin; scrollbar-color: #ced4da transparent; }
.sf-dest-list::-webkit-scrollbar { width: 4px; }
.sf-dest-list::-webkit-scrollbar-track { background: transparent; }
.sf-dest-list::-webkit-scrollbar-thumb { background: #ced4da; border-radius: 4px; }
.sf-dest-section-title {
    padding: 10px 16px 5px;
    font-size: 12px;
    font-weight: 500;
    color: #adb5bd;
    text-transform: uppercase;
    letter-spacing: .07em;
    font-family: 'Poppins', sans-serif;
}
.sf-dest-item {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 9px 16px;
    cursor: pointer;
    transition: background .12s;
    font-family: 'Poppins', sans-serif;
    font-size: 13px;
    color: #343a40;
    font-weight: 500;
}
.sf-dest-item:hover { background: #f2f4f8; }
.sf-dest-item .sf-icon { font-size: 18px; color: #adb5bd; }
.sf-dest-item-sub { font-size: 11px; color: #adb5bd; font-weight: 400; margin-left: auto; white-space: nowrap; padding-left: 8px; }
.sf-dest-no-result { padding: 20px 16px; text-align: center; color: #adb5bd; font-size: 13px; font-family: 'Poppins', sans-serif; }
.sf-dest-loading { display: flex; align-items: center; gap: 10px; padding: 16px; font-family: 'Poppins', sans-serif; font-size: 13px; color: #6c757d; }

.sf-spinner {
    width: 16px;
    height: 16px;
    border: 2px solid #dee2e6;
    border-top-color: var(--primary-blue);
    border-radius: 50%;
    animation: sfSpin .7s linear infinite;
    flex-shrink: 0;
}
@keyframes sfSpin { to { transform: rotate(360deg); } }

.sf-tour-dest-dropdown { min-width: 420px; }
.sf-tour-dest-list { max-height: 300px; overflow-y: auto; padding: 6px 0; scrollbar-width: thin; scrollbar-color: #ced4da transparent; }
.sf-tour-dest-list::-webkit-scrollbar { width: 4px; }
.sf-tour-dest-list::-webkit-scrollbar-track { background: transparent; }
.sf-tour-dest-list::-webkit-scrollbar-thumb { background: #ced4da; border-radius: 4px; }
.sf-dest-item-tag { margin-left: auto; font-size: 10px; color: #adb5bd; white-space: nowrap; padding-left: 8px; }

.sf-cal-dropdown {
    min-width: 560px;
    padding: 20px;
    left: 50%;
    transform: translateX(-50%);
}
.sf-cal-body { display: flex; gap: 28px; }
.sf-cal-month { flex: 1; }
.sf-cal-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sf-cal-nav {
    width: 28px;
    height: 28px;
    border: none;
    background: transparent;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #6c757d;
    font-size: 18px;
    transition: background .15s;
    padding: 0;
    line-height: 1;
    font-family: 'Poppins', sans-serif;
}
.sf-cal-nav:hover { background: #f2f4f8; }
.sf-cal-nav--hidden { visibility: hidden; }
.sf-cal-title { font-family: 'Poppins', sans-serif; font-size: 12px; font-weight: 700; color: #343a40; text-transform: uppercase; letter-spacing: .04em; }
.sf-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; text-align: center; }
.sf-cal-dow { font-size: 9px; font-weight: 700; color: #adb5bd; padding: 4px 0; font-family: 'Poppins', sans-serif; }
.sf-cal-day {
    font-family: 'Poppins', sans-serif;
    font-size: 12px;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto;
    border-radius: 50%;
    cursor: pointer;
    transition: background .1s, color .1s;
    color: #343a40;
    line-height: 1;
    border: none;
    background: transparent;
}
.sf-cal-day:hover:not(.sf-cal-day--disabled):not(.sf-cal-day--start):not(.sf-cal-day--end) { background: #e9ecef; }
.sf-cal-day--disabled { color: #dee2e6 !important; cursor: default; pointer-events: none; }
.sf-cal-day--other { color: #dee2e6; }
.sf-cal-day--today { font-weight: 700; color: var(--primary-blue); }
.sf-cal-day--start,
.sf-cal-day--end { background: var(--primary-blue) !important; color: #fff !important; font-weight: 700; }
.sf-cal-day--in-range { background: #dae2fd; color: var(--primary-blue); border-radius: 0; font-weight: 500; }
.sf-cal-day--start { border-radius: 50% 0 0 50% !important; }
.sf-cal-day--end { border-radius: 0 50% 50% 0 !important; }
.sf-cal-day--start.sf-cal-day--end { border-radius: 50% !important; }
.sf-cal-footer { display: flex; align-items: center; justify-content: space-between; padding-top: 14px; margin-top: 14px; border-top: 1px solid #f0f0f0; }
.sf-cal-info { font-size: 12px; color: #6c757d; font-family: 'Poppins', sans-serif; }
.sf-cal-info strong { color: var(--primary-blue); }
.sf-cal-clear { font-size: 12px; color: #e53e3e; cursor: pointer; background: none; border: none; font-family: 'Poppins', sans-serif; padding: 0; }
.sf-cal-clear:hover { text-decoration: underline; }

.sf-guests-dropdown { min-width: 340px; right: 0; left: auto; }
.sf-room-block { padding: 16px 18px 12px; border-bottom: 1px solid #f0f0f0; }
.sf-room-block:last-child { border-bottom: none; }
.sf-room-header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }
.sf-room-title { font-family: 'Poppins', sans-serif; font-size: 11px; font-weight: 700; color: var(--primary-blue); text-transform: uppercase; letter-spacing: .05em; }
.sf-room-delete { font-size: 11px; font-weight: 700; color: #e53e3e; background: none; border: none; cursor: pointer; font-family: 'Poppins', sans-serif; padding: 0; }
.sf-room-delete:hover { text-decoration: underline; }
.sf-counter-row { display: flex; align-items: center; justify-content: space-between; margin-bottom: 12px; }
.sf-counter-label span { display: block; font-family: 'Poppins', sans-serif; font-size: 13px; font-weight: 600; color: #343a40; }
.sf-counter-label small { font-size: 11px; color: #adb5bd; font-family: 'Poppins', sans-serif; }
.sf-counter-controls { display: flex; align-items: center; gap: 12px; }
.sf-counter-btn {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1.5px solid #dee2e6;
    background: #fff;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: #495057;
    transition: background .12s, border-color .12s;
    line-height: 1;
    padding: 0;
    font-family: 'Poppins', sans-serif;
}
.sf-counter-btn:hover:not(:disabled) { background: #f2f4f8; border-color: #adb5bd; }
.sf-counter-btn:disabled { opacity: .3; cursor: default; }
.sf-counter-value { font-family: 'Poppins', sans-serif; font-size: 14px; font-weight: 700; color: #343a40; min-width: 16px; text-align: center; }
.sf-child-ages { margin-top: 10px; display: flex; flex-direction: column; gap: 8px; }
.sf-child-age-label { font-size: 10px; font-weight: 700; color: #adb5bd; text-transform: uppercase; letter-spacing: .06em; margin-bottom: 2px; display: block; font-family: 'Poppins', sans-serif; }
.sf-child-age-select { width: 100%; border: 1.5px solid #dee2e6; border-radius: 8px; padding: 7px 10px; font-family: 'Poppins', sans-serif; font-size: 12px; color: #343a40; background: #f8f9fa; outline: none; cursor: pointer; }
.sf-child-age-select:focus { border-color: var(--primary-blue); }
.sf-guests-footer { padding: 12px 18px; display: flex; flex-direction: column; gap: 8px; border-top: 1px solid #f0f0f0; }
.sf-add-room-btn { width: 100%; padding: 9px; border: 1.5px dashed #bee3f8; border-radius: 8px; background: transparent; color: var(--primary-blue); font-family: 'Poppins', sans-serif; font-size: 12px; font-weight: 700; cursor: pointer; display: flex; align-items: center; justify-content: center; gap: 6px; transition: background .12s; }
.sf-add-room-btn:hover:not(:disabled) { background: #ebf4ff; }
.sf-add-room-btn:disabled { opacity: .4; cursor: default; }
.sf-confirm-btn { width: 100%; padding: 11px; background: var(--primary-blue); color: #fff; border: none; border-radius: 10px; font-family: 'Poppins', sans-serif; font-size: 13px; font-weight: 700; cursor: pointer; transition: background .15s; box-shadow: 0 4px 12px rgba(24,80,163,.25); }
.sf-confirm-btn:hover { background: #0f3d8a; }

.sf-month-dropdown { min-width: 240px; }
.sf-month-list { max-height: 280px; overflow-y: auto; padding: 6px 0; }
.sf-month-item { padding: 10px 18px; font-family: 'Poppins', sans-serif; font-size: 13px; color: #343a40; cursor: pointer; transition: background .12s; font-weight: 500; }
.sf-month-item:hover { background: #f2f4f8; }
.sf-month-item--selected { background: #dae2fd; color: var(--primary-blue); font-weight: 700; }

@media (max-width: 960px) {
    .sf-wrapper { padding: 0 12px; bottom: 16px; }
    .sf-row { flex-direction: column; }
    .sf-divider { width: auto; height: 1px; margin: 0 8px; }
    .sf-field--narrow { flex: auto; }
    .sf-btn { width: 100%; justify-content: center; padding: 14px 20px; }
    .sf-btn-wrap { padding: 6px; }
    .sf-dest-dropdown, .sf-tour-dest-dropdown,
    .sf-cal-dropdown, .sf-guests-dropdown, .sf-month-dropdown {
        min-width: 0;
        width: calc(100vw - 48px);
        left: 0;
        right: auto;
        transform: none;
    }
    .sf-cal-body { flex-direction: column; gap: 16px; }
}
@media (max-width: 600px) {
    .hero-slider { height: 70vh !important; min-height: 460px !important; }
    .slider-nav  { bottom: 8px !important; }
    .sf-wrapper  { position: relative; bottom: auto; }
    .sf-card     { border-radius: 0; }
}
