/* --- Variables & Reset --- */
:root {
    --primary-color: #333333;
    --accent-color: #ff6600;
    --text-color: #333;
    --light-bg: #f4f4f4;
    --white: #ffffff;
    --font-heading: 'Montserrat', sans-serif;
    --font-body: 'Open Sans', sans-serif;
}

* {
    box-sizing: border-box;
    margin: 0;
    padding: 0;
}

body {
    font-family: var(--font-body);
    line-height: 1.6;
    color: var(--text-color);
}

a {
    text-decoration: none;
    color: inherit;
    transition: 0.3s;
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
}

/* --- Utility Classes --- */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

.section {
    padding: 60px 0;
}

.bg-light {
    background-color: var(--light-bg);
}

h1, h2, h3, h4 {
    font-family: var(--font-heading);
    margin-bottom: 15px;
    color: var(--primary-color);
}

h2 {
    text-align: center;
    font-size: 2.2rem;
    margin-bottom: 10px;
}

.section-subtitle {
    text-align: center;
    margin-bottom: 40px;
    color: #666;
}

/* --- Buttons --- */
.btn-primary {
    display: inline-block;
    background: var(--accent-color);
    color: var(--white);
    padding: 12px 30px;
    border-radius: 5px;
    font-weight: 600;
    text-transform: uppercase;
    border: none;
    cursor: pointer;
}

.btn-primary:hover {
    background: #e65c00;
    transform: translateY(-2px);
}

.btn-book {
    background: var(--accent-color);
    color: var(--white);
    padding: 10px 25px;
    border-radius: 4px;
    font-weight: 700;
    letter-spacing: 0.5px;
}

.btn-book:hover {
    background: #e65c00;
    color: var(--white);
}

.btn-text {
    color: var(--accent-color);
    font-weight: 600;
}

/* --- Top Bar --- */
.top-bar {
    background: #222;
    color: #ccc;
    padding: 10px 0;
    font-size: 0.9rem;
    border-bottom: 1px solid #444;
}

.top-bar .container {
    display: flex;
    justify-content: space-between;
}

.top-bar span i {
    margin-right: 5px;
    color: var(--accent-color);
}

/* --- Header & Nav --- */
.main-header {
    background: var(--primary-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.3);
    position: sticky;
    top: 0;
    z-index: 1000;
    padding: 10px 0;
}

.main-header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    min-height: 80px;
}

.logo {
    display: flex;
    align-items: center;
}

.logo img {
    height: 70px;
    width: auto;
    object-fit: contain;
}

.main-header nav ul {
    display: flex;
    align-items: center;
    gap: 25px;
}

.main-header nav a {
    font-weight: 600;
    font-size: 0.85rem;
    color: var(--white);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.main-header nav a:hover {
    color: var(--accent-color);
}

/* Mobile Nav Toggle */
.nav-toggle { display: none; }
.nav-toggle-label { display: none; }

/* --- Hero Section --- */
.hero {
    height: 70vh;
    background: url('images/motel-front.png') no-repeat center center/cover;
    position: relative;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.hero-overlay {
    background: rgba(0, 0, 0, 0.4);
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.hero-content {
    color: var(--white);
    max-width: 800px;
    padding: 20px;
}

.hero h1 {
    font-size: 3.5rem;
    color: var(--white);
    margin-bottom: 20px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.7);
    line-height: 1.2;
}

.hero p {
    font-size: 1.3rem;
    margin-bottom: 30px;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.7);
}

/* --- Facilities & Reviews (Standard Grid) --- */
.features-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
    margin-top: 40px;
}

.feature-card {
    text-align: center;
    padding: 30px;
    border: 1px solid #eee;
    border-radius: 8px;
    transition: transform 0.3s;
    background: var(--white);
}

.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.1);
    border-color: var(--accent-color);
}

.feature-card i {
    font-size: 2.5rem;
    color: var(--accent-color);
    margin-bottom: 15px;
}

/* --- Attractions 2x2 Grid --- */
.attractions-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px; 
    margin-top: 40px;
}

/* --- Reviews Specific Styles --- */
.review-card {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0, 0, 0, 0.05);
    text-align: center;
    border-top: 4px solid var(--accent-color);
}

.review-card .stars { margin-bottom: 15px; }
.review-card .stars i { color: #f1c40f; margin: 0 2px; }
.review-card p { font-style: italic; color: #555; margin-bottom: 20px; }
.review-card h4 { margin-bottom: 0; font-size: 1rem; color: var(--primary-color); }

/* --- Rooms Section --- */
.room-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

.room-card {
    background: var(--white);
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s;
}

.room-card:hover { transform: translateY(-5px); }

.room-img {
    height: 220px;
    background-size: cover;
    background-position: center;
}

.room-details { padding: 25px; }
.room-details h3 { font-size: 1.3rem; color: var(--primary-color); }

/* Detailed Rooms */
.room-card-detailed {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
    border-bottom: 1px solid #eee;
    padding-bottom: 30px;
    align-items: center;
}

.room-card-detailed img {
    border-radius: 8px;
    width: 100%;
    max-width: 400px;
    height: 250px;
    object-fit: cover;
}

.room-info { flex: 1; }

.room-features {
    margin: 15px 0;
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 10px;
    color: #555;
}

.room-features li i {
    color: var(--accent-color);
    width: 20px;
    text-align: center;
    margin-right: 8px;
}

/* --- Info Banner --- */
.info-banner {
    background: var(--primary-color);
    color: var(--white);
    padding: 50px 0;
}

.info-banner .container {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-around;
    gap: 20px;
}

.info-box {
    display: flex;
    align-items: flex-start;
    gap: 20px;
    max-width: 450px;
}

.info-box i { font-size: 2.5rem; color: var(--accent-color); }
.info-box h4 { color: var(--white); margin-bottom: 8px; font-size: 1.2rem; }

/* --- Footer --- */
footer {
    background: #1a1a1a;
    color: #ccc;
    padding: 60px 0 20px;
    font-size: 0.95rem;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 40px;
    margin-bottom: 40px;
}

.footer-col h4 {
    color: var(--white);
    margin-bottom: 25px;
    font-size: 1.1rem;
    border-bottom: 2px solid var(--accent-color);
    display: inline-block;
    padding-bottom: 5px;
}

.footer-col ul li { margin-bottom: 12px; }
.footer-col ul li a:hover { color: var(--accent-color); padding-left: 5px; }

.copyright {
    text-align: center;
    border-top: 1px solid #333;
    padding-top: 20px;
    font-size: 0.85rem;
    color: #777;
}

.map-container, .contact-form {
    background: var(--white);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.05);
}

/* --- Mobile Responsive --- */
@media (max-width: 768px) {
    .top-bar { text-align: center; }
    .top-bar .container { flex-direction: column; gap: 5px; }
    .hero h1 { font-size: 2rem; }

    .nav-toggle-label { display: block; cursor: pointer; padding: 10px; }
    .nav-toggle-label span, .nav-toggle-label span::before, .nav-toggle-label span::after {
        display: block; background: var(--white); height: 2px; width: 25px; position: relative;
    }
    .nav-toggle-label span::before, .nav-toggle-label span::after { content: ''; position: absolute; }
    .nav-toggle-label span::before { bottom: 8px; }
    .nav-toggle-label span::after { top: 8px; }

    .main-header nav {
        position: absolute; top: 100%; left: 0; width: 100%;
        background: var(--primary-color); transform: scaleY(0); transform-origin: top;
        transition: transform 0.3s ease-in-out; border-top: 1px solid #444;
    }
    .main-header nav ul { flex-direction: column; padding: 20px 0; }
    .main-header nav a { display: block; padding: 10px; }
    .nav-toggle:checked ~ nav { transform: scaleY(1); }

    .container { grid-template-columns: 1fr !important; }
    .room-card-detailed { flex-direction: column; }
    .room-card-detailed img { max-width: 100% !important; height: auto; }
    .room-features { grid-template-columns: 1fr; }
    .room-info { padding-left: 0 !important; margin-top: 20px; }

    /* Mobile stack for attractions */
    .attractions-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Gallery & Lightbox Styles (Added) --- */
.room-media {
    flex: 0 0 400px;
    max-width: 400px;
    height: 260px;
    position: relative;
    overflow: hidden;
    border-radius: 8px;
}

.gallery-wrap {
    position: relative;
    width: 100%;
    height: 100%;
}

.room-gallery {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    height: 100%;
    width: 100%;
    scrollbar-width: none;
    -ms-overflow-style: none;
}

.room-gallery::-webkit-scrollbar {
    display: none;
}

.room-gallery img, .room-media > img {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    scroll-snap-align: start;
    cursor: zoom-in;
    transition: transform 0.4s ease;
}

.room-media:hover > img, 
.room-media:hover .room-gallery img {
    transform: scale(1.03);
}

.gallery-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.6);
    color: white;
    border: none;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    cursor: pointer;
    z-index: 10;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
    transition: all 0.2s;
    opacity: 0;
}

.room-media:hover .gallery-btn {
    opacity: 1;
}

@media (hover: none) {
    .gallery-btn { opacity: 1; }
}

.gallery-btn:hover {
    background: var(--accent-color);
    transform: translateY(-50%) scale(1.1);
}

.gallery-btn.prev { left: 10px; }
.gallery-btn.next { right: 10px; }

.gallery-hint {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(0,0,0,0.6);
    color: #fff;
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.8rem;
    pointer-events: none;
    z-index: 5;
}

/* Lightbox */
.lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.9);
    justify-content: center;
    align-items: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: zoom-out;
}

.lightbox.active {
    display: flex;
    opacity: 1;
}

.lightbox img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 4px;
    box-shadow: 0 0 20px rgba(0,0,0,0.5);
    transform: scale(0.95);
    transition: transform 0.3s ease;
    cursor: default;
}

.lightbox.active img {
    transform: scale(1);
}

.lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    color: #fff;
    font-size: 2rem;
    cursor: pointer;
    z-index: 10001;
}

.clickable-img {
    cursor: zoom-in;
    transition: transform 0.4s ease;
}
.clickable-img:hover {
    transform: scale(1.02);
}