/*==============================================
  MOBILE PREMIUM HOTEL INTERFACE REDESIGN
  Modern, Elegant, Luxury Hotel Experience
  Hotel Nehrus - March 2026
  
  IMPORTANT: 
  - Only affects mobile (below 768px)
  - Does NOT change desktop design
  - Does NOT modify navbar
  ================================================*/

/* Root Variables for Mobile */
:root {
    --navy-dark: #0E1A2B;
    --navy-light: #1A2B3D;
    --gold-primary: #C9A44C;
    --gold-light: #D4B866;
    --white-pure: #FFFFFF;
    --white-off: #F8F9FA;
    --text-dark: #2C3E50;
    --text-light: #6C757D;
    --text-lighter: #8C92A0;
    --shadow-soft: 0 4px 15px rgba(0, 0, 0, 0.08);
    --shadow-medium: 0 8px 25px rgba(0, 0, 0, 0.12);
    --shadow-deep: 0 12px 35px rgba(0, 0, 0, 0.15);
    --radius-soft: 12px;
    --radius-medium: 16px;
    --radius-full: 50px;
    --transition-smooth: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/*==============================================
  MOBILE ONLY - Below 768px
  ================================================*/

@media (max-width: 767.98px) {
    
    /*==============================================
      GLOBAL MOBILE STYLES
      ================================================*/
    
    body {
        overflow-x: hidden;
    }
    
    /* Smooth scrolling for better UX */
    html {
        scroll-behavior: smooth;
        -webkit-scroll-behavior: smooth;
    }
    
    /* Improve tap targets */
    button, a, input[type="button"], input[type="submit"] {
        min-height: 44px;
        min-width: 44px;
        -webkit-touch-callout: none;
    }
    
    /* Container padding optimization */
    .container, .container-fluid {
        padding-left: 16px !important;
        padding-right: 16px !important;
    }
    
    /*==============================================
      IMAGE SLIDER / CAROUSEL SECTION
      Hero Image Gallery with Touch Swipe
      ================================================*/
    
    /* Modern Image Slider */
    .mobile-hero-slider {
        position: relative;
        width: 100%;
        height: 45vh;
        min-height: 320px;
        max-height: 500px;
        overflow: hidden;
        background: linear-gradient(135deg, rgba(14, 26, 43, 0.8), rgba(201, 164, 76, 0.3));
        border-radius: 0;
        margin-top: 0;
        margin-bottom: 1.5rem;
        z-index: 10;
    }
    
    /* Slider track - enables touch swipe */
    .slider-track {
        display: flex;
        height: 100%;
        transition: transform 0.5s cubic-bezier(0.4, 0, 0.2, 1);
        touch-action: pan-y pinch-zoom;
    }
    
    /* Individual slides */
    .slider-slide {
        flex: 0 0 100%;
        width: 100%;
        height: 100%;
        background-size: cover;
        background-position: center;
        position: relative;
        display: flex;
        align-items: flex-end;
    }
    
    /* Slide overlay with gradient */
    .slider-slide::before {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(to top, rgba(14, 26, 43, 0.7) 0%, rgba(14, 26, 43, 0.4) 50%, transparent 100%);
        z-index: 1;
    }
    
    /* Slide content */
    .slider-content {
        position: relative;
        z-index: 2;
        padding: 1.5rem 1rem;
        color: white;
        width: 100%;
        text-align: center;
    }
    
    .slider-content h3 {
        font-family: 'Playfair Display', serif;
        font-size: 1.5rem;
        font-weight: 700;
        margin: 0 0 0.5rem 0;
        letter-spacing: 0.5px;
    }
    
    .slider-content p {
        font-size: 0.85rem;
        margin: 0 0 0.8rem 0;
        opacity: 0.95;
    }
    
    /* Slider controls - HIDDEN */
    .slider-controls {
        position: absolute;
        bottom: 1rem;
        left: 50%;
        transform: translateX(-50%);
        z-index: 10;
        display: none !important;
        gap: 0.4rem;
    }
    
    .slider-dot {
        width: 8px;
        height: 8px;
        border-radius: 50%;
        background: rgba(255, 255, 255, 0.4);
        cursor: pointer;
        transition: all 0.3s ease;
        border: none;
        padding: 0;
        -webkit-touch-callout: none;
    }
    
    .slider-dot.active {
        background: var(--gold-primary);
        width: 24px;
        border-radius: 4px;
    }
    
    /* Navigation arrows (touch-friendly) */
    .slider-nav-btn {
        position: absolute;
        top: 50%;
        transform: translateY(-50%);
        z-index: 5;
        background: rgba(255, 255, 255, 0.15);
        border: none;
        color: white;
        width: 40px;
        height: 40px;
        border-radius: 50%;
        display: flex;
        align-items: center;
        justify-content: center;
        cursor: pointer;
        transition: all 0.3s ease;
        backdrop-filter: blur(10px);
    }
    
    .slider-nav-btn:active {
        background: rgba(255, 255, 255, 0.3);
        transform: translateY(-50%) scale(1.1);
    }
    
    .slider-nav-btn.prev {
        left: 0.5rem;
    }
    
    .slider-nav-btn.next {
        right: 0.5rem;
    }
    
    /*==============================================
      CTA HERO SECTION - Below Slider
      ================================================*/
    
    .mobile-hero-cta {
        background: linear-gradient(135deg, var(--white-off) 0%, var(--white-pure) 100%);
        padding: 1.5rem;
        margin: 0 0 1.5rem 0;
        border-radius: var(--radius-medium);
        text-align: center;
        box-shadow: var(--shadow-soft);
    }
    
    .mobile-hero-cta h2 {
        font-family: 'Playfair Display', serif;
        font-size: 1.5rem;
        color: var(--navy-dark);
        margin: 0 0 0.5rem 0;
        font-weight: 700;
    }
    
    .mobile-hero-cta p {
        font-size: 0.9rem;
        color: var(--text-light);
        margin: 0 0 1.2rem 0;
        line-height: 1.5;
    }
    
    .mobile-hero-cta-buttons {
        display: flex;
        flex-direction: column;
        gap: 0.8rem;
    }
    
    .mobile-cta-btn {
        display: flex;
        align-items: center;
        justify-content: center;
        padding: 14px 1.5rem;
        border-radius: var(--radius-full);
        border: none;
        font-size: 0.95rem;
        font-weight: 600;
        text-decoration: none;
        cursor: pointer;
        transition: var(--transition-smooth);
        text-transform: uppercase;
        letter-spacing: 0.5px;
        min-height: 48px;
        text-align: center;
        width: 100%;
    }
    
    .mobile-cta-btn-primary {
        background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-light) 100%);
        color: var(--navy-dark);
        box-shadow: 0 4px 15px rgba(201, 164, 76, 0.2);
    }
    
    .mobile-cta-btn-primary:active {
        transform: scale(0.98);
        box-shadow: 0 2px 8px rgba(201, 164, 76, 0.15);
    }
    
    .mobile-cta-btn-secondary {
        background: var(--navy-dark);
        color: white;
        border: 2px solid var(--navy-dark);
    }
    
    .mobile-cta-btn-secondary:active {
        background: var(--navy-light);
        border-color: var(--navy-light);
    }
    
    /*==============================================
      HERO SECTION REDESIGN
      ================================================*/
    
    .ihg-hero {
        height: auto !important;
        min-height: 0 !important;
        padding: 0 !important;
        overflow: visible;
        background: none !important;
    }
    
    .ihg-hero::before {
        display: none !important;
    }
    
    .ihg-hero-content {
        display: none !important;
    }
    
    /*==============================================
      SECTION STYLING
      ================================================*/
    
    .ihg-section {
        padding: 2rem 0 !important;
        overflow: hidden;
    }
    
    .ihg-section-title {
        font-size: 1.6rem !important;
        margin-bottom: 0.5rem !important;
        font-weight: 700;
    }
    
    .ihg-section-subtitle {
        font-size: 0.9rem !important;
        margin-bottom: 1.5rem !important;
        line-height: 1.5;
    }
    
    /*==============================================
      CARD REDESIGN - Clean, Modern, Premium
      ================================================*/
    
    .ihg-card {
        background: var(--white-pure);
        border: none;
        border-radius: var(--radius-medium);
        overflow: hidden;
        box-shadow: var(--shadow-soft);
        transition: var(--transition-smooth);
        margin-bottom: 1.2rem;
        height: auto;
    }
    
    .ihg-card:active {
        box-shadow: var(--shadow-medium);
        transform: scale(0.99);
    }
    
    .ihg-card-img {
        height: 180px;
        background-size: cover;
        background-position: center;
        position: relative;
    }
    
    .ihg-card-img::after {
        content: '';
        position: absolute;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: linear-gradient(135deg, rgba(14, 26, 43, 0.2) 0%, rgba(201, 164, 76, 0.05) 100%);
    }
    
    .ihg-card-body {
        padding: 1.2rem;
    }
    
    .ihg-card-title {
        font-family: 'Playfair Display', serif;
        font-size: 1.2rem;
        font-weight: 700;
        color: var(--navy-dark);
        margin-bottom: 0.6rem;
    }
    
    .ihg-card-text {
        font-size: 0.87rem;
        color: var(--text-light);
        line-height: 1.5;
        margin-bottom: 0.8rem;
    }
    
    /* Card features list */
    .card-features {
        background: rgba(201, 164, 76, 0.08);
        padding: 0.8rem;
        border-radius: var(--radius-soft);
        margin-bottom: 1rem;
    }
    
    .card-features li {
        font-size: 0.85rem;
        color: var(--navy-dark);
        margin-bottom: 0.4rem;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    .card-features li i {
        color: var(--gold-primary);
        font-size: 0.8rem;
    }
    
    /*==============================================
      BUTTON REDESIGN - Touch-Friendly
      ================================================*/
    
    .ihg-btn-primary {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 48px;
        padding: 12px 1.5rem !important;
        width: 100%;
        border-radius: var(--radius-full);
        background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-light) 100%) !important;
        color: var(--navy-dark) !important;
        border: none !important;
        font-weight: 600;
        font-size: 0.9rem;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        box-shadow: 0 4px 15px rgba(201, 164, 76, 0.2);
        transition: var(--transition-smooth);
        cursor: pointer;
        text-decoration: none;
        margin-bottom: 0.5rem !important;
    }
    
    .ihg-btn-primary:active {
        transform: scale(0.97);
        box-shadow: 0 2px 8px rgba(201, 164, 76, 0.15);
    }
    
    .btn-gold {
        display: flex;
        align-items: center;
        justify-content: center;
        min-height: 48px;
        width: 100%;
        padding: 12px 1.5rem !important;
        background: linear-gradient(135deg, var(--gold-primary) 0%, var(--gold-light) 100%) !important;
        color: var(--navy-dark) !important;
        border-radius: var(--radius-full);
        font-weight: 600;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        text-decoration: none;
        cursor: pointer;
        transition: var(--transition-smooth);
        box-shadow: 0 4px 15px rgba(201, 164, 76, 0.2);
    }
    
    .btn-gold:active {
        transform: scale(0.97);
        box-shadow: 0 2px 8px rgba(201, 164, 76, 0.15);
    }
    
    .btn-outline-gold {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        min-height: 44px;
        padding: 10px 1.2rem !important;
        border: 2px solid var(--gold-primary) !important;
        background: transparent !important;
        color: var(--gold-primary) !important;
        border-radius: var(--radius-full);
        font-weight: 600;
        font-size: 0.85rem;
        text-decoration: none;
        cursor: pointer;
        transition: var(--transition-smooth);
        width: 100%;
        text-align: center;
    }
    
    .btn-outline-gold:active {
        background: rgba(201, 164, 76, 0.1) !important;
        transform: scale(0.97);
    }
    
    /*==============================================
      BADGE REDESIGN
      ================================================*/
    
    .badge {
        display: inline-flex;
        align-items: center;
        gap: 0.4rem;
        padding: 0.5rem 1rem !important;
        border-radius: var(--radius-full);
        font-size: 0.75rem !important;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        margin-bottom: 0.8rem;
    }
    
    .bg-gold {
        background: linear-gradient(135deg, var(--gold-primary), var(--gold-light)) !important;
        color: var(--navy-dark) !important;
        box-shadow: 0 4px 12px rgba(201, 164, 76, 0.2);
    }
    
    /*==============================================
      OFFER CARD REDESIGN
      ================================================*/
    
    .offer-card {
        position: relative;
        background: var(--white-pure);
        border-radius: var(--radius-medium);
        box-shadow: var(--shadow-soft);
        transition: var(--transition-smooth);
    }
    
    .offer-badge {
        position: absolute;
        top: 1rem;
        right: 1rem;
        background: var(--gold-primary);
        color: var(--navy-dark);
        padding: 0.5rem 1rem;
        border-radius: var(--radius-full);
        font-size: 0.75rem;
        font-weight: 700;
        text-transform: uppercase;
        letter-spacing: 0.5px;
        z-index: 5;
        box-shadow: 0 4px 12px rgba(201, 164, 76, 0.2);
    }
    
    .offer-features {
        list-style: none;
        padding: 0;
        margin: 0 0 1.2rem 0;
    }
    
    .offer-features li {
        font-size: 0.85rem;
        color: var(--text-light);
        padding: 0.4rem 0;
        display: flex;
        align-items: center;
        gap: 0.5rem;
    }
    
    /*==============================================
      SECTION BACKGROUNDS
      ================================================*/
    
    .ihg-section-dark {
        background: linear-gradient(135deg, var(--navy-dark) 0%, var(--navy-light) 100%) !important;
        color: var(--white-pure);
    }
    
    .ihg-section-light {
        background: linear-gradient(135deg, var(--white-off) 0%, var(--white-pure) 100%) !important;
    }
    
    /*==============================================
      RESPONSIVE SPACING
      ================================================*/
    
    .row {
        gap: 0 !important;
    }
    
    .col-md-6, .col-lg-4 {
        padding-left: 0 !important;
        padding-right: 0 !important;
        margin-bottom: 0.8rem;
    }
    
    /*==============================================
      TEXT OPTIMIZATION FOR MOBILE
      ================================================*/
    
    h1, h2, h3, h4, h5, h6 {
        letter-spacing: 0.3px;
        line-height: 1.2;
    }
    
    p {
        line-height: 1.6;
    }
    
    .lead {
        font-size: 0.95rem !important;
        line-height: 1.6;
    }
    
    /*==============================================
      IMAGE OPTIMIZATION
      ================================================*/
    
    img {
        max-width: 100%;
        height: auto;
    }
    
    /* Lazy loading fallback */
    img[loading="lazy"] {
        background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
        background-size: 200% 100%;
        animation: loading-shimmer 2s infinite;
    }
    
    @keyframes loading-shimmer {
        0% {
            background-position: 200% 0;
        }
        100% {
            background-position: -200% 0;
        }
    }
    
    /*==============================================
      FORM ELEMENTS
      ================================================*/
    
    input, textarea, select {
        font-size: 16px !important; /* Prevents zoom on iOS */
        min-height: 44px;
        border-radius: var(--radius-soft);
        border: 1px solid #e0e0e0;
        padding: 12px;
    }
    
    input:focus, textarea:focus, select:focus {
        outline: none;
        border-color: var(--gold-primary);
        box-shadow: 0 0 0 3px rgba(201, 164, 76, 0.1);
    }
    
    /*==============================================
      MODAL & OVERLAY
      ================================================*/
    
    .modal-content {
        border-radius: var(--radius-medium);
        border: none;
        box-shadow: var(--shadow-deep);
    }
    
    .modal-header {
        border-bottom: 1px solid #e0e0e0;
    }
    
    .modal-body {
        padding: 1.5rem;
    }
    
    /*==============================================
      SCROLLING & ANIMATION
      ================================================*/
    
    /* Smooth scroll behavior */
    [data-aos] {
        opacity: 1 !important;
        animation-duration: 0.6s;
    }
    
    /* Disable animation on reduced motion preference */
    @media (prefers-reduced-motion: reduce) {
        [data-aos],
        * {
            animation-duration: 0.01ms !important;
            animation-iteration-count: 1 !important;
            transition-duration: 0.01ms !important;
        }
    }
    
    /*==============================================
      UTILITY CLASSES
      ================================================*/
    
    .text-center {
        text-align: center;
    }
    
    .text-left {
        text-align: left;
    }
    
    .mb-0 { margin-bottom: 0 !important; }
    .mb-1 { margin-bottom: 0.5rem !important; }
    .mb-2 { margin-bottom: 1rem !important; }
    .mb-3 { margin-bottom: 1.5rem !important; }
    .mb-4 { margin-bottom: 2rem !important; }
    .mb-5 { margin-bottom: 2.5rem !important; }
    
    .mt-0 { margin-top: 0 !important; }
    .mt-1 { margin-top: 0.5rem !important; }
    .mt-2 { margin-top: 1rem !important; }
    .mt-3 { margin-top: 1.5rem !important; }
    .mt-4 { margin-top: 2rem !important; }
    .mt-5 { margin-top: 2.5rem !important; }
    
    .px-3 {
        padding-left: 1rem !important;
        padding-right: 1rem !important;
    }
    
    .py-3 {
        padding-top: 1rem !important;
        padding-bottom: 1rem !important;
    }
    
    /*==============================================
      PERFORMANCE OPTIMIZATION
      ================================================*/
    
    /* Enable GPU acceleration */
    .ihg-card, .slider-track, .mobile-cta-btn {
        -webkit-transform: translateZ(0);
        transform: translateZ(0);
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    
    /* Reduce repaints */
    img {
        -webkit-backface-visibility: hidden;
        backface-visibility: hidden;
    }
    
    /*==============================================
      SAFE AREA HANDLING (iPhone X+)
      ================================================*/
    
    @supports (padding: max(0px)) {
        body {
            padding-bottom: max(1rem, env(safe-area-inset-bottom));
        }
        
        .mobile-hero-slider {
            margin-bottom: max(1.5rem, calc(1.5rem + env(safe-area-inset-bottom)));
        }
    }
}

/*==============================================
  SMALL MOBILE (Below 480px) - Extra Tweaks
  ================================================*/

@media (max-width: 479.98px) {
    .mobile-hero-slider {
        height: 40vh;
        min-height: 280px;
    }
    
    .slider-content h3 {
        font-size: 1.2rem;
    }
    
    .slider-content p {
        font-size: 0.75rem;
    }
    
    .ihg-section-title {
        font-size: 1.4rem !important;
    }
    
    .ihg-section-subtitle {
        font-size: 0.85rem !important;
    }
    
    .mobile-hero-cta h2 {
        font-size: 1.3rem;
    }
    
    .mobile-cta-btn {
        padding: 12px 1rem !important;
        font-size: 0.85rem;
    }
    
    .ihg-card-img {
        height: 150px;
    }
    
    .ihg-card-title {
        font-size: 1.1rem;
    }
    
    .ihg-card-text {
        font-size: 0.82rem;
    }
    
    /* Hide some text for tiny screens */
    .hide-on-small {
        display: none !important;
    }
}

/*==============================================
  DEFAULT / DESKTOP - No Changes (Preserve)
  ================================================*/

@media (min-width: 768px) {
    /* All mobile-only styles are hidden on desktop */
    .mobile-hero-slider,
    .mobile-hero-cta,
    .mobile-cta-btn-primary,
    .mobile-cta-btn-secondary {
        display: none !important;
    }
}
