/* Luxury Experiences Frontend Styles - STRICT MOBILE-FIRST DESIGN */
/* Mobile styles are the DEFAULT, desktop styles are added with media queries */
/* NO fixed widths, NO horizontal scroll, NO desktop-first code */

/* CSS Variables */
:root {
    --primary: #3b82f6;
    --primary-dark: #2563eb;
    --secondary: #8b5cf6;
    --success: #10b981;
    --success-dark: #059669;
    --warning: #f59e0b;
    --danger: #ef4444;
    --dark: #1e293b;
    --gray: #64748b;
    --light-gray: #f1f5f9;
    --border: #e2e8f0;
    --white: #ffffff;
    --gradient-primary: linear-gradient(135deg, #3b82f6, #8b5cf6);
    --gradient-success: linear-gradient(135deg, #10b981, #059669);
    --shadow: 0 4px 6px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 10px 25px rgba(0, 0, 0, 0.1);
    
    /* Additional variables for consistency */
    --background: #ffffff;
    --foreground: #1e293b;
    --card: #ffffff;
    --card-foreground: #1e293b;
    --popover: #ffffff;
    --popover-foreground: #1e293b;
    --muted: #f1f5f9;
    --muted-foreground: #64748b;
    --accent: #f1f5f9;
    --accent-foreground: #1e293b;
    --destructive: #ef4444;
    --destructive-foreground: #ffffff;
    --input: #ffffff;
    --ring: #3b82f6;
    --success-foreground: #ffffff;
    --warning-foreground: #ffffff;
    
    /* Shadow variables */
    --shadow-soft: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-hover: 0 20px 40px rgba(59, 130, 246, 0.15);
}

/* Global Mobile-First Overrides */
html, body {
    overflow-x: hidden; /* Prevent horizontal scroll globally */
    width: 100%;
    max-width: 100%;
}

/* Base Styles - MOBILE FIRST */
* {
    box-sizing: border-box;
    max-width: 100%;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--white);
    margin: 0;
    padding: 0;
    width: 100%;
    max-width: 100%;
    overflow-x: hidden;
}

/* Container - MOBILE FIRST */
.luxury-container {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0 0.75rem; /* Mobile: smaller padding */
    overflow-x: hidden;
}

/* Typography - MOBILE FIRST */
h1, h2, h3, h4, h5, h6 {
    margin: 0 0 1rem 0;
    font-weight: 600;
    line-height: 1.3;
    width: 100%;
    max-width: 100%;
}

h1 { font-size: 1.75rem; } /* Mobile: smaller font */
h2 { font-size: 1.5rem; }
h3 { font-size: 1.25rem; }
h4 { font-size: 1.125rem; }
h5 { font-size: 1rem; }
h6 { font-size: 0.875rem; }

p {
    margin: 0 0 1rem 0;
    color: var(--gray);
    width: 100%;
    max-width: 100%;
}

/* Buttons - MOBILE FIRST */
.luxury-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1rem; /* Mobile: full width padding */
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 16px; /* Prevent zoom on iOS */
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 48px; /* Touch target */
    white-space: nowrap;
    width: 100%; /* Mobile: full width */
    max-width: 100%;
    box-sizing: border-box;
}

.luxury-btn-primary {
    background: var(--gradient-primary);
    color: var(--white);
}

.luxury-btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-hover);
}

.luxury-btn-success {
    background: var(--gradient-success);
    color: var(--white);
}

.luxury-btn-success:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-hover);
}

.luxury-btn-outline {
    background: transparent;
    border: 2px solid var(--primary);
    color: var(--primary);
}

.luxury-btn-outline:hover {
    background: var(--primary);
    color: var(--white);
}

/* Forms - MOBILE FIRST */
.luxury-form {
    width: 100%;
    max-width: 100%;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.luxury-form-group {
    width: 100%;
    max-width: 100%;
    margin-bottom: 1rem;
}

.luxury-form-label {
    display: block;
    font-weight: 500;
    margin-bottom: 0.5rem;
    color: var(--dark);
    width: 100%;
}

.luxury-form-input {
    width: 100%;
    max-width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 16px; /* Prevent zoom on iOS */
    background: var(--white);
    color: var(--dark);
    min-height: 48px; /* Touch target */
    box-sizing: border-box;
}

.luxury-form-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

.luxury-form-select {
    width: 100%;
    max-width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 16px;
    background: var(--white);
    color: var(--dark);
    min-height: 48px;
    box-sizing: border-box;
    cursor: pointer;
}

.luxury-form-textarea {
    width: 100%;
    max-width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 16px;
    background: var(--white);
    color: var(--dark);
    min-height: 120px;
    resize: vertical;
    box-sizing: border-box;
    font-family: inherit;
}

/* Grid System - MOBILE FIRST */
.luxury-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: 1fr; /* Mobile: single column */
    width: 100%;
    max-width: 100%;
}

/* Cards - MOBILE FIRST */
.luxury-card {
    background: var(--white);
    border: 1px solid var(--border);
    border-radius: 0.75rem;
    padding: 1rem; /* Mobile: smaller padding */
    box-shadow: var(--shadow);
    transition: all 0.2s ease;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
}

.luxury-card:hover {
    transform: translateY(-2px);
    box-shadow: var(--shadow-hover);
}

/* Tables - MOBILE FIRST */
.luxury-table-wrapper {
    overflow-x: auto;
    border-radius: 0.5rem;
    border: 1px solid var(--border);
    margin-bottom: 1rem;
    width: 100%;
    max-width: 100%;
}

.luxury-table {
    width: 100%;
    min-width: 100%; /* Changed from fixed width to prevent horizontal scroll */
    border-collapse: collapse;
    max-width: 100%;
}

.luxury-table th,
.luxury-table td {
    padding: 0.75rem;
    text-align: left;
    border-bottom: 1px solid var(--border);
    word-wrap: break-word;
    max-width: 200px; /* Prevent cells from becoming too wide */
}

.luxury-table th {
    background: var(--light-gray);
    font-weight: 600;
    color: var(--dark);
}

.luxury-table td {
    background: var(--white);
}

/* Navigation - MOBILE FIRST */
.luxury-nav {
    width: 100%;
    max-width: 100%;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 0.75rem 0;
    overflow-x: hidden;
}

.luxury-nav-container {
    width: 100%;
    max-width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 0.75rem;
}

.luxury-nav-logo {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--primary);
    text-decoration: none;
}

.luxury-nav-menu {
    display: none; /* Mobile: hidden by default */
    width: 100%;
    max-width: 100%;
}

.luxury-nav-menu.active {
    display: block;
}

.luxury-nav-toggle {
    display: block; /* Mobile: visible by default */
    background: none;
    border: none;
    font-size: 1.5rem;
    color: var(--dark);
    cursor: pointer;
    padding: 0.5rem;
    min-height: 44px;
    min-width: 44px;
}

/* Search - MOBILE FIRST */
.luxury-search {
    width: 100%;
    max-width: 100%;
    margin-bottom: 1rem;
}

.luxury-search-input {
    width: 100%;
    max-width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 16px;
    background: var(--white);
    color: var(--dark);
    min-height: 48px;
    box-sizing: border-box;
}

.luxury-search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Alerts - MOBILE FIRST */
.luxury-alert {
    width: 100%;
    max-width: 100%;
    padding: 1rem;
    border-radius: 0.5rem;
    margin-bottom: 1rem;
    border-left: 4px solid;
}

.luxury-alert-success {
    background: rgba(16, 185, 129, 0.1);
    border-color: var(--success);
    color: var(--success-dark);
}

.luxury-alert-error {
    background: rgba(239, 68, 68, 0.1);
    border-color: var(--danger);
    color: var(--danger);
}

.luxury-alert-warning {
    background: rgba(245, 158, 11, 0.1);
    border-color: var(--warning);
    color: var(--warning);
}

.luxury-alert-info {
    background: rgba(59, 130, 246, 0.1);
    border-color: var(--primary);
    color: var(--primary-dark);
}

/* Loading States - MOBILE FIRST */
.luxury-loading {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 2rem;
    color: var(--gray);
    width: 100%;
    max-width: 100%;
}

.luxury-loading-spinner {
    width: 24px;
    height: 24px;
    border: 2px solid var(--border);
    border-top: 2px solid var(--primary);
    border-radius: 50%;
    animation: luxury-spin 1s linear infinite;
    margin-right: 0.75rem;
}

@keyframes luxury-spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Empty States - MOBILE FIRST */
.luxury-empty {
    text-align: center;
    padding: 2rem 1rem;
    color: var(--gray);
    width: 100%;
    max-width: 100%;
}

.luxury-empty-icon {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.5;
}

.luxury-empty-title {
    font-size: 1.125rem;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: var(--dark);
}

.luxury-empty-description {
    font-size: 0.875rem;
    line-height: 1.5;
}

/* ===== DESKTOP ENHANCEMENTS ===== */
/* These styles are ADDED for larger screens */

/* Tablet (768px and up) */
@media (min-width: 768px) {
    .luxury-container {
        padding: 0 1.5rem;
    }
    
    .luxury-grid {
        grid-template-columns: repeat(2, 1fr); /* 2 columns on tablet */
        gap: 1.5rem;
    }
    
    h1 { font-size: 2rem; }
    h2 { font-size: 1.75rem; }
    
    .luxury-card {
        padding: 1.5rem;
    }
    
    .luxury-btn {
        width: auto;
        padding: 0.75rem 1.5rem;
    }
    
    .luxury-nav-menu {
        display: flex;
        align-items: center;
        gap: 1.5rem;
    }
    
    .luxury-nav-toggle {
        display: none;
    }
}

/* Desktop (1024px and up) */
@media (min-width: 1024px) {
    .luxury-container {
        padding: 0 2rem;
    }
    
    .luxury-grid {
        grid-template-columns: repeat(3, 1fr); /* 3 columns on desktop */
        gap: 2rem;
    }
    
    .luxury-card {
        padding: 2rem;
    }
    
    .luxury-btn {
        padding: 1rem 2rem;
        font-size: 18px;
    }
}

/* Large Desktop (1280px and up) */
@media (min-width: 1280px) {
    .luxury-grid {
        grid-template-columns: repeat(4, 1fr); /* 4 columns on large desktop */
        gap: 2.5rem;
    }
    
    .luxury-container {
        padding: 0 2.5rem;
    }
}

/* ===== MOBILE-SPECIFIC IMPROVEMENTS ===== */
@media (max-width: 767px) {
    .luxury-container {
        padding: 0 0.5rem;
    }
    
    .luxury-card {
        padding: 0.75rem;
        margin-bottom: 0.75rem;
    }
    
    .luxury-form-input,
    .luxury-form-select,
    .luxury-form-textarea {
        font-size: 16px; /* Prevent zoom on iOS */
    }
    
    .luxury-btn {
        margin-bottom: 0.75rem;
    }
}

@media (max-width: 480px) {
    .luxury-container {
        padding: 0 0.25rem;
    }
    
    .luxury-card {
        padding: 0.5rem;
        margin-bottom: 0.5rem;
    }
    
    .luxury-form-input,
    .luxury-form-select,
    .luxury-form-textarea {
        padding: 0.75rem;
    }
    
    .luxury-btn {
        padding: 0.75rem;
        font-size: 14px;
    }
}

/* ===== GLOBAL MOBILE-FIRST OVERRIDES ===== */
/* Ensure no element can cause horizontal scroll */

.luxury-* {
    max-width: 100%;
    box-sizing: border-box;
}

.luxury-* img, 
.luxury-* video, 
.luxury-* iframe, 
.luxury-* embed, 
.luxury-* object {
    max-width: 100%;
    height: auto;
}

.luxury-* table {
    max-width: 100%;
    table-layout: fixed;
}

.luxury-* pre, 
.luxury-* code {
    max-width: 100%;
    overflow-x: auto;
    white-space: pre-wrap;
    word-wrap: break-word;
}

/* ===== ADDITIONAL MISSING FRONTEND CLASSES ===== */

/* Luxury search form */
.luxury-search-form {
    width: 100%;
    max-width: 100%;
    margin-bottom: 1rem;
}

.luxury-search-input {
    width: 100%;
    max-width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--border);
    border-radius: 0.5rem;
    font-size: 16px;
    background: var(--input);
    color: var(--foreground);
    min-height: 48px;
    box-sizing: border-box;
}

.luxury-search-input:focus {
    outline: none;
    border-color: var(--primary);
    box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Luxury booking button */
.luxury-booking-button {
    width: 100%;
    max-width: 100%;
    padding: 0.875rem 1rem;
    border: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 16px;
    cursor: pointer;
    transition: all 0.2s ease;
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--gradient-primary);
    color: white;
    margin-bottom: 0.5rem;
    box-sizing: border-box;
}

.luxury-booking-button:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-hover);
}

/* Luxury checkout form */
.luxury-checkout-form {
    width: 100%;
    max-width: 100%;
    margin-bottom: 1rem;
}

/* Guest counter classes */
.guest-counter {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 1rem;
    width: 100%;
    max-width: 100%;
}

.guest-minus,
.guest-plus {
    width: 44px;
    height: 44px;
    border: 1px solid var(--border);
    background: var(--white);
    color: var(--foreground);
    border-radius: 0.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.25rem;
    font-weight: 600;
    transition: all 0.2s ease;
    min-height: 44px;
    min-width: 44px;
}

.guest-minus:hover,
.guest-plus:hover {
    background: var(--primary);
    color: var(--white);
    border-color: var(--primary);
}

.guest-count {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--foreground);
    min-width: 3rem;
    text-align: center;
}

/* Luxury button primary */
.luxury-button-primary {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0.875rem 1.5rem;
    background: var(--gradient-primary);
    color: var(--white);
    text-decoration: none;
    border-radius: 0.5rem;
    font-weight: 600;
    font-size: 16px;
    transition: all 0.2s ease;
    min-height: 48px;
    border: none;
    cursor: pointer;
    width: 100%;
    max-width: 100%;
}

.luxury-button-primary:hover {
    transform: translateY(-1px);
    box-shadow: var(--shadow-hover);
    text-decoration: none;
    color: var(--white);
}

/* ===== MOBILE-FIRST BASE STYLES ===== */