:root {
    --gold: #D4AF37;
    --gold-light: #E8C547;
    --dark: #111111;
    --dark-gray: #1a1a1a;
    --medium-gray: #333;
    --light-gray: #f5f5f5;
    --white: #FFFFFF;
}

* { box-sizing: border-box; }

body {
    font-family: 'Montserrat', sans-serif;
    color: var(--dark);
    background: var(--white);
    padding-top: 76px;
}

h1, h2, h3, h4, h5, .ag-serif {
    font-family: 'Cormorant Garamond', serif;
}

.text-gold { color: var(--gold) !important; }
.bg-gold { background-color: var(--gold) !important; }
.bg-dark-custom { background-color: var(--dark) !important; }

.btn-gold {
    background: var(--gold);
    color: var(--dark);
    border: none;
    font-weight: 600;
    padding: 10px 28px;
    transition: all 0.3s;
}
.btn-gold:hover {
    background: var(--gold-light);
    color: var(--dark);
    transform: translateY(-2px);
}

.btn-outline-gold {
    border: 1px solid var(--gold);
    color: var(--gold);
    background: transparent;
}
.btn-outline-gold:hover {
    background: var(--gold);
    color: var(--dark);
}

/* Navbar */
.ag-navbar {
    background: rgba(17, 17, 17, 0.95) !important;
    backdrop-filter: blur(10px);
    padding: 10px 0;
    transition: all 0.3s;
}
.ag-navbar .container {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
}
.ag-nav-book-cta {
    margin-left: auto;
    margin-right: 10px;
    font-weight: 700;
    font-size: 0.8rem;
    letter-spacing: 0.5px;
    padding: 8px 18px !important;
    white-space: nowrap;
    z-index: 10;
}
@media (min-width: 992px) {
    .ag-nav-book-cta {
        order: 10;
        margin-left: 12px;
        margin-right: 0;
    }
    .ag-navbar .navbar-collapse {
        order: 5;
        flex: 1 1 auto;
    }
    .ag-navbar .navbar-toggler {
        order: 11;
    }
    .ag-navbar .navbar-brand {
        order: 1;
    }
}
.ag-brand {
    padding: 0;
    display: flex;
    align-items: center;
}
.ag-brand-logo {
    height: 52px !important;
    width: auto !important;
    max-width: 200px !important;
    display: block;
    object-fit: contain;
}
.ag-navbar .navbar-brand {
    max-width: 220px;
    overflow: hidden;
}
.ag-brand-gold { color: var(--gold); }
.ag-navbar .nav-link {
    color: rgba(255,255,255,0.85) !important;
    font-size: 0.8rem;
    font-weight: 500;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    padding: 8px 10px !important;
    transition: color 0.3s;
}
.ag-navbar .nav-link:hover,
.ag-navbar .nav-link:focus { color: var(--gold) !important; }
.ag-navbar .dropdown-toggle::after {
    margin-left: 0.35em;
    vertical-align: 0.15em;
}
.ag-nav-dropdown {
    background: #1a1a1a !important;
    border: 1px solid rgba(212, 175, 55, 0.25);
    border-radius: 6px;
    padding: 0.5rem 0;
    box-shadow: 0 12px 40px rgba(0,0,0,0.45);
    min-width: 200px;
}
.ag-nav-dropdown .dropdown-item {
    color: rgba(255,255,255,0.9);
    font-size: 0.85rem;
    padding: 0.5rem 1rem;
    text-transform: none;
    letter-spacing: 0;
}
.ag-nav-dropdown .dropdown-item:hover,
.ag-nav-dropdown .dropdown-item:focus {
    background: rgba(212, 175, 55, 0.15);
    color: var(--gold);
}
.ag-nav-icon {
    color: rgba(255,255,255,0.9) !important;
}
.ag-nav-staff { opacity: 0.7; font-size: 1.1rem !important; }
.ag-nav-staff:hover { opacity: 1; color: var(--gold) !important; }
@media (min-width: 992px) {
    .ag-brand-logo { height: 48px; max-width: 180px; }
}

/* Hero */
.ag-hero {
    min-height: 100vh;
    display: flex;
    align-items: center;
    position: relative;
    background: var(--dark) center/cover no-repeat;
    margin-top: -76px;
}
.ag-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(17,17,17,0.85) 0%, rgba(17,17,17,0.5) 100%);
}
.ag-hero-content {
    position: relative;
    z-index: 2;
    color: var(--white);
}
.ag-hero h1 {
    font-size: clamp(2.5rem, 6vw, 4.5rem);
    font-weight: 700;
    line-height: 1.1;
}
.ag-hero .lead {
    font-size: 1.1rem;
    font-weight: 300;
    opacity: 0.9;
}

/* Booking form on hero */
.ag-booking-card {
    background: rgba(255,255,255,0.95);
    border-radius: 4px;
    padding: 24px;
    box-shadow: 0 20px 60px rgba(0,0,0,0.3);
}
.ag-booking-card label {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--medium-gray);
    font-weight: 600;
}

/* Sections */
.ag-section {
    padding: 80px 0;
}
.ag-section-dark {
    background: var(--dark);
    color: var(--white);
}
.ag-section-title {
    font-size: 2.5rem;
    margin-bottom: 10px;
}
.ag-section-title::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--gold);
    margin: 15px auto 0;
}
.ag-section-title.text-start::after { margin-left: 0; }

/* Room cards */
.ag-room-card {
    border: none;
    border-radius: 4px;
    overflow: hidden;
    transition: transform 0.4s, box-shadow 0.4s;
    background: var(--white);
}
.ag-room-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(0,0,0,0.15);
}

.ag-vip-room {
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.45), 0 8px 28px rgba(212, 175, 55, 0.18);
    animation: ag-vip-glow 3s ease-in-out infinite;
}
.ag-vip-room:hover {
    box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.7), 0 20px 40px rgba(212, 175, 55, 0.28);
}
.ag-vip-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    z-index: 3;
    background: linear-gradient(135deg, #D4AF37, #f5e6a8, #D4AF37);
    color: #111;
    font-size: 0.65rem;
    font-weight: 800;
    letter-spacing: 0.08em;
    padding: 0.35rem 0.65rem;
    border-radius: 999px;
    box-shadow: 0 0 12px rgba(212, 175, 55, 0.65);
}
@keyframes ag-vip-glow {
    0%, 100% { box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.45), 0 8px 28px rgba(212, 175, 55, 0.18); }
    50% { box-shadow: 0 0 0 1px rgba(212, 175, 55, 0.75), 0 12px 32px rgba(212, 175, 55, 0.32); }
}
.ag-room-img {
    height: 240px;
    background: var(--light-gray);
    position: relative;
    overflow: hidden;
}
.ag-room-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}
.ag-room-price {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: var(--gold);
    color: var(--dark);
    padding: 6px 14px;
    font-weight: 700;
    font-size: 0.9rem;
}
.ag-room-status {
    position: absolute;
    top: 15px;
    left: 15px;
    padding: 4px 12px;
    font-size: 0.7rem;
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 600;
}
.status-available { background: #28a745; color: white; }
.status-occupied { background: #dc3545; color: white; }
.status-maintenance { background: #343a40; color: white; }
.status-cleaning { background: #17a2b8; color: white; }
.status-dirty { background: #6c757d; color: white; }
.status-ready { background: #ffc107; color: #111; }
.status-unavailable { background: #6c757d; color: white; }

/* Amenities */
.ag-amenity {
    text-align: center;
    padding: 30px 20px;
    transition: transform 0.3s;
}
.ag-amenity:hover { transform: translateY(-5px); }
.ag-amenity i {
    font-size: 2.5rem;
    color: var(--gold);
    margin-bottom: 15px;
}

/* Testimonials */
.ag-testimonial {
    background: var(--light-gray);
    padding: 30px;
    border-left: 3px solid var(--gold);
    margin-bottom: 20px;
}
.ag-stars { color: var(--gold); }

/* Footer */
.ag-footer {
    background: var(--dark);
    color: rgba(255,255,255,0.7);
}
.ag-footer-links a {
    color: rgba(255,255,255,0.6);
    text-decoration: none;
    line-height: 2;
    transition: color 0.3s;
}
.ag-footer-links a:hover { color: var(--gold); }

/* WhatsApp float */
.ag-livechat-float {
    position: fixed;
    bottom: 25px;
    left: 25px;
    width: 56px;
    height: 56px;
    background: var(--gold, #c9a227);
    color: #111;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(201,162,39,0.45);
    transition: transform 0.3s;
}
.ag-livechat-float:hover {
    color: #111;
    transform: scale(1.1);
}

.ag-chat-box {
    min-height: 320px;
    max-height: 420px;
    overflow-y: auto;
}

.ag-whatsapp-float {
    position: fixed;
    bottom: 25px;
    right: 25px;
    width: 56px;
    height: 56px;
    background: #25D366;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.6rem;
    z-index: 999;
    box-shadow: 0 4px 15px rgba(37,211,102,0.5);
    transition: transform 0.3s;
}
.ag-whatsapp-float:hover {
    color: white;
    transform: scale(1.1);
}

/* Gallery */
.ag-gallery-item {
    overflow: hidden;
    border-radius: 4px;
    margin-bottom: 20px;
}
.ag-gallery-item img {
    width: 100%;
    height: 250px;
    object-fit: cover;
    transition: transform 0.5s;
}
.ag-gallery-item:hover img { transform: scale(1.08); }

/* Page header */
.ag-page-header {
    background: var(--dark);
    color: var(--white);
    padding: 100px 0 60px;
    margin-top: -76px;
    text-align: center;
}

/* Animations */
.fade-up {
    opacity: 0;
    transform: translateY(30px);
    transition: opacity 0.8s, transform 0.8s;
}
.fade-up.visible {
    opacity: 1;
    transform: translateY(0);
}

/* ========== Mobile-first responsive (luxury hotel) ========== */

/* Sticky mobile booking bar */
.ag-mobile-book-btn {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    z-index: 1040;
    background: linear-gradient(180deg, transparent 0%, rgba(17,17,17,0.15) 12%, var(--dark) 100%);
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom, 0px));
    text-align: center;
}
.ag-mobile-book-btn .btn {
    width: 100%;
    max-width: 480px;
    padding: 16px 28px;
    font-size: 1.05rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(212, 175, 55, 0.35);
}

/* Touch-friendly buttons */
.btn-book-touch,
.ag-hero .btn,
.ag-booking-card .btn,
.ag-room-card .btn {
    min-height: 48px;
}

/* Room card — full-width book on small screens */
.ag-room-card .card-body,
.ag-room-card > .p-4 {
    display: flex;
    flex-direction: column;
}
.ag-room-card .btn-gold.w-100,
.ag-room-card .btn-outline-dark.w-100 {
    min-height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Gallery images */
.ag-gallery-item img {
    height: auto;
    min-height: 180px;
    max-height: 280px;
}

/* Swiper gallery (mobile) */
.ag-gallery-swiper {
    padding-bottom: 36px;
}
.ag-gallery-swiper .swiper-slide img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    border-radius: 4px;
}
.ag-gallery-swiper .swiper-pagination-bullet-active {
    background: var(--gold);
}

/* Sidebar booking card — no sticky on phone */
@media (max-width: 991.98px) {
    .ag-booking-sidebar.sticky-top,
    .ag-booking-sidebar.sticky-lg-top {
        position: static !important;
        top: auto !important;
    }
}
@media (min-width: 992px) {
    .ag-booking-sidebar.sticky-lg-top {
        top: 88px;
    }
}

/* Tablet */
@media (max-width: 991.98px) {
    .ag-section {
        padding: 56px 0;
    }
    .ag-section-title {
        font-size: 2rem;
    }
    .ag-page-header {
        padding: 88px 0 48px;
    }
    .ag-page-header h1,
    .ag-page-header .display-4 {
        font-size: clamp(1.75rem, 5vw, 2.5rem);
    }
    .ag-room-img {
        height: 220px;
    }
}

/* Phone */
@media (max-width: 767.98px) {
    body {
        padding-top: 64px;
        padding-bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    }

    .ag-mobile-book-btn {
        display: block;
    }

    .ag-whatsapp-float {
        bottom: calc(78px + env(safe-area-inset-bottom, 0px));
        right: 16px;
        width: 52px;
        height: 52px;
        font-size: 1.45rem;
    }

    .ag-navbar {
        padding: 8px 0;
    }
    .ag-brand-logo {
        height: 42px;
        max-width: 160px;
    }

    /* Collapsed nav — full-width tap targets */
    .ag-navbar .navbar-collapse {
        background: rgba(17, 17, 17, 0.98);
        margin: 12px -12px 0;
        padding: 8px 12px 16px;
        border-radius: 4px;
        border-top: 1px solid rgba(212, 175, 55, 0.25);
    }
    .ag-navbar .nav-link {
        padding: 12px 8px !important;
        font-size: 0.9rem;
        border-bottom: 1px solid rgba(255,255,255,0.06);
    }
    .ag-navbar .dropdown-menu {
        background: rgba(26, 26, 26, 0.98) !important;
        border: none;
        margin: 0 0 0 12px;
        padding-left: 8px;
    }
    .ag-navbar .dropdown-item {
        padding: 10px 12px;
        border-bottom: 1px solid rgba(255,255,255,0.05);
    }
    .ag-navbar .nav-item:last-child .btn-gold {
        border-bottom: none;
    }
    .ag-nav-util {
        border-top: 1px solid rgba(212, 175, 55, 0.2);
        margin-top: 8px;
        padding-top: 8px;
    }
    .ag-nav-book {
        width: 100%;
        margin-top: 4px;
        padding: 14px 20px !important;
        font-size: 1rem;
    }
    .ag-navbar .btn-gold {
        width: 100%;
        margin-top: 8px;
        padding: 14px 20px;
        font-size: 1rem;
    }

    .ag-hero {
        min-height: 60vh;
        margin-top: -64px;
    }
    .ag-hero .row.min-vh-100 {
        min-height: auto !important;
    }
    .ag-hero h1 {
        font-size: clamp(1.85rem, 8vw, 2.5rem);
    }
    .ag-hero .lead {
        font-size: 0.95rem;
    }
    .ag-hero .btn-lg {
        width: 100%;
        margin-right: 0 !important;
        margin-bottom: 0.5rem;
    }

    .ag-booking-card {
        padding: 18px;
        margin-top: 0;
    }
    .ag-booking-card .form-control,
    .ag-booking-card .form-select {
        min-height: 48px;
        font-size: 16px; /* prevents iOS zoom on focus */
    }
    .ag-booking-card .btn {
        padding: 16px;
        font-size: 1rem;
    }

    .ag-section {
        padding: 48px 0;
    }
    .ag-section-title {
        font-size: 1.65rem;
    }

    .ag-page-header {
        padding: 72px 0 40px;
        margin-top: -64px;
    }

    .ag-room-img {
        height: 200px;
    }
    .ag-room-price {
        font-size: 0.8rem;
        padding: 5px 10px;
    }

    .ag-amenity {
        padding: 20px 12px;
    }
    .ag-amenity i {
        font-size: 2rem;
    }

    .ag-testimonial {
        padding: 22px;
    }

    .ag-footer .container {
        padding-top: 2.5rem !important;
        padding-bottom: 2.5rem !important;
    }
    .ag-footer .col-lg-4 {
        text-align: center;
        margin-bottom: 1.5rem;
    }
    .ag-footer-links {
        text-align: center;
    }

    .ag-gallery-item img {
        min-height: 160px;
        max-height: 220px;
    }

    /* Forms stack vertically */
    .ag-filter-form .col-md-3,
    .ag-filter-form .col-md-2,
    .ag-filter-form .col-md-4 {
        flex: 0 0 100%;
        max-width: 100%;
    }
    .ag-filter-form .btn {
        min-height: 48px;
        font-size: 1rem;
    }

    .card.p-4 .form-control,
    .card.p-4 .form-select,
    .card.p-4 textarea {
        min-height: 48px;
        font-size: 16px;
    }
    .card.p-4 .btn-lg {
        min-height: 52px;
        font-size: 1.05rem;
    }
}

/* Large screens — hide mobile-only UI */
@media (min-width: 992px) {
    .ag-mobile-book-btn {
        display: none !important;
    }
}

/* Reduce motion for accessibility */
@media (prefers-reduced-motion: reduce) {
    .ag-room-card:hover,
    .ag-amenity:hover,
    .btn-gold:hover,
    .ag-gallery-item:hover img {
        transform: none;
    }
    .fade-up {
        opacity: 1;
        transform: none;
    }
}

/* Restaurant menu cards */
.ag-menu-card {
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}
.ag-menu-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.12) !important;
}
.ag-menu-img {
    position: relative;
    height: 180px;
    overflow: hidden;
    background: #222;
}
.ag-menu-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}
.ag-menu-price {
    position: absolute;
    bottom: 12px;
    right: 12px;
    background: rgba(17,17,17,0.85);
    color: var(--ag-gold, #D4AF37);
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-weight: 600;
    font-size: 0.9rem;
}

/* Admin styles in admin.css */

/* Room detail gallery */
.ag-room-gallery-main {
    background: #111;
    min-height: 320px;
}
.ag-room-gallery-main .swiper-slide {
    position: relative;
}
.ag-room-gallery-img {
    width: 100%;
    height: clamp(280px, 55vw, 520px);
    object-fit: cover;
    display: block;
}
.ag-room-gallery-badge {
    position: absolute;
    left: 16px;
    bottom: 16px;
    background: rgba(17, 17, 17, 0.75);
    color: #fff;
    padding: 0.35rem 0.75rem;
    border-radius: 999px;
    font-size: 0.8rem;
}
.ag-room-gallery-zoom {
    position: absolute;
    top: 16px;
    right: 16px;
    z-index: 5;
    border: none;
    background: rgba(255, 255, 255, 0.92);
    width: 42px;
    height: 42px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}
.ag-room-thumb-swiper .swiper-slide {
    width: 92px;
    opacity: 0.55;
    cursor: pointer;
    transition: opacity 0.2s;
}
.ag-room-thumb-swiper .swiper-slide-thumb-active {
    opacity: 1;
}
.ag-room-thumb-img {
    width: 92px;
    height: 68px;
    object-fit: cover;
    border-radius: 6px;
    border: 2px solid transparent;
}
.ag-room-thumb-swiper .swiper-slide-thumb-active .ag-room-thumb-img {
    border-color: var(--gold);
}
.ag-room-main-swiper .swiper-button-prev,
.ag-room-main-swiper .swiper-button-next {
    color: #fff;
}
.ag-room-details-card {
    background: var(--white);
    border: 1px solid rgba(0, 0, 0, 0.06);
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.06);
}
.ag-room-stat {
    background: var(--light-gray);
    border-radius: 8px;
    padding: 1rem;
    text-align: center;
}
.ag-room-stat i {
    display: block;
    color: var(--gold);
    font-size: 1.25rem;
    margin-bottom: 0.35rem;
}
.ag-room-stat strong {
    display: block;
    font-size: 1rem;
}
.ag-room-stat span {
    color: #777;
    font-size: 0.8rem;
}
.ag-amenity {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.5rem 0.75rem;
    background: var(--light-gray);
    border-radius: 6px;
    font-size: 0.95rem;
}
.ag-wishlist-float {
    position: absolute;
    top: 15px;
    right: 15px;
    z-index: 2;
}
.ag-wishlist-btn {
    min-width: 130px;
}
.ag-gallery-filter.active {
    border-color: var(--gold);
}
