/* Hill View Homes - Responsive CSS */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

:root {
    --primary: #1a5f4a;
    --primary-dark: #0f3d30;
    --secondary: #c9a227;
    --light: #f8f9fa;
    --dark: #222;
    --gray: #666;
    --white: #fff;
    --shadow: 0 4px 20px rgba(0,0,0,0.1);
    --radius: 8px;
}

body {
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: var(--dark);
    background: var(--light);
}

a {
    text-decoration: none;
    color: inherit;
}

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

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

/* ===== TOP BAR ===== */
.top-bar {
    background: var(--primary-dark);
    color: var(--white);
    padding: 6px 0;
    font-size: 13px;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
}

.top-bar .contact-top {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px 16px;
}

.top-bar a {
    color: rgba(255,255,255,0.9);
    margin-right: 0;
    transition: color 0.2s;
    white-space: nowrap;
}

.top-bar a:hover {
    color: var(--secondary);
}

.top-bar a i {
    margin-right: 6px;
}

.social-links {
    display: flex;
    align-items: center;
    gap: 4px;
}

.social-links a {
    margin-left: 0;
    width: 32px;
    height: 32px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    font-size: 14px;
    background: rgba(255,255,255,0.08);
    transition: background 0.2s, color 0.2s;
}

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

@media (max-width: 768px) {
    .top-bar {
        padding: 8px 0;
        font-size: 12px;
    }
    .top-bar .container {
        flex-direction: column;
        gap: 6px;
        text-align: center;
    }
    .top-bar .contact-top {
        justify-content: center;
        width: 100%;
    }
    .social-links {
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .top-bar .contact-top a span.top-label {
        display: none;
    }
}

/* ===== HEADER / NAV ===== */
header {
    background: var(--white);
    box-shadow: 0 2px 16px rgba(0,0,0,0.08);
    position: sticky;
    top: 0;
    z-index: 1000;
    overflow: visible;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0;
    min-height: 70px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    max-width: 220px;
}

.logo img,
.logo .logo-img {
    display: block;
    height: 100px;
    width: auto;
    max-width: 200px;
    object-fit: contain;
    object-position: left center;
}

.logo h1 {
    font-size: 20px;
    color: var(--primary);
    line-height: 1.15;
    letter-spacing: 0.5px;
    margin: 0;
}

.logo span {
    font-size: 11px;
    color: var(--gray);
    display: block;
    letter-spacing: 0.3px;
}

/* Menu - right aligned, equal height items */
.nav-menu {
    display: flex;
    list-style: none;
    gap: 0;
    align-items: center;
    margin: 0;
    padding: 0;
    height: 70px;
}

.nav-menu li {
    display: flex;
    align-items: center;
    height: 100%;
}

.nav-menu a {
    position: relative;
    display: flex;
    align-items: center;
    height: 100%;
    padding: 0 18px;
    font-weight: 600;
    font-size: 14px;
    letter-spacing: 0.8px;
    text-transform: uppercase;
    color: var(--dark);
    transition: color 0.3s ease;
    white-space: nowrap;
}

/* Underline effect (modern trend) */
.nav-menu a:not(.btn-nav)::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 0;
    height: 3px;
    background: var(--secondary);
    border-radius: 2px 2px 0 0;
    transition: width 0.3s ease, left 0.3s ease;
}

.nav-menu a:not(.btn-nav):hover::after,
.nav-menu a:not(.btn-nav).active::after {
    width: 70%;
    left: 15%;
}

.nav-menu a:not(.btn-nav):hover,
.nav-menu a:not(.btn-nav).active {
    color: var(--primary);
    background: transparent;
}

/* Book Now button in nav */
.nav-menu .btn-nav {
    height: auto;
    margin-left: 8px;
    padding: 10px 20px !important;
    background: var(--secondary) !important;
    color: #222 !important;
    border-radius: 6px;
    font-size: 13px;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 8px rgba(201,162,39,0.35);
    transition: transform 0.25s, box-shadow 0.25s, background 0.25s;
}

.nav-menu .btn-nav:hover {
    background: #e0b82e !important;
    transform: translateY(-2px);
    box-shadow: 0 4px 14px rgba(201,162,39,0.45);
    color: #222 !important;
}

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

/* Hamburger */
.hamburger {
    display: none;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    cursor: pointer;
    gap: 6px;
    padding: 12px;
    margin: 0;
    background: none;
    border: none;
    z-index: 1003;
    position: relative;
    -webkit-tap-highlight-color: transparent;
    touch-action: manipulation;
    min-width: 44px;
    min-height: 44px;
}

.hamburger span {
    display: block;
    width: 26px;
    height: 2.5px;
    background: var(--primary);
    border-radius: 2px;
    transition: transform 0.3s, opacity 0.3s;
    transform-origin: center;
    pointer-events: none;
}

/* Hamburger → X animation */
.hamburger[aria-expanded="true"] span:nth-child(1) {
    transform: translateY(8.5px) rotate(45deg);
}
.hamburger[aria-expanded="true"] span:nth-child(2) {
    opacity: 0;
}
.hamburger[aria-expanded="true"] span:nth-child(3) {
    transform: translateY(-8.5px) rotate(-45deg);
}

/* ===== HERO SLIDER ===== */
.hero-slider {
    position: relative;
    height: 70vh;
    min-height: 400px;
    max-height: 650px;
    overflow: hidden;
}

.slider-wrapper {
    position: relative;
    width: 100%;
    height: 100%;
}

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

.slide.active {
    opacity: 1;
    z-index: 1;
}

.slide::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom, rgba(0,0,0,0.2), rgba(0,0,0,0.55));
}

.slide-content {
    position: absolute;
    bottom: 15%;
    left: 50%;
    transform: translateX(-50%);
    text-align: center;
    color: var(--white);
    z-index: 2;
    width: 90%;
    max-width: 800px;
}

.slide-content h2 {
    font-size: clamp(28px, 5vw, 48px);
    margin-bottom: 12px;
    text-shadow: 2px 2px 8px rgba(0,0,0,0.5);
}

.slide-content p {
    font-size: clamp(15px, 2.5vw, 20px);
    margin-bottom: 20px;
    text-shadow: 1px 1px 4px rgba(0,0,0,0.5);
}

.btn {
    display: inline-block;
    padding: 12px 28px;
    background: var(--secondary);
    color: var(--dark);
    font-weight: 700;
    border-radius: var(--radius);
    transition: all 0.3s;
    border: none;
    cursor: pointer;
    font-size: 15px;
}

.btn:hover {
    background: #e0b82e;
    transform: translateY(-2px);
}

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

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

.slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10;
    background: rgba(255,255,255,0.25);
    border: none;
    color: var(--white);
    width: 48px;
    height: 48px;
    border-radius: 50%;
    font-size: 22px;
    cursor: pointer;
    transition: 0.3s;
    backdrop-filter: blur(4px);
}

.slider-nav:hover {
    background: rgba(255,255,255,0.45);
}

.slider-prev { left: 20px; }
.slider-next { right: 20px; }

.slider-dots {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10;
    display: flex;
    gap: 10px;
}

.dot {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    background: rgba(255,255,255,0.5);
    cursor: pointer;
    transition: 0.3s;
}

.dot.active {
    background: var(--secondary);
    transform: scale(1.2);
}

/* ===== SECTIONS ===== */
.section {
    padding: 60px 0;
}

.section-title {
    text-align: center;
    margin-bottom: 40px;
}

.section-title h2 {
    font-size: clamp(26px, 4vw, 36px);
    color: var(--primary);
    margin-bottom: 10px;
}

.section-title p {
    color: var(--gray);
    max-width: 600px;
    margin: 0 auto;
}

/* ===== ABOUT ===== */
.about-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}

.about-text h3 {
    color: var(--primary);
    margin-bottom: 15px;
    font-size: 22px;
}

.about-text p {
    margin-bottom: 15px;
    color: var(--gray);
}

.about-img {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

.about-img img {
    width: 100%;
    height: 350px;
    object-fit: cover;
}

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

.room-card {
    background: var(--white);
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: transform 0.3s;
}

.room-card:hover {
    transform: translateY(-8px);
}

.room-card img {
    width: 100%;
    height: 220px;
    object-fit: cover;
}

.room-info {
    padding: 20px;
}

.room-info h3 {
    color: var(--primary);
    margin-bottom: 8px;
}

.room-info p {
    color: var(--gray);
    font-size: 14px;
    margin-bottom: 15px;
}

.room-price {
    font-weight: 700;
    color: var(--secondary);
    font-size: 18px;
}

/* ===== AMENITIES ===== */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 25px;
}

.amenity-item {
    background: var(--white);
    padding: 25px 15px;
    text-align: center;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition: 0.3s;
}

.amenity-item:hover {
    transform: translateY(-5px);
    background: var(--primary);
    color: var(--white);
}

.amenity-item i {
    font-size: 32px;
    margin-bottom: 12px;
    color: var(--secondary);
}

.amenity-item:hover i {
    color: var(--white);
}

.amenity-item h4 {
    font-size: 15px;
}

/* ===== GALLERY ===== */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 15px;
}

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

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

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

.gallery-item::after {
    content: '🔍';
    position: absolute;
    inset: 0;
    background: rgba(26,95,74,0.6);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 28px;
    opacity: 0;
    transition: 0.3s;
}

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

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    flex-direction: column;
    padding: 20px;
}

.lightbox.active {
    display: flex;
}

.lightbox img {
    max-width: min(90vw, 1100px);
    max-height: 80vh;
    border-radius: 6px;
    object-fit: contain;
    box-shadow: 0 8px 40px rgba(0,0,0,0.5);
    user-select: none;
}

.lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    color: #fff;
    font-size: 40px;
    line-height: 1;
    cursor: pointer;
    background: rgba(0,0,0,0.4);
    border: none;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    z-index: 10;
}
.lightbox-close:hover {
    background: var(--secondary);
    color: #222;
    transform: scale(1.08);
}

.lightbox-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.45);
    color: #fff;
    border: none;
    width: 50px;
    height: 50px;
    border-radius: 50%;
    font-size: 24px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s, transform 0.2s;
    z-index: 10;
    -webkit-tap-highlight-color: transparent;
}
.lightbox-nav:hover {
    background: var(--secondary);
    color: #222;
    transform: translateY(-50%) scale(1.08);
}
.lightbox-prev {
    left: 16px;
}
.lightbox-next {
    right: 16px;
}

.lightbox-counter {
    position: absolute;
    bottom: 18px;
    left: 50%;
    transform: translateX(-50%);
    color: rgba(255,255,255,0.85);
    font-size: 14px;
    background: rgba(0,0,0,0.4);
    padding: 6px 14px;
    border-radius: 20px;
}

@media (max-width: 640px) {
    .lightbox-nav {
        width: 42px;
        height: 42px;
        font-size: 20px;
    }
    .lightbox-prev { left: 8px; }
    .lightbox-next { right: 8px; }
    .lightbox-close {
        top: 10px;
        right: 10px;
        width: 42px;
        height: 42px;
        font-size: 32px;
    }
    .lightbox img {
        max-height: 70vh;
    }
}

/* ===== CONTACT ===== */
.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
}

.contact-info h3 {
    color: var(--primary);
    margin-bottom: 20px;
}

.contact-item {
    display: flex;
    gap: 15px;
    margin-bottom: 20px;
    align-items: flex-start;
}

.contact-item i {
    font-size: 22px;
    color: var(--secondary);
    margin-top: 3px;
}

.contact-form {
    background: var(--white);
    padding: 30px;
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}

.form-group {
    margin-bottom: 18px;
}

.form-group label {
    display: block;
    margin-bottom: 6px;
    font-weight: 600;
    font-size: 14px;
}

.form-group input,
.form-group textarea,
.form-group select {
    width: 100%;
    padding: 12px 14px;
    border: 1px solid #ddd;
    border-radius: var(--radius);
    font-size: 15px;
    font-family: inherit;
    transition: border 0.3s;
}

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

/* ===== FOOTER ===== */
footer {
    background: var(--primary-dark);
    color: var(--white);
    padding: 50px 0 20px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 30px;
    margin-bottom: 30px;
}

.footer-col h4 {
    margin-bottom: 15px;
    color: var(--secondary);
}

.footer-col p,
.footer-col a {
    color: rgba(255,255,255,0.8);
    font-size: 14px;
    margin-bottom: 8px;
    display: block;
}

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

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.15);
    padding-top: 20px;
    text-align: center;
    font-size: 13px;
    color: rgba(255,255,255,0.6);
}

/* ===== PAGE HEADER ===== */
.page-header {
    background: linear-gradient(rgba(15,61,48,0.8), rgba(15,61,48,0.8)), url('../images/slider/slide1.jpg') center/cover;
    padding: 80px 0;
    text-align: center;
    color: var(--white);
}

.page-header h1 {
    font-size: clamp(28px, 5vw, 42px);
}

/* ===== RESPONSIVE ===== */
/* Menu overlay backdrop */
.nav-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    pointer-events: none;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    -webkit-tap-highlight-color: transparent;
}

.nav-overlay.active {
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
}

body.menu-open {
    overflow: hidden;
    touch-action: none;
}

/* Tablet + Mobile: hamburger menu (all devices under 992px) */
@media (max-width: 992px) {
    .about-grid,
    .contact-grid {
        grid-template-columns: 1fr;
    }

    header {
        z-index: 1002;
    }

    .hamburger {
        display: flex !important;
        position: relative;
        z-index: 1004;
    }

    .nav-menu {
        position: fixed !important;
        top: 0;
        right: -100%;
        left: auto;
        width: min(300px, 85vw);
        height: 100vh !important;
        height: 100dvh !important;
        background: var(--white);
        flex-direction: column !important;
        align-items: stretch !important;
        justify-content: flex-start !important;
        padding: 90px 0 40px !important;
        box-shadow: -8px 0 30px rgba(0,0,0,0.2);
        transition: right 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1003 !important;
        gap: 0 !important;
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        display: flex !important;
    }

    .nav-menu.active {
        right: 0;
    }

    .nav-menu li {
        height: auto;
        width: 100%;
    }

    .nav-menu a {
        display: flex;
        align-items: center;
        width: 100%;
        height: auto;
        min-height: 52px;
        padding: 14px 28px;
        border-bottom: 1px solid #f0f0f0;
        font-size: 15px;
        letter-spacing: 1px;
        -webkit-tap-highlight-color: transparent;
    }

    .nav-menu a:not(.btn-nav)::after {
        bottom: auto;
        top: 50%;
        left: 0;
        width: 4px;
        height: 0;
        border-radius: 0 2px 2px 0;
        transform: translateY(-50%);
        background: var(--primary);
    }

    .nav-menu a:not(.btn-nav):hover::after,
    .nav-menu a:not(.btn-nav).active::after {
        width: 4px;
        height: 60%;
        left: 0;
    }

    .nav-menu .btn-nav {
        margin: 24px 28px 0;
        justify-content: center;
        text-align: center;
        width: calc(100% - 56px);
        min-height: 48px;
    }
}

@media (max-width: 768px) {
    .hero-slider {
        height: 55vh;
        min-height: 320px;
    }

    .slider-nav {
        width: 40px;
        height: 40px;
        font-size: 18px;
    }

    .top-bar .container {
        justify-content: center;
        text-align: center;
    }
}

@media (max-width: 480px) {
    .section {
        padding: 40px 0;
    }

    .gallery-grid {
        grid-template-columns: 1fr 1fr;
        gap: 10px;
    }

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

/* =====================================================
   NEW FEATURES: FAB, Back-to-Top, Animations, Trends
   ===================================================== */


/* Hide secondary top-bar items on small phones */
@media (max-width: 576px) {
    .hide-mobile { display: none !important; }
}

/* ===== Floating Action Buttons (Call + WhatsApp) ===== */
.fab-container {
    position: fixed;
    bottom: 90px;
    right: 20px;
    z-index: 9900;
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.fab {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    color: #fff;
    font-size: 24px;
    box-shadow: 0 4px 18px rgba(0,0,0,0.25);
    transition: transform 0.3s, box-shadow 0.3s;
    position: relative;
    text-decoration: none;
}

.fab:hover {
    transform: scale(1.12);
    box-shadow: 0 6px 24px rgba(0,0,0,0.35);
}

.fab-call {
    background: linear-gradient(135deg, #1a5f4a, #2d8a6e);
    animation: pulse-green 2.5s infinite;
}

.fab-whatsapp {
    background: linear-gradient(135deg, #25d366, #128c7e);
    animation: pulse-green 2.5s infinite 0.4s;
}

.fab-label {
    position: absolute;
    right: 66px;
    background: #222;
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    font-weight: 600;
    white-space: nowrap;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s, transform 0.25s;
    transform: translateX(8px);
}

.fab-label::after {
    content: '';
    position: absolute;
    right: -6px;
    top: 50%;
    transform: translateY(-50%);
    border: 6px solid transparent;
    border-left-color: #222;
}

.fab:hover .fab-label {
    opacity: 1;
    transform: translateX(0);
}

@keyframes pulse-green {
    0%, 100% { box-shadow: 0 4px 18px rgba(0,0,0,0.25); }
    50% { box-shadow: 0 4px 18px rgba(37,211,102,0.45), 0 0 0 10px rgba(37,211,102,0.12); }
}

/* ===== Back to Top ===== */
.back-to-top {
    position: fixed;
    bottom: 24px;
    right: 20px;
    z-index: 9900;
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: var(--primary);
    color: #fff;
    border: none;
    font-size: 18px;
    cursor: pointer;
    opacity: 0;
    visibility: hidden;
    transform: translateY(20px);
    transition: opacity 0.35s, visibility 0.35s, transform 0.35s, background 0.25s;
    box-shadow: 0 4px 16px rgba(0,0,0,0.2);
}

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

.back-to-top:hover {
    background: var(--primary-dark);
    transform: translateY(-3px);
}

/* Mobile: stack FAB + back-to-top nicely */
@media (max-width: 576px) {
    .fab-container {
        bottom: 80px;
        right: 14px;
        gap: 10px;
    }
    .fab {
        width: 50px;
        height: 50px;
        font-size: 22px;
    }
    .fab-label { display: none; }
    .back-to-top {
        bottom: 18px;
        right: 14px;
        width: 44px;
        height: 44px;
        font-size: 16px;
    }
}

/* ===== Scroll Reveal Animations (new trend) ===== */
.reveal {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.visible {
    opacity: 1;
    transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.15s; }
.reveal-delay-2 { transition-delay: 0.3s; }
.reveal-delay-3 { transition-delay: 0.45s; }

/* ===== Hover lift cards (modern trend) ===== */
.room-card,
.amenity-item,
.gallery-item {
    transition: transform 0.35s ease, box-shadow 0.35s ease;
}

.room-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 12px 32px rgba(0,0,0,0.15);
}

/* ===== Gradient text accent ===== */
.gradient-text {
    background: linear-gradient(90deg, var(--primary), var(--secondary));
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== Section divider wave (creative) ===== */
.section-wave {
    position: relative;
}

.section-wave::before {
    content: '';
    position: absolute;
    top: -1px;
    left: 0;
    width: 100%;
    height: 40px;
    background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 1200 40' preserveAspectRatio='none'%3E%3Cpath d='M0,20 C300,40 600,0 900,20 C1050,30 1150,10 1200,20 L1200,0 L0,0 Z' fill='%23f8f9fa'/%3E%3C/svg%3E") no-repeat center/cover;
}

/* ===== Footer social icons ===== */
.footer-social {
    display: flex;
    gap: 12px;
    margin-top: 16px;
}

.footer-social a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: background 0.3s, transform 0.3s;
}

.footer-social a:hover {
    background: var(--secondary);
    color: #222;
    transform: translateY(-3px);
}

/* ===== Smooth page load ===== */
html {
    scroll-behavior: smooth;
}

/* ===== Focus visible for accessibility ===== */
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
    outline: 3px solid var(--secondary);
    outline-offset: 2px;
}

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

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


/* Utility: hide on small screens */
@media (max-width: 640px) {
    .hide-sm { display: none !important; }
}

/* =====================================================
   NEW FEATURES & ENHANCEMENTS (Responsive + Secure UI)
   ===================================================== */

/* Scroll Progress Bar */
.scroll-progress {
    position: fixed;
    top: 0;
    left: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--secondary), var(--primary));
    width: 0%;
    z-index: 9999;
    transition: width 0.1s linear;
    pointer-events: none;
}

/* Theme Toggle Button */
.theme-toggle {
    background: rgba(255,255,255,0.12);
    border: none;
    color: #fff;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    transition: background 0.2s, transform 0.2s;
    margin-left: 4px;
}
.theme-toggle:hover {
    background: var(--secondary);
    color: #222;
    transform: scale(1.08);
}

/* Sticky header shadow on scroll */
header.scrolled {
    box-shadow: 0 4px 20px rgba(0,0,0,0.12);
    background: rgba(255,255,255,0.97);
    backdrop-filter: blur(8px);
}

/* Form enhancements */
.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px;
}
.btn-block {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.form-note {
    font-size: 12px;
    color: var(--gray);
    margin-top: 12px;
    text-align: center;
}
.alert {
    padding: 14px 16px;
    border-radius: var(--radius);
    margin-bottom: 20px;
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 15px;
}
.alert-success {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}
.alert-error {
    background: #f8d7da;
    color: #721c24;
    border: 1px solid #f5c6cb;
}
.hp-field {
    position: absolute;
    left: -9999px;
    opacity: 0;
    height: 0;
    overflow: hidden;
    pointer-events: none;
}
.map-wrapper {
    border-radius: var(--radius);
    overflow: hidden;
    box-shadow: var(--shadow);
}

/* Amenities section */
.amenities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 20px;
    margin-top: 30px;
}
.amenity-item {
    background: var(--white);
    border-radius: var(--radius);
    padding: 24px 16px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: transform 0.3s, box-shadow 0.3s;
}
.amenity-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0,0,0,0.12);
}
.amenity-item i {
    font-size: 28px;
    color: var(--primary);
    margin-bottom: 12px;
}
.amenity-item h4 {
    font-size: 15px;
    color: var(--dark);
    margin: 0;
}

/* Testimonials */
.testimonials-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 24px;
    margin-top: 30px;
}
.testimonial-card {
    background: var(--white);
    border-radius: var(--radius);
    padding: 28px;
    box-shadow: var(--shadow);
    position: relative;
}
.testimonial-card::before {
    content: '"';
    font-size: 60px;
    color: var(--secondary);
    opacity: 0.3;
    position: absolute;
    top: 10px;
    left: 18px;
    font-family: Georgia, serif;
    line-height: 1;
}
.testimonial-card p {
    font-style: italic;
    color: var(--gray);
    margin-bottom: 16px;
    position: relative;
    z-index: 1;
}
.testimonial-card .author {
    font-weight: 600;
    color: var(--primary);
    font-size: 14px;
}
.testimonial-card .stars {
    color: var(--secondary);
    margin-bottom: 10px;
    font-size: 14px;
}

/* ========== DARK MODE ========== */
html.dark-mode {
    color-scheme: dark;
}
html.dark-mode body {
    background: #0f1a17;
    color: #e0e0e0;
}
html.dark-mode .top-bar {
    background: #0a1612;
}
html.dark-mode header {
    background: #132822;
}
html.dark-mode header.scrolled {
    background: rgba(19, 40, 34, 0.97);
}
html.dark-mode .nav-menu {
    background: #132822;
}
html.dark-mode .nav-menu a {
    color: #e0e0e0;
}
html.dark-mode .logo h1 {
    color: #e8c547;
}
html.dark-mode .logo img,
html.dark-mode .logo .logo-img {
    filter: brightness(1.15) contrast(1.05);
}
html.dark-mode .section {
    background: #0f1a17;
}
html.dark-mode .section[style*="background:#fff"],
html.dark-mode .section[style*="background: #fff"] {
    background: #132822 !important;
}
html.dark-mode .room-card,
html.dark-mode .amenity-item,
html.dark-mode .testimonial-card,
html.dark-mode .contact-form,
html.dark-mode .gallery-item {
    background: #1a2e28;
    color: #e0e0e0;
}
html.dark-mode .room-info h3,
html.dark-mode .section-title h2,
html.dark-mode .about-text h3 {
    color: #e8c547;
}
html.dark-mode .footer {
    background: #0a1612;
}
html.dark-mode input,
html.dark-mode select,
html.dark-mode textarea {
    background: #0f1a17;
    color: #e0e0e0;
    border-color: #2a4a40;
}
html.dark-mode .btn-primary {
    background: var(--secondary);
    color: #222;
}
html.dark-mode .page-header {
    background: linear-gradient(rgba(10,22,18,0.85), rgba(10,22,18,0.85)), url('../images/slider/slide1.jpg') center/cover;
}
html.dark-mode .theme-toggle i.fa-moon::before {
    content: "\f185"; /* sun icon */
}
html.dark-mode .alert-success {
    background: #1a3a2a;
    color: #a8e6c0;
    border-color: #2a5a40;
}
html.dark-mode .alert-error {
    background: #3a1a1a;
    color: #f0a0a0;
    border-color: #5a2a2a;
}

/* Better touch targets & mobile refinements */
@media (max-width: 768px) {
    .form-row {
        grid-template-columns: 1fr;
    }
    .amenities-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .amenity-item {
        padding: 18px 10px;
    }
    .amenity-item i {
        font-size: 22px;
    }
    .testimonials-grid {
        grid-template-columns: 1fr;
    }
    .btn, .btn-primary, .btn-nav {
        min-height: 44px; /* better touch target */
        padding: 12px 20px;
    }
    .fab {
        width: 52px;
        height: 52px;
    }
    .back-to-top {
        width: 44px;
        height: 44px;
    }
    .contact-item {
        gap: 12px;
    }
}

/* Extra small phones */
@media (max-width: 400px) {
    .container {
        padding: 0 14px;
    }
    .amenities-grid {
        grid-template-columns: 1fr 1fr;
    }
    .top-bar {
        font-size: 12px;
    }
    .logo {
        max-width: 160px;
    }
    .logo img,
    .logo .logo-img {
        height: 40px;
        max-width: 150px;
    }
    .logo h1 {
        font-size: 16px;
    }
    .logo span {
        font-size: 10px;
    }
}

/* Landscape mobile */
@media (max-height: 500px) and (orientation: landscape) {
    .hero-slider {
        height: 100vh;
        min-height: 280px;
    }
    .nav-menu {
        padding-top: 60px !important;
    }
}

/* High contrast / reduced motion support */
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        transition-duration: 0.01ms !important;
        scroll-behavior: auto !important;
    }
    .scroll-progress {
        transition: none;
    }
}

/* Print styles */
@media print {
    .top-bar, .fab-container, .back-to-top, .hamburger, .scroll-progress, .theme-toggle {
        display: none !important;
    }
    header {
        position: static;
        box-shadow: none;
    }
}

/* ========== CANCELLATION / POLICY PAGE ========== */
.policy-section {
    padding-top: 40px;
    padding-bottom: 60px;
}

.policy-wrap {
    max-width: 860px;
    margin: 0 auto;
    background: var(--white);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    padding: 36px 40px 48px;
}

.policy-intro {
    margin-bottom: 36px;
    padding-bottom: 28px;
    border-bottom: 2px solid rgba(26, 95, 74, 0.12);
}

.policy-intro p {
    color: var(--gray);
    margin-bottom: 12px;
    font-size: 16px;
    line-height: 1.75;
}

.policy-intro p:last-child {
    margin-bottom: 0;
}

.policy-block {
    margin-bottom: 32px;
    padding-bottom: 28px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}

.policy-block:last-of-type {
    border-bottom: none;
}

.policy-block h2 {
    display: flex;
    align-items: center;
    gap: 14px;
    font-size: 1.25rem;
    color: var(--primary-dark);
    margin-bottom: 14px;
    line-height: 1.35;
}

.policy-num {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    min-width: 32px;
    background: var(--primary);
    color: var(--white);
    border-radius: 50%;
    font-size: 14px;
    font-weight: 700;
}

.policy-block h3 {
    font-size: 1.05rem;
    color: var(--primary);
    margin: 18px 0 10px;
}

.policy-block p {
    color: var(--gray);
    margin-bottom: 10px;
    line-height: 1.7;
}

.policy-block ul {
    margin: 12px 0 16px 4px;
    padding-left: 20px;
}

.policy-block ul li {
    color: var(--gray);
    margin-bottom: 8px;
    line-height: 1.65;
    padding-left: 4px;
}

.policy-block ul li::marker {
    color: var(--primary);
}

.policy-highlight {
    margin: 18px 0;
    padding: 18px 20px;
    border-radius: var(--radius);
    border-left: 4px solid;
}

.policy-highlight h3 {
    margin-top: 0;
}

.policy-ok {
    background: rgba(26, 95, 74, 0.06);
    border-left-color: var(--primary);
}

.policy-warn {
    background: rgba(201, 162, 39, 0.1);
    border-left-color: var(--secondary);
}

.policy-contact {
    background: var(--light);
    padding: 24px;
    border-radius: var(--radius);
    margin-top: 8px;
}

.policy-contact h3 {
    color: var(--primary-dark);
    margin: 0 0 10px;
    font-size: 1.15rem;
}

.policy-contact-links p {
    margin-bottom: 14px;
}

.policy-contact-links a:not(.btn) {
    color: var(--primary);
    font-weight: 500;
}

.policy-contact-links a:not(.btn):hover {
    color: var(--secondary);
    text-decoration: underline;
}

.policy-contact-links .btn {
    margin-top: 6px;
}

.policy-final {
    margin-top: 12px;
    padding: 28px 24px;
    background: linear-gradient(135deg, rgba(26, 95, 74, 0.08), rgba(201, 162, 39, 0.08));
    border-radius: var(--radius);
    border: 1px solid rgba(26, 95, 74, 0.15);
    text-align: center;
}

.policy-final h2 {
    color: var(--primary-dark);
    font-size: 1.3rem;
    margin-bottom: 14px;
}

.policy-final p {
    color: var(--gray);
    margin-bottom: 10px;
    line-height: 1.7;
}

.policy-footer-note {
    margin-top: 18px !important;
    font-size: 13px;
    color: var(--primary) !important;
    font-weight: 600;
    letter-spacing: 0.02em;
}

/* Policy dark mode */
html.dark-mode .policy-wrap {
    background: #1a2e28;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.35);
}

html.dark-mode .policy-intro {
    border-bottom-color: rgba(232, 197, 71, 0.2);
}

html.dark-mode .policy-block {
    border-bottom-color: rgba(255, 255, 255, 0.06);
}

html.dark-mode .policy-block h2 {
    color: #e8c547;
}

html.dark-mode .policy-block h3 {
    color: #c9a227;
}

html.dark-mode .policy-block p,
html.dark-mode .policy-block ul li,
html.dark-mode .policy-intro p,
html.dark-mode .policy-final p {
    color: #c0c8c4;
}

html.dark-mode .policy-ok {
    background: rgba(26, 95, 74, 0.2);
}

html.dark-mode .policy-warn {
    background: rgba(201, 162, 39, 0.15);
}

html.dark-mode .policy-contact {
    background: #132822;
}

html.dark-mode .policy-contact h3 {
    color: #e8c547;
}

html.dark-mode .policy-final {
    background: linear-gradient(135deg, rgba(26, 95, 74, 0.2), rgba(201, 162, 39, 0.12));
    border-color: rgba(232, 197, 71, 0.25);
}

html.dark-mode .policy-final h2 {
    color: #e8c547;
}

html.dark-mode .policy-footer-note {
    color: #e8c547 !important;
}

/* Policy responsive */
@media (max-width: 768px) {
    .policy-wrap {
        padding: 24px 18px 36px;
        border-radius: 6px;
    }

    .policy-block h2 {
        font-size: 1.1rem;
        gap: 10px;
    }

    .policy-num {
        width: 28px;
        height: 28px;
        min-width: 28px;
        font-size: 13px;
    }

    .policy-highlight {
        padding: 14px 14px;
    }

    .policy-contact {
        padding: 18px;
    }

    .policy-final {
        padding: 22px 16px;
    }
}

@media (max-width: 400px) {
    .policy-wrap {
        padding: 18px 14px 28px;
    }

    .policy-block h2 {
        flex-wrap: wrap;
    }
}
