
/* =================================
   GENERAL STYLES
================================= */

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

body {
    font-family: Arial, Helvetica, sans-serif;
    color: #333;
    background: #f8f9fb;
    line-height: 1.6;
}

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

.container {
    width: 90%;
    max-width: 1200px;
    margin: auto;
}

/* =================================
   HEADER AND NAVIGATION
================================= */

.header {
    background: #14283f;
    color: white;
    padding: 18px 0;
}

.navbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.logo {
    font-size: 25px;
    font-weight: bold;
    color: #e4bd72;
}

.nav-links {
    display: flex;
    gap: 28px;
    list-style: none;
}

.nav-links a {
    color: white;
    font-size: 15px;
}

.nav-links a:hover,
.nav-links a.active {
    color: #e4bd72;
}

/* =================================
   HERO SECTION
================================= */

.hero {
    min-height: 390px;
    background: linear-gradient(
        rgba(10, 30, 50, 0.75),
        rgba(10, 30, 50, 0.75)
    );
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    padding: 50px 20px;
}

.hero h1 {
    font-size: 44px;
    margin-bottom: 15px;
}

.hero p {
    font-size: 18px;
    margin-bottom: 25px;
}

/* =================================
   BUTTONS
================================= */

.btn {
    display: inline-block;
    padding: 12px 25px;
    border-radius: 5px;
    background: #c49a50;
    color: white;
    border: none;
    cursor: pointer;
    font-size: 15px;
    transition: 0.3s;
}

.btn:hover {
    background: #a87d36;
}

.btn-secondary {
    background: #14283f;
}

.btn-secondary:hover {
    background: #254563;
}

/* =================================
   PAGE TITLES
================================= */

.section {
    padding: 55px 0;
}

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

.section-title h2 {
    font-size: 32px;
    color: #14283f;
}

.section-title p {
    color: #777;
    margin-top: 8px;
}

/* =================================
   ROOM CARDS
================================= */

.rooms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}

.room-card {
    background: white;
    border-radius: 9px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
    transition: transform 0.3s;
}

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

.room-image {
    height: 220px;
    width: 100%;
    object-fit: cover;
    background: #e5e8ec;
}

.room-placeholder {
    height: 220px;
    display: flex;
    justify-content: center;
    align-items: center;
    background: #e5e8ec;
    color: #64748b;
    font-size: 16px;
}

.room-info {
    padding: 22px;
}

.room-info h3 {
    font-size: 21px;
    color: #14283f;
    margin-bottom: 10px;
}

.room-info p {
    color: #777;
    margin-bottom: 12px;
    font-size: 14px;
}

.room-price {
    font-size: 21px;
    font-weight: bold;
    color: #bd9145;
    margin-bottom: 15px;
}

.room-price span {
    font-size: 13px;
    color: #777;
    font-weight: normal;
}

.room-actions {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}

/* =================================
   ROOM DETAILS
================================= */

.details-layout {
    display: grid;
    grid-template-columns: 1.5fr 1fr;
    gap: 35px;
}

.details-image {
    width: 100%;
    min-height: 300px;
    object-fit: cover;
    background: #e5e8ec;
    border-radius: 8px;
}

.details-content {
    background: white;
    padding: 25px;
    border-radius: 8px;
}

/* =================================
   FORMS
================================= */

.form-container {
    max-width: 700px;
    margin: auto;
    background: white;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
}

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

.form-group label {
    display: block;
    margin-bottom: 7px;
    font-weight: bold;
}

.form-group input,
.form-group select {
    width: 100%;
    padding: 12px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 15px;
}

.form-group input:focus,
.form-group select:focus {
    outline: 2px solid #c49a50;
    border-color: transparent;
}

.booking-summary {
    background: #f3f5f8;
    padding: 20px;
    border-radius: 6px;
    margin-bottom: 20px;
}

.message {
    margin: 15px 0;
    padding: 12px;
    border-radius: 5px;
}

.error-message {
    background: #fee2e2;
    color: #991b1b;
}

.success-message {
    background: #dcfce7;
    color: #166534;
}

/* =================================
   FOOTER
================================= */

.footer {
    background: #14283f;
    color: white;
    text-align: center;
    padding: 25px 15px;
    margin-top: 50px;
}

/* =================================
   RESPONSIVE DESIGN
================================= */

@media (max-width: 850px) {
    .rooms-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .details-layout {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .navbar {
        flex-direction: column;
    }

    .nav-links {
        gap: 15px;
        flex-wrap: wrap;
        justify-content: center;
    }

    .hero h1 {
        font-size: 32px;
    }

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


/* Homepage feature cards */
.features-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
    margin-top: 35px;
}

.feature-card {
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.08);
}

.feature-card h3 {
    margin-bottom: 12px;
}

.booking-cta {
    text-align: center;
    background: #f3f6f9;
}

.booking-cta h2 {
    margin-bottom: 15px;
}

.booking-cta p {
    margin-bottom: 25px;
}

@media (max-width: 768px) {
    .features-grid {
        grid-template-columns: 1fr;
    }
}



/* Room details page */
.room-detail-card {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 35px;
    background: #ffffff;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.room-detail-image {
    width: 100%;
    height: 350px;
    object-fit: cover;
    border-radius: 8px;
}

.room-detail-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 18px;
}

.room-detail-info h2 {
    margin-bottom: 5px;
}

.room-detail-info h3 {
    color: #2563eb;
}

.room-placeholder {
    min-height: 250px;
    background: #e9edf2;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    border-radius: 8px;
    padding: 20px;
    text-align: center;
}

.back-link {
    margin-top: 10px;
}

.error-message {
    color: #c62828;
    margin-top: 15px;
}

@media (max-width: 768px) {
    .room-detail-card {
        grid-template-columns: 1fr;
    }

    .room-detail-image {
        height: 250px;
    }
}


/* Booking page */
.booking-form {
    max-width: 700px;
    margin: 30px auto;
    padding: 30px;
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.booking-form h3 {
    margin: 20px 0;
}

.booking-summary {
    max-width: 700px;
    margin: 0 auto;
    padding: 20px;
    background: #f3f6f9;
    border-radius: 8px;
}

.booking-summary h3 {
    margin-bottom: 10px;
}

.form-group {
    display: flex;
    flex-direction: column;
    margin-bottom: 20px;
}

.form-group label {
    margin-bottom: 8px;
    font-weight: 600;
}

.form-group input {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 16px;
}

.date-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
}

.booking-total {
    margin: 25px 0;
    padding: 20px;
    background: #f3f6f9;
    border-radius: 8px;
}

.booking-total p {
    margin-bottom: 12px;
}

.booking-total h3 {
    margin-top: 15px;
}

#bookingSubmit:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

@media (max-width: 600px) {
    .booking-form {
        padding: 20px;
    }

    .date-fields {
        grid-template-columns: 1fr;
        gap: 0;
    }
}



/* Booking confirmation page */
.confirmation-card {
    max-width: 700px;
    margin: 20px auto;
    padding: 35px;
    background: #ffffff;
    border-radius: 10px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
}

.confirmation-card > h2 {
    margin-bottom: 15px;
}

.confirmation-success {
    color: #16803c;
    margin-bottom: 20px;
}

.confirmation-card > h3 {
    margin: 20px 0 12px;
}

.confirmation-details {
    margin: 20px 0;
    border-top: 1px solid #ddd;
}

.confirmation-row {
    display: flex;
    justify-content: space-between;
    gap: 15px;
    padding: 14px 0;
    border-bottom: 1px solid #ddd;
}

.confirmation-row strong {
    text-align: right;
}

.booking-status {
    display: inline-block;
    padding: 8px 14px;
    background: #fff3cd;
    color: #856404;
    border-radius: 5px;
}

.confirmation-note {
    margin: 20px 0;
    color: #555;
}

@media (max-width: 600px) {
    .confirmation-card {
        padding: 20px;
    }

    .confirmation-row {
        flex-direction: column;
        gap: 5px;
    }

    .confirmation-row strong {
        text-align: left;
    }
}

/* Room listing images */
.room-card img {
    width: 100% !important;
    height: 220px !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block;
}

/* Room details images */
#roomDetails img {
    width: 100% !important;
    height: 350px !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block;
}


/* Language Selector */
.language-switcher {
    display: flex;
    align-items: center;
    gap: 6px;
}

.language-btn {
    padding: 7px 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
}

.language-btn:hover,
.language-btn.active {
    background: #333;
    color: #fff;
    border-color: #333;
}

/* Breakfast Included Label */
.breakfast-label {
    display: inline-block;
    width: fit-content;
    background-color: #e8f5e9;
    color: #256029;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 600;
    margin: 8px 0;
}

/* Breakfast information on booking page */
.breakfast-notice {
    display: flex;
    align-items: center;
    gap: 10px;
    background-color: #e8f5e9;
    color: #256029;
    border: 1px solid #c8e6c9;
    padding: 14px 18px;
    border-radius: 8px;
    margin: 15px 0 25px;
}

.breakfast-icon {
    font-size: 22px;
}

/* Amenities Page Icons */
.amenity-icon {
    font-size: 32px;
    color: #b08d57;
    margin-bottom: 15px;
    display: block;
}


/* =================================
   CONTACT PAGE
================================= */

.contact-layout {
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 30px;
    align-items: start;
}

.contact-information,
.contact-form-container {
    background: #ffffff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.07);
}

.contact-information h3,
.contact-form-container h3 {
    color: #14283f;
    margin-bottom: 25px;
    font-size: 22px;
}

.contact-info-card {
    display: flex;
    gap: 15px;
    align-items: flex-start;
    padding: 18px 0;
    border-bottom: 1px solid #eee;
}

.contact-info-card:last-child {
    border-bottom: none;
}

.contact-icon {
    font-size: 25px;
}

.contact-info-card h4 {
    color: #14283f;
    margin-bottom: 5px;
}

.contact-info-card p {
    color: #666;
    font-size: 15px;
}

.contact-form textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-family: Arial, Helvetica, sans-serif;
    font-size: 15px;
    resize: vertical;
}

.contact-form input:focus,
.contact-form textarea:focus {
    outline: 2px solid #c49a50;
    border-color: transparent;
}

.contact-form-note {
    margin-top: 15px;
    color: #777;
    font-size: 13px;
}

.contact-map-section {
    margin-top: 45px;
}

.contact-map-section h3 {
    color: #14283f;
    margin-bottom: 20px;
    text-align: center;
}

.contact-map-placeholder {
    min-height: 220px;
    background: #e9edf2;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    padding: 25px;
    color: #555;
}

.contact-map-placeholder span {
    font-size: 40px;
    margin-bottom: 12px;
}

.contact-disclaimer {
    text-align: center;
    margin-top: 12px;
    font-size: 13px;
    color: #777;
}

@media (max-width: 768px) {
    .contact-layout {
        grid-template-columns: 1fr;
    }

    .contact-information,
    .contact-form-container {
        padding: 22px;
    }
}


/* GALLERY PAGE */

.gallery-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.gallery-item {
    height: 250px;
    overflow: hidden;
    border-radius: 10px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.10);
}

.gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

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

@media (max-width: 768px) {
    .gallery-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .gallery-grid {
        grid-template-columns: 1fr;
    }
}


/* GALLERY LIGHTBOX */

.gallery-item {
    cursor: pointer;
}

.gallery-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.95);
    align-items: center;
    justify-content: center;
}

.gallery-lightbox.active {
    display: flex;
}

.gallery-lightbox img {
    max-width: 85%;
    max-height: 85vh;
    object-fit: contain;
    border-radius: 5px;
}

.lightbox-close,
.lightbox-prev,
.lightbox-next {
    position: absolute;
    border: none;
    background: transparent;
    color: white;
    cursor: pointer;
    font-size: 40px;
    padding: 10px;
    z-index: 10000;
}

.lightbox-close {
    top: 15px;
    right: 25px;
    font-size: 45px;
}

.lightbox-prev {
    left: 20px;
}

.lightbox-next {
    right: 20px;
}

.lightbox-counter {
    position: absolute;
    bottom: 20px;
    color: white;
    font-size: 16px;
}

.lightbox-close:hover,
.lightbox-prev:hover,
.lightbox-next:hover {
    color: #d4af77;
}

@media (max-width: 600px) {
    .gallery-lightbox img {
        max-width: 90%;
        max-height: 75vh;
    }

    .lightbox-prev {
        left: 2px;
    }

    .lightbox-next {
        right: 2px;
    }

    .lightbox-close {
        right: 10px;
        top: 5px;
    }
}


/* LEGAL PAGES */

.legal-page {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

.legal-page h3 {
    margin-top: 30px;
    margin-bottom: 10px;
}

.legal-page p {
    margin-bottom: 20px;
}


/* LEGAL PAGES */

.legal-page {
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
}

.legal-page h3 {
    margin-top: 30px;
    margin-bottom: 10px;
}

.legal-page p {
    margin-bottom: 20px;
}

.legal-page ul {
    margin: 10px 0 20px 25px;
}


/* FOOTER LEGAL LINKS */

.footer {
    text-align: center;
    padding: 25px 15px;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 25px;
    flex-wrap: wrap;
    margin-top: 12px;
}

.footer-links a {
    color: inherit;
    text-decoration: none;
    font-size: 14px;
}

.footer-links a:hover {
    text-decoration: underline;
}

.contact-map {
    position: relative;
    width: 100%;
    height: 400px;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.08);
}

.contact-map iframe {
    width: 100%;
    height: 100%;
    border: 0;
    display: block;
}

.map-consent-placeholder {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 15px;
    padding: 20px;
    text-align: center;
    background: #f4f4f4;
    box-sizing: border-box;
}

.map-consent-placeholder button {
    padding: 10px 18px;
    border: 1px solid #333;
    border-radius: 5px;
    background: #333;
    color: #fff;
    cursor: pointer;
}


/* Occupancy-based room pricing */
.room-pricing {
    margin: 15px 0;
}

.room-pricing h4 {
    margin-bottom: 8px;
}

.room-price-line {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    margin: 6px 0;
    font-size: 15px;
}

.room-price-occupancy {
    min-width: 95px;
}

.room-price-line strong {
    font-size: 16px;
}

.room-price-period {
    font-size: 13px;
    color: #666;
}


/* Room details occupancy-based pricing */
.room-detail-pricing {
    margin: 20px 0;
}

.room-detail-pricing h3 {
    margin-bottom: 12px;
}

.room-detail-price-line {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
    max-width: 320px;
    margin: 10px 0;
    font-size: 16px;
}

.room-detail-price-line strong {
    font-size: 18px;
}

/* CONTACT INFORMATION GRID */

.contact-info-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 15px;
    margin-top: 20px;
}

.contact-info-grid .contact-info-card {
    margin-bottom: 0;
    height: 100%;
    box-sizing: border-box;
}

/* GOOGLE MAP */

.contact-map {
    width: 100%;
    margin-top: 25px;
}

.contact-map iframe {
    width: 100%;
    min-height: 350px;
    border: 0;
    border-radius: 8px;
}

/* MOBILE RESPONSIVE */

@media (max-width: 600px) {

    .contact-info-grid {
        grid-template-columns: 1fr;
    }

    .contact-map iframe {
        min-height: 280px;
    }
}


/* HOTEL BUILDING IMAGE ON HOMEPAGE */

.hotel-building-image {
    width: 100%;
    max-width: 1100px;
    margin: 0 auto 25px;
    overflow: hidden;
    border-radius: 10px;
}

.hotel-building-image img {
    display: block;
    width: 100%;
    height: 420px;
    object-fit: cover;
    object-position: center;
}

/* MOBILE IMAGE SIZE */

@media (max-width: 768px) {
    .hotel-building-image img {
        height: 260px;
    }
}

@media (max-width: 480px) {
    .hotel-building-image img {
        height: 210px;
    }
}


/* HOMEPAGE HERO - IMAGE AND TEXT SIDE BY SIDE */

.hero-layout {
    display: flex;
    align-items: center;
    gap: 35px;
    max-width: 1100px;
    margin: 0 auto;
}

.hotel-building-image {
    flex: 0 0 250px;
    width: 250px;
    height: 200px;
    overflow: hidden;
    border-radius: 8px;
}

.hotel-building-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.hero-layout .hero-content {
    flex: 1;
    text-align: left;
}

/* MOBILE RESPONSIVE */

@media (max-width: 650px) {
    .hero-layout {
        flex-direction: column;
        align-items: center;
        gap: 20px;
    }

    .hotel-building-image {
        width: 250px;
        height: 200px;
    }

    .hero-layout .hero-content {
        text-align: center;
    }
}
