:root {
    --primary: #6AB138;
    /* Logo Green */
    --accent: #E61E25;
    /* Logo Red */
    --primary-dark: #558E2D;
    --primary-light: #E8F5E9;
    --text-dark: #1A1A1A;
    --text-muted: #555555;
    --bg-white: #FFFFFF;
    --bg-light: #F4F7F2;
    /* Subtle green tint */
    --transition: cubic-bezier(0.4, 0, 0.2, 1) 0.3s;
    --shadow: 0 4px 20px rgba(0, 0, 0, 0.08);
    --shadow-lg: 0 15px 35px rgba(0, 0, 0, 0.12);
    --mb-4: 30px;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html,
body {
    overflow-x: hidden;
    position: relative;
    width: 100vw;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    color: var(--text-dark);
    line-height: 1.65;
    background-color: var(--bg-white);
    -webkit-font-smoothing: antialiased;
}

ul {
    list-style: none;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

img {
    max-width: 100%;
    display: block;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 80px 0;
    scroll-margin-top: 140px;
    /* Offset for taller mobile header */
}

@media (min-width: 768px) {
    .section {
        scroll-margin-top: 100px;
        /* Offset for tablet and desktop header */
    }
}

.section-header {
    text-align: center;
    margin-bottom: 50px;
}

.section-header h2 {
    font-size: 2.5rem;
    font-weight: 700;
    margin-bottom: 30px;
    position: relative;
    display: inline-block;
}

.section-header h2::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 50%;
    transform: translateX(-50%);
    width: 50px;
    height: 3px;
    background: var(--primary);
}

.bg-light {
    background-color: var(--bg-light);
}

.grid {
    display: grid;
    gap: 30px;
}

@media (min-width: 768px) {
    .md-2 {
        grid-template-columns: repeat(2, 1fr);
    }
}

.mb-4 {
    margin-bottom: 40px;
}

.mt-4 {
    margin-top: 40px;
}

.text-center {
    text-align: center;
}

.items-center {
    align-items: center;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 14px 28px;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    border: none;
    font-size: 1rem;
    transition: var(--transition);
}

.btn-primary {
    background-color: var(--primary);
    color: white;
}

.btn-primary:hover {
    background-color: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(46, 125, 50, 0.3);
}

.btn-secondary {
    background-color: rgba(255, 255, 255, 0.1);
    color: white;
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.btn-secondary:hover {
    background-color: rgba(255, 255, 255, 0.2);
    transform: translateY(-2px);
}

.w-full {
    width: 100%;
}

/* Navigation */
#navbar {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    padding: 18px 0;
    /* Further increased for mobile impact */
    transition: all 0.3s ease-in-out;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    overflow: hidden;
    /* Ensure collapsed elements are hidden */
}

.nav-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    /* Standardized for 8px symmetry */
}

.nav-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 0 0 8px;
    /* Standardized for 8px symmetry */
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease-in-out;
    opacity: 1;
    visibility: visible;
}

/* Hide logic for mobile scroll down */
#navbar.hide-top .nav-top {
    max-height: 0;
    opacity: 0;
    padding: 0;
    margin: 0;
    overflow: hidden;
    border-bottom: none;
    pointer-events: none;
}

#navbar.hide-top .nav-container {
    gap: 0;
}

#navbar.hide-top {
    padding: 18px 0;
}

.logo-group {
    display: flex;
    align-items: center;
    gap: 8px;
    flex-shrink: 1;
    min-width: 0;
}

.logo img {
    height: 65px;
    /* Further increased for mobile prominence */
    width: auto;
    transition: var(--transition);
}


.hamburger {
    background: none;
    border: none;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    gap: 4px;
    padding: 8px 0;
    z-index: 10;
    flex-shrink: 0;
}

.hamburger span {
    width: 25px;
    height: 2px;
}

.nav-cta {
    display: flex !important;
    align-items: center;
    justify-content: center;
    padding: 8px 16px !important;
    min-height: 34px;
    height: auto;
    font-size: 1rem;
    line-height: 1.1;
    /* Reset line height for centering */
    white-space: nowrap;
    z-index: 10;
}

.desktop-menu {
    display: block;
    width: 100%;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.desktop-menu::-webkit-scrollbar {
    display: none;
}

.desktop-menu ul {
    display: flex;
    gap: 28px;
    white-space: nowrap;
    padding: 0;
    /* Remove internal padding for pure symmetry */
}

.desktop-menu ul li a {
    font-weight: 500;
    font-size: 0.85rem;
    line-height: 1.2;
    /* Controlled line height for symmetry */
    color: var(--text-dark);
}

@media (min-width: 768px) {
    #navbar {
        padding: 15px 0;
    }

    .nav-container {
        flex-direction: row;
        justify-content: space-between;
        align-items: center;
        gap: 0;
        padding: 0 20px;
        height: 60px;
    }

    .nav-top {
        display: contents;
        padding-top: 0;
        border-bottom: none;
    }

    .logo-group {
        gap: 15px;
    }

    .logo img {
        height: 50px;
    }

    .desktop-menu {
        position: absolute;
        left: 50%;
        top: 50%;
        transform: translate(-50%, -50%);
        width: auto;
        overflow: visible;
    }

    .desktop-menu ul {
        gap: 20px;
        /* Lessened spacing for tablet/desktop */
        padding: 0;
    }

    .desktop-menu ul li a {
        font-size: 0.95rem;
    }

    .nav-cta {
        padding: 12px 24px !important;
        font-size: 0.95rem;
        min-height: 44px;
    }
}

.hamburger span {
    display: block;
    width: 25px;
    height: 2px;
    background: var(--text-dark);
    transition: var(--transition);
}

.menu-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: rgba(0, 0, 0, 0.5);
    z-index: 1001;
    opacity: 0;
    visibility: hidden;
    transition: var(--transition);
}

.menu-overlay.active {
    opacity: 1;
    visibility: visible;
}

.mobile-menu {
    position: fixed;
    top: 0;
    left: -100%;
    width: 50%;
    min-width: 140px;
    /* Bare minimum to avoid link breaking */
    height: 100vh;
    background: var(--bg-white);
    padding: 80px 40px;
    /* Increased horizontal spacing */
    transition: var(--transition);
    box-shadow: 10px 0 30px rgba(0, 0, 0, 0.1);
    z-index: 1002;
    overflow-y: auto;
}

.menu-close {
    position: absolute;
    top: 20px;
    right: 20px;
    background: none;
    border: none;
    font-size: 2.5rem;
    color: var(--text-dark);
    cursor: pointer;
    line-height: 1;
}

.mobile-menu.active {
    left: 0;
}

@media (min-width: 768px) {
    .mobile-menu {
        width: 30%;
    }
}

.mobile-menu ul li {
    margin-bottom: 25px;
}

.mobile-menu ul li a {
    font-size: 1.2rem;
    /* Larger sidebar font */
    font-weight: 600;
}

/* Hero */
.hero {
    height: 100vh;
    min-height: 600px;
    background-image: url('assets/hero-bg.jpg');
    background-size: cover;
    background-position: center;
    position: relative;
    display: flex;
    align-items: center;
    color: white;
    text-align: center;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4);
}

.hero-content {
    position: relative;
    z-index: 10;
    padding-top: 80px;
}

.hero h2 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    font-weight: 500;
    margin-bottom: 30px;
    letter-spacing: 0.5px;
}

.hero h1 {
    font-size: 2rem;
    font-weight: 800;
    margin-bottom: 20px;
    line-height: 1.2;
    padding: 0 10px;
    max-width: 100%;
    overflow-wrap: break-word;
    word-wrap: break-word;
    /* Prevent text cutoff */
}

.hero p {
    font-size: 1.4rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 100%;
    margin-left: auto;
    margin-right: auto;
    padding: 0 15px;
}

@media (min-width: 768px) {
    .hero h1 {
        font-size: 3.5rem;
    }

    .hero p {
        font-size: 1.25rem;
        margin-bottom: 40px;
    }
}

@media (min-width: 992px) {
    .hero h1 {
        font-size: 4rem;
    }
}

.hero-btns {
    display: flex;
    gap: 15px;
    justify-content: center;
}

@media (max-width: 768px) {
    .hero {
        height: auto;
        min-height: 100vh;
        padding: 190px 0 120px;
        /* Adjusted for taller header and larger text */
        display: flex;
        align-items: center;
    }

    .hero-content {
        padding-top: 0;
    }

    .hero h1 {
        font-size: clamp(2rem, 10vw, 3.4rem);
        /* Responsive scaling to prevent cutoff */
    }

    .hero-btns {
        flex-direction: column;
    }

    .nav-cta {
        display: block !important;
    }
}

/* Rooms */
.room-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow);
    max-width: 800px;
    margin: 0 auto;
    display: grid;
}

@media (min-width: 768px) {
    .room-card {
        grid-template-columns: 1fr 1fr;
    }
}

.room-image img {
    height: 100%;
    object-fit: cover;
}

.room-info {
    padding: 30px;
}

.room-info h3 {
    font-size: 1.8rem;
    margin-bottom: 10px;
}

.room-info .price {
    font-size: 1.5rem;
    color: var(--primary);
    font-weight: 700;
    margin-bottom: 20px;
}

.room-info .price span {
    font-size: 0.9rem;
    color: var(--text-muted);
    font-weight: 400;
}

.amenities {
    margin-bottom: 30px;
}

.amenities li {
    margin-bottom: 10px;
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--text-muted);
}

.amenities li i {
    color: var(--primary);
    width: 20px;
}

.location-visual-container {
    display: grid;
    gap: 30px;
}

@media (min-width: 768px) {
    .location-visual-container {
        grid-template-columns: 1fr 2fr;
        min-height: 450px;
    }
}

.map-container iframe {
    height: 100% !important;
    min-height: 450px;
}

.location-visual {
    height: 100%;
}

.map-container {
    height: 100%;
}

.location-top {
    margin-top: 80px;
    margin-bottom: 80px;
}

.advantage-list {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
}

.advantage-list li {
    flex: 1;
    min-width: 200px;
    display: flex;
    gap: 20px;
    margin-bottom: 0px;
}

.advantage-list li div {
    min-width: 0;
}

.icon-box {
    width: 50px;
    height: 50px;
    background: var(--primary-light);
    color: var(--primary);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
}

.location-visual img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
    box-shadow: var(--shadow-lg);
    filter: brightness(1.1) saturate(1.3) contrast(1.1) sepia(0.05) hue-rotate(-5deg);
}

#location {
    padding-bottom: 100px;
}

/* Gallery */
.gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 20px;
}

@media (min-width: 992px) {
    .gallery-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 320px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}

.gallery-item {
    border-radius: 12px;
    overflow: hidden;
    height: 250px;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: var(--transition);
}

.gallery-item:nth-child(1) img {
    filter: sepia(0.15) saturate(1.5) contrast(1.1) brightness(1.05);
}

.gallery-item:nth-child(5) img {
    filter: brightness(0.9);
}

.gallery-item:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.gallery-item:hover img {
    transform: scale(1.05);
}

/* About */
.about-image img {
    border-radius: 12px;
}

.about-text h2 {
    font-size: 2.5rem;
    margin-bottom: 20px;
}

/* Contact */
.contact-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 30px;
    max-width: 1200px;
    margin: 0 auto;
}

.info-item {
    flex: 1;
    min-width: 200px;
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 15px;
}

.info-item i {
    font-size: 1.5rem;
    margin-top: 0;
}

@media (max-width: 768px) {
    .contact-grid {
        flex-direction: column;
        align-items: center;
    }
}

.info-item h3 {
    font-size: 1.1rem;
    margin-bottom: 5px;
}

.map-container {
    border-radius: 12px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    line-height: 0;
}

.map-container iframe {
    display: block;
    width: 100%;
}

/* Footer */
.footer {
    background: #1a1a1a;
    color: white;
    padding: 80px 0 30px;
}

.footer-grid {
    display: flex;
    justify-content: space-between;
    flex-wrap: wrap;
    gap: 40px;
    margin-bottom: 50px;
}

.footer-brand,
.footer-contact,
.footer-social {
    flex: 1;
    min-width: 250px;
}

.footer-logo {
    height: 40px;
    margin-bottom: 20px;
}

.footer h3 {
    font-size: 1.3rem;
    margin-bottom: 15px;
    font-weight: 700;
}

.footer h4 {
    font-size: 1.1rem;
    margin-bottom: 25px;
    position: relative;
    padding-bottom: 10px;
}

.footer h4::after {
    content: '';
    position: absolute;
    left: 0;
    bottom: 0;
    width: 30px;
    height: 2px;
    background: var(--primary);
}

.footer-brand p {
    color: #aaa;
    line-height: 1.8;
    max-width: 100%;
    word-wrap: break-word;
}

.footer-contact p,
.footer-social p {
    margin-bottom: 15px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
    color: #ccc;
    font-size: 0.95rem;
    overflow-wrap: break-word;
    /* Ensure address wraps by word */
}

@media (max-width: 768px) {
    .footer-bottom p {
        font-size: 0.7rem;
    }
}

.footer-contact i,
.footer-social i {
    color: var(--primary);
    margin-top: 4px;
}

.footer a {
    color: #ccc;
    transition: var(--transition);
}

.footer a:hover {
    color: var(--primary);
}

.footer-bottom {
    border-top: 1px solid #333;
    padding-top: 30px;
    text-align: center;
    color: #666;
    font-size: 0.85rem;
}

@media (max-width: 768px) {
    .footer-grid {
        text-align: left;
        flex-direction: column;
    }

    .footer-brand p {
        max-width: 100%;
    }

    .footer h4::after {
        left: 0;
    }
}