:root {
    --primary: #3498db;
    --primary-soft: rgba(52, 152, 219, 0.1);
    --secondary: #2c3e50;
    --dark: #1a1a1a;
    --text-muted: #6c757d;
    --glass-bg: rgba(255, 255, 255, 0.1);
    --glass-border: rgba(255, 255, 255, 0.2);
}

* {
    box-sizing: border-box;
}

html,
body {
    max-width: 100vw;
    overflow-x: hidden;
    margin: 0;
    padding: 0;
}

body {
    font-family: 'Inter', sans-serif;
    color: var(--secondary);
    width: 100%;
}

h1,
h2,
h3,
.navbar-brand {
    font-family: 'Montserrat', sans-serif;
}

.logo-img {
    height: 75px;
    width: auto;
    transition: filter 0.4s ease;
    filter: invert(1) grayscale(1) brightness(2);
}

.navbar-scrolled .logo-img {
    filter: none;
    height: 60px;
}

.hero-logo {
    height: 120px;
    width: auto;
    margin-bottom: 2rem;
    filter: invert(1) grayscale(1) brightness(2);
}

.footer-logo {
    height: 60px;
    width: auto;
    margin-bottom: 1.5rem;
    filter: invert(1) grayscale(1) brightness(2);
    opacity: 0.95;
}

/* Navbar */
.top-nav {
    height: 80px;
    padding: 20px 0;
    transition: all 0.4s ease;
}

.navbar-scrolled {
    background: white !important;
    box-shadow: 0 5px 25px rgba(0, 0, 0, 0.05);
    height: 70px;
    padding: 10px 0;
}

.navbar-scrolled .navbar-brand,
.navbar-scrolled .nav-link {
    color: var(--dark) !important;
}

.nav-link {
    color: white;
    font-weight: 500;
    font-size: 0.95rem;
    transition: color 0.3s;
}

.nav-link:hover {
    color: var(--primary) !important;
}

/* Hero Section */
.hero-section {
    min-height: 100vh;
    overflow: hidden;
    position: relative;
    background: transparent;
    z-index: 1;
}

.hero-bg-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to right, rgba(0, 0, 0, 0.70) 0%, rgba(0, 0, 0, 0.30) 100%);
    z-index: -1;
}

.hero-slides {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: -2;
}

.hero-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 2s ease-in-out;
}

.hero-slide.active {
    opacity: 1;
}

.text-primary-light {
    color: #85c1e9;
}

/* Glassmorphism */
.booking-card-glass {
    background: var(--glass-bg);
    backdrop-filter: blur(15px);
    -webkit-backdrop-filter: blur(15px);
    border: 1px solid var(--glass-border);
    border-radius: 2rem;
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
}

.glass-input {
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    color: white !important;
    border-radius: 10px !important;
    padding: 12px 15px !important;
}

.glass-input::placeholder {
    color: rgba(255, 255, 255, 0.4);
}

.glass-input:focus {
    background: rgba(255, 255, 255, 0.1) !important;
    border-color: var(--primary) !important;
    box-shadow: none !important;
}

/* Utils */
.py-100 {
    padding: 100px 0;
}

.ls-1 {
    letter-spacing: 1px;
}

.ls-2 {
    letter-spacing: 2px;
}

.slider-dot {
    z-index: 15;
    background: rgba(255, 255, 255, 0.3);
}

.slider-dot.active {
    background: #fff;
}

.bg-primary-soft {
    background-color: var(--primary-soft);
}

.shadow-xl {
    box-shadow: 0 20px 40px rgba(0, 0, 0, 0.08) !important;
}

.icon-box {
    width: 50px;
    height: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
    font-size: 1.25rem;
}

/* Animations */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(30px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes fadeInRight {
    from {
        opacity: 0;
        transform: translateX(30px);
    }

    to {
        opacity: 1;
        transform: translateX(0);
    }
}

.scale-up {
    animation: fadeInUp 1s forwards;
}

.slide-in-right {
    animation: fadeInRight 1s 0.2s backwards;
}

/* Calendar Base */
.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
    padding: 10px;
    width: 100%;
}

.calendar-day-header {
    text-align: center;
    font-weight: 700;
    font-size: 0.8rem;
    padding: 10px 0;
}

.calendar-day {
    aspect-ratio: 1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    border-radius: 8px;
    transition: all 0.2s;
    font-size: 0.9rem;
    position: relative;
    padding: 8px 4px;
    gap: 6px;
    width: 100%;
    min-width: 0;
    /* Allow shrinking */
}

.day-number {
    font-weight: 700;
    font-size: 1.2rem;
    line-height: 1;
}

.day-price {
    font-size: 0.65rem;
    color: var(--text-muted);
    line-height: 1;
}

.calendar-day.selected .day-price,
.calendar-day.blocked .day-price,
.calendar-day.in-range .day-price {
    color: rgba(255, 255, 255, 0.8) !important;
}

.calendar-day:hover:not(.blocked) {
    background: var(--primary-soft);
    color: var(--primary);
}

.calendar-day.selected {
    background: var(--primary) !important;
    color: white !important;
}

.calendar-day.blocked {
    background-color: #ff7675 !important;
    color: white !important;
    cursor: not-allowed;
    text-decoration: line-through;
    opacity: 1;
}

.calendar-day.day-checkout {
    background: linear-gradient(135deg, #ff7675 50%, transparent 50%) !important;
    color: #2c3e50 !important;
}

.calendar-day.day-checkin {
    background: linear-gradient(135deg, transparent 50%, #ff7675 50%) !important;
    color: #2c3e50 !important;
}

.calendar-day.day-both {
    background: linear-gradient(135deg, #ff7675 48%, #fff 50%, #ff7675 52%) !important;
    background-color: #ff7675 !important;
    color: white !important;
}

.calendar-day.selected {
    background-color: #55efc4 !important;
    color: #2d3436 !important;
    font-weight: bold;
}

.calendar-day.in-range {
    background-color: #a29bfe !important;
    color: white !important;
}

.calendar-day.range {
    background: #ebf5fb;
}

/* Tablet / Medium Screens */
@media (max-width: 991px) {
    .hero-section {
        min-height: auto;
        padding: 150px 0 100px;
    }

    .display-2 {
        font-size: 3rem;
    }

    .logo-img {
        height: 60px;
    }

    .hero-logo {
        height: 90px;
    }
}

@media (max-width: 768px) {
    .logo-img {
        height: 50px;
    }

    .hero-logo {
        height: 80px;
    }
}

/* MOBILE OPTIMIZATIONS (iPhone SE & Similar) */
@media (max-width: 576px) {
    .container {
        padding-left: 10px;
        padding-right: 10px;
        overflow-x: hidden;
    }

    .display-2 {
        font-size: 1.8rem;
    }

    .hero-section p.lead {
        font-size: 0.9rem;
    }

    .py-100 {
        padding: 40px 0;
    }

    /* Booking Card & Section Paddings */
    .booking-card-glass {
        padding: 0.75rem 0.5rem !important;
        border-radius: 1.25rem;
        margin: 0 auto;
        width: 100%;
        max-width: 100%;
    }

    #booking .card-header {
        padding: 1rem !important;
    }

    #booking .card-body {
        padding: 1rem 0.5rem !important;
    }

    /* Calendar Header & Search Container */
    #currentMonthYear,
    .calendar-header h4 {
        font-size: 1.1rem !important;
    }

    .calendar-header {
        padding: 10px !important;
        margin-bottom: 1rem !important;
    }

    .hero-calendar-container.glass-input {
        padding: 5px !important;
        width: 100%;
        overflow: hidden;
        box-sizing: border-box;
    }

    /* Flexible Grid Columns */
    .calendar-grid {
        grid-template-columns: repeat(7, 1fr) !important;
        gap: 2px !important;
        padding: 5px 2px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .calendar-day-header {
        font-size: 0.6rem !important;
        padding: 3px 0 !important;
    }

    .calendar-day {
        aspect-ratio: 1;
        min-height: 0;
        padding: 2px 0 !important;
        font-size: 0.65rem !important;
        border-radius: 4px !important;
        gap: 1px !important;
        width: 100% !important;
        box-sizing: border-box !important;
    }

    .day-number {
        font-size: 0.75rem !important;
    }

    .day-price {
        font-size: 0.45rem !important;
    }

    .glass-input {
        padding: 8px !important;
        font-size: 0.85rem;
        border-radius: 8px !important;
    }

    .btn-lg {
        padding: 10px 20px;
        font-size: 0.95rem;
    }

    .navbar-brand img {
        height: 40px;
    }

    .hero-logo {
        height: 60px;
        margin-bottom: 1rem;
    }
}

/* Extra small screens check */
@media (max-width: 340px) {
    .calendar-day {
        font-size: 0.6rem !important;
    }

    .day-number {
        font-size: 0.7rem !important;
    }

    #currentMonthYear,
    .calendar-header h4 {
        font-size: 1rem !important;
    }
}