/*
 * Landing Page Visual Enhancement
 * Professional, Clean, and Visually Consistent Design
 * Version: 1.0
 */

/* ============================================
   ENHANCED COLOR SYSTEM - LUXURY RESORT
   ============================================ */
:root {
    /* Primary Brand Colors - Sophisticated & Elegant */
    --landing-primary: #1e3a5f;        /* Deep Navy - Elegant & Calm */
    --landing-primary-light: #2c5282;  /* Soft Navy - Refined */
    --landing-primary-dark: #162a42;   /* Rich Navy - Luxurious */
    --landing-accent: #c9a961;         /* Champagne Gold - Sophisticated */
    --landing-accent-light: #d4b574;   /* Soft Gold - Warm */
    --landing-accent-dark: #b8973d;    /* Rich Gold - Elegant */
    
    /* Background Colors - Soft & Luxurious */
    --landing-bg-primary: #ffffff;
    --landing-bg-secondary: #f8f9fb;      /* Soft Gray - Subtle */
    --landing-bg-tertiary: #f0f2f5;       /* Light Gray - Elegant */
    --landing-bg-dark: #1e3a5f;           /* Deep Navy */
    
    /* Text Colors */
    --landing-text-primary: #1a2332;      /* Rich Black */
    --landing-text-secondary: #4a5568;    /* Medium Gray */
    --landing-text-muted: #8896a8;        /* Soft Gray */
    --landing-text-light: #ffffff;
    
    /* Border & Divider Colors */
    --landing-border: #e8eaed;            /* Soft Border */
    --landing-border-light: #f3f4f6;      /* Very Light Border */
    
    /* Shadows - Subtle & Refined */
    --landing-shadow-sm: 0 2px 8px rgba(30, 58, 95, 0.06);
    --landing-shadow-md: 0 4px 16px rgba(30, 58, 95, 0.08);
    --landing-shadow-lg: 0 8px 32px rgba(30, 58, 95, 0.12);
    --landing-shadow-xl: 0 16px 48px rgba(30, 58, 95, 0.15);
    
    /* Spacing Scale */
    --landing-space-xs: 0.5rem;   /* 8px */
    --landing-space-sm: 1rem;     /* 16px */
    --landing-space-md: 1.5rem;   /* 24px */
    --landing-space-lg: 2rem;     /* 32px */
    --landing-space-xl: 3rem;     /* 48px */
    --landing-space-2xl: 4rem;    /* 64px */
    --landing-space-3xl: 6rem;    /* 96px */
    
    /* Border Radius */
    --landing-radius-sm: 8px;
    --landing-radius-md: 12px;
    --landing-radius-lg: 16px;
    --landing-radius-xl: 24px;
}

/* ============================================
   PAGE STRUCTURE
   ============================================ */
.gp-page {
    background: var(--landing-bg-primary);
    min-height: 100vh;
}

/* ============================================
   HERO SECTION - ENHANCED
   ============================================ */
.gp-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 50%, #1e3a5f 100%);
    color: var(--landing-text-light);
    overflow: hidden;
    padding: var(--landing-space-2xl) var(--landing-space-md);
}

.gp-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 20% 50%, rgba(201, 169, 97, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 80%, rgba(212, 181, 116, 0.06) 0%, transparent 50%),
        radial-gradient(circle at 50% 20%, rgba(255, 255, 255, 0.03) 0%, transparent 40%);
    pointer-events: none;
}

.gp-hero-icons {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    overflow: hidden;
    opacity: 0.15;
}

.gp-hero-icon {
    position: absolute;
    font-size: 3rem;
    color: var(--landing-accent-light);
}

.gp-hero-icon--1 { top: 10%; left: 10%; }
.gp-hero-icon--2 { top: 20%; right: 15%; }
.gp-hero-icon--3 { top: 60%; left: 5%; }
.gp-hero-icon--4 { bottom: 20%; right: 10%; }
.gp-hero-icon--5 { top: 40%; right: 25%; }
.gp-hero-icon--6 { bottom: 30%; left: 20%; }

.gp-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    max-width: 800px;
    margin: 0 auto;
}

.gp-logo {
    max-width: 200px;
    margin: 0 auto var(--landing-space-lg);
    filter: drop-shadow(0 4px 12px rgba(0, 0, 0, 0.2));
}

.gp-logo img {
    width: 100%;
    height: auto;
    display: block;
}

.gp-brand-line {
    font-size: 1.25rem;
    font-weight: 600;
    color: var(--landing-accent-light);
    margin-bottom: var(--landing-space-sm);
    letter-spacing: 1px;
    text-transform: uppercase;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.gp-greeting {
    font-size: 1.125rem;
    color: rgba(255, 255, 255, 0.95);
    margin-bottom: var(--landing-space-xs);
    font-weight: 500;
}

.gp-property-name {
    font-size: 2.5rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    color: var(--landing-text-light);
    text-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

@media (max-width: 768px) {
    .gp-property-name {
        font-size: 2rem;
    }
    .gp-brand-line {
        font-size: 1rem;
    }
}

/* ============================================
   FEATURED CARD SLIDER
   ============================================ */
.gp-featured {
    margin-top: -2.5rem;
    padding: 0 var(--landing-space-md);
    position: relative;
    z-index: 10;
}

.gp-carousel-card {
    max-width: 448px;
    margin: 0 auto;
    border-radius: var(--landing-radius-lg);
    overflow: hidden;
    background: var(--landing-bg-primary);
    box-shadow: 0 25px 50px -12px rgba(30, 58, 95, 0.25);
}

.gp-carousel-card-inner {
    position: relative;
    aspect-ratio: 4 / 5;
}

.gp-carousel-card-slide {
    position: absolute;
    inset: 0;
    opacity: 0;
    transition: opacity 0.7s ease;
    pointer-events: none;
}

.gp-carousel-card-slide--active {
    opacity: 1;
    pointer-events: auto;
}

.gp-card-image-wrap {
    position: absolute;
    inset: 0;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

.gp-card-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gp-card-gradient {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to top,
        rgba(22, 42, 66, 0.95) 0%,
        rgba(22, 42, 66, 0.4) 40%,
        transparent 100%
    );
}

.gp-card-badge {
    position: absolute;
    left: 1.25rem;
    top: 1.25rem;
    padding: 0.25rem 0.625rem;
    border: 1px solid rgba(201, 169, 97, 0.6);
    background: rgba(22, 42, 66, 0.6);
    -webkit-backdrop-filter: blur(8px);
    backdrop-filter: blur(8px);
    color: var(--landing-accent-light);
    font-size: 0.625rem;
    letter-spacing: 2px;
    text-transform: uppercase;
    border-radius: 4px;
    z-index: 2;
}

.gp-card-info {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 1.5rem;
    color: #fff;
    z-index: 2;
}

.gp-card-title {
    font-size: 1.875rem;
    font-weight: 700;
    line-height: 1.2;
    margin: 0;
    color: #fff;
}

.gp-card-desc {
    margin-top: 0.5rem;
    max-width: 20rem;
    font-size: 0.875rem;
    color: rgba(255, 255, 255, 0.75);
    line-height: 1.5;
}

.gp-card-meta {
    display: flex;
    align-items: center;
    gap: 1.25rem;
    margin-top: 1rem;
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.7);
}

.gp-card-meta span {
    display: flex;
    align-items: center;
    gap: 0.375rem;
}

.gp-card-meta i {
    color: var(--landing-accent-light);
    font-size: 0.875rem;
}

.gp-card-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 1rem;
    margin-top: 1.25rem;
}

.gp-card-pricing {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.gp-card-price-old {
    font-size: 0.75rem;
    text-decoration: line-through;
    color: rgba(255, 255, 255, 0.4);
}

.gp-card-price-new {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--landing-accent-light);
}

.gp-card-price-note {
    font-size: 0.75rem;
    color: rgba(255, 255, 255, 0.5);
}

.gp-card-cta {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.25rem;
    background: linear-gradient(135deg, var(--landing-accent) 0%, var(--landing-accent-light) 100%);
    color: var(--landing-primary-dark);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 9999px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: var(--landing-shadow-md);
    text-decoration: none;
}

.gp-card-cta:hover {
    transform: scale(1.02);
    box-shadow: var(--landing-shadow-lg);
    color: var(--landing-primary-dark);
}

.gp-card-nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-top: 1px solid var(--landing-border);
    padding: 0.75rem 1rem;
    background: var(--landing-bg-primary);
}

.gp-card-nav-btn {
    display: grid;
    place-items: center;
    width: 2.25rem;
    height: 2.25rem;
    border-radius: 50%;
    border: 1px solid var(--landing-border);
    background: transparent;
    color: var(--landing-primary-light);
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 0.875rem;
}

.gp-card-nav-btn:hover {
    border-color: var(--landing-accent);
    color: var(--landing-accent);
}

.gp-card-dots {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.gp-card-dot {
    height: 0.25rem;
    width: 0.5rem;
    border-radius: 9999px;
    background: var(--landing-border);
    border: none;
    cursor: pointer;
    transition: all 0.3s ease;
    padding: 0;
}

.gp-card-dot--active {
    width: 2rem;
    background: linear-gradient(135deg, var(--landing-accent) 0%, var(--landing-accent-light) 100%);
}

.gp-featured-placeholder {
    max-width: 448px;
    margin: 0 auto;
    text-align: center;
    padding: 3rem 1.5rem;
    color: var(--landing-text-muted);
}

@media (max-width: 768px) {
    .gp-featured {
        margin-top: -1.5rem;
        padding: 0 var(--landing-space-sm);
    }
    .gp-card-title {
        font-size: 1.5rem;
    }
    .gp-card-info {
        padding: 1rem;
    }
    .gp-card-badge {
        left: 1rem;
        top: 1rem;
    }
}

/* ============================================
   FEATURED CAROUSEL - ROOM SWITCH STYLE
   Matches resources/views/livewire/guest/landing.blade.php markup.
   ============================================ */
.gp-featured {
    margin-top: -3rem;
    padding: 0 var(--landing-space-md) var(--landing-space-xl);
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.gp-carousel {
    position: relative;
    width: min(100%, 430px);
    margin: 0 auto;
    overflow: hidden;
    border-radius: 34px;
    background: #f9f7f3;
    box-shadow: 0 24px 56px rgba(15, 43, 49, 0.18);
    padding-bottom: 78px;
}

.gp-carousel-track {
    display: flex;
    width: 100%;
    transition: transform 360ms cubic-bezier(.16, 1, .3, 1);
    will-change: transform;
}

.gp-carousel-slide {
    flex: 0 0 100%;
    width: 100%;
    min-width: 100%;
}

.gp-featured-card {
    height: 100%;
    background: #0f5d69;
}

.gp-featured-image {
    position: relative;
    min-height: 510px;
    height: 100%;
    display: grid;
    align-content: end;
    overflow: hidden;
    background-color: #0f5d69;
    background-size: cover !important;
    background-position: center !important;
    color: #f6f0e5;
}

.gp-featured-bg-image {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    z-index: 0;
}

.gp-featured-overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(180deg, rgba(5, 38, 44, 0.08) 0%, rgba(7, 41, 48, 0.22) 30%, rgba(7, 63, 73, 0.86) 72%, rgba(8, 87, 99, 0.98) 100%),
        linear-gradient(0deg, rgba(8, 76, 88, 0.45), rgba(8, 76, 88, 0.45));
}

.gp-featured-badge {
    position: absolute;
    top: 26px;
    inset-inline-start: 26px;
    z-index: 2;
    width: fit-content;
    max-width: calc(100% - 52px);
    padding: 9px 16px;
    border-radius: 999px;
    border: 1px solid rgba(217, 176, 108, 0.52);
    background: rgba(20, 90, 100, 0.64) !important;
    color: #ead09e;
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.18em;
    line-height: 1.2;
    text-transform: uppercase;
    backdrop-filter: blur(8px);
}

.gp-featured-content {
    position: relative;
    z-index: 2;
    display: grid;
    gap: 14px;
    padding: 26px;
}

.gp-featured-title {
    margin: 138px 0 0;
    color: #fff8ef;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(2.4rem, 2rem + 1vw, 3.35rem);
    font-weight: 600;
    line-height: 0.96;
    letter-spacing: 0;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.18);
}

.gp-featured-subtitle {
    margin: 0;
    max-width: 30ch;
    color: rgba(248, 241, 232, 0.86);
    font-size: 0.95rem;
    line-height: 1.45;
}

.gp-featured-meta {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 18px;
    color: #eadfce;
    font-size: 0.875rem;
}

.gp-featured-meta span,
.gp-featured-meta i {
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.gp-featured-meta i {
    color: #efcc89;
}

.gp-featured-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--landing-space-sm);
    margin-top: 6px;
}

.gp-featured-price {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 4px;
}

.gp-price-original {
    color: rgba(248, 241, 232, 0.45);
    font-size: 0.875rem;
    text-decoration: line-through;
}

.gp-price-amount {
    color: #efcc89;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1;
}

.gp-price-note {
    color: rgba(248, 241, 232, 0.78);
    font-size: 0.78rem;
}

.gp-featured-cta {
    min-width: 148px;
    min-height: 46px;
    padding: 0 22px;
    border: 0;
    border-radius: 999px;
    background: linear-gradient(180deg, #ddb774, #d5aa64);
    color: #1d5059;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    box-shadow: 0 12px 24px rgba(8, 43, 49, 0.18);
    font-size: 0.92rem;
    font-weight: 700;
    text-decoration: none;
    cursor: pointer;
    transition: transform 240ms cubic-bezier(.16, 1, .3, 1), box-shadow 240ms cubic-bezier(.16, 1, .3, 1);
}

.gp-featured-cta:hover,
.gp-featured-cta:focus {
    color: #1d5059;
    transform: translateY(-1px);
    box-shadow: 0 16px 28px rgba(8, 43, 49, 0.22);
}

.gp-featured-cta i {
    font-size: 0.9rem;
}

.gp-carousel-btn {
    position: absolute;
    bottom: 17px;
    z-index: 4;
    width: 44px;
    height: 44px;
    border: 1px solid rgba(23, 74, 85, 0.16);
    border-radius: 50%;
    background: #fbfaf7;
    color: #2b6974;
    display: inline-grid;
    place-items: center;
    box-shadow: 0 12px 32px rgba(15, 43, 49, 0.12);
    cursor: pointer;
    transition: transform 240ms cubic-bezier(.16, 1, .3, 1), border-color 240ms cubic-bezier(.16, 1, .3, 1);
}

.gp-carousel-btn:hover,
.gp-carousel-btn:focus {
    border-color: rgba(217, 176, 108, 0.72);
    transform: translateY(-1px);
}

.gp-carousel-btn--prev {
    inset-inline-start: 20px;
}

.gp-carousel-btn--next {
    inset-inline-end: 20px;
}

.gp-carousel-dots {
    position: relative;
    z-index: 5;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 44px;
    margin-top: -61px;
    pointer-events: auto;
}

.gp-carousel-dot {
    width: 8px;
    height: 6px;
    padding: 0;
    border: 0;
    border-radius: 999px;
    background: rgba(192, 185, 175, 0.75);
    cursor: pointer;
    transition: width 240ms cubic-bezier(.16, 1, .3, 1), background 240ms cubic-bezier(.16, 1, .3, 1);
}

.gp-carousel-dot--active {
    width: 40px;
    background: #d3ae6f;
}

[dir="rtl"] .gp-featured-meta,
[dir="rtl"] .gp-featured-footer,
[dir="rtl"] .gp-featured-price {
    text-align: right;
}

@media (min-width: 769px) {
    .gp-featured {
        margin-top: -4rem;
    }
}

@media (max-width: 420px) {
    .gp-featured {
        padding-inline: 12px;
    }

    .gp-carousel {
        border-radius: 30px;
    }

    .gp-featured-image {
        min-height: 500px;
    }

    .gp-featured-content {
        padding: 22px;
    }

    .gp-featured-title {
        margin-top: 120px;
        font-size: 2.6rem;
    }

    .gp-featured-footer {
        align-items: stretch;
        flex-direction: column;
    }

    .gp-featured-cta {
        width: 100%;
    }
}

/* ============================================
   SUPPORT CENTER - ENHANCED
   ============================================ */
.gp-support {
    background: var(--landing-bg-primary);
    padding: var(--landing-space-xl) var(--landing-space-md);
}

.gp-support-compact {
    max-width: 800px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: var(--landing-space-md);
}

.gp-support-action {
    display: flex;
    align-items: center;
    gap: var(--landing-space-md);
    padding: var(--landing-space-lg);
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    color: white;
    text-decoration: none;
    border-radius: var(--landing-radius-lg);
    font-weight: 600;
    font-size: 1.125rem;
    box-shadow: var(--landing-shadow-md);
    transition: all 0.3s ease;
}

.gp-support-action:hover {
    transform: translateY(-2px);
    box-shadow: var(--landing-shadow-lg);
    background: linear-gradient(135deg, #162a42 0%, #1e3a5f 100%);
    color: white;
}

.gp-support-action i:first-child {
    font-size: 1.5rem;
}

.gp-support-action i:last-child {
    margin-left: auto;
}

.gp-track-form {
    background: var(--landing-bg-secondary);
    padding: var(--landing-space-lg);
    border-radius: var(--landing-radius-lg);
    box-shadow: var(--landing-shadow-sm);
}

.gp-track-input-group {
    display: flex;
    align-items: center;
    gap: var(--landing-space-sm);
    background: white;
    padding: var(--landing-space-sm);
    border-radius: var(--landing-radius-md);
    border: 2px solid var(--landing-border);
    transition: all 0.3s ease;
}

.gp-track-input-group:focus-within {
    border-color: var(--landing-accent);
    box-shadow: 0 0 0 3px rgba(184, 151, 61, 0.1);
}

.gp-track-input-group i {
    color: var(--landing-text-muted);
    font-size: 1.125rem;
}

.gp-track-input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 1rem;
    padding: var(--landing-space-xs);
}

.gp-track-btn {
    width: 40px;
    height: 40px;
    background: var(--landing-primary);
    color: white;
    border: none;
    border-radius: var(--landing-radius-sm);
    cursor: pointer;
    transition: all 0.3s ease;
}

.gp-track-btn:hover {
    background: var(--landing-primary-light);
    transform: scale(1.05);
}

.gp-error {
    display: block;
    color: #dc2626;
    font-size: 0.875rem;
    margin-top: var(--landing-space-xs);
}

/* ============================================
   MENU SECTION - ENHANCED
   ============================================ */
.gp-menu {
    background: var(--landing-bg-primary);
    padding: var(--landing-space-3xl) var(--landing-space-md);
}

.gp-menu-header {
    max-width: 1200px;
    margin: 0 auto var(--landing-space-xl);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gp-menu-title {
    flex: 1;
}

.gp-menu-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--landing-accent);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: var(--landing-space-xs);
}

.gp-menu-heading {
    font-size: 2rem;
    font-weight: 700;
    color: var(--landing-text-primary);
    margin: 0;
}

.gp-menu-viewall {
    display: flex;
    align-items: center;
    gap: var(--landing-space-xs);
    color: var(--landing-accent);
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.gp-menu-viewall:hover {
    gap: var(--landing-space-sm);
    color: var(--landing-accent-dark);
}

/* Category Chips */
.gp-menu-chips {
    max-width: 1200px;
    margin: 0 auto var(--landing-space-xl);
    display: flex;
    gap: var(--landing-space-sm);
    overflow-x: auto;
    padding-bottom: var(--landing-space-sm);
    scrollbar-width: thin;
}

.gp-chip {
    display: inline-flex;
    align-items: center;
    gap: var(--landing-space-xs);
    padding: var(--landing-space-sm) var(--landing-space-lg);
    background: white;
    color: var(--landing-text-secondary);
    border: 2px solid var(--landing-border);
    border-radius: var(--landing-radius-lg);
    font-weight: 600;
    font-size: 0.875rem;
    white-space: nowrap;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gp-chip:hover {
    border-color: var(--landing-accent);
    color: var(--landing-accent);
    transform: translateY(-2px);
    box-shadow: var(--landing-shadow-sm);
}

.gp-chip--active {
    background: var(--landing-accent);
    color: white;
    border-color: var(--landing-accent);
}

.gp-chip--active:hover {
    background: var(--landing-accent-dark);
    border-color: var(--landing-accent-dark);
}

/* Menu Grid */
.gp-menu-grid {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: var(--landing-space-lg);
}

@media (max-width: 768px) {
    .gp-menu-grid {
        grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
        gap: var(--landing-space-md);
    }
}

/* Menu Cards */
.gp-menu-card {
    background: white;
    border-radius: var(--landing-radius-lg);
    overflow: hidden;
    box-shadow: var(--landing-shadow-md);
    transition: all 0.3s ease;
    display: flex;
    flex-direction: column;
}

.gp-menu-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--landing-shadow-xl);
}

.gp-menu-card-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: var(--landing-bg-tertiary);
}

.gp-menu-card-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.gp-menu-card:hover .gp-menu-card-img {
    transform: scale(1.1);
}

.gp-menu-card-ribbon {
    position: absolute;
    top: var(--landing-space-md);
    left: var(--landing-space-md);
    padding: var(--landing-space-xs) var(--landing-space-md);
    background: var(--landing-accent);
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    border-radius: var(--landing-radius-sm);
    text-transform: uppercase;
    z-index: 2;
    box-shadow: var(--landing-shadow-sm);
}

.gp-menu-card-ribbon--new {
    background: #10b981;
}

.gp-menu-card-content {
    padding: var(--landing-space-lg);
    flex: 1;
    display: flex;
    flex-direction: column;
}

.gp-menu-card-title {
    font-size: 1.125rem;
    font-weight: 700;
    color: var(--landing-text-primary);
    margin-bottom: var(--landing-space-sm);
    line-height: 1.4;
}

.gp-menu-card-desc {
    font-size: 0.875rem;
    color: var(--landing-text-secondary);
    margin-bottom: var(--landing-space-md);
    line-height: 1.6;
    flex: 1;
}

.gp-menu-card-price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: var(--landing-space-md);
}

.gp-menu-card-price-group {
    display: flex;
    flex-direction: column;
    gap: var(--landing-space-xs);
}

.gp-menu-card-price {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--landing-accent);
}

.gp-menu-card-price-original {
    font-size: 0.875rem;
    color: var(--landing-text-muted);
    text-decoration: line-through;
}

.gp-menu-card-rating {
    display: flex;
    align-items: center;
    gap: var(--landing-space-xs);
    color: var(--landing-accent);
    font-weight: 600;
}

.gp-menu-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: var(--landing-space-md);
    border-top: 1px solid var(--landing-border-light);
}

.gp-menu-card-meta {
    display: flex;
    align-items: center;
    gap: var(--landing-space-xs);
    font-size: 0.875rem;
    color: var(--landing-text-secondary);
}

.gp-menu-card-status {
    font-size: 0.75rem;
    font-weight: 600;
    padding: var(--landing-space-xs) var(--landing-space-sm);
    border-radius: var(--landing-radius-sm);
}

.gp-status-soldout {
    background: rgba(220, 38, 38, 0.1);
    color: #dc2626;
}

.gp-status-limited {
    background: rgba(245, 158, 11, 0.1);
    color: #f59e0b;
}

.gp-menu-card-btn-order {
    width: 40px;
    height: 40px;
    background: var(--landing-accent);
    color: white;
    border: none;
    border-radius: var(--landing-radius-sm);
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.3s ease;
}

.gp-menu-card-btn-order:hover {
    background: var(--landing-accent-dark);
    transform: scale(1.1);
}

.gp-btn-disabled {
    background: var(--landing-border);
    color: var(--landing-text-muted);
    cursor: not-allowed;
}

.gp-btn-disabled:hover {
    transform: none;
}

/* ============================================
   CONTENT SECTIONS - ENHANCED
   ============================================ */
.gp-section {
    padding: var(--landing-space-3xl) var(--landing-space-md);
    position: relative;
}

.gp-section:nth-child(even) {
    background: var(--landing-bg-secondary);
}

.gp-section:nth-child(odd) {
    background: var(--landing-bg-primary);
}

/* CTA overrides nth-child completely */
.gp-section.gp-cta,
.gp-section.gp-cta:nth-child(even),
.gp-section.gp-cta:nth-child(odd) {
    background: #1e3a5f !important;
    background-image: linear-gradient(135deg, #1e3a5f 0%, #2c5282 50%, #1e3a5f 100%) !important;
}

.gp-section-content {
    max-width: 900px;
    margin: 0 auto;
    position: relative;
    z-index: 1;
}

.gp-section-title {
    font-size: 2rem;
    font-weight: 700;
    color: var(--landing-text-primary);
    margin-bottom: var(--landing-space-md);
    text-align: center;
    position: relative;
    display: inline-block;
    width: 100%;
}

.gp-section-title::after {
    content: '';
    position: absolute;
    bottom: -8px;
    left: 50%;
    transform: translateX(-50%);
    width: 80px;
    height: 4px;
    background: linear-gradient(90deg, var(--landing-primary) 0%, var(--landing-accent) 100%);
    border-radius: 2px;
}

.gp-section-subtitle {
    font-size: 1.125rem;
    color: var(--landing-text-secondary);
    margin-bottom: var(--landing-space-xl);
    text-align: center;
    line-height: 1.6;
}

.gp-section-body {
    font-size: 1rem;
    color: var(--landing-text-secondary);
    line-height: 1.8;
}

.gp-section-body strong {
    color: var(--landing-text-primary);
    font-weight: 600;
}

/* About Section */
.gp-about {
    background: var(--landing-bg-primary);
}

/* Services Section */
.gp-services {
    background: var(--landing-bg-secondary);
}

/* CTA Section - FORCE DARK BACKGROUND */
.gp-cta,
.gp-section.gp-cta,
section.gp-cta {
    background: #1e3a5f !important;
    background-image: linear-gradient(135deg, #1e3a5f 0%, #2c5282 50%, #1e3a5f 100%) !important;
    color: white !important;
    position: relative;
    overflow: hidden;
}

.gp-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: 
        radial-gradient(circle at 30% 50%, rgba(201, 169, 97, 0.12) 0%, transparent 50%),
        radial-gradient(circle at 70% 70%, rgba(255, 255, 255, 0.04) 0%, transparent 40%);
    pointer-events: none;
    z-index: 0;
}

.gp-cta::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.15);
    pointer-events: none;
    z-index: 0;
}

/* CTA Text - Force White & Visible */
.gp-cta .gp-section-content {
    position: relative;
    z-index: 2;
}

.gp-cta .gp-section-title {
    color: #ffffff !important;
    text-shadow: 0 2px 12px rgba(0, 0, 0, 0.5) !important;
    font-weight: 700 !important;
}

.gp-cta .gp-section-title::after {
    background: linear-gradient(90deg, #c9a961 0%, #d4b574 100%) !important;
}

.gp-cta .gp-section-subtitle {
    color: rgba(255, 255, 255, 0.95) !important;
    text-shadow: 0 1px 8px rgba(0, 0, 0, 0.4) !important;
}

.gp-cta .gp-section-body {
    color: rgba(255, 255, 255, 0.9) !important;
    text-shadow: 0 1px 6px rgba(0, 0, 0, 0.3) !important;
}

/* CTA Buttons */
.gp-cta .gp-quick-actions-grid {
    position: relative;
    z-index: 2;
}

.gp-cta .gp-quick-action {
    color: #ffffff !important;
    border: 2px solid rgba(255, 255, 255, 0.35) !important;
    background: rgba(255, 255, 255, 0.18) !important;
}

.gp-cta .gp-quick-action:hover {
    color: #ffffff !important;
    background: rgba(255, 255, 255, 0.28) !important;
    border-color: rgba(255, 255, 255, 0.55) !important;
    transform: translateY(-3px);
}

.gp-cta .gp-quick-action--primary {
    background: #c9a961 !important;
    border-color: #c9a961 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 20px rgba(201, 169, 97, 0.4) !important;
}

.gp-cta .gp-quick-action--primary:hover {
    background: #b8973d !important;
    border-color: #b8973d !important;
    box-shadow: 0 8px 28px rgba(201, 169, 97, 0.5) !important;
}

.gp-cta .gp-quick-action--secondary {
    background: rgba(255, 255, 255, 0.15) !important;
    border-color: rgba(255, 255, 255, 0.4) !important;
    color: #ffffff !important;
}

.gp-cta .gp-quick-action--secondary:hover {
    background: rgba(255, 255, 255, 0.25) !important;
    border-color: rgba(255, 255, 255, 0.6) !important;
}

.gp-quick-actions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--landing-space-md);
    margin-top: var(--landing-space-xl);
}

.gp-quick-action {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--landing-space-sm);
    padding: var(--landing-space-lg);
    background: rgba(255, 255, 255, 0.15);
    backdrop-filter: blur(10px);
    color: white;
    text-decoration: none;
    border-radius: var(--landing-radius-lg);
    font-weight: 600;
    font-size: 1rem;
    transition: all 0.3s ease;
    border: 2px solid rgba(255, 255, 255, 0.3);
}

.gp-quick-action:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-4px);
    box-shadow: var(--landing-shadow-lg);
    color: white;
    border-color: rgba(255, 255, 255, 0.5);
}

.gp-quick-action--primary {
    background: var(--landing-accent);
    border-color: var(--landing-accent);
    box-shadow: 0 4px 16px rgba(201, 169, 97, 0.25);
    color: white;
}

.gp-quick-action--primary:hover {
    background: var(--landing-accent-dark);
    border-color: var(--landing-accent-dark);
    box-shadow: 0 8px 24px rgba(201, 169, 97, 0.35);
    color: white;
}

.gp-quick-action--secondary {
    background: rgba(255, 255, 255, 0.2);
    border-color: rgba(255, 255, 255, 0.4);
    color: white;
}

.gp-quick-action--secondary:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(255, 255, 255, 0.6);
    color: white;
}

/* Contact Section */
.gp-contact {
    background: var(--landing-bg-primary);
}

.gp-contact-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: var(--landing-space-lg);
    margin-top: var(--landing-space-xl);
}

.gp-contact-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: var(--landing-space-xl);
    background: white;
    border-radius: var(--landing-radius-lg);
    box-shadow: var(--landing-shadow-md);
    text-decoration: none;
    color: var(--landing-text-primary);
    transition: all 0.3s ease;
}

.gp-contact-item:hover {
    transform: translateY(-4px);
    box-shadow: var(--landing-shadow-lg);
    color: var(--landing-text-primary);
}

.gp-contact-item i {
    font-size: 2.5rem;
    color: var(--landing-accent);
    margin-bottom: var(--landing-space-md);
    transition: transform 0.3s ease;
}

.gp-contact-item:hover i {
    transform: scale(1.1);
}

.gp-contact-label {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--landing-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--landing-space-xs);
}

.gp-contact-value {
    font-size: 1.125rem;
    font-weight: 600;
    color: var(--landing-text-primary);
}

/* ============================================
   FOOTER - ENHANCED
   ============================================ */
.gp-footer {
    background: linear-gradient(135deg, #162a42 0%, #1e3a5f 100%);
    color: rgba(255, 255, 255, 0.95);
    padding: var(--landing-space-xl) var(--landing-space-md);
    text-align: center;
}

.gp-footer-text {
    margin-bottom: var(--landing-space-md);
    font-size: 0.875rem;
}

.gp-footer-links {
    display: flex;
    justify-content: center;
    gap: var(--landing-space-lg);
}

.gp-footer-links a {
    color: rgba(255, 255, 255, 0.9);
    text-decoration: none;
    font-size: 0.875rem;
    transition: color 0.3s ease;
}

.gp-footer-links a:hover {
    color: var(--landing-accent-light);
}

/* ============================================
   RESPONSIVE DESIGN
   ============================================ */
@media (max-width: 768px) {
    :root {
        --landing-space-xl: 2rem;
        --landing-space-2xl: 3rem;
        --landing-space-3xl: 4rem;
    }
    
    /* Hero Section */
    .gp-hero {
        min-height: 80vh;
        padding: var(--landing-space-xl) var(--landing-space-sm);
    }
    
    .gp-hero-icon {
        font-size: 2rem;
    }
    
    .gp-logo {
        max-width: 150px;
    }
    
    .gp-property-name {
        font-size: 1.5rem;
    }
    
    .gp-brand-line {
        font-size: 0.875rem;
    }
    
    .gp-greeting {
        font-size: 0.875rem;
    }
    
    /* Sections */
    .gp-section {
        padding: var(--landing-space-xl) var(--landing-space-sm);
    }
    
    .gp-section-title {
        font-size: 1.5rem;
    }
    
    .gp-section-subtitle {
        font-size: 0.875rem;
    }
    
    .gp-section-body {
        font-size: 0.875rem;
    }
    
    /* Featured Carousel */
    .gp-featured {
        padding: var(--landing-space-xl) 0;
    }
    
    .gp-featured-image {
        min-height: 300px;
    }
    
    .gp-featured-title {
        font-size: 1.25rem;
    }
    
    .gp-featured-subtitle {
        font-size: 0.875rem;
    }
    
    .gp-featured-content {
        padding: var(--landing-space-md);
    }
    
    .gp-carousel-btn {
        width: 36px;
        height: 36px;
        font-size: 1rem;
    }
    
    /* Support Section */
    .gp-support {
        padding: var(--landing-space-lg) var(--landing-space-sm);
    }
    
    .gp-support-action {
        font-size: 0.875rem;
        padding: var(--landing-space-md);
    }
    
    .gp-track-form {
        padding: var(--landing-space-md);
    }
    
    /* Menu Section */
    .gp-menu {
        padding: var(--landing-space-xl) var(--landing-space-sm);
    }
    
    .gp-menu-heading {
        font-size: 1.25rem;
    }
    
    .gp-menu-grid {
        grid-template-columns: 1fr;
        gap: var(--landing-space-md);
    }
    
    .gp-menu-card-image {
        height: 180px;
    }
    
    /* Quick Actions */
    .gp-quick-actions-grid {
        grid-template-columns: 1fr;
        gap: var(--landing-space-sm);
    }
    
    .gp-quick-action {
        font-size: 0.875rem;
        padding: var(--landing-space-md);
    }
    
    /* Contact Grid */
    .gp-contact-grid {
        grid-template-columns: 1fr;
        gap: var(--landing-space-md);
    }
    
    .gp-contact-item {
        padding: var(--landing-space-lg);
    }
    
    .gp-contact-item i {
        font-size: 2rem;
    }
    
    /* Header */
    .gp-header-bar {
        padding: 0.5rem 0.75rem !important;
        min-height: 52px !important;
        max-height: 60px !important;
    }
    
    .gp-header-brand {
        gap: 2px;
    }
    
    .gp-header-logo {
        height: 28px;
    }
    
    .gp-location-zone {
        font-size: 0.75rem;
    }
    
    .gp-header-room {
        font-size: 0.7rem;
        padding: 0.25rem 0.5rem;
    }
    
    .gp-header-avatar {
        width: 32px;
        height: 32px;
        font-size: 0.75rem;
    }
    
    /* Modals */
    .gp-modal-body {
        padding: var(--landing-space-md);
    }
    
    .gp-modal-footer {
        flex-direction: column;
        padding: var(--landing-space-md);
    }
    
    .gp-btn {
        width: 100%;
        font-size: 0.875rem;
        padding: var(--landing-space-sm) var(--landing-space-md);
    }
    
    .gp-modal-info-item {
        font-size: 0.875rem;
        padding: var(--landing-space-sm);
    }
    
    .gp-form-input {
        font-size: 0.875rem;
        padding: var(--landing-space-sm);
    }
}

/* ============================================
   UTILITY CLASSES
   ============================================ */
.text-center {
    text-align: center;
}

.mb-0 { margin-bottom: 0; }
.mb-1 { margin-bottom: var(--landing-space-xs); }
.mb-2 { margin-bottom: var(--landing-space-sm); }
.mb-3 { margin-bottom: var(--landing-space-md); }
.mb-4 { margin-bottom: var(--landing-space-lg); }

.mt-0 { margin-top: 0; }
.mt-1 { margin-top: var(--landing-space-xs); }
.mt-2 { margin-top: var(--landing-space-sm); }
.mt-3 { margin-top: var(--landing-space-md); }
.mt-4 { margin-top: var(--landing-space-lg); }

/* ============================================
   ACCESSIBILITY & PERFORMANCE
   ============================================ */
@media (prefers-reduced-motion: reduce) {
    * {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* Focus visible for keyboard navigation */
*:focus-visible {
    outline: 3px solid var(--landing-accent);
    outline-offset: 2px;
}

/* Smooth scrolling */
html {
    scroll-behavior: smooth;
}

/* Print styles */
@media print {
    .gp-carousel-btn,
    .gp-carousel-dots,
    .gp-support,
    .gp-footer-links {
        display: none !important;
    }
}


/* ============================================
   GUEST PROFILE MODALS - ENHANCED
   ============================================ */
.gp-modal {
    border-radius: var(--landing-radius-xl);
    border: none;
    box-shadow: var(--landing-shadow-xl);
}

.gp-modal-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%);
    color: white;
    padding: var(--landing-space-lg);
    border-radius: var(--landing-radius-xl) var(--landing-radius-xl) 0 0;
    border-bottom: none;
}

.gp-modal-title {
    font-size: 1.25rem;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: var(--landing-space-sm);
    color: white;
}

.gp-modal-close {
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gp-modal-close:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: scale(1.1);
}

.gp-modal-body {
    padding: var(--landing-space-xl);
    background: white;
}

.gp-modal-section {
    margin-bottom: var(--landing-space-lg);
}

.gp-modal-section:last-child {
    margin-bottom: 0;
}

.gp-modal-section-title {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--landing-text-muted);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: var(--landing-space-md);
}

.gp-modal-info-list {
    display: flex;
    flex-direction: column;
    gap: var(--landing-space-md);
}

.gp-modal-info-item {
    display: flex;
    align-items: center;
    gap: var(--landing-space-md);
    padding: var(--landing-space-md);
    background: var(--landing-bg-secondary);
    border-radius: var(--landing-radius-md);
    font-size: 1rem;
    color: var(--landing-text-primary);
}

.gp-modal-info-item i {
    color: var(--landing-primary);
    font-size: 1.125rem;
    width: 24px;
    text-align: center;
}

.gp-modal-info-item--highlight {
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.08) 0%, rgba(44, 82, 130, 0.08) 100%);
    border: 1px solid var(--landing-primary-light);
}

.gp-modal-footer {
    padding: var(--landing-space-lg);
    background: var(--landing-bg-secondary);
    border-radius: 0 0 var(--landing-radius-xl) var(--landing-radius-xl);
    display: flex;
    gap: var(--landing-space-md);
    justify-content: flex-end;
}

.gp-form-group {
    margin-bottom: var(--landing-space-lg);
}

.gp-form-label {
    display: block;
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--landing-text-primary);
    margin-bottom: var(--landing-space-sm);
}

.gp-form-input {
    width: 100%;
    padding: var(--landing-space-md);
    border: 2px solid var(--landing-border);
    border-radius: var(--landing-radius-md);
    font-size: 1rem;
    color: var(--landing-text-primary);
    transition: all 0.3s ease;
}

.gp-form-input:focus {
    outline: none;
    border-color: var(--landing-primary);
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1);
}

.gp-form-input:disabled,
.gp-form-input[readonly] {
    background-color: var(--landing-bg-tertiary);
    cursor: not-allowed;
    opacity: 0.7;
}

.gp-form-hint {
    display: block;
    font-size: 0.75rem;
    color: var(--landing-text-muted);
    margin-top: var(--landing-space-xs);
}

.gp-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: var(--landing-space-xs);
    padding: var(--landing-space-md) var(--landing-space-lg);
    border: none;
    border-radius: var(--landing-radius-md);
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.gp-btn--primary {
    background: linear-gradient(135deg, var(--landing-primary) 0%, var(--landing-primary-light) 100%);
    color: white;
    box-shadow: var(--landing-shadow-md);
}

.gp-btn--primary:hover {
    transform: translateY(-2px);
    box-shadow: var(--landing-shadow-lg);
}

.gp-btn--secondary {
    background: white;
    color: var(--landing-primary);
    border: 2px solid var(--landing-primary);
}

.gp-btn--secondary:hover {
    background: var(--landing-bg-secondary);
}

.gp-btn--danger {
    background: #dc2626;
    color: white;
}

.gp-btn--danger:hover {
    background: #b91c1c;
    transform: translateY(-2px);
}

/* Header Bar */
.gp-header-bar {
    background: white;
    box-shadow: var(--landing-shadow-sm);
    padding: var(--landing-space-md);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.gp-header-sticky {
    position: sticky;
    top: 0;
    z-index: 1000;
}

.gp-header-brand {
    display: flex;
    align-items: center;
    gap: 4px;
}

.gp-header-logo {
    height: 40px;
    width: auto;
}

.gp-header-location {
    display: flex;
    flex-direction: column;
}

.gp-location-zone {
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--landing-primary);
}

.gp-header-actions {
    display: flex;
    align-items: center;
    gap: var(--landing-space-md);
}

.gp-header-room {
    display: flex;
    align-items: center;
    gap: var(--landing-space-xs);
    padding: var(--landing-space-sm) var(--landing-space-md);
    background: var(--landing-bg-secondary);
    border-radius: var(--landing-radius-md);
    font-size: 0.875rem;
    font-weight: 600;
    color: var(--landing-primary);
}

.gp-header-profile {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
}

.gp-header-avatar {
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: linear-gradient(135deg, var(--landing-primary) 0%, var(--landing-primary-light) 100%);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 600;
    font-size: 1rem;
    box-shadow: var(--landing-shadow-md);
    transition: all 0.3s ease;
}

.gp-header-avatar:hover {
    transform: scale(1.1);
    box-shadow: var(--landing-shadow-lg);
}

.gp-avatar-initials {
    font-size: 0.875rem;
}

.gp-header-welcome {
    font-size: 0.875rem;
    color: var(--landing-text-secondary);
}

/* Mobile Responsive */
@media (max-width: 768px) {
    .gp-header-bar {
        padding: var(--landing-space-sm);
    }
    
    .gp-header-logo {
        height: 32px;
    }
    
    .gp-header-room {
        font-size: 0.75rem;
        padding: var(--landing-space-xs) var(--landing-space-sm);
    }
    
    .gp-header-avatar {
        width: 36px;
        height: 36px;
    }
    
    .gp-modal-body {
        padding: var(--landing-space-lg);
    }
    
    .gp-modal-footer {
        flex-direction: column;
    }
    
    .gp-btn {
        width: 100%;
    }
}

/* ============================================
   FOUC PREVENTION - Modal Flash Fix
   ============================================ */

/* Hide Bootstrap modals before they're triggered */
.modal:not(.show) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
}

/* Ensure modal-backdrop doesn't flash */
.modal-backdrop:not(.show) {
    display: none !important;
}

/* Fix backdrop z-index */
.modal-backdrop {
    z-index: 1040 !important;
}

.modal {
    z-index: 1050 !important;
}

/* Prevent layout shift during Livewire hydration */
.modal-open {
    overflow: hidden;
}

/* Smooth modal appearance */
.modal.show {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Hide any orphaned modal content during page load */
.modal-dialog {
    pointer-events: none;
}

.modal.show .modal-dialog {
    pointer-events: auto;
}

/* Fix modal size */
.modal-dialog.modal-sm {
    max-width: 400px !important;
}

.gp-modal {
    max-height: 90vh !important;
    overflow-y: auto !important;
}

/* ============================================
   LIVEWIRE WRAPPER FIX
   Prevent wire:id root div from taking extra height
   ============================================ */

/* Profile-info Livewire root: use display:contents so it's invisible to layout */
.guest-wrapper > [wire\:id]:first-child {
    display: contents;
}

/* Re-assert header bar as flex row */
.gp-header-bar {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    padding: 0.625rem 1rem !important;
    min-height: 56px !important;
    max-height: 64px !important;
    background: #ffffff !important;
    box-shadow: 0 1px 4px rgba(30, 58, 95, 0.08) !important;
    position: sticky !important;
    top: 0 !important;
    z-index: 1000 !important;
}       

/* Final mobile override for the landing featured carousel. Kept at EOF to win over legacy responsive rules. */
@media (max-width: 768px) {
    .gp-featured {
        margin-top: -1.5rem;
        padding: 0 var(--landing-space-sm) var(--landing-space-xl);
    }

    .gp-carousel {
        width: min(100%, 430px);
        padding-bottom: 78px;
        border-radius: 34px;
    }

    .gp-featured-image {
        min-height: 500px;
    }

    .gp-featured-content {
        padding: 22px;
    }

    .gp-featured-title {
        margin-top: 120px;
        font-size: 2.6rem;
        line-height: 0.96;
    }

    .gp-featured-subtitle {
        font-size: 0.95rem;
    }

    .gp-carousel-btn {
        width: 44px;
        height: 44px;
        font-size: 1rem;
    }
}


/* ==========================================================================
   GUEST PROFILE MODALS - FORCE STYLES (Override Bootstrap)
   ========================================================================== */

/* Force modal styles to override Bootstrap */
.modal-content.gp-modal {
    border-radius: var(--landing-radius-xl) !important;
    border: none !important;
    box-shadow: var(--landing-shadow-xl) !important;
}

.gp-modal .gp-modal-header {
    background: linear-gradient(135deg, #1e3a5f 0%, #2c5282 100%) !important;
    color: white !important;
    padding: var(--landing-space-lg) !important;
    border-radius: var(--landing-radius-xl) var(--landing-radius-xl) 0 0 !important;
    border-bottom: none !important;
}

.gp-modal .gp-modal-title {
    font-size: 1.25rem !important;
    font-weight: 600 !important;
    margin: 0 !important;
    display: flex !important;
    align-items: center !important;
    gap: var(--landing-space-sm) !important;
    color: white !important;
}

.gp-modal .gp-modal-close {
    background: rgba(255, 255, 255, 0.2) !important;
    border: none !important;
    color: white !important;
    width: 36px !important;
    height: 36px !important;
    border-radius: 50% !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
    opacity: 1 !important;
}

.gp-modal .gp-modal-close:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: scale(1.1) !important;
}

.gp-modal .gp-modal-body {
    padding: var(--landing-space-xl) !important;
    background: white !important;
}

.gp-modal .gp-modal-section {
    margin-bottom: var(--landing-space-lg) !important;
}

.gp-modal .gp-modal-section:last-child {
    margin-bottom: 0 !important;
}

.gp-modal .gp-modal-section-title {
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: var(--landing-text-muted) !important;
    text-transform: uppercase !important;
    letter-spacing: 0.5px !important;
    margin-bottom: var(--landing-space-md) !important;
}

.gp-modal .gp-modal-info-list {
    display: flex !important;
    flex-direction: column !important;
    gap: var(--landing-space-md) !important;
}

.gp-modal .gp-modal-info-item {
    display: flex !important;
    align-items: center !important;
    gap: var(--landing-space-md) !important;
    padding: var(--landing-space-md) !important;
    background: var(--landing-bg-secondary) !important;
    border-radius: var(--landing-radius-md) !important;
    font-size: 1rem !important;
    color: var(--landing-text-primary) !important;
}

.gp-modal .gp-modal-info-item i {
    color: var(--landing-primary) !important;
    font-size: 1.125rem !important;
    width: 24px !important;
    text-align: center !important;
}

.gp-modal .gp-modal-info-item--highlight {
    background: linear-gradient(135deg, rgba(30, 58, 95, 0.08) 0%, rgba(44, 82, 130, 0.08) 100%) !important;
    border: 1px solid var(--landing-primary-light) !important;
}

.gp-modal .gp-modal-footer {
    padding: var(--landing-space-lg) !important;
    background: var(--landing-bg-secondary) !important;
    border-radius: 0 0 var(--landing-radius-xl) var(--landing-radius-xl) !important;
    display: flex !important;
    gap: var(--landing-space-md) !important;
    justify-content: flex-end !important;
    border-top: none !important;
}

.gp-modal .gp-btn {
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    gap: var(--landing-space-xs) !important;
    padding: var(--landing-space-md) var(--landing-space-lg) !important;
    border: none !important;
    border-radius: var(--landing-radius-md) !important;
    font-size: 1rem !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.gp-modal .gp-btn--primary {
    background: linear-gradient(135deg, var(--landing-primary) 0%, #2c5282 100%) !important;
    color: white !important;
    box-shadow: var(--landing-shadow-md) !important;
}

.gp-modal .gp-btn--primary:hover {
    transform: translateY(-2px) !important;
    box-shadow: var(--landing-shadow-lg) !important;
}

.gp-modal .gp-btn--secondary {
    background: white !important;
    color: var(--landing-primary) !important;
    border: 2px solid var(--landing-primary) !important;
}

.gp-modal .gp-btn--secondary:hover {
    background: var(--landing-bg-secondary) !important;
}

.gp-modal .gp-btn--danger {
    background: #dc2626 !important;
    color: white !important;
}

.gp-modal .gp-btn--danger:hover {
    background: #b91c1c !important;
    transform: translateY(-2px) !important;
}

.gp-modal .gp-form-group {
    margin-bottom: var(--landing-space-lg) !important;
}

.gp-modal .gp-form-label {
    display: block !important;
    font-size: 0.875rem !important;
    font-weight: 600 !important;
    color: var(--landing-text-primary) !important;
    margin-bottom: var(--landing-space-sm) !important;
}

.gp-modal .gp-form-input {
    width: 100% !important;
    padding: var(--landing-space-md) !important;
    border: 2px solid var(--landing-border) !important;
    border-radius: var(--landing-radius-md) !important;
    font-size: 1rem !important;
    color: var(--landing-text-primary) !important;
    transition: all 0.3s ease !important;
}

.gp-modal .gp-form-input:focus {
    outline: none !important;
    border-color: var(--landing-primary) !important;
    box-shadow: 0 0 0 3px rgba(30, 58, 95, 0.1) !important;
}

.gp-modal .gp-form-input:disabled,
.gp-modal .gp-form-input[readonly] {
    background-color: #f5f5f5 !important;
    cursor: not-allowed !important;
    opacity: 0.7 !important;
}

.gp-modal .gp-form-hint {
    display: block !important;
    font-size: 0.75rem !important;
    color: var(--landing-text-muted) !important;
    margin-top: var(--landing-space-xs) !important;
}
