/* app.blade.php içinden taşındı [26.11.2026] */
/* ==========================================
           CSS CUSTOM PROPERTIES (Z-Index System)
           ========================================== */
        :root {
            --z-base: 1;
            --z-sticky: 40;
            /* Header strip: above in-page widgets (e.g. enhanced search z-index ~1000) */
            --z-header: 11000;
            --z-dropdown: 11100;
            /* Mega panel (teleport body): above sticky #main-navigation so it is not painted under the bar; top is still set to nav bottom in JS */
            --z-mega-menu: 11050;
            --z-mobile-menu: 11200;
            /* Giriş / hesap dropdown (header içi absolute); aynı bağlamda diğer header menülerinin üstü */
            --z-popover: 11350;
            --z-overlay: 11400;
            --z-datepicker: 20000;
            --z-modal: 20500;
            --z-gallery: 20600;
            --z-toast: 21000;
            /* Video / sanal tur modalı: header, mega, toast, PhotoSwipe üstü */
            --z-tatilpro-video-modal: 500000;
        }

        /* Alpine.js x-cloak - Hide elements until Alpine is ready */
        [x-cloak] { display: none !important; }

        /* Layout minimum heights */
        .tatilpro-search-card { min-height: 320px; }
        .tatilpro-search-form { min-height: 220px; }

        /* Flatpickr placeholder day fix */
        .flatpickr-calendar .flatpickr-day.hidden {
            display: inline-block !important;
            visibility: hidden !important;
        }

        /* Mega menu dropdowns until ready */
        .mega-menu-dropdown[x-cloak],
        div[x-show*="openMenu"][x-cloak],
        div[x-show*="activeMenu"][x-cloak] {
            display: none !important;
        }

        /* Datepicker positioning */
        .daterangepicker,
        .flatpickr-calendar {
            z-index: var(--z-datepicker) !important;
        }

        .daterangepicker {
            position: fixed !important;
            top: 50% !important;
            left: 50% !important;
            transform: translate(-50%, -50%) !important;
            margin: 0 !important;
        }
        
        /* Header z-index */
        header.sticky {
            z-index: var(--z-header) !important;
        }
        
        /* Guest dropdown (arama kutusu) — sayfa widget'larının üstü */
        .wcs-guest-dropdown {
            position: fixed !important;
            z-index: var(--z-popover) !important;
        }

        /* Header giriş / hesap menüsü — tüm TatilPro katmanlarının üstü (mega < popover < modal) */
        .tatilpro-header-account-popover {
            z-index: var(--z-popover) !important;
        }
        
        /* Photoswipe gallery overlay */
        .pswp {
            z-index: var(--z-gallery) !important;
        }

        /* Mobile menu layer */
        .tatilpro-mobile-menu-layer {
            z-index: var(--z-mobile-menu) !important;
        }

        /* Desktop mega menu layer */
        .tatilpro-mega-menu-layer {
            z-index: var(--z-mega-menu) !important;
        }

        /* İlan detay video & sanal tur modalı — tüm header / dropdown / widget katmanlarının üstü, responsive */
        /* display: ilan sayfalarında .modal-backdrop(.active), Alpine x-show vb. üst bileşen belirler */
        .tatilpro-video-modal-backdrop {
            position: fixed !important;
            inset: 0 !important;
            z-index: var(--z-tatilpro-video-modal, 500000) !important;
            align-items: center;
            justify-content: center;
            box-sizing: border-box;
            padding: max(0.75rem, env(safe-area-inset-left, 0px))
                max(0.75rem, env(safe-area-inset-right, 0px))
                max(0.75rem, env(safe-area-inset-bottom, 0px));
            padding-top: max(0.75rem, env(safe-area-inset-top, 0px));
            background: rgba(0, 0, 0, 0.92) !important;
            overflow-y: auto;
            -webkit-overflow-scrolling: touch;
        }
        .tatilpro-video-modal-panel.modal-content-wrapper {
            position: relative;
            width: min(100%, 1080px);
            max-width: calc(100vw - 1.5rem);
            max-height: min(calc(100dvh - 1.5rem), calc(100vh - 1.5rem));
            margin: auto;
            display: flex;
            flex-direction: column;
            flex-shrink: 0;
            background: #fff;
            border-radius: 1rem;
            overflow: hidden;
            box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.45);
        }
        .tatilpro-video-modal-panel .modal-header {
            display: flex;
            align-items: center;
            justify-content: space-between;
            padding: 1rem 1.5rem;
            border-bottom: 1px solid #e5e7eb;
            flex-shrink: 0;
        }
        .tatilpro-video-modal-panel .modal-title {
            font-size: 1.25rem;
            font-weight: 700;
            margin: 0;
            line-height: 1.3;
        }
        .tatilpro-video-modal-panel .modal-close-btn {
            padding: 0.5rem;
            border-radius: 0.5rem;
            border: none;
            background: transparent;
            cursor: pointer;
            transition: background-color 0.2s;
        }
        .tatilpro-video-modal-panel .modal-close-btn:hover {
            background: #f3f4f6;
        }
        .tatilpro-video-modal-body.modal-body {
            padding: max(0.75rem, env(safe-area-inset-left, 0px))
                max(0.75rem, env(safe-area-inset-right, 0px))
                max(1rem, env(safe-area-inset-bottom, 0px));
            flex: 1;
            min-height: 0;
            display: flex;
            flex-direction: column;
        }
        .tatilpro-video-modal-frame.modal-video-wrapper {
            position: relative;
            width: 100%;
            max-width: 100%;
            flex: 1 1 auto;
            min-height: 12rem;
            aspect-ratio: 16 / 9;
            max-height: min(72vh, 72dvh);
            background: #0f172a;
            border-radius: 0.5rem;
            overflow: hidden;
        }
        .tatilpro-video-modal-frame.modal-video-wrapper iframe,
        .tatilpro-video-modal-frame.modal-video-wrapper video {
            position: absolute;
            inset: 0;
            width: 100%;
            height: 100%;
            border: 0;
            display: block;
        }
        @media (max-width: 640px) {
            .tatilpro-video-modal-backdrop {
                padding-left: 0;
                padding-right: 0;
                padding-bottom: 0;
                align-items: stretch;
            }
            .tatilpro-video-modal-panel.modal-content-wrapper {
                width: 100%;
                max-width: 100%;
                max-height: 100dvh;
                max-height: 100vh;
                border-radius: 0;
                margin: 0;
            }
            .tatilpro-video-modal-panel .modal-header {
                padding: 0.75rem 1rem;
            }
            .tatilpro-video-modal-panel .modal-title {
                font-size: 1.05rem;
            }
            .tatilpro-video-modal-frame.modal-video-wrapper {
                max-height: none;
                border-radius: 0;
                flex: 0 0 auto;
            }
        }

        /* Listing button hover fix - Primary blue buttons */
        .hotel-card a.bg-blue-600:hover, .hotel-card button.bg-blue-600:hover,
        .villa-card a.bg-blue-600:hover, .villa-card button.bg-blue-600:hover,
        .bungalow-card a.bg-blue-600:hover, .bungalow-card button.bg-blue-600:hover,
        .tour-card a.bg-blue-600:hover, .tour-card button.bg-blue-600:hover,
        .item-loop a.bg-blue-600:hover, .item-loop button.bg-blue-600:hover,
        .item-loop-list a.bg-blue-600:hover, .item-loop-list button.bg-blue-600:hover,
        .modern-property-card a.bg-blue-600:hover, .modern-property-card button.bg-blue-600:hover {
            color: #fff !important;
            text-decoration: none !important;
        }

        .hotel-card a.bg-blue-600:hover *, .villa-card a.bg-blue-600:hover *, .bungalow-card a.bg-blue-600:hover *, 
        .tour-card a.bg-blue-600:hover *, .item-loop a.bg-blue-600:hover *, .item-loop-list a.bg-blue-600:hover *, 
        .modern-property-card a.bg-blue-600:hover * {
            color: #fff !important;
        }

        @media (max-width: 767px) {
            .tatilpro-search-card { min-height: 260px; }
            .tatilpro-search-form { min-height: 200px; }
        }
