/* ==========================================================================
   Spezio Apartments - Modern Clean CSS
   ========================================================================== */

/* --------------------------------------------------------------------------
   CSS Custom Properties (Variables)
   -------------------------------------------------------------------------- */
:root {
    /* Colors - Inspired by reference */
    --color-primary: #00443F;
    --color-primary-dark: #003330;
    --color-secondary: #CC9933;
    --color-secondary-light: #e6b84d;
    --color-accent: #87986A;
    --color-text: #4a4a4a;
    --color-text-light: #7a7a7a;
    --color-white: #ffffff;
    --color-off-white: #f8f9fa;
    --color-light-gray: #e9ecef;
    --color-overlay: rgba(0, 68, 63, 0.85);

    /* Typography */
    --font-heading: 'Raleway', sans-serif;
    --font-body: 'Open Sans', sans-serif;

    /* Spacing */
    --spacing-xs: 0.5rem;
    --spacing-sm: 1rem;
    --spacing-md: 2rem;
    --spacing-lg: 4rem;
    --spacing-xl: 6rem;

    /* Border radius */
    --radius-sm: 4px;
    --radius-md: 8px;
    --radius-lg: 16px;
    --radius-xl: 24px;

    /* Shadows */
    --shadow-sm: 0 2px 4px rgba(0,0,0,0.08);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.12);
    --shadow-lg: 0 8px 24px rgba(0,0,0,0.16);

    /* Transitions */
    --transition-fast: 0.2s ease;
    --transition-base: 0.3s ease;
    --transition-slow: 0.5s ease;
}

/* --------------------------------------------------------------------------
   Reset & Base Styles
   -------------------------------------------------------------------------- */
*, *::before, *::after {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

html {
    scroll-behavior: smooth;
    font-size: 16px;
}

body {
    font-family: var(--font-body);
    font-size: 1rem;
    line-height: 1.7;
    color: var(--color-text);
    background-color: var(--color-white);
    overflow-x: hidden;
}

img {
    max-width: 100%;
    height: auto;
    display: block;
}

a {
    text-decoration: none;
    color: inherit;
    transition: color var(--transition-fast);
}

ul, ol {
    list-style: none;
}

/* --------------------------------------------------------------------------
   Typography
   -------------------------------------------------------------------------- */
h1, h2, h3, h4, h5, h6 {
    font-family: var(--font-heading);
    font-weight: 700;
    line-height: 1.3;
    color: var(--color-primary);
}

h1 { font-size: clamp(2.5rem, 5vw, 4rem); }
h2 { font-size: clamp(2rem, 4vw, 3rem); }
h3 { font-size: clamp(1.5rem, 3vw, 2rem); }
h4 { font-size: 1.25rem; }

p {
    margin-bottom: 1rem;
}

.text-accent {
    color: var(--color-secondary);
}

.text-center {
    text-align: center;
}

/* --------------------------------------------------------------------------
   Container & Layout
   -------------------------------------------------------------------------- */
.container {
    width: 100%;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1.5rem;
}

.section {
    padding: var(--spacing-xl) 0;
}

.section-header {
    text-align: center;
    margin-bottom: var(--spacing-lg);
}

.section-header h2 {
    margin-bottom: var(--spacing-sm);
}

.section-header p {
    color: var(--color-text-light);
    max-width: 600px;
    margin: 0 auto;
    font-size: 1.1rem;
}

.grid {
    display: grid;
    gap: var(--spacing-md);
}

.grid-2 { grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.grid-3 { grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.grid-4 { grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); }
.grid-5 { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); }

/* --------------------------------------------------------------------------
   Buttons
   -------------------------------------------------------------------------- */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    padding: 0.875rem 2rem;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    border-radius: var(--radius-md);
    border: 2px solid transparent;
    cursor: pointer;
    transition: all var(--transition-base);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.btn-primary {
    background-color: var(--color-secondary);
    color: #1a1a1a;
    border-color: var(--color-secondary);
}

.btn-primary:hover {
    background-color: var(--color-secondary-light);
    border-color: var(--color-secondary-light);
    transform: translateY(-2px);
    box-shadow: var(--shadow-md);
}

.btn-outline {
    background-color: transparent;
    color: var(--color-white);
    border-color: var(--color-white);
}

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

.btn-outline-dark {
    background-color: transparent;
    color: var(--color-primary);
    border-color: var(--color-primary);
}

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

/* --------------------------------------------------------------------------
   Header & Navigation
   -------------------------------------------------------------------------- */
.header {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 1000;
    transition: all var(--transition-base);
}

.header.scrolled {
    background-color: var(--color-white);
    box-shadow: var(--shadow-md);
}

.header.scrolled .nav-link {
    color: var(--color-text);
}

.header.scrolled .nav-link:hover {
    color: var(--color-secondary);
}

.header.scrolled .logo-white {
    display: none;
}

.header.scrolled .logo-dark {
    display: block;
}

.nav {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 1rem 0;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 50px;
    width: auto;
}

.logo-dark {
    display: none;
}

.nav-menu {
    display: flex;
    align-items: center;
    gap: 2.5rem;
}

.nav-link {
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 0.95rem;
    color: var(--color-white);
    position: relative;
    padding: 0.5rem 0;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-secondary);
    transition: width var(--transition-base);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

.nav-link.btn-nav {
    background-color: var(--color-secondary);
    color: #1a1a1a;
    padding: 0.6rem 1.25rem;
    border-radius: var(--radius-md);
    margin-left: 0.5rem;
}

.nav-link.btn-nav::after {
    display: none;
}

.nav-link.btn-nav:hover {
    background-color: var(--color-secondary-light);
}

.header.scrolled .nav-link.btn-nav {
    background-color: var(--color-secondary);
    color: #1a1a1a;
}

.nav-toggle {
    display: none;
    flex-direction: column;
    gap: 5px;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
}

.nav-toggle span {
    width: 25px;
    height: 2px;
    background-color: var(--color-white);
    transition: all var(--transition-fast);
}

.header.scrolled .nav-toggle span {
    background-color: var(--color-primary);
}

/* Mobile Navigation - Dropdown Style */
@media (max-width: 768px) {
    .nav-toggle {
        display: flex;
        z-index: 1001;
    }

    .nav-menu {
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        width: 100%;
        max-width: 100%;
        height: auto;
        max-height: 0;
        background: rgba(0, 68, 63, 0.92);
        backdrop-filter: blur(12px);
        -webkit-backdrop-filter: blur(12px);
        flex-direction: column;
        justify-content: flex-start;
        align-items: stretch;
        gap: 0;
        padding: 0;
        border-radius: 0 0 16px 16px;
        box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
        transition: max-height 0.35s ease, padding 0.25s ease;
        overflow: hidden;
    }

    .nav-menu.active {
        max-height: 400px;
        padding: 0.5rem 1rem 1rem;
    }

    .nav-menu li {
        width: 100%;
        border-bottom: 1px solid rgba(255, 255, 255, 0.15);
    }

    .nav-menu li:last-child {
        border-bottom: none;
        margin-top: 0.5rem;
    }

    .nav-link {
        color: var(--color-white) !important;
        font-size: 1rem;
        display: block;
        padding: 0.875rem 0.75rem;
        text-align: left;
        transition: background-color 0.2s, color 0.2s;
    }

    .nav-link:hover,
    .nav-link.active {
        color: var(--color-secondary) !important;
        background-color: rgba(255, 255, 255, 0.1);
    }

    .nav-link.btn-nav {
        background-color: var(--color-secondary);
        color: #1a1a1a !important;
        text-align: center;
        border-radius: 8px;
        padding: 0.875rem;
        margin-top: 0.25rem;
    }

    .nav-link.btn-nav:hover {
        background-color: var(--color-secondary-light);
    }

    .nav-toggle.active span:nth-child(1) {
        transform: rotate(45deg) translate(5px, 5px);
    }

    .nav-toggle.active span:nth-child(2) {
        opacity: 0;
    }

    .nav-toggle.active span:nth-child(3) {
        transform: rotate(-45deg) translate(5px, -5px);
    }

}

/* --------------------------------------------------------------------------
   Hero Section
   -------------------------------------------------------------------------- */
.hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: var(--color-white);
    overflow: hidden;
}

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.hero-bg img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

.hero-video {
    position: absolute;
    top: 50%;
    left: 50%;
    min-width: 100%;
    min-height: 100%;
    width: auto;
    height: auto;
    transform: translate(-50%, -50%);
    object-fit: cover;
    z-index: -1;
}

/* Parallax Section */
.parallax-section {
    background-attachment: fixed;
    background-position: center;
    background-repeat: no-repeat;
    background-size: cover;
}

/* Disable parallax on mobile for better performance */
@media (max-width: 768px) {
    .parallax-section {
        background-attachment: scroll;
    }
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-overlay);
}

.hero-content {
    position: relative;
    z-index: 1;
    max-width: 800px;
    padding: 0 var(--spacing-sm);
}

.hero h1 {
    color: var(--color-white);
    margin-bottom: var(--spacing-sm);
}

.hero h1 span {
    color: var(--color-secondary);
}

.hero p {
    font-size: 1.25rem;
    margin-bottom: var(--spacing-md);
    opacity: 0.9;
}

.hero-location-label {
    font-size: 0.85rem !important;
    text-transform: uppercase;
    letter-spacing: 3px;
    opacity: 0.8 !important;
    margin-bottom: 0.5rem !important;
    font-weight: 500;
}

.hero-subtitle {
    font-size: 1.05rem !important;
    margin-bottom: 0.5rem !important;
    opacity: 0.9 !important;
}

.hero-discount {
    color: var(--color-secondary);
    font-weight: 600;
}

.hero-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

/* Hero Location Tags - Interactive */
.hero-locations {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    flex-wrap: wrap;
    margin: 0.75rem 0 1rem;
}

.hero-locations::before {
    content: 'Close to:';
    width: 100%;
    font-size: 0.85rem;
    opacity: 0.7;
    margin-bottom: 0.25rem;
    letter-spacing: 0.5px;
}

.location-tag {
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    padding: 0.45rem 1rem;
    border-radius: 20px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-white);
    cursor: pointer;
    position: relative;
    transition: all 0.25s ease;
    z-index: 5;
    letter-spacing: 0.3px;
}

.location-tag:hover {
    background: var(--color-secondary);
    border-color: var(--color-secondary);
    transform: scale(1.05);
    z-index: 100;
}

.location-tag::after {
    content: attr(data-tooltip);
    position: absolute;
    top: calc(100% + 12px);
    left: 50%;
    transform: translateX(-50%) scale(0.95);
    background: rgba(0, 68, 63, 0.97);
    color: #ffffff;
    padding: 14px 18px;
    border-radius: 10px;
    font-size: 0.8rem;
    font-weight: 400;
    white-space: pre-line;
    text-align: left;
    min-width: 190px;
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    box-shadow: 0 10px 30px rgba(0,0,0,0.35);
    z-index: 1000;
    line-height: 1.9;
    pointer-events: none;
    border: 1px solid rgba(255,255,255,0.1);
}

.location-tag::before {
    content: '';
    position: absolute;
    top: calc(100% + 4px);
    left: 50%;
    transform: translateX(-50%);
    border: 8px solid transparent;
    border-bottom-color: rgba(0, 68, 63, 0.97);
    opacity: 0;
    visibility: hidden;
    transition: all 0.25s ease;
    z-index: 1000;
}

.location-tag:hover::after {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) scale(1);
}

.location-tag:hover::before {
    opacity: 1;
    visibility: visible;
}

/* Page Hero (smaller) */
.page-hero {
    min-height: 50vh;
    padding-top: 100px;
}

/* --------------------------------------------------------------------------
   About Section
   -------------------------------------------------------------------------- */
.about-section {
    background-color: var(--color-off-white);
}

.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: stretch;
}

.about-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.about-image {
    position: relative;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-lg);
    max-width: 90%;
}

/* Featured image - special styling for "Your Home Away From Home" section */
.about-image.featured-image {
    overflow: visible;
    border-radius: 0;
    box-shadow: none;
    height: 100%;
    display: flex;
    align-items: stretch;
}

.about-image.featured-image img {
    width: 100%;
    height: 100%;
    min-height: 350px;
    object-fit: cover;
    border: 5px solid var(--color-secondary);
    border-radius: 10px 100px 10px 10px;
    box-shadow: var(--shadow-lg);
    transition: all var(--transition-base);
}

.about-image.featured-image:hover img {
    box-shadow: 0 12px 32px rgba(0,0,0,0.2);
    border-color: var(--color-secondary-light);
}

/* About page hero image - unique styling */
.about-image.about-hero-image {
    position: relative;
    overflow: visible;
    border-radius: 0;
    box-shadow: none;
    max-width: 100%;
}

.about-image.about-hero-image::before {
    content: '';
    position: absolute;
    top: -15px;
    left: -15px;
    width: 85%;
    height: calc(100% - 15px);
    background: linear-gradient(135deg, var(--color-primary) 0%, var(--color-primary-light) 100%);
    border-radius: 20px;
    z-index: -1;
}

.about-image.about-hero-image::after {
    content: '';
    position: absolute;
    bottom: -10px;
    right: 5%;
    width: 100px;
    height: 100px;
    border: 4px solid var(--color-accent);
    border-radius: 0 0 30px 0;
    z-index: -1;
}

.about-image.about-hero-image img {
    width: 90%;
    min-height: 550px;
    object-fit: cover;
    border-radius: 20px;
    box-shadow: 0 20px 50px rgba(0,0,0,0.15);
    transition: all 0.4s ease;
}

.about-image.about-hero-image:hover img {
    transform: translateY(-5px);
    box-shadow: 0 25px 60px rgba(0,0,0,0.2);
}

@media (max-width: 768px) {
    .about-image.about-hero-image img {
        min-height: 400px;
    }

    .about-image.about-hero-image::before {
        top: -10px;
        left: -10px;
        right: 20px;
        bottom: 20px;
    }

    .about-image.about-hero-image::after {
        width: 60px;
        height: 60px;
    }
}

.about-content h2 {
    margin-bottom: var(--spacing-sm);
}

.about-content h2 span {
    color: var(--color-secondary);
}

.about-content p {
    color: var(--color-text-light);
    margin-bottom: var(--spacing-md);
}

.about-stats {
    display: flex;
    gap: 1rem;
    margin-top: 2rem;
}

.stat-item {
    flex: 1;
    text-align: center;
    padding: 1.25rem 1rem;
    background: var(--color-off-white);
    border-radius: 10px;
    border: 1px solid var(--color-light-gray);
}

.stat-number {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: var(--color-primary);
    font-family: var(--font-heading);
    line-height: 1.2;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.8rem;
    color: var(--color-text-light);
}

@media (max-width: 768px) {
    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-image {
        max-width: 85%;
        margin: 0 auto var(--spacing-md);
    }

    .about-image.featured-image img {
        border-radius: 10px 60px 10px 10px;
    }

    .about-stats {
        justify-content: center;
        gap: 2rem;
    }
}

@media (max-width: 480px) {
    .about-stats {
        gap: 0.5rem;
    }

    .stat-item {
        padding: 1rem 0.5rem;
    }

    .stat-number {
        font-size: 1.35rem;
    }

    .stat-label {
        font-size: 0.7rem;
    }
}

/* --------------------------------------------------------------------------
   Features Section
   -------------------------------------------------------------------------- */
.features {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.features .section-header h2 {
    color: var(--color-white);
}

.features .section-header p {
    color: rgba(255,255,255,0.8);
}

.feature-card {
    text-align: center;
    padding: var(--spacing-md);
}

.feature-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto var(--spacing-sm);
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    color: var(--color-secondary);
    transition: all var(--transition-base);
}

.feature-card:hover .feature-icon {
    background-color: var(--color-secondary);
    color: var(--color-white);
    transform: scale(1.1);
}

.section-parallax-dark .feature-card h3,
.section-parallax-dark .feature-card h4 {
    color: var(--color-white);
    margin-bottom: var(--spacing-xs);
    font-size: 1.5rem;
}

.section-parallax-dark .feature-card p {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
}

/* --------------------------------------------------------------------------
   Nearby Categories Section
   -------------------------------------------------------------------------- */
.nearby-categories {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

.nearby-category {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-md);
}

.category-header {
    display: flex;
    align-items: center;
    gap: 0.75rem;
    margin-bottom: 1.25rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--color-light-gray);
}

.category-header h3 {
    margin: 0;
    font-size: 1.2rem;
    color: inherit;
}

.category-items {
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
}

.nearby-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--color-light-gray);
}

.nearby-item:last-child {
    border-bottom: none;
}

.item-name {
    font-size: 0.95rem;
    color: var(--color-text);
}

.item-distance {
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-primary);
    background: var(--color-off-white);
    padding: 0.25rem 0.75rem;
    border-radius: 20px;
}

@media (max-width: 992px) {
    .nearby-categories {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }
}

/* --------------------------------------------------------------------------
   Rooms/Apartments Section
   -------------------------------------------------------------------------- */
.room-card {
    background-color: var(--color-white);
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all var(--transition-base);
}

.room-card:hover {
    transform: translateY(-10px);
    box-shadow: var(--shadow-lg);
}

.room-image {
    position: relative;
    height: 280px;
    overflow: hidden;
}

.room-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.room-card:hover .room-image img {
    transform: scale(1.1);
}

.room-badge {
    background-color: var(--color-secondary);
    color: var(--color-white);
    padding: 0.25rem 1rem;
    border-radius: var(--radius-sm);
    font-weight: 600;
    font-size: 0.85rem;
}

.room-image .room-badge {
    position: absolute;
    top: 1rem;
    left: 1rem;
}

.room-content {
    padding: var(--spacing-md);
}

.room-content h3 {
    margin-bottom: var(--spacing-xs);
}

.room-content p {
    color: var(--color-text-light);
    font-size: 0.95rem;
    margin-bottom: var(--spacing-sm);
}

.room-features {
    display: flex;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: var(--spacing-sm);
    padding-top: var(--spacing-sm);
    border-top: 1px solid var(--color-light-gray);
}

.room-feature {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.room-feature svg {
    width: 18px;
    height: 18px;
    color: var(--color-secondary);
}

/* --------------------------------------------------------------------------
   Attractions/Nearby Section
   -------------------------------------------------------------------------- */
.attractions-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: var(--spacing-sm);
}

.attraction-item {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: var(--spacing-sm);
    background-color: var(--color-off-white);
    border-radius: var(--radius-md);
    transition: all var(--transition-fast);
}

.attraction-item:hover {
    background-color: var(--color-primary);
    color: var(--color-white);
}

.attraction-icon {
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    flex-shrink: 0;
}

.attraction-item:hover .attraction-icon {
    background-color: var(--color-secondary);
}

.attraction-item h5 {
    font-size: 0.95rem;
    color: inherit;
}

.attraction-item span {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

.attraction-item:hover span {
    color: rgba(255,255,255,0.8);
}

/* --------------------------------------------------------------------------
   Testimonials Section
   -------------------------------------------------------------------------- */
.testimonials {
    background-color: var(--color-off-white);
}

.testimonial-card {
    background-color: var(--color-white);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-sm);
    text-align: center;
}

.testimonial-card img {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    margin: 0 auto var(--spacing-sm);
    border: 3px solid var(--color-secondary);
}

.testimonial-card p {
    font-style: italic;
    color: var(--color-text-light);
    margin-bottom: var(--spacing-sm);
}

.testimonial-card h5 {
    color: var(--color-primary);
    font-size: 1rem;
}

.testimonial-card span {
    font-size: 0.85rem;
    color: var(--color-text-light);
}

/* --------------------------------------------------------------------------
   Gallery Section
   -------------------------------------------------------------------------- */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: var(--spacing-sm);
}

.gallery-item {
    position: relative;
    border-radius: var(--radius-md);
    overflow: hidden;
    aspect-ratio: 4/3;
    cursor: pointer;
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform var(--transition-slow);
}

.gallery-item:hover img {
    transform: scale(1.1);
}

.gallery-item::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0,0,0,0.5), transparent);
    opacity: 0;
    transition: opacity var(--transition-base);
}

.gallery-item:hover::after {
    opacity: 1;
}

/* --------------------------------------------------------------------------
   FAQ Section
   -------------------------------------------------------------------------- */
.faq-list {
    max-width: 800px;
    margin: 0 auto;
}

.faq-item {
    background-color: var(--color-white);
    border-radius: var(--radius-md);
    margin-bottom: var(--spacing-sm);
    box-shadow: var(--shadow-sm);
    overflow: hidden;
}

.faq-question {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: var(--spacing-sm) var(--spacing-md);
    background: none;
    border: none;
    cursor: pointer;
    font-family: var(--font-heading);
    font-weight: 600;
    font-size: 1rem;
    color: var(--color-primary);
    text-align: left;
    transition: background-color var(--transition-fast);
}

.faq-question:hover {
    background-color: var(--color-off-white);
}

.faq-icon {
    width: 24px;
    height: 24px;
    transition: transform var(--transition-base);
}

.faq-item.active .faq-icon {
    transform: rotate(180deg);
}

.faq-answer {
    max-height: 0;
    overflow: hidden;
    transition: max-height var(--transition-base);
}

.faq-answer p {
    padding: 0 var(--spacing-md) var(--spacing-md);
    color: var(--color-text-light);
}

.faq-item.active .faq-answer {
    max-height: 200px;
}

/* --------------------------------------------------------------------------
   Contact Section
   -------------------------------------------------------------------------- */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
    align-items: start;
}

.contact-info h3 {
    margin-bottom: var(--spacing-md);
}

.contact-item {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
    margin-bottom: var(--spacing-md);
}

.contact-icon {
    width: 50px;
    height: 50px;
    background-color: var(--color-primary);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    flex-shrink: 0;
}

.contact-item h5 {
    margin-bottom: 0.25rem;
}

.contact-item p, .contact-item a {
    color: var(--color-text-light);
}

.contact-item a:hover {
    color: var(--color-secondary);
}

.contact-form {
    background-color: var(--color-white);
    padding: var(--spacing-md);
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
}

.form-group {
    margin-bottom: var(--spacing-sm);
}

.form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--color-primary);
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 1px solid var(--color-light-gray);
    border-radius: var(--radius-md);
    font-family: var(--font-body);
    font-size: 1rem;
    transition: border-color var(--transition-fast);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
    outline: none;
    border-color: var(--color-secondary);
}

.form-group textarea {
    resize: vertical;
    min-height: 120px;
}

@media (max-width: 768px) {
    .contact-grid {
        grid-template-columns: 1fr;
    }
}

/* --------------------------------------------------------------------------
   Map Section
   -------------------------------------------------------------------------- */
.map-container {
    width: 100%;
    height: 400px;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* --------------------------------------------------------------------------
   Footer
   -------------------------------------------------------------------------- */
.footer {
    background-color: var(--color-primary);
    color: var(--color-white);
    padding: var(--spacing-lg) 0 var(--spacing-md);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr 1fr;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.footer-brand img {
    height: 50px;
    margin-bottom: var(--spacing-sm);
}

.footer-brand p {
    color: rgba(255,255,255,0.7);
    font-size: 0.95rem;
}

.footer h4 {
    color: var(--color-white);
    margin-bottom: var(--spacing-sm);
    font-size: 1.1rem;
}

.footer-links li {
    margin-bottom: 0.5rem;
}

.footer-links a {
    color: rgba(255,255,255,0.7);
    transition: color var(--transition-fast);
}

.footer-links a:hover {
    color: var(--color-secondary);
}

.footer-contact p {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    color: rgba(255,255,255,0.7);
    margin-bottom: 0.5rem;
    font-size: 0.95rem;
}

.social-links {
    display: flex;
    gap: 1rem;
    margin-top: var(--spacing-sm);
}

.social-links a {
    width: 40px;
    height: 40px;
    background-color: rgba(255,255,255,0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    transition: all var(--transition-fast);
}

.social-links a:hover {
    background-color: var(--color-secondary);
}

.footer-bottom {
    text-align: center;
    padding-top: var(--spacing-md);
    border-top: 1px solid rgba(255,255,255,0.1);
}

.footer-bottom p {
    color: rgba(255,255,255,0.6);
    font-size: 0.9rem;
}

@media (max-width: 768px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 1.25rem;
        text-align: left;
    }

    .footer-brand {
        margin-bottom: 0.25rem;
    }

    .footer h4 {
        margin-bottom: 0.5rem;
    }

    .social-links {
        justify-content: flex-start;
    }

    .footer-links li {
        margin-bottom: 0.2rem;
    }
}

/* --------------------------------------------------------------------------
   WhatsApp Button
   -------------------------------------------------------------------------- */
.whatsapp-btn {
    position: fixed;
    bottom: 2rem;
    right: 2rem;
    width: 60px;
    height: 60px;
    background-color: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-white);
    font-size: 1.8rem;
    box-shadow: var(--shadow-lg);
    z-index: 999;
    transition: all var(--transition-base);
}

.whatsapp-btn:hover {
    transform: scale(1.1);
    background-color: #128C7E;
}

/* --------------------------------------------------------------------------
   Lightbox
   -------------------------------------------------------------------------- */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0,0,0,0.95);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 2000;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
}

.lightbox-close {
    position: absolute;
    top: 2rem;
    right: 2rem;
    width: 50px;
    height: 50px;
    background-color: rgba(255,255,255,0.1);
    border: none;
    border-radius: 50%;
    color: var(--color-white);
    font-size: 2rem;
    cursor: pointer;
    transition: background-color var(--transition-fast);
}

.lightbox-close:hover {
    background-color: var(--color-secondary);
}

/* --------------------------------------------------------------------------
   Utilities
   -------------------------------------------------------------------------- */
.bg-off-white { background-color: var(--color-off-white); }

.visually-hidden {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0, 0, 0, 0);
    white-space: nowrap;
    border: 0;
}

/* --------------------------------------------------------------------------
   ENHANCED MOBILE & TABLET RESPONSIVENESS
   -------------------------------------------------------------------------- */

/* Tablet Breakpoint (992px) */
@media (max-width: 992px) {
    .section {
        padding: var(--spacing-lg) 0;
    }

    .hero-content {
        max-width: 90%;
    }

    .hero h1 {
        font-size: 2.5rem;
    }

    .hero p {
        font-size: 1.1rem;
    }

    .about-grid {
        gap: var(--spacing-md);
    }

    .room-card .room-image {
        height: 220px;
    }

}

/* Mobile Breakpoint (768px) */
@media (max-width: 768px) {
    /* Reduce section padding */
    .section {
        padding: var(--spacing-md) 0;
    }

    .section-header {
        margin-bottom: var(--spacing-md);
    }

    .section-header h2 {
        font-size: 1.75rem;
    }

    .section-header p {
        font-size: 1rem;
    }

    /* Hero adjustments */
    .hero {
        min-height: 85vh;
        padding-top: 80px;
        padding-bottom: 40px;
    }

    .hero-content {
        padding: 0 1.5rem;
        margin-top: 20px;
    }

    .page-hero {
        min-height: 30vh;
        padding-top: 70px;
        padding-bottom: 20px;
    }

    .page-hero h1 {
        font-size: 1.5rem !important;
    }

    .page-hero p {
        font-size: 0.9rem !important;
    }

    .hero h1 {
        font-size: 1.85rem;
        margin-bottom: 0.75rem;
    }

    .hero p {
        font-size: 0.95rem;
        margin-bottom: 0.75rem;
    }

    .hero-buttons {
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
        margin-top: 1rem;
    }

    .hero-buttons .btn {
        width: 100%;
        max-width: 280px;
    }

    /* Hide location tags on mobile */
    .hero-locations {
        display: none;
    }

    /* Room cards - full width */
    .grid-2 {
        grid-template-columns: 1fr;
    }

    .room-card {
        max-width: 100%;
    }

    .room-image {
        height: 200px;
    }

    /* Features grid */
    .grid-4 {
        grid-template-columns: 1fr 1fr;
    }

    .feature-card {
        padding: var(--spacing-sm);
    }

    .feature-icon {
        width: 60px;
        height: 60px;
        font-size: 1.5rem;
    }

    /* Gallery grid */
    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 0.5rem;
    }

    .gallery-item {
        aspect-ratio: 1/1;
    }

    /* FAQ adjustments */
    .faq-question {
        padding: var(--spacing-sm);
        font-size: 0.95rem;
    }

    .faq-answer p {
        padding: 0 var(--spacing-sm) var(--spacing-sm);
        font-size: 0.9rem;
    }

    .faq-item.active .faq-answer {
        max-height: 300px;
    }

    /* Testimonials */
    .grid-3 {
        grid-template-columns: 1fr;
    }

    .testimonial-card {
        padding: var(--spacing-sm);
    }

    /* Buttons - full width on mobile */
    .btn {
        padding: 0.75rem 1.5rem;
        font-size: 0.9rem;
        width: 100%;
    }

    /* CTA Button Groups on Mobile */
    .section-header + div[style*="text-align: center"] {
        display: flex;
        flex-direction: column;
        align-items: center;
        gap: 0.75rem;
    }

    .section-header + div[style*="text-align: center"] .btn {
        width: 100%;
        max-width: 280px;
        margin: 0 !important;
    }

    /* WhatsApp button smaller */
    .whatsapp-btn {
        width: 50px;
        height: 50px;
        right: 1rem;
        bottom: 1rem;
    }

    /* Map */
    .map-container {
        height: 300px;
    }

    /* Section Separation on Mobile - Apartments Page */
    .section + .section {
        border-top: 1px solid var(--color-light-gray);
    }

    .section.bg-off-white {
        background-color: #f3f5f4;
        border-top: 4px solid var(--color-primary);
        margin-top: 1rem;
    }

    .section + .section.bg-off-white {
        border-top: 4px solid var(--color-primary);
    }

    /* About Grid on Mobile - Apartments Page */
    .about-grid {
        gap: 1.5rem;
    }

    .about-content h2 {
        font-size: 1.4rem !important;
        margin-bottom: 0.75rem;
        padding-bottom: 0.75rem;
        border-bottom: 2px solid var(--color-secondary);
    }

    .about-content h2 span {
        display: block;
        font-size: 0.85rem !important;
        font-weight: 400;
        color: var(--color-text-light);
        margin-top: 0.25rem;
    }

    /* Room features better spacing on mobile */
    .room-features {
        gap: 0.5rem;
    }

    .room-feature {
        font-size: 0.8rem;
        padding: 0.4rem 0.6rem;
    }

    /* Long Stay Discounts Grid on Mobile */
    .grid-5 {
        grid-template-columns: repeat(3, 1fr);
        gap: 0.75rem;
    }

    .grid-5 .feature-card {
        padding: 1rem 0.5rem;
    }

    .grid-5 .feature-card h3 {
        font-size: 1.5rem !important;
    }

    .grid-5 .feature-card p {
        font-size: 0.75rem !important;
    }
}

/* Small Mobile (480px) */
@media (max-width: 480px) {
    .container {
        padding: 0 1.25rem;
    }

    .section {
        padding: var(--spacing-sm) 0;
    }

    /* Hero */
    .hero {
        min-height: 100vh;
        min-height: 100svh; /* Small viewport height for mobile browsers */
        padding-top: 70px;
        padding-bottom: 30px;
    }

    .hero-content {
        padding: 0 1.25rem;
    }

    .hero h1 {
        font-size: 1.6rem;
        line-height: 1.25;
    }

    .hero p {
        font-size: 0.9rem;
        line-height: 1.5;
    }

    .page-hero {
        min-height: 35vh;
        padding-top: 70px;
    }

    /* Section Separation - Small Mobile */
    .section + .section {
        padding-top: 1.5rem;
    }

    .section.bg-off-white {
        padding: 1.5rem 0;
    }

    /* About Grid section header on apartments page */
    .about-content h2 {
        font-size: 1.25rem !important;
        line-height: 1.3;
    }

    .about-content h2 span {
        font-size: 0.75rem !important;
    }

    /* Features - single column */
    .grid-4,
    .grid-3 {
        grid-template-columns: 1fr;
    }

    /* Long Stay Discounts - 2 columns on small mobile */
    .grid-5 {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.5rem;
    }

    .grid-5 .feature-card h3 {
        font-size: 1.25rem !important;
    }

    .grid-5 .feature-card p {
        font-size: 0.7rem !important;
    }

    /* Gallery - single column */
    .gallery-grid {
        grid-template-columns: 1fr;
    }

    /* Room card */
    .room-content {
        padding: var(--spacing-sm);
    }

    .room-features {
        flex-direction: column;
        gap: 0.5rem;
    }

    /* Contact icons smaller */
    .contact-icon {
        width: 40px;
        height: 40px;
    }

    /* Logo smaller */
    .logo img {
        height: 40px;
    }

    /* Modal */
    .modal-content {
        padding: 1.25rem;
        margin: 0.5rem;
    }

    .modal-icon {
        width: 60px;
        height: 60px;
    }

    /* Lightbox */
    .lightbox-close {
        top: 1rem;
        right: 1rem;
        width: 40px;
        height: 40px;
        font-size: 1.5rem;
    }

    /* CTA Button Groups - Smaller screens */
    .section-header + div[style*="text-align: center"] .btn {
        max-width: 100%;
        padding: 0.7rem 1.25rem;
        font-size: 0.85rem;
    }
}

/* Long Stay Discounts Section - Mobile Fix */
@media (max-width: 768px) {
    .grid-5 {
        grid-template-columns: repeat(2, 1fr);
        gap: 0.75rem;
    }
}

@media (max-width: 400px) {
    .grid-5 {
        grid-template-columns: 1fr;
    }
}

/* Touch Device Improvements */
@media (hover: none) and (pointer: coarse) {
    /* Larger touch targets */
    .nav-link {
        padding: 0.75rem 0;
    }

    .faq-question {
        min-height: 60px;
    }

    .btn {
        min-height: 48px;
    }

    /* Disable hover effects that don't work on touch */
    .room-card:hover {
        transform: none;
    }

    .gallery-item:hover img {
        transform: none;
    }

    .attraction-item:hover {
        background-color: var(--color-off-white);
        color: inherit;
    }

    .attraction-item:hover .attraction-icon {
        background-color: var(--color-primary);
    }

    /* Location tags - show as tappable */
    .location-tag {
        cursor: default;
    }
}

/* Landscape Mobile Fix */
@media (max-width: 768px) and (orientation: landscape) {
    .hero {
        min-height: auto;
        padding-top: 70px;
        padding-bottom: 30px;
    }

    .hero-content {
        margin-top: 10px;
    }

    .hero h1 {
        font-size: 1.5rem;
    }

    .hero p {
        font-size: 0.85rem;
        margin-bottom: 0.5rem;
    }

    .hero-buttons {
        flex-direction: row;
        flex-wrap: wrap;
    }

    .hero-buttons .btn {
        width: auto;
        max-width: none;
        padding: 0.6rem 1.25rem;
        font-size: 0.8rem;
    }

    .page-hero {
        min-height: auto;
        padding: 80px 0 30px;
    }
}

/* Fix for iOS Safari 100vh issue */
@supports (-webkit-touch-callout: none) {
    .hero {
        min-height: -webkit-fill-available;
    }

    @media (max-width: 768px) {
        .hero {
            min-height: 100svh;
        }
    }
}

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

/* Smooth scrolling for anchor links */
@media (prefers-reduced-motion: no-preference) {
    html {
        scroll-behavior: smooth;
    }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }
}

/* --------------------------------------------------------------------------
   APARTMENTS PAGE MOBILE FIXES
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    /* Strong Section Separation for Room Types */
    #onebhk,
    #twobhk {
        position: relative;
    }

    #twobhk {
        border-top: 3px solid var(--color-primary);
        margin-top: 0.5rem;
    }

    #twobhk::before {
        content: '';
        display: block;
        width: 60px;
        height: 3px;
        background: var(--color-secondary);
        position: absolute;
        top: -3px;
        left: 50%;
        transform: translateX(-50%);
    }

    /* About Grid Image styling */
    .about-image {
        border-radius: var(--radius-lg);
        overflow: hidden;
        box-shadow: var(--shadow-md);
    }

    .about-image img {
        width: 100%;
        height: auto;
        aspect-ratio: 16/10;
        object-fit: cover;
    }

    /* Override inline styles on apartments page */
    .about-content h2[style] {
        font-size: 1.25rem !important;
        position: relative;
        padding-bottom: 0.75rem;
        margin-bottom: 1rem;
    }

    .about-content h2[style]::after {
        content: '';
        display: block;
        width: 50px;
        height: 3px;
        background: var(--color-secondary);
        position: absolute;
        bottom: 0;
        left: 0;
    }

    .about-content h2 span {
        display: block;
        font-size: 0.8rem;
        margin-top: 0.25rem;
    }

    .about-content p[style*="font-size: 1.25rem"] {
        font-size: 1rem !important;
    }

    .about-content p {
        font-size: 0.9rem;
    }

    .about-content h4 {
        font-size: 1rem;
        margin-top: 1.25rem !important;
        padding-top: 1rem;
        border-top: 1px solid var(--color-light-gray);
    }

    /* Fix RTL grid on mobile */
    .about-grid[style*="direction: rtl"] {
        direction: ltr !important;
    }

    /* Room features wrap better */
    .room-features {
        gap: 0.6rem;
        background: var(--color-off-white);
        padding: 1rem;
        border-radius: var(--radius-md);
        margin-top: 0.5rem;
    }

    .room-feature {
        font-size: 0.75rem;
        background: var(--color-white);
        border: 1px solid var(--color-light-gray);
    }

    /* Long Stay Discounts Section */
    .section:has(.grid-5) .section-header {
        margin-bottom: 1.5rem;
    }

    .section:has(.grid-5) .section-header h2 {
        font-size: 1.4rem;
    }

    /* Policies Section */
    .section.bg-off-white:has(.faq-list) {
        margin-top: 0.5rem;
        border-top: 3px solid var(--color-primary);
    }
}

@media (max-width: 480px) {
    /* Stronger section separation on small screens */
    #twobhk {
        border-top-width: 4px;
        margin-top: 1rem;
        padding-top: 1.5rem;
    }

    #twobhk::before {
        width: 80px;
        height: 4px;
    }

    .about-content h2[style] {
        font-size: 1.1rem !important;
    }

    .about-content h2[style]::after {
        width: 40px;
    }

    .about-content h2 span {
        font-size: 0.75rem;
    }

    .about-content p[style*="font-size: 1.25rem"] {
        font-size: 0.9rem !important;
    }

    .about-content p {
        font-size: 0.85rem;
    }

    /* Room features vertical on very small screens */
    .room-features {
        flex-direction: column;
        gap: 0.4rem;
        padding: 0.75rem;
    }

    .room-feature {
        justify-content: flex-start;
        font-size: 0.7rem;
        padding: 0.5rem 0.75rem;
    }

    /* Policies section */
    .section.bg-off-white:has(.faq-list) {
        border-top-width: 4px;
        margin-top: 1rem;
    }
}

/* --------------------------------------------------------------------------
   ABOUT PAGE MOBILE FIXES
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .about-image.about-hero-image img {
        min-height: 300px;
        width: 100%;
    }

    .about-image.about-hero-image::before {
        width: 100%;
        height: calc(100% - 30px);
    }

    /* Close to Everything section */
    .features .about-content h2 {
        font-size: 1.75rem !important;
        line-height: 1.3;
    }

    .features .about-content p {
        font-size: 1rem;
    }
}

@media (max-width: 480px) {
    .features .about-content h2 {
        font-size: 1.5rem !important;
    }
}

/* --------------------------------------------------------------------------
   INDEX PAGE - LONG STAY DISCOUNTS MOBILE
   -------------------------------------------------------------------------- */
.discount-card {
    padding: 1rem;
    text-align: center;
    background: var(--color-off-white);
    border-radius: var(--radius-md);
    transition: all var(--transition-base);
}

.discount-card:hover {
    background: var(--color-secondary);
    color: white;
}

@media (max-width: 768px) {
    .discount-card {
        padding: 0.75rem 0.5rem;
    }

    .discount-card h4 {
        font-size: 0.9rem;
    }

    .discount-card p {
        font-size: 0.8rem;
    }
}

/* --------------------------------------------------------------------------
   IDEAL FOR SECTION MOBILE
   -------------------------------------------------------------------------- */
@media (max-width: 768px) {
    .ideal-for-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 0.75rem;
    }
}

@media (max-width: 400px) {
    .ideal-for-grid {
        grid-template-columns: 1fr !important;
    }
}

/* ==========================================================================
   UX ANIMATIONS & ENHANCEMENTS
   ========================================================================== */

/* --------------------------------------------------------------------------
   Smooth Scroll Behavior
   -------------------------------------------------------------------------- */
html {
    scroll-behavior: smooth;
}

/* --------------------------------------------------------------------------
   Page Transition Effect
   -------------------------------------------------------------------------- */
.page-transition {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: var(--color-primary);
    z-index: 9999;
    pointer-events: none;
    opacity: 0;
    transition: opacity 0.4s ease;
}

.page-transition.active {
    opacity: 1;
}

body {
    animation: fadeInPage 0.6s ease forwards;
}

@keyframes fadeInPage {
    from {
        opacity: 0;
    }
    to {
        opacity: 1;
    }
}

/* --------------------------------------------------------------------------
   Scroll Progress Indicator
   -------------------------------------------------------------------------- */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    width: 0%;
    height: 3px;
    background: linear-gradient(90deg, var(--color-secondary), var(--color-secondary-light));
    z-index: 10000;
    transition: width 0.1s ease-out;
}

/* --------------------------------------------------------------------------
   Scroll-triggered Animations
   -------------------------------------------------------------------------- */
.animate-on-scroll {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-on-scroll.animated {
    opacity: 1;
    transform: translateY(0);
}

/* Animation variants */
.animate-fade-up {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-fade-up.animated {
    opacity: 1;
    transform: translateY(0);
}

.animate-fade-left {
    opacity: 0;
    transform: translateX(-40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-fade-left.animated {
    opacity: 1;
    transform: translateX(0);
}

.animate-fade-right {
    opacity: 0;
    transform: translateX(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.animate-fade-right.animated {
    opacity: 1;
    transform: translateX(0);
}

.animate-scale {
    opacity: 0;
    transform: scale(0.9);
    transition: opacity 0.6s ease, transform 0.6s ease;
}

.animate-scale.animated {
    opacity: 1;
    transform: scale(1);
}

/* Stagger animations for grid items */
.stagger-animation > * {
    opacity: 0;
    transform: translateY(20px);
    transition: opacity 0.5s ease, transform 0.5s ease;
}

.stagger-animation.animated > *:nth-child(1) { transition-delay: 0.1s; }
.stagger-animation.animated > *:nth-child(2) { transition-delay: 0.2s; }
.stagger-animation.animated > *:nth-child(3) { transition-delay: 0.3s; }
.stagger-animation.animated > *:nth-child(4) { transition-delay: 0.4s; }
.stagger-animation.animated > *:nth-child(5) { transition-delay: 0.5s; }
.stagger-animation.animated > *:nth-child(6) { transition-delay: 0.6s; }

.stagger-animation.animated > * {
    opacity: 1;
    transform: translateY(0);
}

/* --------------------------------------------------------------------------
   Enhanced Image Loading
   -------------------------------------------------------------------------- */
img[loading="lazy"] {
    opacity: 0;
    transition: opacity 0.5s ease;
}

img[loading="lazy"].loaded,
img:not([loading="lazy"]) {
    opacity: 1;
}

/* --------------------------------------------------------------------------
   Enhanced Hover Effects
   -------------------------------------------------------------------------- */
.room-card {
    transition: transform 0.4s cubic-bezier(0.175, 0.885, 0.32, 1.275),
                box-shadow 0.4s ease;
}

.room-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0, 68, 63, 0.15);
}

.btn {
    position: relative;
    overflow: hidden;
    transition: all 0.3s ease;
}

.btn::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    transform: translate(-50%, -50%);
    transition: width 0.6s ease, height 0.6s ease;
}

.btn:hover::after {
    width: 300px;
    height: 300px;
}

.btn:active {
    transform: scale(0.98);
}

/* Gallery item hover effect */
.gallery-item {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.gallery-item:hover {
    transform: scale(1.03);
    box-shadow: 0 15px 35px rgba(0, 0, 0, 0.2);
    z-index: 10;
}

.gallery-item img {
    transition: transform 0.6s ease;
}

.gallery-item:hover img {
    transform: scale(1.1);
}

/* Feature card hover enhancement */
.feature-card {
    transition: transform 0.4s ease, background 0.4s ease;
}

.feature-card:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.05);
}

/* Testimonial card hover */
.testimonial-card {
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

.testimonial-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.1);
}

/* FAQ hover effect */
.faq-question {
    transition: all 0.3s ease;
}

.faq-question:hover {
    background: rgba(0, 68, 63, 0.03);
}

/* --------------------------------------------------------------------------
   Scroll to Top Button
   -------------------------------------------------------------------------- */
.scroll-top {
    position: fixed;
    bottom: 100px;
    right: 25px;
    width: 45px;
    height: 45px;
    background: var(--color-primary);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: all 0.4s ease;
    z-index: 999;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(0, 68, 63, 0.3);
}

.scroll-top.visible {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.scroll-top:hover {
    background: var(--color-secondary);
    transform: translateY(-3px);
    box-shadow: 0 6px 20px rgba(204, 153, 51, 0.4);
}

.scroll-top svg {
    width: 20px;
    height: 20px;
}

/* --------------------------------------------------------------------------
   Loading Skeleton (for future use)
   -------------------------------------------------------------------------- */
.skeleton {
    background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
    0% { background-position: -200% 0; }
    100% { background-position: 200% 0; }
}

/* --------------------------------------------------------------------------
   Smooth Section Transitions
   -------------------------------------------------------------------------- */
.section {
    position: relative;
}

.section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 1px;
    background: linear-gradient(90deg, transparent, rgba(0, 68, 63, 0.1), transparent);
}

/* --------------------------------------------------------------------------
   Counter Animation (for stats)
   -------------------------------------------------------------------------- */
.stat-number {
    display: inline-block;
}

.stat-number.counting {
    animation: countPulse 0.3s ease;
}

@keyframes countPulse {
    0%, 100% { transform: scale(1); }
    50% { transform: scale(1.1); }
}

/* --------------------------------------------------------------------------
   Nav link underline animation
   -------------------------------------------------------------------------- */
.nav-link {
    position: relative;
}

.nav-link::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 50%;
    width: 0;
    height: 2px;
    background: var(--color-secondary);
    transition: all 0.3s ease;
    transform: translateX(-50%);
}

.nav-link:hover::after,
.nav-link.active::after {
    width: 100%;
}

/* --------------------------------------------------------------------------
   Reduce Motion for Accessibility
   -------------------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
    *,
    *::before,
    *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
    }

    html {
        scroll-behavior: auto;
    }

    .animate-on-scroll,
    .animate-fade-up,
    .animate-fade-left,
    .animate-fade-right,
    .animate-scale {
        opacity: 1;
        transform: none;
    }
}

/* --------------------------------------------------------------------------
   Component Classes (Refactored from Inline Styles)
   -------------------------------------------------------------------------- */

/* Section Backgrounds */
.section-gradient-light {
    background: linear-gradient(135deg, #e8f0ef 0%, #f0f5f4 100%);
}

.section-white {
    background: #ffffff;
}

.section-parallax-dark {
    background: linear-gradient(rgba(0, 68, 63, 0.85), rgba(0, 68, 63, 0.85)), url('../images/hero/spezio-booking-hero.webp') center/cover no-repeat fixed;
    padding: 4rem 0;
}

/* Discount Cards */
.discount-grid {
    text-align: center;
}

.discount-card {
    background: var(--color-off-white);
    border-radius: 16px;
    padding: 1.5rem;
}

.discount-card-highlight {
    background: var(--color-primary);
}

.discount-value {
    color: var(--color-primary);
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.discount-value-highlight {
    color: var(--color-accent);
}

.discount-label {
    color: var(--color-text-light);
    margin: 0;
}

.discount-label-light {
    color: rgba(255,255,255,0.8);
}

/* Tags/Badges */
.tag-container {
    margin-top: 3rem;
    text-align: center;
}

.tag-title {
    color: var(--color-primary);
    margin-bottom: 1.5rem;
}

.tag-list {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 1rem;
}

.tag {
    background: white;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    font-size: 0.95rem;
    color: var(--color-text);
    box-shadow: var(--shadow-sm);
}

/* Category Headers */
.category-healthcare {
    color: #e74c3c;
}

.category-temples {
    color: var(--color-secondary);
}

.category-transport {
    color: var(--color-primary);
}

/* Amenities List */
.amenities-title {
    margin-top: 1.5rem;
    margin-bottom: 1rem;
}

/* Room Cards Extended */
.room-title-span {
    font-weight: 400;
    font-size: 0.9em;
    opacity: 0.8;
}

/* Button Spacing */
.btn-mt {
    margin-top: 1.5rem;
}

/* About Page Specific */
.about-image-full {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
}

/* Feature Card Colors */
.feature-title-primary {
    color: var(--color-primary);
}

/* Contact Page */
.contact-note {
    text-align: center;
    margin-top: 1rem;
    color: var(--color-text-light);
    font-size: 0.9rem;
}

.contact-note a {
    color: var(--color-primary);
    text-decoration: underline;
}

/* Gallery Button Spacing */
.btn-ml {
    margin-left: 1rem;
    background: var(--color-primary);
    color: white;
}

/* About Page Extended */
.about-grid-center {
    align-items: center;
}

.about-content-light {
    color: white;
}

.about-content-light h2 {
    color: white;
}

.about-content-light p {
    color: rgba(255,255,255,0.9);
}

.about-image-rounded {
    border-radius: 16px;
    overflow: hidden;
    height: 350px;
}

/* Feature Cards White */
.feature-card-white {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    box-shadow: var(--shadow-sm);
}

.feature-card-white .feature-icon {
    background: var(--color-primary);
}

.feature-card-white h3,
.feature-card-white h4 {
    color: var(--color-primary);
    font-size: 1.25rem;
}

.feature-card-white p {
    color: var(--color-text-light);
}

/* Discount Cards White Variant */
.discount-card-white {
    background: white;
    border-radius: 16px;
    padding: 1.5rem;
    box-shadow: var(--shadow-sm);
}


/* --------------------------------------------------------------------------
   Legal Pages (Privacy Policy, Terms)
   -------------------------------------------------------------------------- */
.legal-content h3 {
    color: var(--color-primary);
    margin-top: 2rem;
    margin-bottom: 1rem;
    font-size: 1.3rem;
}

.legal-content h4 {
    color: var(--color-primary);
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
    font-size: 1.1rem;
}

.legal-content p {
    color: var(--color-text);
    margin-bottom: 1rem;
    line-height: 1.8;
}

.legal-content ul {
    list-style: disc;
    padding-left: 1.5rem;
    margin-bottom: 1rem;
}

.legal-content ul li {
    color: var(--color-text);
    margin-bottom: 0.5rem;
    line-height: 1.7;
}

.legal-content a {
    color: var(--color-primary);
    text-decoration: underline;
}

.legal-content a:hover {
    color: var(--color-secondary);
}

/* --------------------------------------------------------------------------
   Cookie Consent Banner
   -------------------------------------------------------------------------- */
.cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--color-primary);
    color: white;
    padding: 1rem 1.5rem;
    z-index: 10000;
    transform: translateY(100%);
    transition: transform 0.4s ease;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.15);
}

.cookie-consent.show {
    transform: translateY(0);
}

.cookie-consent-content {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.cookie-consent-text {
    flex: 1;
    min-width: 280px;
}

.cookie-consent-text p {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
}

.cookie-consent-text a {
    color: #e6b84d;
    text-decoration: underline;
    font-weight: 600;
}

.cookie-consent-buttons {
    display: flex;
    gap: 0.75rem;
    flex-shrink: 0;
}

.cookie-consent-buttons button {
    padding: 0.6rem 1.25rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.9rem;
    cursor: pointer;
    transition: all 0.3s ease;
    border: none;
}

.cookie-accept {
    background: var(--color-secondary);
    color: #1a1a1a;
}

.cookie-accept:hover {
    background: var(--color-secondary-light);
}

.cookie-decline {
    background: transparent;
    color: white;
    border: 1px solid rgba(255, 255, 255, 0.4) !important;
}

.cookie-decline:hover {
    background: rgba(255, 255, 255, 0.1);
}

@media (max-width: 768px) {
    .cookie-consent {
        padding: 1rem;
    }

    .cookie-consent-content {
        flex-direction: column;
        text-align: center;
    }

    .cookie-consent-text p {
        font-size: 0.85rem;
    }

    .cookie-consent-buttons {
        width: 100%;
        justify-content: center;
    }

    .cookie-consent-buttons button {
        flex: 1;
        max-width: 150px;
    }
}


/* --------------------------------------------------------------------------
   Custom Popup Modal
   -------------------------------------------------------------------------- */
.popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10000;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
    backdrop-filter: blur(4px);
}

.popup-overlay.active {
    opacity: 1;
    visibility: visible;
}

.popup-box {
    background: white;
    border-radius: 16px;
    padding: 2rem;
    max-width: 400px;
    width: 90%;
    text-align: center;
    transform: scale(0.8) translateY(-20px);
    transition: transform 0.3s ease;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.popup-overlay.active .popup-box {
    transform: scale(1) translateY(0);
}

.popup-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 1rem;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.popup-icon.success {
    background: #d4edda;
    color: #28a745;
}

.popup-icon.error {
    background: #f8d7da;
    color: #dc3545;
}

.popup-icon.info {
    background: #e7f3ff;
    color: #0066cc;
}

.popup-icon svg {
    width: 30px;
    height: 30px;
}

.popup-title {
    font-size: 1.25rem;
    font-weight: 700;
    color: var(--color-primary);
    margin-bottom: 0.5rem;
}

.popup-message {
    color: var(--color-text);
    margin-bottom: 1.5rem;
    line-height: 1.6;
}

.popup-btn {
    background: var(--color-primary);
    color: white;
    border: none;
    padding: 0.75rem 2rem;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.3s ease;
}

.popup-btn:hover {
    background: var(--color-primary-dark);
}
