@import url('https://fonts.googleapis.com/css2?family=Inter:wght@400;500;600;700;800&family=Cormorant+Garamond:wght@600;700&display=swap');

/* ===== RESET & BASE ===== */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    font-family: 'Inter', 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
    line-height: 1.6;
    color: #1f2326;
    background: #f8f5ee;
}

h1, h2, h3, h4 {
    font-family: 'Cormorant Garamond', Georgia, serif;
}

.container {
    width: min(100%, 1220px);
    margin: 0 auto;
    padding: 0 1.25rem;
}

/* ===== BUTTONS ===== */
.btn {
    display: inline-block;
    background: #2c3e50;
    color: #fff;
    padding: 12px 28px;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 600;
    transition: background 0.3s;
    border: none;
    cursor: pointer;
}

.btn:hover {
    background: #1a252f;
}

.btn-small {
    padding: 8px 20px;
    font-size: 0.9rem;
}

/* ===== HEADER ===== */
.header {
    background: #000;
    box-shadow: 0 2px 10px rgba(0,0,0,0.3);
    position: sticky;
    top: 0;
    z-index: 100;
}

.header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 15px;
}

.logo-img {
    height: 50px;
    width: auto;
    display: block;
}

.nav ul {
    list-style: none;
    display: flex;
    gap: 25px;
}

.nav a {
    text-decoration: none;
    color: #ccc;
    font-weight: 500;
    transition: color 0.3s;
}

.nav a:hover {
    color: #fff;
}

/* ===== INTRO ===== */
.intro {
    width: 100%;
    height: 100%;
    min-height: 90vh;
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.intro-bg {
    width: 100%;
    height: auto;
    display: block;
}

.intro-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100vh;
    background: linear-gradient(to bottom, rgba(0,0,0,0.05) 0%, rgba(0,0,0,0.4) 100%);
    display: flex;
    align-items: flex-start;
    justify-content: center;
    padding-top: 120px;

    transition: opacity 0.5s ease-out;
    will-change: opacity;
    pointer-events: none;
}

.intro-overlay-2 {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    
    /* Ensure it stays readable */
    text-align: center;
    color: #ffffff;
    
    /* Smooth opacity changes */
    transition: opacity 0.1s ease-out;
    will-change: opacity;
}

.intro-content {
    text-align: center;
    color: #fff;
    max-width: 800px;
    padding: 20px;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.intro-tagline {
    font-size: 1.6rem;
    font-weight: 300;
    font-style: italic;
    margin-bottom: 10px;
    letter-spacing: 1px;
}

.intro-title {
    font-size: 4rem;
    font-weight: 700;
    margin-bottom: 15px;
    letter-spacing: 3px;
    text-transform: uppercase;
}

.intro-amenities {
    font-size: 1.3rem;
    font-weight: 400;
    margin-bottom: 20px;
    color: #f0c040;
    min-height: 1.6em;
    position: relative;
}

.intro-amenities ul {
    list-style: none;
    padding: 0;
    margin: 0;
    position: relative;
    display: block;
    width: 100%;
    min-height: 1.6em;
}

.intro-amenities li {
    position: absolute;
    left: 0;
    right: 0;
    top: 0;
    margin: 0 auto;
    opacity: 0;
    transform: translateY(12px);
    transition: opacity 0.5s ease, transform 0.5s ease;
    text-align: center;
    white-space: nowrap;
}

.intro-amenities li.text-in {
    opacity: 1;
    transform: translateY(0);
}

.intro-amenities li.text-out {
    opacity: 0;
    transform: translateY(-12px);
}

.intro-desc {
    font-size: 1.1rem;
    font-weight: 300;
    line-height: 1.7;
    max-width: 600px;
    margin: 0 auto;
    opacity: 0.95;
}

@media (max-width: 768px) {
    .intro {
        min-height: 60vh;
    }
    .intro-title {
        font-size: 2.5rem;
    }
    .intro-tagline {
        font-size: 1.2rem;
    }
    .intro-amenities {
        font-size: 1.1rem;
    }
    .intro-desc {
        font-size: 0.95rem;
        padding: 0 15px;
    }
}

/* ===== HERO ===== */
.hero {
    background: linear-gradient(135deg, #2c3e50, #3498db);
    color: #fff;
    text-align: center;
    padding: 120px 0 100px;
    min-height: 70vh;
    display: flex;
    align-items: center;
}

.hero-content h2 {
    font-size: 2.8rem;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 1.2rem;
    margin-bottom: 30px;
    opacity: 0.9;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.hero .btn {
    background: #fff;
    color: #2c3e50;
}

.hero .btn:hover {
    background: #ecf0f1;
}

/* ===== ROOMS SECTION ===== */
.rooms {
    padding: 72px 0 88px;
    background: linear-gradient(180deg, #f7f3e9 0%, #fcfbf7 100%);
}

.rooms h2 {
    text-align: center;
    font-size: 2.55rem;
    color: #1f2326;
    margin-bottom: 10px;
    letter-spacing: 0.01em;
}

.section-subtitle {
    text-align: center;
    color: #6f6a61;
    margin: 0 auto 42px;
    font-size: 1rem;
    max-width: 620px;
}

.room-type {
    margin-bottom: 50px;
    padding-bottom: 40px;
    border-bottom: 1px solid #eee;
}

.room-type:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

.room-type-header {
    margin-bottom: 25px;
}

.room-type-header h3 {
    font-size: 1.6rem;
    color: #2c3e50;
}

.room-type-desc {
    color: #777;
    margin-top: 5px;
}

.room-cards {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 24px;
}

.room-card {
    background: #fffdf8;
    border: 1px solid #e8dfce;
    overflow: hidden;
    box-shadow: 0 10px 24px rgba(31, 35, 38, 0.06);
    transition: transform 0.25s ease, box-shadow 0.25s ease, border-color 0.25s ease;
    display: flex;
    flex-direction: column;
    cursor: default;
    user-select: none;
    -webkit-user-select: none;
}

.room-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 34px rgba(31, 35, 38, 0.12);
    border-color: #d9c69f;
}

.room-info {
    padding: 22px 22px 18px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.room-img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.room-title {
    font-size: 1.45rem;
    color: #1f2326;
    margin-bottom: 4px;
    line-height: 1.2;
}

.room-subtitle {
    font-size: 0.95rem;
    font-style: italic;
    color: #8a775b;
    font-weight: 600;
    margin-bottom: 10px;
}

.room-details {
    color: #5f5a54;
    font-size: 0.95rem;
    margin-bottom: 12px;
}

.room-area {
    color: #7c7367;
    font-size: 0.9rem;
    margin-bottom: 4px;
}

.room-price {
    font-size: 1.5rem;
    font-weight: 700;
    color: #b2872f;
    margin-bottom: 15px;
}

.room-price span {
    font-size: 0.9rem;
    font-weight: 400;
    color: #999;
}

/* ===== PRICE TABLE ===== */
.price-table-wrapper {
    margin-top: auto;
    padding-top: 16px;
    overflow-x: auto;
}

.price-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.85rem;
    background: #fcfbf7;
    overflow: hidden;
    border: 1px solid #ece4d4;
}

.price-table th,
.price-table td {
    padding: 8px 10px;
    text-align: center;
    border: 1px solid #ece4d4;
}

.price-table thead th {
    background: #232323;
    color: #fff;
    font-weight: 600;
    white-space: nowrap;
}

.price-table thead th:first-child {
    background: #1a1d20;
}

.discount-badge {
    font-size: 0.75rem;
    opacity: 0.85;
    font-weight: 400;
}

.price-table tbody tr:nth-child(even) {
    background: #f7f2e8;
}

.price-table tbody tr:hover {
    background: #f0e8d9;
}

.guest-cell {
    font-weight: 600;
    color: #3d3a34;
    white-space: nowrap;
}

.price-cell {
    font-weight: 700;
    color: #b2872f;
}

/* ===== PRICE CALCULATOR ===== */
.calculator {
    margin-top: 14px;
    padding: 14px;
    background: #f7f2e8;
    border: 1px solid #e3d8bd;
}

.calc-title {
    font-size: 0.82rem;
    font-weight: 700;
    color: #2f2a24;
    margin-bottom: 10px;
    text-transform: uppercase;
    letter-spacing: 0.16em;
}

.calc-row {
    display: flex;
    gap: 10px;
    align-items: flex-end;
}

.calc-field {
    display: flex;
    flex-direction: column;
}

.calc-field label {
    display: block;
    font-size: 0.72rem;
    font-weight: 600;
    color: #635d53;
    margin-bottom: 4px;
    white-space: nowrap;
}

.calc-field-guests {
    width: 60px;
    flex: none;
}

.calc-field-days {
    width: 60px;
    flex: none;
}

.calc-guests,
.calc-days {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #d7ccb1;
    font-size: 0.95rem;
    font-family: inherit;
    background: #fff;
    transition: border-color 0.3s;
    box-sizing: border-box;
    height: 38px;
}

.calc-guests:focus,
.calc-days:focus {
    outline: none;
    border-color: #b2872f;
}

.calc-result-field {
    flex: 1;
    min-width: 0;
}

.calc-total {
    font-size: 1.2rem;
    font-weight: 700;
    color: #b2872f;
    padding: 8px 10px;
    background: #fff;
    border: 1px solid #d7ccb1;
    text-align: center;
    height: 38px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    min-width: 90px;
    max-width: 140px;
}

/* ===== ROOM OVERLAY ===== */
.overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.overlay.hidden {
    display: none;
}

.overlay-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
}

.overlay-content {
    position: relative;
    z-index: 1;
    width: 95%;
    max-width: 1100px;
    max-height: 95vh;
    background: #fff;
    border-radius: 8px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.overlay-scroll {
    overflow-y: auto;
    padding: 30px;
    flex: 1;
}

.overlay-close {
    position: absolute;
    top: 10px;
    right: 15px;
    z-index: 10;
    background: rgba(0,0,0,0.5);
    color: #fff;
    border: none;
    font-size: 2rem;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.3s;
}

.overlay-close:hover {
    background: rgba(0,0,0,0.8);
}

/* ===== GALLERY ===== */
.gallery {
    margin-bottom: 25px;
}

.gallery-main {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    background: #eee;
    border-radius: 6px;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: contain;
}

.gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: #fff;
    border: none;
    font-size: 1.5rem;
    padding: 12px 8px;
    cursor: pointer;
    transition: background 0.3s;
    z-index: 2;
    border-radius: 4px;
}

.gallery-arrow:hover {
    background: rgba(0,0,0,0.7);
}

.gallery-arrow-left {
    left: 10px;
}

.gallery-arrow-right {
    right: 10px;
}

.gallery-thumbs-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-top: 10px;
}

.gallery-thumbs {
    display: flex;
    gap: 6px;
    overflow-x: auto;
    scroll-behavior: smooth;
    padding: 5px 0;
    flex: 1;
    cursor: grab;
    -webkit-overflow-scrolling: touch;
}

.gallery-thumbs::-webkit-scrollbar {
    height: 4px;
}

.gallery-thumbs::-webkit-scrollbar-thumb {
    background: #ccc;
    border-radius: 2px;
}

.gallery-thumb {
    width: 70px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: border-color 0.3s, opacity 0.3s;
    opacity: 0.6;
    flex-shrink: 0;
}

.gallery-thumb:hover {
    opacity: 0.9;
}

.gallery-thumb.active {
    border-color: #e67e22;
    opacity: 1;
}

.thumbs-arrow {
    background: #e0e0e0;
    border: none;
    border-radius: 4px;
    padding: 8px 6px;
    cursor: pointer;
    font-size: 0.9rem;
    transition: background 0.3s;
    flex-shrink: 0;
}

.thumbs-arrow:hover {
    background: #ccc;
}

/* ===== OVERLAY ROOM INFO ===== */
.overlay-room-info h4 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 8px;
}

.overlay-room-info .room-details {
    font-size: 1rem;
    margin-bottom: 12px;
}

.overlay-room-info .room-area {
    font-size: 1rem;
    color: #888;
    margin-bottom: 15px;
}

/* ===== CONTACT SECTION ===== */
.contact {
    padding: 80px 0;
    background: #f4f6f8;
}

.contact h2 {
    text-align: center;
    font-size: 2.2rem;
    color: #2c3e50;
    margin-bottom: 10px;
}

.contact-wrapper {
    display: grid;
    grid-template-columns: 1fr 1.5fr;
    gap: 50px;
    align-items: start;
}

.contact-info {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}

.contact-info h3 {
    font-size: 1.4rem;
    color: #2c3e50;
    margin-bottom: 20px;
}

.contact-info p {
    margin-bottom: 12px;
    color: #555;
}

.contact-form {
    background: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.08);
}

.contact-form input,
.contact-form textarea {
    width: 100%;
    padding: 12px 15px;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 1rem;
    font-family: inherit;
    transition: border-color 0.3s;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: none;
    border-color: #3498db;
}

.contact-form button {
    width: 100%;
}

/* ===== FOOTER ===== */
.footer {
    background: #2c3e50;
    color: #ecf0f1;
    padding: 60px 0 0;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 40px;
    padding-bottom: 40px;
}

.footer-section h4 {
    font-size: 1.2rem;
    margin-bottom: 15px;
    color: #fff;
}

.footer-section ul {
    list-style: none;
}

.footer-section ul li {
    margin-bottom: 8px;
}

.footer-section a {
    color: #bdc3c7;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-section a:hover {
    color: #fff;
}

.footer-bottom {
    border-top: 1px solid rgba(255,255,255,0.1);
    padding: 20px 0;
    text-align: center;
    font-size: 0.9rem;
    color: #bdc3c7;
}

/* ===== FULLSCREEN VIEWER ===== */
.fullscreen-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    display: flex;
    align-items: center;
    justify-content: center;
}

.fullscreen-viewer.hidden {
    display: none;
}

.fullscreen-backdrop {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
}

.fullscreen-close {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 10;
    background: rgba(255,255,255,0.2);
    color: #fff;
    border: none;
    font-size: 2rem;
    width: 44px;
    height: 44px;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    transition: background 0.3s;
}

.fullscreen-close:hover {
    background: rgba(255,255,255,0.4);
}

.fullscreen-arrow {
    position: absolute;
    z-index: 10;
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.3s;
    font-size: 1.8rem;
    padding: 14px 10px;
    border-radius: 4px;
}

.fullscreen-arrow:hover {
    background: rgba(255,255,255,0.3);
}

.fullscreen-arrow-left {
    left: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.fullscreen-arrow-right {
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
}

.fullscreen-arrow-top {
    top: 70px;
    left: 50%;
    transform: translateX(-50%) rotate(90deg);
}

.fullscreen-arrow-bottom {
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%) rotate(90deg);
}

#fullscreen-img {
    max-width: 95%;
    max-height: 95%;
    object-fit: contain;
    z-index: 5;
    position: relative;
    transition: transform 0.3s;
}

#fullscreen-img.landscape {
    transform: rotate(90deg);
    width: 100%;
    height: 100%;
    object-fit: contain;
}

@media (max-width: 768px) {
    .fullscreen-arrow {
        font-size: 1.3rem;
        padding: 10px 8px;
    }

    .fullscreen-arrow-left {
        left: 8px;
    }

    .fullscreen-arrow-right {
        right: 8px;
    }

    .fullscreen-arrow-top {
        top: 60px;
    }

    .fullscreen-arrow-bottom {
        bottom: 12px;
    }

    #fullscreen-img.landscape {
        width: 100%;
        height: 100%;
        object-fit: contain;
    }
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
    .container {
        padding: 0 0.8rem;
    }

    .header .container {
        flex-direction: column;
        gap: 10px;
    }

    .nav ul {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero {
        padding: 80px 0 60px;
    }

    .hero-content h2 {
        font-size: 2rem;
    }

    .contact-wrapper {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .footer-content {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .rooms {
        padding: 56px 0 72px;
    }

    .rooms .container {
        padding: 0 0.75rem;
    }

    .room-cards {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .room-info {
        padding: 18px 16px 16px;
    }

    .room-img {
        height: 205px;
    }

    .calc-row {
        flex-wrap: wrap;
        gap: 8px;
    }

    .calc-field-guests,
    .calc-field-days {
        width: calc(50% - 4px);
        flex: none;
    }

    .calc-result-field {
        width: 100%;
        max-width: none;
    }

    .calc-total {
        max-width: none;
        width: 100%;
    }

    /* Overlay full-screen on mobile */
    .overlay {
        align-items: flex-start;
    }

    .overlay-content {
        width: 100%;
        max-width: 100%;
        max-height: 100vh;
        border-radius: 0;
        padding-top: 60px;
    }

    .overlay-scroll {
        padding: 10px 15px 20px;
    }

    .overlay-close {
        top: 12px;
        right: 8px;
        width: 34px;
        height: 34px;
        font-size: 1.5rem;
    }

    .gallery-main {
        aspect-ratio: 4 / 3;
    }

    .gallery-thumb {
        width: 55px;
        height: 40px;
    }
}

@media (max-width: 480px) {
    .container,
    .rooms .container {
        padding: 0 0.6rem;
    }

    .rooms h2 {
        font-size: 2.1rem;
    }

    .room-info {
        padding: 16px 14px 14px;
    }
}
