/* 
   StayHome - Global Styles 
   Variables, Resets, Typography, Layout
*/

:root {
    /* Color Palette - Deep Blue Ocean */
    --primary-blue: #0077B6;
    --primary-dark: #03045E;
    --primary-light: #90E0EF;
    --accent-cyan: #00B4D8;
    --accent-gold: #CAF0F8;
    --bg-body: #CAF0F8;

    /* Gradients */
    --grad-header: linear-gradient(135deg, rgba(202, 240, 248, 0.95), rgba(173, 232, 244, 0.9));
    --grad-weather: linear-gradient(135deg, #0077B6 0%, #00B4D8 100%);
    --grad-card-overlay: linear-gradient(to top, rgba(3, 4, 94, 0.8), transparent);

    --bg-card: rgba(255, 255, 255, 0.75);
    --text-main: #03045E;
    --text-muted: #023E8A;
    --text-white: #FFFFFF;

    /* Layout & Spacing */
    --container-width: 1600px;
    --header-height: 70px;
    --card-radius: 28px;
    --gap-md: 20px;

    /* Effects */
    --shadow-soft: 0 10px 40px -10px rgba(43, 149, 225, 0.15);
    --shadow-hover: 0 20px 50px -12px rgba(43, 149, 225, 0.25);
    --border-glass: 1px solid rgba(255, 255, 255, 0.6);
    --backdrop-blur: blur(20px);
    --transition: all 0.4s cubic-bezier(0.25, 0.8, 0.25, 1);

    /* Fonts */
    --font-heading: 'Outfit', sans-serif;
    --font-body: 'Inter', sans-serif;
}

/* --- 1. Reset & Global --- */
*,
*::before,
*::after {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

body {
    font-family: var(--font-body);
    background-color: var(--bg-body);
    background-image:
        radial-gradient(at 0% 0%, rgba(144, 224, 239, 1) 0, transparent 50%),
        radial-gradient(at 100% 0%, rgba(173, 232, 244, 1) 0, transparent 50%),
        radial-gradient(at 100% 100%, rgba(72, 202, 228, 1) 0, transparent 50%),
        radial-gradient(at 0% 100%, rgba(202, 240, 248, 1) 0, transparent 50%);
    color: var(--text-main);
    line-height: 1.5;

    /* Single Screen Lock */
    height: 100vh;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

h1,
h2,
h3,
h4,
h5 {
    font-family: var(--font-heading);
    color: var(--primary-dark);
    font-weight: 700;
    letter-spacing: -0.5px;
}

/* --- 2. App Container --- */
.premium-layout {
    max-width: var(--container-width);
    margin: 0 auto;
    padding: 0 25px 25px 25px;
    width: 100%;
    height: 100%;
    /* Fill flex parent */
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

/* Animations */
@keyframes fadeInDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in {
    animation: fadeIn 0.8s ease-out forwards;
}

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Common Inner Page Header */
.section-header {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 30px;
    margin-top: 20px;
}

.back-btn {
    background: white;
    border: none;
    padding: 14px 28px;
    /* Increased Touch Target */
    border-radius: 50px;
    font-weight: 700;
    color: var(--primary-blue);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    transition: var(--transition);
}

.back-btn:hover {
    transform: translateX(-5px);
    box-shadow: var(--shadow-hover);
    background: var(--primary-dark);
    color: white;
}

.section-header h1 {
    color: var(--text-dark);
    font-size: 32px;
    font-weight: 800;
}

/* General Action Buttons */
.action-btn {
    display: inline-block;
    padding: 12px 24px;
    border-radius: 12px;
    background: var(--bg-body);
    color: var(--primary-dark);
    font-weight: 700;
    text-decoration: none;
    transition: var(--transition);
    text-align: center;
    border: none;
    cursor: pointer;
}

.action-btn.primary {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-cyan));
    color: white;
    box-shadow: 0 5px 15px rgba(0, 119, 182, 0.3);
}

.action-btn:hover {
    opacity: 0.9;
    transform: translateY(-2px);
}

/* --- Shared Navigation & Filter Elements --- */

/* Glass Filter Tabs */
.glass-tabs-container {
    display: flex;
    gap: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    overflow-x: auto;
    -ms-overflow-style: none;
    /* IE and Edge */
    scrollbar-width: none;
    /* Firefox */
}

.glass-tabs-container::-webkit-scrollbar {
    display: none;
}

.glass-tab-btn {
    padding: 14px 28px;
    /* Increased Height for Kiosks Touch */
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.8);
    border-radius: 50px;
    font-weight: 600;
    color: var(--text-muted);
    cursor: pointer;
    transition: var(--transition);
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.02);
    white-space: nowrap;
}

.glass-tab-btn:hover {
    background: rgba(255, 255, 255, 0.8);
    transform: translateY(-2px);
}

.glass-tab-btn.active {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-cyan));
    color: white;
    border-color: transparent;
    box-shadow: 0 5px 15px rgba(0, 119, 182, 0.3);
}

/* Pagination System */
.luxury-pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 10px;
    padding: 8px 15px;
    /* Thinner padding for header context */
    background: rgba(255, 255, 255, 0.7);
    backdrop-filter: blur(15px);
    border: 1px solid rgba(255, 255, 255, 0.9);
    border-radius: 50px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

.page-btn {
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    border: none;
    background: transparent;
    color: var(--primary-dark);
    font-weight: 700;
    font-size: 1rem;
    cursor: pointer;
    transition: var(--transition);
}

/* iPad 11-inch Landscape (1194x834) Kiosk Optimization */
@media screen and (min-width: 1025px) and (max-height: 850px) {
    body {
        font-size: 15px;
        /* Slight scaling for tight height */
    }

    .premium-layout {
        padding-bottom: 10px;
        /* Reduced to leave room for pagination */
    }

    .section-header {
        margin-bottom: 8px;
        /* Tighter header */
        margin-top: 5px;
    }

    .glass-tabs-container {
        padding-bottom: 8px;
        /* Tighter tabs */
    }

    .luxury-pagination {
        margin-top: 5px;
        /* Pull pagination up to fit inside view */
        padding: 5px 15px;
        /* Thinner pagination bar */
    }

    .page-btn {
        width: 35px;
        height: 35px;
        /* Slightly smaller pagination buttons for vertical space */
    }
}

.page-btn:hover:not(:disabled) {
    background: rgba(0, 119, 182, 0.1);
    color: var(--primary-blue);
}

.page-btn.active {
    background: linear-gradient(135deg, var(--primary-blue), var(--accent-cyan));
    color: white;
    box-shadow: 0 4px 10px rgba(0, 119, 182, 0.3);
}

/* --- Global Badge Variations --- */
.highlight {
    background: linear-gradient(135deg, #FF9F1C, #FFBF69) !important;
    color: white !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
}

.vip {
    background: linear-gradient(135deg, #D4AF37, #FFD700) !important;
    color: #03045E !important;
    border-color: rgba(0, 0, 0, 0.1) !important;
    font-weight: 800 !important;
}

.page-btn:disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Mobile Fallback */
@media (max-width: 1024px) {
    body {
        height: auto;
        overflow: auto;
        display: block;
    }

    .premium-layout {
        height: auto;
        display: block;
        padding-bottom: 40px;
    }

    .premium-header {
        position: sticky;
        top: 10px;
        margin-bottom: 20px;
    }
}

/* --- Shared Modal System (Standardized) --- */
.tour-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(3, 4, 94, 0.6);
    backdrop-filter: blur(15px);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.tour-modal-overlay.active {
    opacity: 1;
    pointer-events: all;
}

.tour-modal-content {
    background: white;
    width: 90%;
    max-width: 480px;
    border-radius: 35px;
    padding: 35px 25px;
    text-align: center;
    position: relative;
    z-index: 10;
    overflow: hidden;
    /* Contain negative margins or large images */
    transform: translateY(40px) scale(0.95);
    transition: all 0.5s cubic-bezier(0.25, 1, 0.3, 1);
    box-shadow: 0 30px 60px rgba(0, 0, 0, 0.3);
}

.tour-modal-overlay.active .tour-modal-content {
    transform: translateY(0) scale(1);
}

.tour-modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 45px;
    height: 45px;
    border-radius: 50%;
    background: var(--bg-body);
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    color: var(--primary-dark);
    cursor: pointer;
    transition: var(--transition);
    z-index: 100;
    /* Ensure button is above modal content */
}

.tour-modal-close:hover {
    background: var(--accent-cyan);
    color: white;
    transform: rotate(90deg);
}

.tour-qr-frame {
    background: #f8fbfd;
    padding: 25px;
    border-radius: 30px;
    display: inline-block;
    border: 2px solid #e1ecf4;
    margin-bottom: 25px;
}

.tour-qr-frame img {
    width: 240px;
    height: 240px;
    display: block;
}

/* --- Google Translate Absolute Removal --- */
#google_translate_element,
.skiptranslate,
.goog-te-banner-frame,
#goog-gt-tt,
.goog-te-balloon-frame,
.goog-tooltip,
.goog-tooltip:hover,
.goog-text-highlight {
    display: none !important;
    visibility: hidden !important;
}

body {
    top: 0px !important;
}

.goog-te-gadget {
    font-family: transparent !important;
    color: transparent !important;
    font-size: 0 !important;
}

.goog-te-gadget .goog-te-combo {
    margin: 0 !important;
    display: none !important;
}

/* Fix for possible iframe injection by Google */
iframe.goog-te-menu-frame,
iframe.goog-te-banner-frame {
    display: none !important;
    opacity: 0 !important;
    visibility: hidden !important;
}