/* ==========================================================================
   INLINE STYLE MIGRATIONS — extracted from templates
   ========================================================================== */

/* Subpage Hero (used across multiple templates) */
.subpage-hero {
    min-height: 50vh;
    padding-top: 120px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    background-size: cover;
    background-position: center;
    position: relative;
}

.subpage-hero h1 {
    color: var(--accent-gold);
    text-shadow: 2px 2px 10px rgba(0,0,0,0.6);
}

.subpage-hero .lead {
    color: var(--bg-cream);
    font-family: var(--font-heading);
    text-shadow: 1px 1px 5px rgba(0,0,0,0.8);
    font-size: 1.5rem;
}

/* Quick Facts Bar (single-room.php) */
.quick-facts {
    border-top: 3px solid var(--accent-gold);
}

.quick-facts svg {
    fill: var(--primary-accent);
}

.quick-facts small {
    line-height: 1;
}

/* Price Box (single-room.php) */
.price-box {
    border-bottom: 1px solid #eaeaea;
}

.price-box .price-amount {
    font-size: 2.5rem;
    font-weight: bold;
    color: var(--primary-accent);
    line-height: 1;
}

.price-box .price-label {
    font-size: 1rem;
    color: #777;
}

.price-box .price-period {
    font-size: 0.9rem;
    color: #777;
}

/* Booking Sidebar (single-room.php, single-hotel.php) */
.booking-sidebar {
    top: 100px;
    background-color: white;
    border: 1px solid #eaeaea;
}

.booking-sidebar .form-control {
    border: 2px solid #eaeaea;
}

/* Room Description (single-room.php) */
.room-description {
    line-height: 1.8;
    color: #555;
}

.room-description h3 {
    color: var(--primary-accent);
}

/* Room Amenities (single-room.php) */
.room-amenities h3 {
    color: var(--primary-accent);
}

.room-amenities svg {
    fill: var(--accent-gold);
}

/* Hotel Description (single-hotel.php) */
.hotel-description {
    font-size: 1.1rem;
    line-height: 1.8;
}

/* Hotel Sidebar Card (single-hotel.php) */
.hotel-sidebar-card {
    top: 100px;
    border-top: 4px solid var(--accent-gold);
}

.hotel-detail-item {
    display: flex;
    margin-bottom: 1rem;
}

.hotel-detail-item svg {
    fill: var(--primary-accent);
    flex-shrink: 0;
    margin-top: 0.25rem;
}

/* Cancellation Banner (single-room.php) */
.cancellation-banner {
    background-color: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #166534;
    font-size: 0.85rem;
}

/* Gallery Page CTA (page-gallery.php) */
.gallery-cta-section {
    background: var(--primary-accent);
    padding: 80px 0;
    text-align: center;
    color: var(--bg-cream);
}

.gallery-cta-btn {
    background: var(--accent-gold);
    color: var(--primary-accent);
    font-family: var(--font-heading);
    padding: 14px 40px;
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    border: none;
}

/* Contact Form (page-contact.php) */
.contact-form .form-control {
    background: transparent;
    color: white;
    border-color: rgba(255,255,255,0.2);
}

.contact-form .form-control:focus {
    border-color: var(--accent-gold);
    box-shadow: 0 0 0 0.2rem rgba(198,169,107,0.25);
}

/* Dining Section (page-dining.php) */
.dining-hero {
    background-color: var(--primary-accent);
    background-size: cover;
    background-position: center;
    color: var(--bg-cream);
}

.menu-item-row {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.menu-price {
    font-family: var(--font-heading);
    color: var(--accent-gold);
    font-weight: bold;
    white-space: nowrap;
    margin-left: 1rem;
}

/* Entertainment (page-entertainment.php) */
.entertainment-hero {
    background-color: var(--primary-accent);
    background-size: cover;
    background-position: center;
    color: var(--bg-cream);
}

.spa-section {
    background-color: var(--bg-sand);
}

/* 404 Page */
.error-404 {
    min-height: 60vh;
    display: flex;
    align-items: center;
    justify-content: center;
}

.error-404 h1 {
    font-size: 8rem;
    color: var(--accent-gold);
    text-shadow: 2px 2px 10px rgba(0,0,0,0.3);
}

.error-search .form-control {
    border: 2px solid var(--secondary-accent);
}

/* Carousel overrides */
.carousel-item img {
    height: 450px;
    object-fit: cover;
}

.carousel-control-prev-icon,
.carousel-control-next-icon {
    filter: drop-shadow(0px 0px 5px rgba(0,0,0,0.8));
}

/* Hero widget form */
.hero-widget label {
    font-family: var(--font-heading);
    color: var(--primary-accent);
    font-size: 0.9rem;
    letter-spacing: 0.05em;
    text-transform: uppercase;
}

.hero-widget .form-control {
    background-color: transparent;
    border: none;
    border-bottom: 1px solid var(--secondary-accent);
    padding-left: 0;
}

.hero-widget .form-control:focus {
    box-shadow: none;
    border-bottom-color: var(--primary-accent);
}

/* Footer bottom opacity fix */
.footer-bottom {
    opacity: 0.85;
}

/* WhatsApp Floating Button */
.whatsapp-float {
    position: fixed;
    bottom: 24px;
    right: 24px;
    width: 60px;
    height: 60px;
    background: #25D366;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 4px 15px rgba(37, 211, 102, 0.4);
    z-index: 9999;
    transition: all 0.3s ease;
    text-decoration: none;
}

.whatsapp-float:hover {
    transform: scale(1.1);
    box-shadow: 0 6px 20px rgba(37, 211, 102, 0.6);
    background: #20bd5a;
    text-decoration: none;
}

@media (max-width: 768px) {
    .whatsapp-float {
        bottom: 16px;
        right: 16px;
        width: 52px;
        height: 52px;
    }
}

/* Responsive hero adjustments */
@media (max-width: 768px) {
    .hero-section {
        height: auto;
        min-height: 80vh;
        padding: 120px 0 180px;
        background-attachment: scroll;
        margin-bottom: 0;
    }

    .hero-content h1 {
        font-size: 2.5rem;
    }

    .hero-widget {
        position: relative;
        bottom: auto;
        left: auto;
        transform: none;
        width: 100%;
        margin-top: 2rem;
    }

    .carousel-item img {
        height: 250px;
    }
}

/* ==========================================================================
   NAVIGATION — Hotels dropdown, Book Now button, Logo fix
   ========================================================================== */

/* Logo — remove size overrides, keep natural aspect */
.nav-logo-img {
    height: 60px;
    width: auto;
    max-width: 250px;
}

/* Override Bootstrap's navbar-brand img 200x200 */
.navbar .navbar-brand img {
    width: auto;
    height: 60px;
    transition: all 0.4s ease;
}

/* Hotels dropdown */
.navbar .dropdown-menu {
    background: rgba(47, 79, 58, 0.95);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(198, 169, 107, 0.3);
    padding: 8px 0;
    margin-top: 0;
}

/* Invisible bridge — prevents gap from closing dropdown */
.navbar .dropdown::before {
    content: '';
    display: block;
    position: absolute;
    top: 100%;
    left: 0;
    width: 100%;
    height: 8px;
    z-index: 1;
}

.navbar .dropdown-menu .dropdown-item {
    color: var(--bg-cream);
    padding: 8px 20px;
    font-family: var(--font-heading);
    font-size: 0.95rem;
    transition: all 0.2s;
}

.navbar .dropdown-menu .dropdown-item:hover {
    background: rgba(198, 169, 107, 0.2);
    color: var(--accent-gold);
}

.navbar .dropdown-menu .dropdown-divider {
    border-color: rgba(198, 169, 107, 0.2);
    margin: 4px 0;
}

.navbar .nav-link.dropdown-toggle::after {
    display: none;
}

/* Desktop: open dropdown on hover using Bootstrap's show class */
@media (min-width: 992px) {
    .navbar .dropdown:hover > .dropdown-menu {
        display: block;
    }
    .navbar .dropdown:hover > .nav-link {
        color: var(--accent-gold);
    }
}

/* Toggler icon — remove blue filter */
.navbar-toggler-icon {
    background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba(250, 248, 245, 1)' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e") !important;
}

/* Book Now Nav Button */
.btn-nav-book {
    background: var(--accent-gold);
    color: var(--primary-accent);
    font-family: var(--font-heading);
    font-weight: 700;
    font-size: 0.85rem;
    letter-spacing: 1px;
    text-transform: uppercase;
    padding: 10px 24px;
    text-decoration: none;
    transition: all 0.3s ease;
    white-space: nowrap;
    border: 2px solid var(--accent-gold);
    display: inline-block;
}

.btn-nav-book:hover {
    background: var(--bg-cream);
    color: var(--primary-accent);
    border-color: var(--bg-cream);
}

/* ==========================================================================
   ROOMS CAROUSEL — Luxury slider for homepage rooms section
   ========================================================================== */

#roomsCarousel {
    position: relative;
    padding: 0 50px;
}

#roomsCarousel .carousel-indicators {
    position: relative;
    margin-bottom: 25px;
}

#roomsCarousel .carousel-indicators button {
    width: 12px;
    height: 12px;
    border-radius: 50%;
    border: 2px solid var(--secondary-accent);
    background: transparent;
    margin: 0 5px;
    transition: all 0.3s;
}

#roomsCarousel .carousel-indicators button.active,
#roomsCarousel .carousel-indicators button:hover {
    background: var(--accent-gold);
    border-color: var(--accent-gold);
}

#roomsCarousel .carousel-control-prev,
#roomsCarousel .carousel-control-next {
    width: 40px;
    height: 40px;
    background: var(--primary-accent);
    border-radius: 50%;
    top: 50%;
    transform: translateY(-50%);
    opacity: 0.85;
    transition: all 0.3s;
}

#roomsCarousel .carousel-control-prev { left: 0; }
#roomsCarousel .carousel-control-next { right: 0; }

#roomsCarousel .carousel-control-prev:hover,
#roomsCarousel .carousel-control-next:hover {
    background: var(--accent-gold);
    opacity: 1;
}

#roomsCarousel .carousel-control-prev-icon,
#roomsCarousel .carousel-control-next-icon {
    width: 18px;
    height: 18px;
}

#roomsCarousel .room-card {
    background: var(--bg-cream);
    transition: transform 0.4s ease, box-shadow 0.4s ease;
}

#roomsCarousel .room-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 30px rgba(0, 0, 0, 0.12);
}

/* Mobile: 1 card per slide */
@media (max-width: 767px) {
    #roomsCarousel {
        padding: 0 10px;
    }
    #roomsCarousel .carousel-item .col-lg-4 {
        width: 100%;
    }
    #roomsCarousel .carousel-control-prev,
    #roomsCarousel .carousel-control-next {
        width: 32px;
        height: 32px;
        top: auto;
        bottom: -10px;
    }
    #roomsCarousel .carousel-control-prev { left: 35%; }
    #roomsCarousel .carousel-control-next { right: 35%; }
}

/* Tablet: 2 cards per slide */
@media (min-width: 768px) and (max-width: 991px) {
    #roomsCarousel .carousel-item .col-lg-4 {
        width: 50%;
    }
}

/* Mobile adjustments */
@media (max-width: 991px) {
    .navbar .dropdown-menu {
        background: rgba(47, 79, 58, 0.98);
    }

    .navbar .nav-link {
        padding: 10px 20px;
    }

    .btn-nav-book {
        width: 100%;
        text-align: center;
        padding: 12px;
    }
}

/* ==========================================================================
   HOTEL CAROUSEL — Landing page
   ========================================================================== */

.hotel-carousel-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: transform 0.3s, box-shadow 0.3s;
    height: 100%;
}

.hotel-carousel-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 30px rgba(0,0,0,0.15);
}

.hotel-card-img-wrap {
    position: relative;
    height: 220px;
    overflow: hidden;
}

.hotel-card-img-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s;
}

.hotel-carousel-card:hover .hotel-card-img-wrap img {
    transform: scale(1.05);
}

.hotel-card-stars {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(47, 79, 58, 0.85);
    color: var(--accent-gold);
    padding: 4px 10px;
    border-radius: 20px;
    font-size: 0.85rem;
    letter-spacing: 1px;
}

.hotel-card-body {
    padding: 20px;
    text-align: center;
}

.hotel-card-body h3 {
    color: var(--primary-accent);
    font-family: var(--font-heading);
    margin: 0 0 8px;
    font-size: 1.2rem;
}

.hotel-card-location {
    color: #888;
    font-size: 0.85rem;
    margin: 0 0 16px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

#hotelsCarousel .carousel-control-prev,
#hotelsCarousel .carousel-control-next {
    width: 5%;
}

#hotelsCarousel .carousel-control-prev-icon,
#hotelsCarousel .carousel-control-next-icon {
    background-color: rgba(47, 79, 58, 0.7);
    border-radius: 50%;
    padding: 20px;
}

#hotelsCarousel .carousel-indicators {
    bottom: -40px;
}

#hotelsCarousel .carousel-indicators button {
    background-color: var(--primary-accent);
    width: 10px;
    height: 10px;
    border-radius: 50%;
}

@media (max-width: 767px) {
    .hotel-card-img-wrap {
        height: 180px;
    }
}
