/**
 * Voyage Elegante — Modern Layout Override
 * -----------------------------------------
 * Rollback: inc/css.php içinde $ve_modern_layout = false; yapın
 * veya bu dosyanın link satırını yorum satırına alın.
 */

:root {
    --ve-container-md: 1040px;
    --ve-container-lg: 1280px;
    --ve-container-xl: 1400px;
    --ve-search-control-h: 44px;
    --ve-search-control-h-mobile: 44px;
    --ve-search-radius: 2px;
    --ve-search-box-radius: 4px;
    --ve-btn-radius: 2px;
    --ve-search-padding: 18px 22px;
    --ve-search-label-size: 11px;
    --ve-input-font-size: 14px;
    --ve-glass-bg: rgba(235, 245, 255, 0.38);
    --ve-glass-border: transparent;
    --ve-glass-input-bg: rgba(255, 255, 255, 0.55);
    --ve-glass-blur: 8px;
}

/* ── Site genişliği (tüm sayfalar) ───────────────────────────── */
@media (min-width: 992px) {
    .container,
    .navbar .container,
    #footer .container,
    .megamenu-wrapper.container,
    .chaser .container {
        width: var(--ve-container-md);
        max-width: 100%;
    }
}

@media (min-width: 1200px) {
    .container,
    .navbar .container,
    #footer .container,
    .megamenu-wrapper.container,
    .chaser .container {
        width: var(--ve-container-lg);
    }
}

@media (min-width: 1400px) {
    .container,
    .navbar .container,
    #footer .container,
    .megamenu-wrapper.container,
    .chaser .container {
        width: var(--ve-container-xl);
    }
}

/* Görseller — geniş layout ile uyumlu ölçekleme */
.image-box.hotel.listing-style1 figure img,
.listing-style3.hotel .box figure img,
.image-box.style9 figure img,
.image-box.style11 figure img,
.image-carousel .slides img {
    width: 100%;
    height: auto;
    max-width: 100%;
}

.listing-style1.hotel .box figure,
.listing-style3.hotel .box figure {
    overflow: hidden;
}

.listing-style1.hotel .box figure img,
.listing-style3.hotel .box figure img {
    object-fit: cover;
    min-height: 160px;
}

.image-carousel.style3 .listing-style1.hotel .box figure img {
    min-height: 170px;
    border-radius: var(--ve-search-radius);
}

.image-carousel.style3 .listing-style1.hotel .box {
    border-radius: var(--ve-search-box-radius);
    overflow: hidden;
}

/* Otel katmanları — tam 5 kart, 6. kart taşmasın */
.image-carousel.style3[data-fit-items] .flex-viewport {
    overflow: hidden !important;
}

.image-carousel.style3 .image-box.style9 figure {
    overflow: hidden;
    border-radius: var(--ve-search-box-radius);
}

.image-carousel.style3 .image-box.style9 figure img {
    width: 100% !important;
    height: 185px !important;
    object-fit: cover;
    border-radius: var(--ve-search-box-radius) var(--ve-search-box-radius) 0 0;
}

.image-carousel.style3 .image-box.style9 .box {
    border-radius: var(--ve-search-box-radius);
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(45, 62, 82, 0.08);
}

/* ── Ana sayfa arama kutusu — buz cam efekti ─────────────────── */
.search-box-wrapper.modern-offset {
    position: relative !important;
    z-index: 9999 !important;
    margin-top: -88px !important;
    margin-bottom: 48px !important;
    padding: 0 15px;
}

.search-box.ve-booking-fixed {
    border-radius: var(--ve-search-box-radius) !important;
    box-shadow: 0 10px 32px rgba(45, 62, 82, 0.14) !important;
    max-width: var(--ve-container-xl);
    margin: 0 auto;
    width: 100%;
    background: transparent !important;
    border: none !important;
}

.search-box.ve-booking-fixed .search-tab-content {
    position: relative;
    padding: var(--ve-search-padding) !important;
    border-radius: var(--ve-search-box-radius) !important;
    background: transparent !important;
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    border: none !important;
    box-shadow: 0 8px 28px rgba(45, 62, 82, 0.1);
    isolation: isolate;
}

.search-box.ve-booking-fixed .search-tab-content::before {
    content: "";
    position: absolute;
    inset: 0;
    border-radius: inherit;
    background: var(--ve-glass-bg);
    backdrop-filter: blur(var(--ve-glass-blur)) saturate(140%);
    -webkit-backdrop-filter: blur(var(--ve-glass-blur)) saturate(140%);
    z-index: 0;
    pointer-events: none;
}

.search-box.ve-booking-fixed .search-tab-content > .tab-pane {
    position: relative;
    z-index: 1;
}

.search-box.ve-booking-fixed,
.search-box.ve-booking-fixed label,
.search-box.ve-booking-fixed .input-text,
.search-box.ve-booking-fixed button {
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    text-rendering: optimizeLegibility;
}

.search-box.ve-booking-fixed .modern-align-row {
    margin-left: 0;
    margin-right: 0;
}

.ve-booking-fixed label,
.ve-search-action-label {
    display: block !important;
    font-size: 12px !important;
    font-weight: 700 !important;
    letter-spacing: 0.04em;
    margin-bottom: 6px !important;
    min-height: 16px;
    line-height: 1.2 !important;
    color: #2d3e52 !important;
    text-transform: uppercase;
}

.ve-booking-fixed .input-text,
.ve-booking-fixed .selector select,
.ve-booking-fixed .selector span.custom-select,
.ve-booking-fixed .guests-custom-input-trigger,
.ve-booking-fixed .datepicker-wrap .input-text {
    height: var(--ve-search-control-h) !important;
    min-height: var(--ve-search-control-h) !important;
    line-height: normal !important;
    font-size: var(--ve-input-font-size) !important;
    border-radius: var(--ve-search-radius) !important;
    padding-left: 12px !important;
    padding-right: 12px !important;
    box-sizing: border-box;
    background: var(--ve-glass-input-bg) !important;
    border: 1px solid rgba(45, 62, 82, 0.1) !important;
}

.ve-booking-fixed .selector span.custom-select {
    line-height: calc(var(--ve-search-control-h) - 2px) !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
}

.ve-booking-fixed .selector select {
    height: var(--ve-search-control-h) !important;
}

.ve-booking-fixed .datepicker-wrap {
    position: relative;
    display: block;
}

.ve-booking-fixed .datepicker-wrap .input-text {
    padding-right: 38px !important;
    line-height: var(--ve-search-control-h) !important;
    padding-top: 0 !important;
}

.search-box.ve-booking-fixed .datepicker-wrap:after {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    width: 34px !important;
    height: var(--ve-search-control-h) !important;
    min-height: var(--ve-search-control-h) !important;
    line-height: 1 !important;
    top: 0 !important;
    bottom: auto !important;
    right: 0 !important;
    font-size: 18px !important;
    border-radius: 0 var(--ve-search-radius) var(--ve-search-radius) 0 !important;
    background-color: #2d3e52 !important;
    pointer-events: none;
}

.guests-custom-input-trigger {
    width: 100%;
    background: var(--ve-glass-input-bg);
    border: 1px solid rgba(45, 62, 82, 0.14);
    padding: 0 32px 0 12px;
    color: #2d3e52;
    display: flex;
    align-items: center;
    cursor: pointer;
    position: relative;
    font-weight: 500;
}

.guests-custom-input-trigger:after {
    content: '';
    position: absolute;
    right: 14px;
    top: 50%;
    margin-top: -3px;
    border-width: 6px 5px 0 5px;
    border-style: solid;
    border-color: #7a8a9a transparent transparent transparent;
}

.guests-expandable-panel {
    position: absolute;
    top: calc(100% + 6px);
    left: 15px;
    width: min(320px, calc(100% - 30px));
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border: 1px solid rgba(45, 62, 82, 0.12);
    box-shadow: 0 10px 28px rgba(45, 62, 82, 0.12);
    border-radius: var(--ve-search-box-radius);
    padding: 16px;
    z-index: 10005 !important;
    display: none;
    text-align: left;
}

.guests-expandable-panel.active {
    display: block !important;
}

.panel-row-item {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 14px;
    gap: 12px;
}

.panel-row-item:last-of-type {
    margin-bottom: 0;
}

.panel-row-item label {
    font-size: 13px !important;
    font-weight: 700;
    color: #2d3e52;
    margin: 0;
    text-transform: none !important;
}

.panel-select-box {
    width: 100px;
    flex-shrink: 0;
}

.panel-select-box .selector span.custom-select,
.panel-select-box .selector select {
    height: 40px !important;
    min-height: 40px !important;
    line-height: 40px !important;
    font-size: 14px !important;
}

.panel-child-ages-wrapper {
    border-top: 1px solid #eee;
    margin-top: 14px;
    padding-top: 14px;
}

.panel-child-ages-wrapper h6 {
    margin: 0 0 10px 0;
    font-size: 11px;
    font-weight: 700;
    color: #555;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.panel-child-ages-wrapper .child-age {
    height: 40px !important;
    font-size: 14px !important;
}

.search-box.ve-booking-fixed .search-btn-final,
.search-box.ve-booking-fixed #btn_searchreset {
    height: var(--ve-search-control-h) !important;
    min-height: var(--ve-search-control-h) !important;
    line-height: 1.2 !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    font-size: 13px !important;
    font-weight: 700;
    letter-spacing: 0.02em;
    border-radius: var(--ve-btn-radius) !important;
    padding: 0 12px !important;
    margin: 0 !important;
    white-space: nowrap;
}

.search-box.ve-booking-fixed .search-btn-final.icon-check-darkblue {
    justify-content: center;
    padding-right: 36px !important;
}

.search-box.ve-booking-fixed .icon-check-darkblue:after {
    width: 36px;
    background-size: 14px 14px;
}

.ve-search-actions {
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
}

.ve-search-action-buttons {
    display: flex;
    gap: 6px;
    width: 100%;
    align-items: stretch;
}

.ve-search-reset-wrap {
    flex: 0 0 34%;
    min-width: 0;
}

.ve-search-action-buttons .search-btn-final {
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
}

.ve-search-action-buttons.ve-search-reset-hidden .search-btn-final {
    flex: 1 1 100%;
    width: 100%;
}

@media (min-width: 992px) {
    .modern-align-row {
        display: flex !important;
        align-items: flex-end !important;
        flex-wrap: nowrap !important;
    }

    .modern-align-row > .form-group {
        margin-bottom: 0 !important;
        float: none !important;
    }

    .modern-align-row .section-divider {
        padding-top: 0;
        padding-bottom: 0;
    }

    .search-box.ve-booking-fixed .section-divider {
        padding-left: 10px;
        padding-right: 10px;
    }

    .search-box.ve-booking-fixed .ai-border-focus {
        padding-left: 14px;
    }

    .ve-search-destination {
        flex: 0 0 25%;
        max-width: 25%;
        position: relative;
        z-index: 1;
    }

    .ve-search-destination:focus-within {
        z-index: 10006;
    }

    .ve-search-actions {
        flex: 0 0 25%;
        max-width: 25%;
    }
}

/* Destination typeahead — buz cam, arama kutusuyla uyumlu */
.search-box.ve-booking-fixed .typeahead.dropdown-menu {
    background: rgba(255, 255, 255, 0.96) !important;
    backdrop-filter: blur(12px) saturate(140%);
    -webkit-backdrop-filter: blur(12px) saturate(140%);
    border: 1px solid rgba(45, 62, 82, 0.12) !important;
    border-radius: var(--ve-search-box-radius) !important;
    box-shadow: 0 12px 32px rgba(45, 62, 82, 0.14) !important;
    margin-top: 6px;
    padding: 6px 0;
    max-width: 550px;
    max-height: 340px;
    overflow-x: hidden;
    overflow-y: auto;
    z-index: 10010 !important;
    color: #2d3e52 !important;
    float: none;
}

.search-box.ve-booking-fixed .typeahead.dropdown-menu > li > a {
    display: block;
    padding: 10px 14px;
    color: #2d3e52 !important;
    font-size: 14px;
    font-weight: 500;
    line-height: 1.45;
    white-space: normal;
    background: transparent !important;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

.search-box.ve-booking-fixed .typeahead.dropdown-menu > li > a:hover,
.search-box.ve-booking-fixed .typeahead.dropdown-menu > li > a:focus {
    background: rgba(45, 62, 82, 0.07) !important;
    color: #2d3e52 !important;
}

.search-box.ve-booking-fixed .typeahead.dropdown-menu > li.active > a,
.search-box.ve-booking-fixed .typeahead.dropdown-menu > li.active > a:hover,
.search-box.ve-booking-fixed .typeahead.dropdown-menu > li.active > a:focus {
    background: rgba(45, 62, 82, 0.11) !important;
    color: #2d3e52 !important;
}

.search-box.ve-booking-fixed .typeahead.dropdown-menu strong {
    font-weight: 700;
    color: #2d3e52;
}

.search-box.ve-booking-fixed .typeahead.dropdown-menu .dropdown-header {
    padding: 8px 14px 4px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    color: #7a8a9a;
}

/* ── Tablet & mobil ───────────────────────────────────────────── */
@media (max-width: 991px) {
    .search-box-wrapper.modern-offset {
        margin-top: -56px !important;
        margin-bottom: 24px !important;
        padding: 0 12px;
        z-index: 9999 !important;
    }

    .search-box.ve-booking-fixed .ai-border-focus {
        border-left: none !important;
        padding-left: 0 !important;
    }

    .search-box.ve-booking-fixed .search-tab-content {
        padding: 18px 16px !important;
        background: transparent !important;
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        border: none !important;
        border-radius: var(--ve-search-box-radius) !important;
        box-shadow: 0 10px 32px rgba(45, 62, 82, 0.14) !important;
    }

    .search-box.ve-booking-fixed .search-tab-content::before {
        background: var(--ve-glass-bg);
        backdrop-filter: blur(var(--ve-glass-blur)) saturate(140%);
        -webkit-backdrop-filter: blur(var(--ve-glass-blur)) saturate(140%);
    }

    .search-box.ve-booking-fixed .row {
        margin: 0;
    }

    .search-box.ve-booking-fixed .form-group {
        margin-bottom: 16px !important;
        padding: 0 !important;
    }

    .ve-booking-fixed .input-text,
    .ve-booking-fixed .selector span.custom-select,
    .ve-booking-fixed .guests-custom-input-trigger,
    .ve-booking-fixed .selector select {
        height: var(--ve-search-control-h-mobile) !important;
        min-height: var(--ve-search-control-h-mobile) !important;
        line-height: var(--ve-search-control-h-mobile) !important;
        font-size: 16px !important; /* iOS zoom önleme */
    }

    .ve-booking-fixed .selector span.custom-select {
        line-height: calc(var(--ve-search-control-h-mobile) - 2px) !important;
    }

    .ve-booking-fixed .datepicker-wrap .input-text {
        padding-right: 38px !important;
        line-height: var(--ve-search-control-h-mobile) !important;
    }

    .search-box.ve-booking-fixed .datepicker-wrap:after {
        height: var(--ve-search-control-h-mobile) !important;
        min-height: var(--ve-search-control-h-mobile) !important;
    }

    .search-box.ve-booking-fixed .search-btn-final,
    .search-box.ve-booking-fixed #btn_searchreset {
        height: var(--ve-search-control-h-mobile) !important;
        min-height: var(--ve-search-control-h-mobile) !important;
        width: 100%;
    }

    .guests-expandable-panel {
        left: 0;
        width: 100%;
        position: relative;
        top: 8px;
        margin-top: 0;
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.1);
    }

    .ve-search-action-buttons {
        flex-direction: column;
    }

    .ve-search-reset-wrap {
        flex: none;
        width: 100%;
    }

    .section-divider {
        border-right: none !important;
        border-bottom: none !important;
    }

    .inner-divider {
        border-right: none !important;
    }
}

@media (max-width: 767px) {
    .container {
        padding-left: 12px;
        padding-right: 12px;
    }
}

/* İçerik bölümleri — biraz daha ferah dikey boşluk */
#content > .container {
    padding-top: 4px;
    padding-bottom: 8px;
}

#content .container > h1,
#content .container > .description h1 {
    margin-bottom: 18px;
}
