/* Basic Setup */
:root {
    --main-color: #2C6EAD;
    --point-color: #F5A623;
    --bg-color: #F7F9FC;
    --text-color: #222;
    --white: #ffffff;
    --gray-light: #e0e6ed;
    --header-height: 70px;
    --transition: all 0.3s ease;
}

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

html {
    scroll-behavior: smooth;
}

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    line-height: 1.6;
    color: var(--text-color);
    background-color: var(--white);
    -webkit-font-smoothing: antialiased;
}

.main-background {
    background-image: url('room_background.jpg');
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    height: 100vh;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    position: relative;
    color: white;
}

.main-background::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 1;
}

.container {
    width: 90%;
    max-width: 1100px;
    margin: 0 auto;
    position: relative;
    z-index: 2;
}

section {
    padding: 80px 0;
}

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

ul {
    list-style: none;
}

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

/* Typography */
h1, h2, h3, h4 {
    line-height: 1.2;
    margin-bottom: 1rem;
}

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

.section-title {
    font-size: 2.2rem;
    color: var(--main-color);
}

.section-description {
    font-size: 1.1rem;
    color: #666;
    max-width: 700px;
    margin: 0 auto;
}

/* Buttons */
.btn {
    display: inline-block;
    padding: 12px 28px;
    border-radius: 50px;
    font-weight: 600;
    cursor: pointer;
    transition: var(--transition);
    text-align: center;
    border: none;
}

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

.btn-primary:hover {
    background-color: #1e5285;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

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

.btn-secondary:hover {
    background-color: #d98e10;
    transform: translateY(-2px);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
}

.btn-outline {
    background-color: transparent;
    border: 2px solid var(--main-color);
    color: var(--main-color);
}

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

.btn-full {
    width: 100%;
}

/* Header */
.header {
    height: var(--header-height);
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    position: fixed;
    top: 0;
    width: 100%;
    z-index: 1000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.05);
    display: flex;
    align-items: center;
}

.header-content {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
}

.logo {
    font-size: 1.5rem;
    font-weight: 800;
    color: var(--main-color);
}

.menu-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 10px;
}

.hamburger {
    display: block;
    width: 25px;
    height: 3px;
    background: var(--main-color);
    position: relative;
    transition: var(--transition);
}

.hamburger::before, .hamburger::after {
    content: '';
    width: 25px;
    height: 3px;
    background: var(--main-color);
    position: absolute;
    left: 0;
    transition: var(--transition);
}

.hamburger::before { top: -8px; }
.hamburger::after { top: 8px; }

.nav-list {
    display: flex;
    gap: 2rem;
}

.nav-link {
    font-weight: 500;
    transition: var(--transition);
}

.nav-link:hover {
    color: var(--main-color);
}

/* Hero Section */
.hero-section {
    background-color: var(--bg-color);
    padding-top: calc(var(--header-height) + 60px);
    overflow: hidden;
}

.hero-content {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 40px;
    align-items: center;
}

.tagline {
    display: inline-block;
    color: var(--main-color);
    font-weight: 600;
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.headline {
    font-size: 3rem;
    font-weight: 800;
    margin-bottom: 20px;
    word-break: keep-all;
}

.subtext {
    font-size: 1.2rem;
    color: #555;
    margin-bottom: 30px;
    max-width: 500px;
}

.hero-btns {
    display: flex;
    gap: 15px;
    margin-bottom: 40px;
}

.hero-info {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.info-item {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 0.9rem;
    color: #666;
}

.hero-image-slider {
    width: 100%;
    height: 450px;
    border-radius: 20px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 20px 40px rgba(0,0,0,0.1);
}

.hero-slider-container {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.8s cubic-bezier(0.65, 0, 0.35, 1);
}

.hero-slider-container img {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

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

.hero-slider-dots .dot {
    width: 10px;
    height: 10px;
    background: rgba(255, 255, 255, 0.5);
    border-radius: 50%;
    cursor: pointer;
    transition: var(--transition);
}

.hero-slider-dots .dot.active {
    background: #fff;
    width: 30px;
    border-radius: 5px;
}

/* Key Points */
.grid {
    display: grid;
    gap: 30px;
}

.grid-4 { grid-template-columns: repeat(4, 1fr); }
.grid-3 { grid-template-columns: repeat(3, 1fr); }

.point-card {
    background: var(--white);
    padding: 30px;
    border-radius: 15px;
    transition: var(--transition);
    text-align: center;
}

.point-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
}

.point-icon {
    font-size: 2.5rem;
    margin-bottom: 15px;
}

.point-title {
    font-size: 1.2rem;
    margin-bottom: 10px;
}

.point-desc {
    font-size: 0.95rem;
    color: #666;
}

/* Rooms */
.rooms-section {
    background-color: var(--bg-color);
}

.room-card {
    background: var(--white);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
}

.room-slider {
    position: relative;
    height: 200px;
}

.slider-container {
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    height: 100%;
    -ms-overflow-style: none; /* Hide scrollbar IE/Edge */
    scrollbar-width: none; /* Hide scrollbar Firefox */
}

.slider-container::-webkit-scrollbar {
    display: none; /* Hide scrollbar Chrome/Safari */
}

.slider-container img {
    flex: 0 0 100%;
    width: 100%;
    height: 100%;
    object-fit: cover;
    scroll-snap-align: start;
}

.slider-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0, 0, 0, 0.4);
    color: white;
    border: none;
    padding: 8px 12px;
    cursor: pointer;
    border-radius: 50%;
    font-size: 1rem;
    transition: var(--transition);
    z-index: 2;
    opacity: 0;
}

.room-slider:hover .slider-btn {
    opacity: 1;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.7);
}

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

.room-info-box {
    padding: 25px;
}

.room-name {
    font-size: 1.3rem;
    margin-bottom: 5px;
    color: var(--main-color);
}

.room-price {
    font-weight: 700;
    color: var(--point-color);
    margin-bottom: 10px;
    font-size: 0.95rem;
}

.room-desc {
    color: #666;
    margin-bottom: 15px;
    font-size: 0.85rem;
    height: 3.6em;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
}

.room-stats {
    margin-bottom: 15px;
    font-size: 0.85rem;
    color: #444;
    border-top: 1px solid var(--gray-light);
    border-bottom: 1px solid var(--gray-light);
    padding: 10px 0;
}

.room-stats li {
    margin-bottom: 3px;
}

.room-options {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
    margin-bottom: 20px;
}

.room-options span {
    background: #f0f4f8;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 0.75rem;
    color: #555;
}

/* Location */
.location-content {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 40px;
    align-items: center;
}

.address {
    font-size: 1.2rem;
    margin-bottom: 20px;
}

.map-container {
    height: 350px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
}

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

/* Contact */
.contact-section {
    background-color: #f0f4f8;
}

.contact-grid {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
}

.contact-item {
    margin-bottom: 30px;
}

.contact-item h4 {
    color: var(--main-color);
    margin-bottom: 5px;
}

.contact-form {
    background: var(--white);
    padding: 40px;
    border-radius: 15px;
    box-shadow: 0 10px 40px rgba(0,0,0,0.05);
}

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

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

label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    font-size: 0.9rem;
}

input, select, textarea {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid var(--gray-light);
    border-radius: 8px;
    font-family: inherit;
    font-size: 1rem;
    outline: none;
    transition: var(--transition);
}

input:focus, select:focus, textarea:focus {
    border-color: var(--main-color);
    box-shadow: 0 0 0 3px rgba(44, 110, 173, 0.1);
}

/* Footer */
.footer {
    background-color: #333;
    color: #ccc;
    text-align: center;
    padding: 40px 0;
}

.footer p {
    margin-bottom: 5px;
    font-size: 0.9rem;
}

/* Modal Styles */
.modal {
    display: none;
    position: fixed;
    z-index: 2000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    overflow: auto;
    background-color: rgba(0,0,0,0.5);
    backdrop-filter: blur(5px);
}

.modal.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

.modal-content {
    background-color: #fff;
    padding: 2rem;
    border-radius: 12px;
    width: 95%;
    max-width: 400px;
    position: relative;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
}

.close-modal {
    position: absolute;
    right: 1rem;
    top: 1rem;
    font-size: 1.5rem;
    background: none;
    border: none;
    cursor: pointer;
    color: #666;
    line-height: 1;
}

.close-modal:hover {
    color: #000;
}

/* Auth Component Utility */
.btn-sm {
    padding: 0.5rem 1rem !important;
    font-size: 0.875rem !important;
}

#auth-nav-item {
    display: flex;
    align-items: center;
}

#user-profile {
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: 600;
}

#logout-btn {
    cursor: pointer;
    font-size: 0.8rem;
    color: #e74c3c;
    background: none;
    border: none;
    padding: 0;
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 1200px) {
    .grid-4 { grid-template-columns: repeat(2, 1fr); }
}

@media (max-width: 992px) {
    .grid-3 { grid-template-columns: repeat(2, 1fr); }
    .hero-content, .location-content, .contact-grid {
        grid-template-columns: 1fr;
    }
    .hero-image-placeholder { height: 300px; }
    .headline { font-size: 2.5rem; }
}

@media (max-width: 768px) {
    .menu-toggle { display: block; }
    
    .nav {
        position: fixed;
        top: var(--header-height);
        left: -100%;
        width: 100%;
        height: calc(100vh - var(--header-height));
        background-color: var(--white);
        transition: var(--transition);
        padding: 40px;
        z-index: 999;
    }

    .nav.active { left: 0; }

    .nav-list {
        flex-direction: column;
        align-items: center;
        gap: 2rem;
    }

    .nav-link { font-size: 1.5rem; }

    .header-content {
        padding: 0 5%;
    }

    .menu-toggle.active .hamburger { background: transparent; }
    .menu-toggle.active .hamburger::before { transform: rotate(45deg) translate(5px, 6px); }
    .menu-toggle.active .hamburger::after { transform: rotate(-45deg) translate(5px, -6px); }

    .headline { font-size: 2rem; }
    .hero-btns { flex-direction: column; }
    .form-row { grid-template-columns: 1fr; }
    
    section { padding: 60px 0; }
}

@media (max-width: 480px) {
    .grid-4, .grid-3 { grid-template-columns: 1fr; }
    .point-card { padding: 20px; }
    .contact-form { padding: 25px; }
}
