/* 
===========================================
  SUNRISE HOME - MODERN DESIGN SYSTEM
===========================================
*/

:root {
    /* Primary Color Palette (Red & White Theme) */
    --color-primary: #dc2626;
    /* Vibrant elegant red */
    --color-primary-dark: #b91c1c;
    --color-primary-light: #fef2f2;
    --color-white: #ffffff;
    --color-bg: #fafafa;
    --color-bg-alt: #f3f4f6;

    /* Text Colors */
    --color-text-main: #1f2937;
    --color-text-muted: #6b7280;

    /* UI Dynamics */
    --font-heading: 'Playfair Display', serif;
    --font-body: 'Outfit', sans-serif;

    --shadow-sm: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
    --shadow-md: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06);
    --shadow-lg: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05);
    --shadow-float: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);

    --transition-fast: 0.2s ease-in-out;
    --transition-smooth: 0.4s cubic-bezier(0.16, 1, 0.3, 1);
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
    scroll-padding-top: 80px;
}

body {
    font-family: var(--font-body);
    color: var(--color-text-main);
    background-color: var(--color-bg);
    line-height: 1.6;
    overflow-x: hidden;
}

h1,
h2,
h3,
h4,
h5,
h6 {
    font-family: var(--font-heading);
    color: var(--color-text-main);
    margin-bottom: 1rem;
    font-weight: 600;
}

p {
    margin-bottom: 1rem;
    color: var(--color-text-muted);
}

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

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

/* Utilities */
.container {
    width: 90%;
    max-width: 1200px;
    margin: 0 auto;
}

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

.bg-light {
    background-color: var(--color-bg-alt);
}

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

.text-white {
    color: var(--color-white) !important;
}

.text-white h2,
.text-white p,
.text-white h3 {
    color: var(--color-white) !important;
}

.text-white-50 {
    color: rgba(255, 255, 255, 0.8) !important;
}

.center {
    text-align: center;
}

.mt-4 {
    margin-top: 2rem;
}

.hidden {
    display: none !important;
}

/* Buttons */
.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 10px 24px;
    border-radius: 50px;
    font-size: 1rem;
    font-weight: 500;
    cursor: pointer;
    transition: all var(--transition-smooth);
    border: 2px solid transparent;
    font-family: var(--font-body);
    gap: 8px;
}

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

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

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

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

.btn-large {
    padding: 14px 32px;
    font-size: 1.1rem;
}

.btn-full {
    width: 100%;
}

.btn-text {
    background: transparent;
    color: var(--color-primary);
    padding: 0;
    font-weight: 600;
}

.btn-text:hover {
    color: var(--color-primary-dark);
    gap: 12px;
}

/* Navbar */
.navbar {
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    padding: 20px 0;
    transition: all var(--transition-smooth);
    background: transparent;
}

.navbar.scrolled {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 15px 0;
    box-shadow: var(--shadow-md);
}

.nav-container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.logo {
    font-family: var(--font-heading);
    font-size: 1.5rem;
    font-weight: 700;
    letter-spacing: -0.5px;
}

.navbar:not(.scrolled) .logo,
.navbar:not(.scrolled) .nav-links a {
    color: var(--color-white);
}

.logo-red {
    color: var(--color-primary);
}

.nav-links {
    display: flex;
    gap: 30px;
}

.nav-links a {
    font-weight: 500;
    position: relative;
    padding: 5px 0;
}

.nav-links a::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 0;
    height: 2px;
    background-color: var(--color-primary);
    transition: width var(--transition-fast);
}

.nav-links a:hover::after {
    width: 100%;
}

.nav-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.mobile-menu-btn {
    display: none;
    background: none;
    border: none;
    font-size: 2rem;
    cursor: pointer;
    color: var(--color-text-main);
}

.navbar:not(.scrolled) .mobile-menu-btn {
    color: var(--color-white);
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100vh;
    background: rgba(255, 255, 255, 0.98);
    backdrop-filter: blur(10px);
    z-index: 2000;
    transition: left var(--transition-smooth);
    display: flex;
    align-items: center;
    justify-content: center;
}

.mobile-menu.active {
    left: 0;
}

.mobile-menu-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    width: 100%;
}

.mobile-link {
    font-family: var(--font-heading);
    font-size: 2rem;
    color: var(--color-text-main);
}

.mobile-link:hover {
    color: var(--color-primary);
}

.close-menu {
    position: absolute;
    top: 20px;
    right: 30px;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--color-text-main);
    cursor: pointer;
}

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

.hero-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('../images/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: -2;
}

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

.hero-content {
    max-width: 800px;
    padding-top: 50px;
}

.hero-content h1 {
    font-size: 4.5rem;
    line-height: 1.1;
    margin-bottom: 20px;
    font-style: italic;
}

.hero-content h1 span {
    color: var(--color-primary);
    font-style: normal;
}

.hero-content p {
    font-size: 1.25rem;
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 40px;
}

/* Booking Section */
.booking-section {
    position: relative;
    margin-top: -60px;
    z-index: 10;
}

.booking-card {
    background: var(--color-white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-float);
}

.booking-form {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 20px;
    align-items: end;
}

.form-group label {
    display: block;
    font-size: 0.85rem;
    font-weight: 600;
    color: var(--color-text-muted);
    margin-bottom: 8px;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px 0;
    border: none;
    border-bottom: 2px solid #e5e7eb;
    font-size: 1rem;
    font-family: var(--font-body);
    color: var(--color-text-main);
    background: transparent;
    transition: border-color var(--transition-fast);
    outline: none;
}

.form-group input:focus,
.form-group select:focus {
    border-color: var(--color-primary);
}

.api-result {
    margin-top: 20px;
    padding: 20px;
    border-radius: 8px;
    background-color: var(--color-primary-light);
    color: var(--color-primary-dark);
    text-align: center;
    border: 1px solid #fecaca;
    animation: fadeIn 0.5s ease;
}

.loader {
    width: 24px;
    height: 24px;
    border: 3px solid rgba(220, 38, 38, 0.3);
    border-radius: 50%;
    border-top-color: var(--color-primary);
    animation: spin 1s ease-in-out infinite;
    margin: 0 auto 10px auto;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* General Sections */
section {
    padding: 100px 0;
}

.section-title {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

.section-header {
    margin-bottom: 50px;
}

.section-header.center {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    max-width: 600px;
    margin: 0 auto 50px auto;
}

/* About Section */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 60px;
    align-items: center;
}

.features-list {
    list-style: none;
}

.features-list li {
    display: flex;
    align-items: center;
    gap: 15px;
    margin-bottom: 15px;
    font-size: 1.1rem;
    font-weight: 500;
}

.features-list ion-icon {
    font-size: 1.5rem;
    color: var(--color-primary);
    background: var(--color-primary-light);
    padding: 10px;
    border-radius: 50%;
}

.about-images {
    position: relative;
    height: 500px;
}

.img-wrapper {
    position: absolute;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

.main-img {
    width: 80%;
    height: 80%;
    top: 0;
    right: 0;
    z-index: 1;
}

.sub-img {
    width: 60%;
    height: 60%;
    bottom: 0;
    left: 0;
    z-index: 2;
    border: 5px solid var(--color-bg);
}

.img-fluid {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.img-wrapper:hover .img-fluid {
    transform: scale(1.05);
}

/* Rooms Section */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.room-card {
    background: var(--color-white);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-smooth);
    border: 1px solid #f3f4f6;
}

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

.room-img-wrapper {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.room-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

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

.room-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--color-primary);
    color: var(--color-white);
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
}

.room-content {
    padding: 25px;
}

.room-content h3 {
    font-size: 1.5rem;
    margin-bottom: 10px;
}

.room-amenities {
    display: flex;
    justify-content: space-between;
    margin: 15px 0 25px 0;
    padding-bottom: 15px;
    border-bottom: 1px solid #e5e7eb;
}

.room-amenities span {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 0.9rem;
    color: var(--color-text-muted);
}

.room-amenities ion-icon {
    color: var(--color-primary);
}

/* POI Section */
.poi-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.poi-card {
    background: var(--color-white);
    padding: 30px;
    border-radius: 12px;
    box-shadow: var(--shadow-sm);
    text-align: center;
    transition: all var(--transition-smooth);
}

.poi-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-md);
    background: var(--color-primary);
    color: var(--color-white);
}

.poi-card:hover h4,
.poi-card:hover p {
    color: var(--color-white);
}

.poi-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 70px;
    height: 70px;
    background: var(--color-primary-light);
    color: var(--color-primary);
    border-radius: 50%;
    font-size: 2rem;
    margin-bottom: 20px;
    transition: all var(--transition-smooth);
}

.poi-card:hover .poi-icon {
    background: rgba(255, 255, 255, 0.2);
    color: var(--color-white);
}

.poi-card h4 {
    font-size: 1.25rem;
    margin-bottom: 15px;
}

/* Reviews Section */
.reviews-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Google Reviews summary bar */
.reviews-summary {
    display: flex;
    align-items: center;
    gap: 20px;
    margin-bottom: 35px;
    flex-wrap: wrap;
}
.reviews-summary-rating {
    font-size: 3.2rem;
    font-weight: 700;
    color: #fff;
    line-height: 1;
}
.reviews-summary-stars {
    color: #fbbf24;
    font-size: 1.3rem;
    letter-spacing: 2px;
}
.reviews-summary-count {
    color: rgba(255,255,255,0.65);
    font-size: 0.88rem;
    margin-top: 4px;
}
.reviews-summary-link {
    margin-left: auto;
    color: #fbbf24;
    text-decoration: none;
    font-size: 0.88rem;
    white-space: nowrap;
    border: 1px solid rgba(251,191,36,0.5);
    padding: 9px 18px;
    border-radius: 20px;
    transition: background 0.3s;
}
.reviews-summary-link:hover { background: rgba(251,191,36,0.12); }

/* Reviews grid */
.reviews-grid {
    display: flex;
    flex-direction: row;
    gap: 16px;
    overflow-x: auto;
    padding-bottom: 12px;
    scrollbar-width: thin;
    scrollbar-color: rgba(255,255,255,0.2) transparent;
}
.reviews-grid::-webkit-scrollbar { height: 5px; }
.reviews-grid::-webkit-scrollbar-track { background: transparent; }
.reviews-grid::-webkit-scrollbar-thumb { background: rgba(255,255,255,0.25); border-radius: 10px; }

/* Reviews arrow buttons */
.reviews-scroll-wrapper { position: relative; }
.reviews-arrow {
    position: absolute;
    top: 50%; transform: translateY(-50%);
    background: rgba(255,255,255,0.15);
    border: none; color: #fff;
    width: 40px; height: 40px;
    border-radius: 50%;
    font-size: 1.4rem;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    z-index: 2;
    transition: background 0.2s;
    flex-shrink: 0;
}
.reviews-arrow:hover { background: rgba(255,255,255,0.32); }
.reviews-arrow.rev-prev { left: -20px; }
.reviews-arrow.rev-next { right: -20px; }
@media (max-width: 768px) {
    .reviews-arrow.rev-prev { left: 0; }
    .reviews-arrow.rev-next { right: 0; }
}

/* Lightbox */
#lb {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.93);
    z-index: 9999;
    align-items: center;
    justify-content: center;
}
#lb.active { display: flex; }
#lb-img {
    max-width: 90vw;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.5);
    user-select: none;
}
#lb-close { top: 16px; right: 16px; position: absolute; font-size: 1.2rem; }
#lb-prev  { left: 16px;  top: 50%; transform: translateY(-50%); position: absolute; font-size: 1.8rem; }
#lb-next  { right: 16px; top: 50%; transform: translateY(-50%); position: absolute; font-size: 1.8rem; }
#lb-close, #lb-prev, #lb-next {
    background: rgba(255,255,255,0.15);
    border: none; color: #fff;
    width: 46px; height: 46px;
    border-radius: 50%;
    cursor: pointer;
    display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
#lb-close:hover, #lb-prev:hover, #lb-next:hover { background: rgba(255,255,255,0.32); }
#lb-counter {
    position: absolute;
    bottom: 16px; left: 50%; transform: translateX(-50%);
    color: rgba(255,255,255,0.5);
    font-size: 0.82rem;
    pointer-events: none;
}
.gallery-item { cursor: zoom-in; }
.mini-gallery img { cursor: zoom-in; }
.room-img-wrapper img { cursor: zoom-in; }

@media (max-width: 600px) {
    .reviews-summary-link { margin-left: 0; }
}

.review-card {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 18px;
    border-radius: 12px;
    border: 1px solid rgba(255, 255, 255, 0.2);
    flex: 0 0 240px;
    min-width: 240px;
}

.review-stars {
    color: #fbbf24;
    margin-bottom: 10px;
    font-size: 0.85rem;
}

.review-text {
    font-size: 0.82rem;
    font-style: italic;
    color: var(--color-white);
    margin-bottom: 12px;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 4;
    line-clamp: 4;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.review-author {
    display: flex;
    align-items: center;
    gap: 10px;
}

.author-avatar {
    width: 34px;
    height: 34px;
    border-radius: 50%;
    background: var(--color-white);
    color: var(--color-primary);
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 1.2rem;
}

.review-author strong {
    display: block;
    color: var(--color-white);
}

.review-author span {
    font-size: 0.8rem;
    color: rgba(255, 255, 255, 0.7);
}

/* Footer */
.footer {
    background-color: var(--color-text-main);
    color: var(--color-white);
    padding-top: 80px;
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
    padding-bottom: 50px;
}

.footer-brand p {
    color: #9ca3af;
    margin-top: 15px;
    max-width: 300px;
}

.social-links {
    display: flex;
    gap: 15px;
}

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

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

.footer-links h4,
.footer-contact h4 {
    font-size: 1.2rem;
    margin-bottom: 20px;
    color: var(--color-white);
}

.footer-links ul {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #9ca3af;
}

.footer-links a:hover {
    color: var(--color-white);
    padding-left: 5px;
}

.footer-contact ul {
    list-style: none;
}

.footer-contact li {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #9ca3af;
    margin-bottom: 15px;
}

.footer-contact ion-icon {
    color: var(--color-primary);
    font-size: 1.2rem;
    margin-top: 2px;
}

.footer-bottom {
    background: #111827;
    padding: 20px 0;
    text-align: center;
    color: #6b7280;
    font-size: 0.9rem;
}

/* Modals */
.modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.7);
    backdrop-filter: blur(5px);
    z-index: 3000;
    display: none;
    /* hidden by default */
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    transition: opacity var(--transition-smooth);
}

.modal-overlay.active {
    display: flex;
    opacity: 1;
}

.modal-content {
    background: var(--color-white);
    border-radius: 12px;
    width: 100%;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    padding: 40px;
    position: relative;
    box-shadow: var(--shadow-float);
    transform: translateY(20px);
    transition: transform var(--transition-smooth);
}

.modal-overlay.active .modal-content {
    transform: translateY(0);
}

.modal-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: var(--color-bg-alt);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 1.5rem;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--color-text-main);
    transition: all var(--transition-fast);
}

.modal-close:hover {
    background: var(--color-primary);
    color: var(--color-white);
}

.form-group-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    margin-bottom: 20px;
}

.booking-flow-modal {
    max-width: 600px;
}

.booking-summary {
    background: var(--color-bg-alt);
    padding: 20px;
    border-radius: 8px;
    border: 1px solid #e5e7eb;
}

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

@media (max-width: 768px) {
    .form-group-row {
        grid-template-columns: 1fr;
        gap: 10px;
        margin-bottom: 10px;
    }
}

/* Floating WhatsApp */
.whatsapp-float {
    position: fixed;
    bottom: 30px;
    right: 30px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2.2rem;
    box-shadow: 2px 2px 10px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 2px 2px 15px rgba(0, 0, 0, 0.4);
    color: #fff;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 20px;
        right: 20px;
        width: 50px;
        height: 50px;
        font-size: 1.8rem;
    }
}

/* Animations */
.scroll-reveal {
    opacity: 0;
    transition: all 0.8s ease-out;
}

.scroll-reveal.up {
    transform: translateY(50px);
}

.scroll-reveal.left {
    transform: translateX(50px);
}

.scroll-reveal.right {
    transform: translateX(-50px);
}

.scroll-reveal.active {
    opacity: 1;
    transform: translate(0);
}

.fade-up {
    opacity: 0;
    transform: translateY(30px);
    animation: fadeUpAnim 0.8s forwards;
}

.delay-1 {
    animation-delay: 0.2s;
}

.delay-2 {
    animation-delay: 0.4s;
}

.delay-3 {
    animation-delay: 0.6s;
}

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

@keyframes fadeIn {
    from {
        opacity: 0;
    }

    to {
        opacity: 1;
    }
}

/* Media Queries for Responsiveness */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 3.5rem;
    }

    .about-grid {
        grid-template-columns: 1fr;
    }

    .about-images {
        height: 400px;
        order: -1;
    }

    .main-img {
        width: 90%;
    }

    .footer-grid {
        grid-template-columns: 1fr 1fr;
    }
}

@media (max-width: 768px) {

    .nav-links,
    .nav-actions .btn {
        display: none;
    }

    .mobile-menu-btn {
        display: block;
    }

    .hero-content h1 {
        font-size: 2.8rem;
    }

    .booking-form {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 40px;
    }
}

/* Gallery Base Styles */
.gallery-section {
    padding: 80px 0;
}

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.gallery-item {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    height: 250px;
    box-shadow: var(--shadow-sm);
    transition: all var(--transition-smooth);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.8s ease;
}

.gallery-item:hover {
    box-shadow: var(--shadow-md);
    transform: translateY(-5px);
}

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

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }
    .gallery-item {
        height: 150px;
    }
}

/* Web Privacy & Cookie Banner */
.cookie-banner {
    position: fixed;
    bottom: 0;
    left: 0;
    width: 100%;
    background-color: var(--color-text-main);
    color: var(--color-white);
    padding: 15px 0;
    z-index: 10000;
    box-shadow: 0 -5px 15px rgba(0,0,0,0.1);
    transform: translateY(100%);
    transition: transform var(--transition-smooth);
}

.cookie-banner.active {
    transform: translateY(0);
}

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

.cookie-content p {
    color: rgba(255, 255, 255, 0.9);
    margin: 0;
    flex: 1;
    font-size: 0.95rem;
}

.cookie-content a {
    color: var(--color-white);
    text-decoration: underline;
}

.cookie-content .btn-sm {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* SellRooms App Badge */
.sellrooms-badge-float {
    position: fixed;
    bottom: 25px;
    left: 25px;
    z-index: 9999;
    animation: float 3s ease-in-out infinite;
}

@keyframes float {
    0% { transform: translateY(0px); }
    50% { transform: translateY(-10px); }
    100% { transform: translateY(0px); }
}

.badge-content {
    background: linear-gradient(135deg, #1f2937, #111827);
    color: white;
    padding: 12px 18px;
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(0,0,0,0.2), 0 0 0 1px rgba(255,255,255,0.1);
    border-bottom: 3px solid #fbbf24;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 5px;
}

.badge-header {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    font-size: 0.9rem;
    font-family: var(--font-heading);
    letter-spacing: 0.5px;
}

.text-gold, .badge-stars ion-icon {
    color: #fbbf24;
}

.badge-body {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.badge-stars {
    display: flex;
    gap: 3px;
    font-size: 0.8rem;
    margin-bottom: 2px;
}

.badge-body p {
    margin: 0;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: #9ca3af;
}

/* Floating WhatsApp Button Updates */
.whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 60px;
    height: 60px;
    background-color: #25d366;
    color: #fff;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
    box-shadow: 0 10px 25px -5px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: all var(--transition-smooth);
}

.whatsapp-float:hover {
    transform: translateY(-5px) scale(1.05);
    background-color: #128c7e;
    box-shadow: 0 15px 30px -5px rgba(37, 211, 102, 0.5);
}

/* Footer Legal Links */
.legal-links a {
    color: #9ca3af;
    font-size: 0.9rem;
    transition: color var(--transition-fast);
}

.legal-links a:hover {
    color: var(--color-white);
}

/* Legal Modals Styling */
.legal-modal-content {
    max-width: 600px;
    max-height: 80vh;
    display: flex;
    flex-direction: column;
}

.legal-text-scroll {
    overflow-y: auto;
    padding-right: 15px;
    margin-top: 15px;
}

.legal-text-scroll h3 {
    font-size: 1.2rem;
    margin-top: 20px;
    margin-bottom: 10px;
}

.legal-text-scroll p {
    font-size: 0.95rem;
    color: var(--color-text-main);
}

@media (max-width: 768px) {
    .cookie-content {
        flex-direction: column;
        text-align: center;
    }
    .cookie-content .btn {
        width: 100%;
    }
    .footer-bottom .container {
        justify-content: center;
    }
    .sellrooms-badge-float {
        bottom: 100px;
        left: 20px;
        transform: scale(0.9);
    }
}

/* ─── Language Switcher ─────────────────────────────────────────────────────── */
.lang-switcher {
    display: flex;
    align-items: center;
    gap: 2px;
    margin-left: 8px;
}

.lang-btn {
    display: flex;
    align-items: center;
    gap: 3px;
    background: transparent;
    border: 1px solid transparent;
    border-radius: 6px;
    padding: 4px 6px;
    cursor: pointer;
    color: inherit;
    font-family: var(--font-body);
    font-size: 0.75rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    transition: background var(--transition-fast), border-color var(--transition-fast), color var(--transition-fast);
    white-space: nowrap;
}

.lang-btn:hover {
    background: rgba(220, 38, 38, 0.08);
    border-color: rgba(220, 38, 38, 0.2);
}

.lang-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}

.navbar:not(.scrolled) .lang-btn {
    color: rgba(255,255,255,0.85);
}

.navbar:not(.scrolled) .lang-btn:hover {
    background: rgba(255,255,255,0.15);
    border-color: rgba(255,255,255,0.3);
    color: #fff;
}

.navbar:not(.scrolled) .lang-btn.active {
    background: rgba(255,255,255,0.25);
    border-color: rgba(255,255,255,0.5);
    color: #fff;
}

.lang-flag { font-size: 1rem; line-height: 1; }
.lang-label { font-size: 0.7rem; font-weight: 700; }

@media (max-width: 768px) {
    .lang-switcher {
        gap: 1px;
    }
    .lang-label { display: none; }
    .lang-btn { padding: 3px 5px; }
}

/* ─── Mobile Optimizations ───────────────────────────────────────────────────── */

/* Global spacing reduction on mobile */
@media (max-width: 768px) {
    section { padding: 60px 0; }
    .section-title { font-size: 1.9rem; }
    .section-header { margin-bottom: 30px; }
    .section-header.center { margin-bottom: 30px; }
    .container { padding: 0 16px; }
}

/* Navbar: keep lang-switcher visible, compress gap */
@media (max-width: 768px) {
    .nav-actions { gap: 8px; }
    .nav-actions .lang-switcher { margin-left: 0; }
}

/* Hero: smaller text + full height on small phones */
@media (max-width: 768px) {
    .hero { min-height: 100svh; }
    .hero-content h1 { font-size: 2.2rem; line-height: 1.2; }
    .hero-content p { font-size: 1rem; margin-bottom: 28px; }
    .hero-content { padding-top: 30px; padding-bottom: 20px; }
}
@media (max-width: 400px) {
    .hero-content h1 { font-size: 1.8rem; }
}

/* Booking section */
@media (max-width: 768px) {
    .booking-section { margin-top: -30px; }
    .booking-card { padding: 20px 16px; }
    .booking-form { grid-template-columns: 1fr 1fr; gap: 12px; }
    .form-submit { grid-column: 1 / -1; }

    /* Checkout grid (overrides inline style) */
    .checkout-grid {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
    }
    .checkout-grid > div:first-child { order: 2; }
    .checkout-grid > div:last-child  { order: 1; }
}
@media (max-width: 480px) {
    .booking-form { grid-template-columns: 1fr; }
}

/* About section */
@media (max-width: 768px) {
    .about-grid { gap: 30px; }
    .about-images { height: 300px; }
    .main-img { width: 95%; }
}

/* Rooms grid */
@media (max-width: 480px) {
    .rooms-grid { grid-template-columns: 1fr; }
    .room-card { min-width: 0; }
}

/* POI grid */
@media (max-width: 768px) {
    .poi-grid { grid-template-columns: 1fr 1fr; gap: 16px; }
    .poi-card { padding: 20px 14px; }
    .poi-icon { width: 48px; height: 48px; font-size: 1.3rem; margin-bottom: 10px; }
}
@media (max-width: 480px) {
    .poi-grid { grid-template-columns: 1fr; }
}

/* Location map */
@media (max-width: 768px) {
    .location-section iframe { height: 280px; }
}

/* Reviews section */
@media (max-width: 768px) {
    .reviews-section { padding: 50px 0; }
    .reviews-summary { flex-wrap: wrap; gap: 12px; justify-content: center; }
    .reviews-summary-link { width: 100%; text-align: center; }
    .review-card { flex: 0 0 200px; min-width: 200px; padding: 14px; }
    .reviews-scroll-wrapper { padding: 0 32px; }
}

/* Footer */
@media (max-width: 768px) {
    .footer { padding-top: 50px; }
    .footer-grid { gap: 30px; }
    .footer-brand p { max-width: 100%; }
    .footer-bottom .container { flex-direction: column; text-align: center; gap: 10px; }
    .legal-links { display: flex; gap: 12px; justify-content: center; }
}

/* Cookie banner */
@media (max-width: 480px) {
    .cookie-banner { padding: 16px; }
    .cookie-content { flex-direction: column; gap: 12px; text-align: center; }
    .cookie-content .btn { width: 100%; }
}

/* Lightbox buttons on mobile */
@media (max-width: 480px) {
    #lb-prev { left: 6px; width: 38px; height: 38px; font-size: 1.4rem; }
    #lb-next { right: 6px; width: 38px; height: 38px; font-size: 1.4rem; }
    #lb-img  { max-width: 96vw; max-height: 80vh; }
}

/* SellRooms badge on mobile */
@media (max-width: 480px) {
    .sellrooms-badge-float { left: 10px; bottom: 90px; transform: scale(0.82); transform-origin: bottom left; }
}

/* Modal: full-screen on mobile */
@media (max-width: 768px) {
    .modal-content {
        width: 95vw;
        max-height: 90vh;
        padding: 24px 16px;
        margin: 5vh auto 0;
        overflow-y: auto;
    }
    .booking-flow-modal { padding: 20px 16px; }
}

/* dettaglio.html layout grid override */
@media (max-width: 768px) {
    .layout-grid { grid-template-columns: 1fr !important; gap: 20px !important; }
    .overview-grid { grid-template-columns: 1fr 1fr !important; }
    .sticky-widget { position: static !important; }
    .price-big { font-size: 2rem; }
    .detail-hero h1 { font-size: 2.2rem !important; }
}

/* Gallery section on mobile */
@media (max-width: 480px) {
    .gallery-section { padding: 40px 0; }
    .gallery-grid { grid-template-columns: repeat(2, 1fr); gap: 8px; }
    .gallery-item { height: 130px; }
}

/* Btn large on small screens */
@media (max-width: 480px) {
    .btn-large { padding: 14px 24px; font-size: 0.95rem; }
    .hero-actions { flex-direction: column; align-items: center; }
}

/* Mobile menu lang-switcher: bigger flags, show label */
.mobile-menu-content .lang-switcher {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 6px;
}
.mobile-menu-content .lang-btn {
    flex-direction: column;
    padding: 8px 10px;
    gap: 2px;
    border: 1px solid #e5e7eb;
    color: var(--color-text-main);
}
.mobile-menu-content .lang-btn.active {
    background: var(--color-primary);
    border-color: var(--color-primary);
    color: #fff;
}
.mobile-menu-content .lang-flag { font-size: 1.4rem; }
.mobile-menu-content .lang-label { display: block; font-size: 0.65rem; font-weight: 700; }