/* ============================================================
   DEMIRCODE OTA - DESIGN SYSTEM CSS
   Primary: #CF3425 | Font: IBM Plex Sans | Framework: Bootstrap 5.3
   ============================================================ */

/* --- Global Font Size Fix (template override) --- */
body { font-size: 15px !important; }
.card-header { font-size: 1.1rem !important; }
.card-body { font-size: 0.95rem !important; }
.btn { font-size: 0.95rem !important; }
.btn-lg, .dc-btn-lg { font-size: 1.2rem !important; }
.fs-5 { font-size: 1.25rem !important; }
.fs-4 { font-size: 1.5rem !important; }
.fs-3 { font-size: 1.75rem !important; }

/* Demircode custom text sizes */
.dc-price-xl { font-size: 3rem !important; }
.dc-currency { font-size: 1.2rem !important; }
.dc-text-md { font-size: 1rem !important; }
.dc-text-lg { font-size: 1.15rem !important; }

/* --- Sticky Search Header (sadece desktop) --- */
@media (min-width: 992px) {
    .dc-search-section {
        position: sticky;
        top: 0;
        z-index: 1060;
        background: #fff;
    }
}
/* Sticky aktifken main nav'ı gizle — animasyonsuz, titreme olmasın */
.dc-nav-hidden {
    transform: translateY(-100%) !important;
    opacity: 0 !important;
    pointer-events: none !important;
    transition: none !important;
}
.dc-search-sticky .card {
    margin: 0 !important;
    border: none !important;
    box-shadow: none !important;
    border-radius: 0 !important;
}
.dc-search-sticky .card-body {
    padding: 0 !important;
}
/* Radio satırı (tek yön / gidiş-dönüş) gizle */
.dc-search-sticky .d-flex.gap-3.mb-3 {
    display: none !important;
}
/* Alt metinler (Şehir veya Bölge, vb.) — kompakt göster */
.dc-search-sticky p.fs-12 {
    font-size: 10px !important;
    color: #9ca3af !important;
    margin: 0 !important;
    padding: 0 !important;
    line-height: 1.2;
}
/* Label — küçük etiket, ikon ile */
.dc-search-sticky .form-label,
.dc-search-sticky label {
    font-size: 9px !important;
    color: #6b7280 !important;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    padding: 0 !important;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 700;
    line-height: 1;
    height: auto !important;
}
/* Form info — subtle border, divider'lar kesik kalmasın */
.dc-search-sticky .form-info {
    border: 1px solid #e5e7eb !important;
    border-radius: 8px !important;
    background: #fafbfc !important;
    padding: 0 !important;
    align-items: stretch !important;
}
.dc-search-sticky .form-item {
    border-right: 1px solid #e5e7eb;
    border-left: none !important;
    padding: 8px 18px !important;
    display: flex;
    flex-direction: column;
    justify-content: center;
    height: auto;
    min-height: 56px;
    transition: background 0.15s ease;
    cursor: pointer;
}
.dc-search-sticky .form-item:hover {
    background: #f3f4f6 !important;
}
.dc-search-sticky .form-item:last-child {
    border-right: none;
}
.dc-search-sticky .form-item:first-child {
    border-left: none !important;
}
/* Input — temiz, border yok */
.dc-search-sticky .form-control {
    border: none !important;
    background: transparent !important;
    padding: 0 !important;
    font-size: 14px !important;
    font-weight: 600;
    color: #111827 !important;
    box-shadow: none !important;
    height: auto !important;
    line-height: 1.3;
}
/* Swap butonu — minimal */
.dc-search-sticky .form-item:has(.dc-swap-btn) {
    padding: 0 4px !important;
    border-right: none;
    max-width: 30px !important;
    min-width: 30px !important;
    justify-content: center;
    align-items: center;
    cursor: pointer;
}
.dc-search-sticky .form-item:has(.dc-swap-btn):hover {
    background: transparent !important;
}
.dc-search-sticky .dc-swap-btn {
    width: 24px !important;
    height: 24px !important;
    font-size: 0.65rem;
    padding: 0 !important;
    border-color: #d1d5db !important;
    color: #6b7280 !important;
    transition: all 0.2s ease;
}
.dc-search-sticky .dc-swap-btn:hover {
    border-color: var(--dc-primary) !important;
    color: var(--dc-primary) !important;
    transform: rotate(180deg);
}
/* Dropdown toggle (YOLCULAR) — birebir aynı hiza */
.dc-search-sticky .form-item.dropdown {
    padding: 8px 18px !important;
    height: auto;
    min-height: 56px;
}
/* Trigger div — görünmez wrapper, tüm alanı kapla */
.dc-search-sticky .form-item.dropdown > div[data-bs-toggle="dropdown"] {
    display: block !important;
    padding: 0 !important;
    margin: 0 !important;
    cursor: pointer;
}
/* Dropdown label — normal form-label ile birebir aynı */
.dc-search-sticky .form-item.dropdown .form-label,
.dc-search-sticky .form-item.dropdown .form-label.fs-14,
.dc-search-sticky .form-item.dropdown label {
    display: block !important;
    font-size: 9px !important;
    color: #6b7280 !important;
    margin-bottom: 0 !important;
    margin-top: 0 !important;
    padding: 0 !important;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    font-weight: 700;
    line-height: 1;
    height: auto !important;
}
/* Değer — normal form-control ile birebir aynı */
.dc-search-sticky .home-eight-title {
    font-size: 14px !important;
    font-weight: 600;
    color: #111827 !important;
    line-height: 1.3;
    margin: 0 !important;
    padding: 0 !important;
}
/* Misafir özeti (2 Yetişkin) — kompakt göster */
.dc-search-sticky .form-item.dropdown p.dc-pax-summary {
    display: block !important;
    font-size: 10px !important;
    color: #9ca3af !important;
    margin: 0 !important;
    line-height: 1.2;
}
.dc-search-sticky .member-count span {
    font-size: 12px !important;
    font-weight: 400;
}
/* Ara butonu — form item'larla aynı yükseklikte */
.dc-search-sticky .search-btn {
    border-radius: 8px !important;
    padding: 0 32px !important;
    margin-left: 12px !important;
    font-weight: 700;
    font-size: 15px !important;
    align-self: stretch;
    min-height: 56px;
    box-shadow: 0 2px 8px rgba(207, 52, 37, 0.25);
    transition: all 0.2s ease;
}
.dc-search-sticky .search-btn:hover {
    box-shadow: 0 4px 16px rgba(207, 52, 37, 0.35);
    transform: translateY(-1px);
}
/* d-lg-flex hizalama */
.dc-search-sticky .banner-form .d-lg-flex {
    align-items: center !important;
}
/* Dropdown z-index — sticky bar (1060) üstünde */
.dc-search-sticky .dropdown-menu {
    z-index: 1070 !important;
}
/* Placeholder — artık kullanılmıyor (position: sticky yaklaşımı) */
@keyframes dcSlideDown {
    from { transform: translateY(-100%); opacity: 0; }
    to { transform: translateY(0); opacity: 1; }
}
/* TheiaSidebar: arama formu olan sayfalarda additionalMarginTop: 90 ile init edilir (script.js) */
/* Mobilde: sticky formu gizle, özet bar göster */
@media (max-width: 991.98px) {
    .dc-search-sticky {
        display: none !important;
    }
    .dc-nav-hidden {
        transform: none !important;
        opacity: 1 !important;
        pointer-events: auto !important;
    }
    /* M1: Scroll geçildiğinde orijinal arama formunu mobilde gizle */
    .dc-mobile-hidden {
        display: none !important;
    }
}

/* --- Mobil Modal — kompakt form stilleri --- */
.dc-mobile-search-modal .card {
    border: none !important;
    box-shadow: none !important;
}
.dc-mobile-search-modal .card-body {
    padding: 0 !important;
}
.dc-mobile-search-modal .banner-form .d-lg-flex {
    flex-direction: column;
}
.dc-mobile-search-modal .form-info {
    flex-wrap: wrap !important;
    border: none !important;
}
.dc-mobile-search-modal .form-item {
    width: 100% !important;
    flex: unset !important;
    border-left: none !important;
    border-right: none !important;
    border-bottom: 1px solid #e5e7eb;
    padding: 12px 8px !important;
}
.dc-mobile-search-modal .form-item:last-child {
    border-bottom: none;
}
.dc-mobile-search-modal .search-btn {
    width: 100%;
    margin: 16px 0 0 0 !important;
    padding: 14px !important;
    border-radius: 12px !important;
    font-size: 16px !important;
}
/* Modal'da radio ve switch satırını gizle (kompakt) */
.dc-mobile-search-modal .d-flex.gap-3.mb-3 {
    display: none !important;
}

/* Mobil Arama Özet Barı */
.dc-mobile-search-bar {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1060;
    background: #fff;
    border-bottom: 1px solid #e0e0e0;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    padding: 14px 16px;
}
.dc-mobile-search-bar.active {
    display: flex !important;
    align-items: center;
    gap: 12px;
}
.dc-mobile-search-bar .dc-mobile-summary {
    flex: 1;
    overflow: hidden;
    line-height: 1.5;
}
.dc-mobile-search-bar .dc-mobile-summary span {
    display: block;
    font-size: 16px !important;
    font-weight: 700 !important;
    color: #1f2937 !important;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}
.dc-mobile-search-bar .dc-mobile-summary small {
    display: block;
    font-size: 14px !important;
    font-weight: 400 !important;
    color: #6b7280 !important;
}
.dc-mobile-search-bar .dc-mobile-edit-btn {
    flex-shrink: 0;
    padding: 8px 20px;
    border-radius: 20px;
    font-size: 14px !important;
    font-weight: 600;
}
/* Mobil placeholder */
.dc-mobile-placeholder { display: none; }
.dc-mobile-placeholder.active { display: block; height: 52px; }

/* Mobil arama modal */
.dc-mobile-search-modal {
    display: none;
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    z-index: 1080;
    background: #fff;
    overflow-y: auto;
    padding: 20px;
    animation: dcSlideDown 0.2s ease;
}
.dc-mobile-search-modal.active {
    display: block;
}
.dc-mobile-search-modal .dc-modal-close {
    position: absolute;
    top: 12px;
    right: 12px;
    background: none;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
}

/* Mobil uçuş kartları */
@media (max-width: 767.98px) {
    .dc-flight-card .d-flex.flex-wrap {
        flex-direction: column;
    }
    .dc-flight-card .d-flex.flex-wrap > div {
        width: 100% !important;
        text-align: left !important;
        padding: 4px 0 !important;
        border-right: none !important;
    }
    .dc-flight-card .d-flex.flex-wrap > div:first-child {
        display: flex;
        align-items: center;
        gap: 10px;
    }
    /* Saat + süre + varış satırı */
    .dc-flight-card .d-flex.flex-wrap > div:nth-child(2),
    .dc-flight-card .d-flex.flex-wrap > div:nth-child(3),
    .dc-flight-card .d-flex.flex-wrap > div:nth-child(4) {
        display: inline-flex !important;
        width: auto !important;
        gap: 6px;
    }
    /* Fiyat + Seç yan yana */
    .dc-flight-card .d-flex.flex-wrap > div:nth-child(5),
    .dc-flight-card .d-flex.flex-wrap > div:nth-child(6) {
        display: inline-flex !important;
        width: auto !important;
    }
    /* BrandedFare kartları dikey */
    .dc-fare-group {
        flex-direction: column !important;
    }
    .dc-fare-card {
        max-width: 100% !important;
    }
}

/* --- CSS Custom Properties (Design Tokens) --- */
:root {
    /* Primary Colors */
    --dc-primary: #CF3425;
    --dc-primary-dark: #A52A1E;
    --dc-primary-light: rgba(207, 52, 37, 0.10);
    --dc-primary-10: rgba(207, 52, 37, 0.10);
    --dc-primary-25: rgba(207, 52, 37, 0.25);
    --dc-primary-50: rgba(207, 52, 37, 0.50);
    --dc-primary-75: rgba(207, 52, 37, 0.75);

    /* Secondary Colors */
    --dc-secondary-green: #98AA30;
    --dc-accent-blue: #155EEF;
    --dc-success: #04BD6C;
    --dc-warning: #FFCA18;
    --dc-danger: #FF0000;
    --dc-info: #17A2B8;

    /* Neutral Colors */
    --dc-dark-slate: #212E47;
    --dc-text-dark: #111827;
    --dc-text-body: #4E5561;
    --dc-text-gray: #393F4D;
    --dc-text-light: #6B7280;
    --dc-border: #E4EBF1;
    --dc-light-gray: #F3F4F6;
    --dc-light-200: #F9FAFB;
    --dc-white: #FFFFFF;

    /* Typography */
    --dc-font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
    --dc-font-size-10: 10px;
    --dc-font-size-12: 12px;
    --dc-font-size-14: 14px;
    --dc-font-size-16: 16px;

    /* Spacing */
    --dc-radius-sm: 4px;
    --dc-radius-md: 8px;
    --dc-radius-lg: 12px;
    --dc-radius-xl: 16px;

    /* Shadows */
    --dc-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.05);
    --dc-shadow-md: 0 4px 6px rgba(0, 0, 0, 0.07);
    --dc-shadow-lg: 0 10px 25px rgba(0, 0, 0, 0.10);
    --dc-shadow-xl: 0 20px 50px rgba(0, 0, 0, 0.12);

    /* Transitions */
    --dc-transition: all 0.3s ease;

    /* Bootstrap overrides */
    --bs-primary: #CF3425;
    --bs-primary-rgb: 207, 52, 37;
    --bs-body-font-family: 'IBM Plex Sans', system-ui, -apple-system, sans-serif;
    --bs-body-color: #4E5561;
    --bs-body-bg: #F9FAFB;
}

/* --- Base Styles --- */
html {
    font-size: 14px;
    scroll-behavior: smooth;
}

@media (min-width: 768px) {
    html { font-size: 16px; }
}

body {
    font-family: var(--dc-font-family);
    color: var(--dc-text-body);
    background-color: var(--dc-light-200);
    line-height: 1.5;
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
}

/* --- Typography Utilities --- */
.fs-10 { font-size: 10px !important; }
.fs-12 { font-size: 12px !important; }
.fs-14 { font-size: 14px !important; }
.fs-16 { font-size: 16px !important; }

.text-dark-slate { color: var(--dc-dark-slate) !important; }
.text-default { color: var(--dc-text-dark) !important; }
.text-body-custom { color: var(--dc-text-body) !important; }
.text-gray { color: var(--dc-text-gray) !important; }
.text-light-custom { color: var(--dc-text-light) !important; }

.fw-medium { font-weight: 500 !important; }
.fw-semibold { font-weight: 600 !important; }

/* --- Bootstrap Primary Override --- */
.btn-primary {
    background-color: var(--dc-primary);
    border-color: var(--dc-primary);
}
.btn-primary:hover, .btn-primary:focus {
    background-color: var(--dc-primary-dark);
    border-color: var(--dc-primary-dark);
}
.btn-outline-primary {
    color: var(--dc-primary);
    border-color: var(--dc-primary);
}
.btn-outline-primary:hover {
    background-color: var(--dc-primary);
    border-color: var(--dc-primary);
    color: #fff;
}

.bg-primary { background-color: var(--dc-primary) !important; }
.text-primary { color: var(--dc-primary) !important; }

a { color: var(--dc-accent-blue); transition: var(--dc-transition); }
a:hover { color: var(--dc-primary); }

/* --- Card Styles --- */
.card {
    border: 1px solid var(--dc-border);
    border-radius: var(--dc-radius-lg);
    background: var(--dc-white);
    transition: var(--dc-transition);
}
.card.shadow-hover:hover {
    box-shadow: var(--dc-shadow-lg);
    transform: translateY(-2px);
}

/* Product Card (Hotel/Flight Listing) */
.product-card { overflow: hidden; }
.product-card .product-img {
    position: relative;
    overflow: hidden;
}
.product-card .product-img img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    transition: transform 0.5s ease;
}
.product-card:hover .product-img img { transform: scale(1.05); }
.product-card .product-img .badge {
    position: absolute;
    top: 12px;
    left: 12px;
}
.product-card .wishlist-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: var(--dc-transition);
}
.product-card .wishlist-btn:hover { background: var(--dc-primary); color: #fff; }
.product-card .price del { font-size: 14px; }
.product-card .price .h4 { margin-bottom: 0; }

/* --- Header Styles --- */
.dc-header {
    background: var(--dc-white);
    box-shadow: var(--dc-shadow-sm);
    position: sticky;
    top: 0;
    z-index: 1030;
}
.dc-header .navbar-brand img { height: 40px; }
.dc-header .nav-link {
    color: var(--dc-text-dark);
    font-weight: 500;
    font-size: 15px;
    padding: 8px 16px !important;
    transition: var(--dc-transition);
}
.dc-header .nav-link:hover,
.dc-header .nav-link.active { color: var(--dc-primary); }

.dc-topbar {
    background: var(--dc-dark-slate);
    color: #fff;
    font-size: 13px;
    padding: 6px 0;
}
.dc-topbar a { color: rgba(255,255,255,0.8); text-decoration: none; }
.dc-topbar a:hover { color: #fff; }

/* --- Footer Styles --- */
.dc-footer {
    background: var(--dc-dark-slate);
    color: rgba(255,255,255,0.7);
    padding: 60px 0 20px;
}
.dc-footer h5 { color: #fff; font-weight: 600; margin-bottom: 20px; }
.dc-footer a { color: rgba(255,255,255,0.7); text-decoration: none; }
.dc-footer a:hover { color: var(--dc-primary); }
.dc-footer .footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding-top: 20px;
    margin-top: 40px;
}

/* --- Sidebar Styles --- */
.dc-sidebar {
    background: var(--dc-white);
    border-radius: var(--dc-radius-lg);
    border: 1px solid var(--dc-border);
    padding: 0;
    min-height: calc(100vh - 120px);
}
.dc-sidebar .nav-link {
    color: var(--dc-text-body);
    padding: 10px 20px;
    border-left: 3px solid transparent;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
}
.dc-sidebar .nav-link:hover { background: var(--dc-light-200); color: var(--dc-primary); }
.dc-sidebar .nav-link.active {
    color: var(--dc-primary);
    background: var(--dc-primary-10);
    border-left-color: var(--dc-primary);
    font-weight: 600;
}
.dc-sidebar .sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--dc-border);
}

/* --- Breadcrumb --- */
.dc-breadcrumb {
    background: transparent;
    padding: 16px 0;
}
.dc-breadcrumb .breadcrumb-item a { color: var(--dc-text-light); text-decoration: none; }
.dc-breadcrumb .breadcrumb-item.active { color: var(--dc-primary); }

/* --- Search Form --- */
.dc-search-form {
    background: var(--dc-white);
    border-radius: var(--dc-radius-xl);
    padding: 20px;
    box-shadow: var(--dc-shadow-lg);
}
.dc-search-form .form-control {
    border-radius: var(--dc-radius-md);
    border-color: var(--dc-border);
    padding: 10px 16px;
}
.dc-search-form .btn-search {
    background: var(--dc-primary);
    color: #fff;
    border-radius: var(--dc-radius-md);
    padding: 10px 30px;
    font-weight: 600;
}
.dc-search-form .btn-search:hover { background: var(--dc-primary-dark); }

/* --- Hero Section --- */
.dc-hero {
    position: relative;
    min-height: 500px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}
.dc-hero::before {
    content: '';
    position: absolute;
    top: 0; right: 0; bottom: 0; left: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3), rgba(0,0,0,0.5));
}
.dc-hero .hero-content { position: relative; z-index: 2; }
.dc-hero h1 { color: #fff; font-weight: 700; font-size: 48px; }
.dc-hero p { color: rgba(255,255,255,0.9); font-size: 18px; }

/* --- Rating Stars --- */
.rating-stars { display: inline-flex; gap: 2px; }
.rating-stars i { color: var(--dc-warning); font-size: 14px; }
.rating-stars .empty { color: var(--dc-border); }
.rating-badge {
    background: var(--dc-primary);
    color: #fff;
    border-radius: var(--dc-radius-sm);
    padding: 2px 8px;
    font-weight: 600;
    font-size: 14px;
}

/* --- Price Display --- */
.price-display .old-price {
    text-decoration: line-through;
    color: var(--dc-text-light);
    font-size: 14px;
}
.price-display .current-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--dc-text-dark);
}
.price-display .per-night {
    font-size: 14px;
    color: var(--dc-text-light);
}
.price-display .discount-badge {
    background: var(--dc-danger);
    color: #fff;
    border-radius: var(--dc-radius-sm);
    padding: 2px 8px;
    font-size: 12px;
    font-weight: 600;
}

/* --- Filter Sidebar --- */
.filter-sidebar .filter-group { padding: 16px 0; border-bottom: 1px solid var(--dc-border); }
.filter-sidebar .filter-group:last-child { border-bottom: none; }
.filter-sidebar .filter-title { font-weight: 600; color: var(--dc-text-dark); margin-bottom: 12px; }

/* --- Pagination --- */
.dc-pagination .page-link {
    color: var(--dc-text-body);
    border-color: var(--dc-border);
    border-radius: var(--dc-radius-md) !important;
    margin: 0 2px;
    min-width: 40px;
    text-align: center;
}
.dc-pagination .page-item.active .page-link {
    background: var(--dc-primary);
    border-color: var(--dc-primary);
    color: #fff;
}

/* --- Dashboard Widgets --- */
.stat-card {
    background: var(--dc-white);
    border-radius: var(--dc-radius-lg);
    padding: 24px;
    border: 1px solid var(--dc-border);
}
.stat-card .stat-icon {
    width: 48px;
    height: 48px;
    border-radius: var(--dc-radius-md);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
}
.stat-card .stat-value { font-size: 28px; font-weight: 700; color: var(--dc-text-dark); }
.stat-card .stat-label { font-size: 14px; color: var(--dc-text-light); }
.stat-card .stat-change { font-size: 13px; }
.stat-card .stat-change.up { color: var(--dc-success); }
.stat-card .stat-change.down { color: var(--dc-danger); }

/* --- Admin/PMS Sidebar --- */
.admin-sidebar {
    width: 260px;
    min-height: 100vh;
    background: var(--dc-dark-slate);
    position: fixed;
    left: 0;
    top: 0;
    z-index: 1040;
    transition: var(--dc-transition);
}
.admin-sidebar .sidebar-brand {
    padding: 20px;
    border-bottom: 1px solid rgba(255,255,255,0.1);
}
.admin-sidebar .sidebar-brand img { height: 36px; }
.admin-sidebar .nav-link {
    color: rgba(255,255,255,0.7);
    padding: 10px 20px;
    font-size: 14px;
    display: flex;
    align-items: center;
    gap: 10px;
    border-left: 3px solid transparent;
}
.admin-sidebar .nav-link:hover { color: #fff; background: rgba(255,255,255,0.05); }
.admin-sidebar .nav-link.active {
    color: #fff;
    background: rgba(207,52,37,0.15);
    border-left-color: var(--dc-primary);
}
.admin-sidebar .nav-section-title {
    color: rgba(255,255,255,0.4);
    font-size: 11px;
    text-transform: uppercase;
    letter-spacing: 1px;
    padding: 16px 20px 8px;
}

.admin-content { margin-left: 260px; padding: 24px; min-height: 100vh; }

@media (max-width: 991.98px) {
    .admin-sidebar { transform: translateX(-100%); }
    .admin-sidebar.show { transform: translateX(0); }
    .admin-content { margin-left: 0; }
}

/* --- Form Enhancements --- */
.form-item { margin-bottom: 16px; }
.form-item .form-label {
    font-size: 14px;
    color: var(--dc-text-dark);
    font-weight: 500;
    margin-bottom: 4px;
}
.form-control:focus {
    border-color: var(--dc-primary);
    box-shadow: 0 0 0 0.2rem var(--dc-primary-10);
}
.input-icon { position: relative; }
.input-icon i {
    position: absolute;
    left: 12px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--dc-text-light);
}
.input-icon input { padding-left: 38px; }

/* --- Badge Statuses --- */
.badge-confirmed { background: rgba(4,189,108,0.1); color: #04BD6C; }
.badge-pending { background: rgba(255,202,24,0.1); color: #D4A800; }
.badge-cancelled { background: rgba(255,0,0,0.1); color: #FF0000; }
.badge-checkedin { background: rgba(21,94,239,0.1); color: #155EEF; }
.badge-noshow { background: rgba(107,114,128,0.1); color: #6B7280; }

/* --- Auth Pages --- */
.auth-wrapper {
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, var(--dc-dark-slate) 0%, #1a2332 100%);
}
.auth-card {
    background: var(--dc-white);
    border-radius: var(--dc-radius-xl);
    padding: 40px;
    max-width: 440px;
    width: 100%;
    box-shadow: var(--dc-shadow-xl);
}
.auth-card .auth-logo { text-align: center; margin-bottom: 32px; }
.auth-card .auth-logo img { height: 48px; }

/* --- Booking Confirmation --- */
.booking-confirmation .confirmation-header {
    text-align: center;
    padding: 40px 0;
}
.booking-confirmation .confirmation-icon {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(4,189,108,0.1);
    color: var(--dc-success);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    margin: 0 auto 16px;
}

/* --- Loading & Spinner --- */
.dc-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px;
}
.dc-spinner {
    width: 40px;
    height: 40px;
    border: 3px solid var(--dc-border);
    border-top-color: var(--dc-primary);
    border-radius: 50%;
    animation: dc-spin 0.8s linear infinite;
}
@keyframes dc-spin { to { transform: rotate(360deg); } }

/* --- Tape Chart (PMS) --- */
.tape-chart { overflow-x: auto; }
.tape-chart table { min-width: 1200px; }
.tape-chart th { position: sticky; top: 0; background: var(--dc-white); z-index: 10; }
.tape-chart .room-cell {
    min-width: 40px;
    height: 40px;
    border: 1px solid var(--dc-border);
    cursor: pointer;
    transition: var(--dc-transition);
}
.tape-chart .room-cell.occupied { background: var(--dc-primary-25); }
.tape-chart .room-cell.available { background: rgba(4,189,108,0.1); }
.tape-chart .room-cell:hover { box-shadow: inset 0 0 0 2px var(--dc-primary); }

/* --- Autocomplete Dropdown --- */
.dc-autocomplete-wrapper {
    position: relative;
}
.dc-autocomplete-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    z-index: 1050;
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.06);
    border-top: none;
    border-radius: 0 0 12px 12px;
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
    max-height: 360px;
    overflow-y: auto;
    padding: 6px;
}
/* Banner-form'da dropdown form-item'a bağlanır; sol/sağ offset JS tarafında
   form-item'ın border-width'ine göre dinamik set edilir (padding gerekmez). */
/* Mobile modal / sticky search input'u saran wrapper'a bağlı — form-item padding'ini
   aşmak için sabit offset. */
.dc-mobile-search-modal .dc-autocomplete-dropdown {
    left: -8px;
    right: -8px;
}
.dc-search-sticky .dc-autocomplete-dropdown {
    left: -18px;
    right: -18px;
}
.dc-autocomplete-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 8px;
    cursor: pointer;
    transition: background-color 0.15s ease;
}
.dc-autocomplete-item:hover,
.dc-autocomplete-item.is-active {
    background: rgba(13, 110, 253, 0.08);
}
.dc-autocomplete-icon {
    flex: 0 0 auto;
    width: 24px;
    font-size: 18px;
    color: var(--dc-primary);
    text-align: center;
    line-height: 1;
}
.dc-autocomplete-texts {
    flex: 1 1 auto;
    min-width: 0;
}
.dc-autocomplete-title {
    font-size: 14px;
    font-weight: 600;
    color: #1f2937;
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
.dc-autocomplete-subtitle {
    font-size: 12px;
    font-weight: 400;
    color: #6b7280;
    line-height: 1.3;
    margin-top: 2px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}
@media (max-width: 575.98px) {
    .dc-autocomplete-dropdown { padding: 4px; border-radius: 0 0 10px 10px; }
    .dc-autocomplete-item { padding: 8px 10px; gap: 10px; }
    .dc-autocomplete-title { font-size: 13px; }
    .dc-autocomplete-subtitle { font-size: 11px; }
    .dc-autocomplete-icon { width: 20px; font-size: 16px; }
}

/* --- Date Range Picker Input Fix --- */
.dc-daterange,
.dc-datepicker {
    white-space: nowrap;
}
.form-item:has(.dc-daterange),
.form-item:has(.dc-datepicker) {
    min-width: 260px;
    flex: 1.5 !important;
}

/* --- Child Age Fields --- */
.dc-child-ages input[type="date"] { max-width: 160px; font-size: 13px; }

/* --- Guest Dropdown Fix (scroll olmasın, hepsi görünsün) --- */
.banner-form .dropdown-menu.dropdown-xl,
.hero-sec-eight .dropdown-menu.dropdown-xl,
.dropdown-menu.dropdown-xl {
    max-height: none !important;
    overflow: visible !important;
    padding: 16px !important;
    z-index: 99999 !important;
}
/* Dropdown acikken back-to-top gizlensin — tarih input'unu kapatmasin */
body.dc-dropdown-open .back-to-top-icon { opacity: 0 !important; pointer-events: none !important; }
.banner-form .dropdown-menu .apply-btn {
    position: sticky;
    bottom: 0;
}

/* --- List View for Hotel Cards --- */
.place-item.d-md-flex .place-img { width: 280px; min-width: 280px; }
.place-item.d-md-flex .place-img img { height: 100%; object-fit: cover; border-radius: 8px 0 0 8px; }
.place-item.d-md-flex .place-content { flex: 1; }
@media (max-width: 767.98px) {
    .place-item.d-md-flex .place-img { width: 100%; min-width: auto; }
    .place-item.d-md-flex .place-img img { border-radius: 8px 8px 0 0; }
}

/* --- Sort Select JS --- */
.dc-sort-select { cursor: pointer; }

/* --- Breadcrumb Page Padding Fix (boşluk kaldır) --- */
.breadcrumb-bar + .section { padding-top: 1.5rem; }

/* Dikey çizgiler: card overflow + form-info border-radius child border'ları kesmesin */
.banner-form .form-info {
    border-radius: 0 !important;
}
.section.pb-0 .card {
    overflow: visible !important;
}

/* --- Hero Section Fix --- */
.hero-sec-eight {
    height: auto !important;
    min-height: 520px;
    padding: 100px 0 40px !important;
    justify-content: center !important;
    background-image: none !important;
}
.hero-sec-eight::after {
    background-image: url('/dreamstour/img/banner/banner-01.jpg') !important;
    background-size: cover !important;
    background-position: center !important;
    background-attachment: scroll !important;
}
.hero-sec-eight::before {
    content: "";
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0, 0, 0, 0.4);
    z-index: 0;
}
.hero-sec-eight .animate-text {
    display: none !important;
}
.hero-sec-eight .hero-content,
.hero-sec-eight .container {
    position: relative;
    z-index: 1;
}
.hero-sec-eight .banner-form,
.hero-sec-eight .banner-form .card-body {
    overflow: visible !important;
}
/* Desktop'ta arama kartını %20 daralt — mobilde zaten dikey akışa geçiyor */
@media (min-width: 992px) {
    .hero-sec-eight .banner-form {
        max-width: 80%;
        margin-left: auto;
        margin-right: auto;
    }
}
.hero-sec-eight .search-btn {
    position: relative;
    z-index: 2;
    pointer-events: auto !important;
    min-width: 80px;
    flex-shrink: 0;
}

/* --- Language Selector (navbar) --- */
.flag-dropdown .dropdown-toggle {
    color: #fff !important;
    text-decoration: none;
    font-weight: 600;
    font-size: 14px;
    padding: 4px 8px;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 6px;
    transition: all 0.2s;
}
.flag-dropdown .dropdown-toggle:hover,
.flag-dropdown .dropdown-toggle:focus {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.5);
}
.flag-dropdown .dropdown-toggle::after {
    border-top-color: #fff;
}

/* Fixed header: beyaz arka plan, koyu text */
header.fixed .flag-dropdown .dropdown-toggle {
    color: #111827 !important;
    border-color: rgba(0,0,0,0.15);
}
header.fixed .flag-dropdown .dropdown-toggle:hover,
header.fixed .flag-dropdown .dropdown-toggle:focus {
    background: rgba(0,0,0,0.05);
    border-color: rgba(0,0,0,0.25);
}
header.fixed .flag-dropdown .dropdown-toggle::after {
    border-top-color: #111827;
}

/* Fixed header: nav link'leri + header-nav arka plan */
header.header-eight.fixed .header-nav {
    background-color: #fff !important;
    backdrop-filter: none;
}
header.header-eight.fixed .header-nav .main-menu-wrapper .main-nav > li > a {
    color: #111827;
}
header.header-eight.fixed .header-nav .main-menu-wrapper .main-nav > li > a:hover,
header.header-eight.fixed .header-nav .main-menu-wrapper .main-nav > li.active > a {
    background-color: var(--dc-primary, #CF3425);
    color: #fff;
}
.flag-dropdown .dropdown-menu {
    min-width: 180px;
    border: 1px solid #e5e7eb;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
    z-index: 9999;
}
.flag-dropdown .dropdown-menu .dropdown-item {
    color: #1f2937 !important;
    font-weight: 500;
    padding: 8px 12px;
}
.flag-dropdown .dropdown-menu .dropdown-item:hover {
    background: #f3f4f6;
}
.flag-dropdown .dropdown-menu .dropdown-item.active {
    background: var(--dc-primary) !important;
    color: #fff !important;
}

/* --- Swap Button --- */
.form-item:has(.dc-swap-btn) {
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    flex-shrink: 0 !important;
}
@media (max-width: 991.98px) {
    .banner-form .form-info {
        flex-wrap: wrap;
    }
    .banner-form .form-info > .form-item {
        flex: 1 1 calc(50% - 1px);
        min-width: 140px;
        border-right: none !important;
        border-bottom: 1px solid #e5e7eb;
    }
    .banner-form .form-info > .form-item:last-child {
        border-bottom: none;
    }
    .form-item:has(.dc-swap-btn) {
        max-width: none !important;
        min-width: auto !important;
        width: 100% !important;
        flex: 0 0 100% !important;
        order: -1;
        margin: 0 auto;
        padding: 4px 0 !important;
        border: none !important;
        border-bottom: none !important;
    }
    .form-item:has(.dc-swap-btn) .dc-swap-btn {
        transform: rotate(90deg);
        width: 28px !important;
        height: 28px !important;
    }
    /* Arama formu d-lg-flex → dikey */
    .banner-form .d-lg-flex {
        flex-direction: column;
    }
    .banner-form .search-btn {
        width: 100%;
        margin: 12px 0 0 0 !important;
    }
    /* Sidebar mobilde altında */
    .theiaStickySidebar .card.sticky-top {
        position: static !important;
    }
    /* Rezervasyon detay sidebar */
    .order-details.guide-booking-card {
        margin-top: 16px;
    }
}
@media (max-width: 767.98px) {
    .hero-sec-eight { min-height: auto; padding: 80px 0 30px !important; }
    /* Arama form-item'ları full-width */
    .banner-form .form-info > .form-item {
        flex: 1 1 100% !important;
    }
    /* Koltuk haritası compact */
    .dc-cabin { max-width: 100% !important; overflow-x: auto; }
    .dc-seat { width: 28px; height: 28px; font-size: 10px; }
    .dc-aisle { width: 10px; }
    /* Timeline wrap */
    .dc-flight-card .d-flex.flex-wrap > div {
        border-right: none !important;
    }
}

/* Extra-small devices (phones ≤ 575px) */
@media (max-width: 575.98px) {
    /* Uçuş kartları — kolonları dik sırala */
    .dc-flight-card .d-flex.flex-wrap > div {
        width: auto !important;
        min-width: auto !important;
        margin-bottom: 6px;
        text-align: left !important;
    }

    /* SearchResults inline width'leri override */
    [style*="width:20%"],
    [style*="width:15%"],
    [style*="width:22%"],
    [style*="width:28%"] {
        width: 100% !important;
    }

    /* BrandedFare kartları — min-width kaldır */
    .dc-fare-card {
        min-width: auto !important;
        max-width: 100% !important;
        width: 100% !important;
    }

    /* Wizard step bağlantıları — dikey */
    .wizard-container .steps {
        flex-direction: column !important;
        align-items: flex-start !important;
        gap: 8px !important;
    }
    .wizard-container .steps .step {
        width: 100%;
    }

    /* Uçuş path timeline — wrap */
    .d-flex.align-items-center.justify-content-between.gap-4 {
        flex-direction: column;
        gap: 12px !important;
        text-align: center;
    }

    /* Rezervasyon timeline — dikey */
    .card-body > .d-flex.flex-wrap.gap-2:has(.bg-success-subtle) {
        flex-direction: column;
    }
    .card-body > .d-flex.flex-wrap.gap-2:has(.bg-success-subtle) > .d-flex.align-items-center:has(.isax-arrow-right-3) {
        display: none !important;
    }

    /* QR code responsive */
    img[alt="QR Code"], img[alt="QR"], img[alt="E-Ticket QR"], img[alt="E-Ticket"] {
        width: 80px !important;
        height: 80px !important;
    }

    /* Sticky sidebar — mobilde static */
    .sticky-top {
        position: static !important;
    }

    /* PNR büyük metin — küçült */
    [style*="font-size:3rem"] {
        font-size: 1.8rem !important;
        letter-spacing: 4px !important;
    }

    /* Dropdown menü — tam genişlik */
    .dropdown-menu.dropdown-xl {
        width: calc(100vw - 32px) !important;
        max-width: none !important;
    }

    /* Offer expiry alert — compact */
    #offerExpiryAlert {
        font-size: 13px;
    }

    /* Koltuk seçimi — daha küçük */
    .dc-seat { width: 24px !important; height: 24px !important; font-size: 9px !important; }
    .dc-row-num { width: 20px; font-size: 10px; }
}

/* --- Navbar Readability Fix --- */
nav.navbar.bg-dark ul.nav > li > a,
nav.validnavs.bg-dark ul.nav > li > a {
    color: #fff !important;
    text-shadow: 0 1px 3px rgba(0,0,0,0.3);
}
nav.navbar.bg-dark ul.nav > li > a:hover {
    color: var(--dc-primary) !important;
}

/* --- Accessibility (WCAG 2.1) --- */

/* Skip to content link — visible only on focus */
.skip-to-content {
    position: absolute;
    top: -100%;
    left: 16px;
    z-index: 9999;
    background: var(--dc-primary);
    color: #fff;
    padding: 12px 24px;
    border-radius: var(--dc-radius-md);
    font-weight: 600;
    text-decoration: none;
    transition: top 0.2s ease;
}
.skip-to-content:focus {
    top: 12px;
    color: #fff;
    outline: 3px solid var(--dc-primary-dark);
    outline-offset: 2px;
}

/* Focus indicators for keyboard navigation (WCAG 2.4.7) */
/* Fallback for browsers without :focus-visible support */
a:focus,
button:focus,
input:focus,
select:focus,
textarea:focus,
[tabindex]:focus {
    outline: 3px solid var(--dc-primary);
    outline-offset: 2px;
}

/* Enhanced: use :focus-visible where supported (hides outline for mouse clicks) */
@supports selector(:focus-visible) {
    a:focus:not(:focus-visible),
    button:focus:not(:focus-visible) {
        outline: none;
    }
    a:focus-visible,
    button:focus-visible,
    input:focus-visible,
    select:focus-visible,
    textarea:focus-visible,
    [tabindex]:focus-visible {
        outline: 3px solid var(--dc-primary);
        outline-offset: 2px;
    }
}

/* Offcanvas close button — reset native button styles */
button.offcanvas-close {
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    font-size: 1.2rem;
    color: inherit;
}

/* Hamburger menu button — reset native button styles */
button.sidebar-menu {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    color: inherit;
}

/* --- Responsive Utilities --- */
@media (max-width: 767.98px) {
    .dc-hero { min-height: 350px; }
    .dc-hero h1 { font-size: 28px; }
    .dc-search-form { border-radius: var(--dc-radius-md); }
}

/* --- Featured Hotels Card — uniform height + overflow gizle ---
   Provider'dan gelen image natural boyutu farklı olabilir; fixed height + object-fit
   cover ile tüm kartlar aynı yükseklikte, taşan kısımlar kırpılır. */
.trending-list .trending-list-item .place-img {
    height: 220px;
}
.trending-list .trending-list-item .place-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
@media (max-width: 575.98px) {
    .trending-list .trending-list-item .place-img { height: 200px; }
}

/* --- Destination Cards --- */
.dc-dest-card {
    display: block;
    position: relative;
    border-radius: 16px;
    overflow: hidden;
    height: 240px;
    text-decoration: none;
    transition: transform .25s ease, box-shadow .25s ease;
    box-shadow: 0 4px 14px rgba(0, 0, 0, .08);
}
.dc-dest-card img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform .5s ease;
}
.dc-dest-card::after {
    content: "";
    position: absolute;
    inset: 0;
    background: linear-gradient(180deg, transparent 40%, rgba(0,0,0,.55) 78%, rgba(0,0,0,.78) 100%);
    pointer-events: none;
}
.dc-dest-card:hover { transform: translateY(-6px); box-shadow: 0 14px 32px rgba(0,0,0,.18); }
.dc-dest-card:hover img { transform: scale(1.08); }
.dc-dest-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 14px 18px;
    font-size: 1.15rem;
    font-weight: 700;
    color: #fff;
    z-index: 2;
    letter-spacing: 0.2px;
    text-shadow: 0 1px 6px rgba(0,0,0,0.35);
}
@media (max-width: 575.98px) {
    .dc-dest-card { height: 180px; border-radius: 14px; }
    .dc-dest-name { font-size: 1rem; padding: 12px 14px; }
}

/* --- Section Spacing Reduction (modüller arası boşluk azaltma) --- */
.section { padding: 40px 0 !important; }
@media (max-width: 991.98px) { .section { padding: 30px 0 !important; } }
.section.pb-0 { padding-bottom: 0 !important; }
@media (min-width: 992px) {
    .section.dc-search-section { padding: 8px 0 !important; }
    .section.dc-search-sticky { padding: 8px 0 !important; box-shadow: 0 2px 12px rgba(0,0,0,0.06); border-bottom: 1px solid #e9ecef; }
}
.section-header-eight { margin-bottom: 20px; }
.section-header-eight h2 { margin-bottom: 0; }
