/* ===== Deckel Hotel - Global Styles ===== */
* {
    font-family: 'Google Sans Text', 'Product Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

html {
    scroll-behavior: smooth;
}

body {
    background: #fff;
    overflow-x: hidden;
}

/* ===== African Patterns ===== */
.african-pattern-1 {
    background-image: repeating-linear-gradient(45deg, transparent, transparent 10px, rgba(139, 21, 56, .03) 10px, rgba(139, 21, 56, .03) 20px),
        repeating-linear-gradient(-45deg, transparent, transparent 10px, rgba(212, 165, 116, .03) 10px, rgba(212, 165, 116, .03) 20px);
}

.african-pattern-2 {
    background-image: url("data:image/svg+xml,%3Csvg width='60' height='60' viewBox='0 0 60 60' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M30 0L60 30L30 60L0 30z' fill='%238B1538' fill-opacity='0.03'/%3E%3C/svg%3E");
}

/* ===== Animations ===== */
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50% { transform: translateY(-12px); }
}
.animate-float { animation: float 5s ease-in-out infinite; }

@keyframes fadeInUp {
    from { opacity: 0; transform: translateY(30px); }
    to { opacity: 1; transform: translateY(0); }
}
.fade-in-up { animation: fadeInUp .8s ease-out forwards; }

@keyframes pulseGold {
    0%, 100% { box-shadow: 0 0 0 0 rgba(212, 165, 116, .4); }
    50% { box-shadow: 0 0 0 15px rgba(212, 165, 116, 0); }
}
.pulse-gold { animation: pulseGold 2s infinite; }

/* ===== Glass Card ===== */
.glass-card {
    background: rgba(255, 255, 255, .95);
    border: 1px solid rgba(0, 0, 0, .06);
    backdrop-filter: blur(12px);
    border-radius: 20px;
    transition: all .4s cubic-bezier(.16, 1, .3, 1);
}
.glass-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px -15px rgba(139, 21, 56, .15);
    border-color: rgba(139, 21, 56, .12);
}

/* ===== Buttons ===== */
.btn-primary {
    background: linear-gradient(135deg, #8B1538, #6B1029);
    color: #fff;
    transition: all .3s;
    position: relative;
    overflow: hidden;
    display: inline-flex;
}
.btn-primary:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px rgba(139, 21, 56, .4);
}

.btn-secondary {
    background: transparent;
    border: 2px solid #D4A574;
    color: #D4A574;
    transition: all .3s;
}
.btn-secondary:hover {
    background: #D4A574;
    color: #1E293B;
    transform: translateY(-2px);
}

.btn-whatsapp {
    background: linear-gradient(135deg, #25D366, #128C7E);
    color: #fff;
    transition: all .3s;
}
.btn-whatsapp:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px -5px rgba(37, 211, 102, .4);
}

/* ===== Navigation ===== */
.nav-link {
    position: relative;
    transition: color .3s;
}
.nav-link::after {
    content: '';
    position: absolute;
    bottom: -4px;
    left: 0;
    width: 0;
    height: 2px;
    background: linear-gradient(90deg, #8B1538, #D4A574);
    transition: width .3s;
}
.nav-link:hover::after,
.nav-link.active::after { width: 100%; }
.nav-link:hover,
.nav-link.active { color: #8B1538; }

/* ===== Hero Backgrounds ===== */
.hero-bg {
    background: linear-gradient(135deg, rgba(139, 21, 56, .88) 0%, rgba(107, 16, 41, .82) 40%, rgba(30, 41, 59, .85) 100%),
        url('images/hotel_entry_2.png') center/cover fixed;
    min-height: 92vh;
}
.hero-bg::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 120px;
    background: linear-gradient(to top, white, transparent);
}

.page-hero {
    background: linear-gradient(135deg, rgba(139, 21, 56, .88) 0%, rgba(107, 16, 41, .82) 40%, rgba(30, 41, 59, .85) 100%),
        url('images/deckel_mt_elgon.webp') center/cover fixed;
}
.page-hero::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 80px;
    background: linear-gradient(to top, white, transparent);
}

/* ===== Section Divider ===== */
.section-divider {
    height: 6px;
    background: repeating-linear-gradient(90deg, #8B1538 0, #8B1538 20px, #D4A574 20px, #D4A574 40px, #E8B923 40px, #E8B923 60px, #C75B39 60px, #C75B39 80px);
}

/* ===== Stat Card ===== */
.stat-card {
    background: rgba(255, 255, 255, .12);
    backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, .15);
    border-radius: 16px;
    transition: all .3s;
}
.stat-card:hover {
    background: rgba(255, 255, 255, .18);
    transform: translateY(-3px);
}

/* ===== Gradient Text ===== */
.gradient-text {
    background: linear-gradient(135deg, #D4A574, #E8B923, #D4A574);
    -webkit-background-clip: text;
    -webkit-text-fill-color: transparent;
    background-clip: text;
}

/* ===== WhatsApp Float ===== */
.whatsapp-float {
    background: linear-gradient(135deg, #25D366, #128C7E);
    box-shadow: 0 8px 25px -5px rgba(37, 211, 102, .5);
    transition: all .3s;
}
.whatsapp-float:hover {
    transform: scale(1.1) translateY(-3px);
}

/* ===== CTA Banner ===== */
.cta-banner {
    background: linear-gradient(135deg, #8B1538 0%, #6B1029 40%, #4A0D1F 100%);
    position: relative;
    overflow: hidden;
}
.cta-banner::before {
    content: '';
    position: absolute;
    inset: 0;
    background: radial-gradient(ellipse at 20% 50%, rgba(212, 165, 116, .15) 0%, transparent 60%),
        radial-gradient(ellipse at 80% 50%, rgba(232, 185, 35, .1) 0%, transparent 60%);
}

/* ===== Mobile Menu ===== */
.mobile-menu {
    transform: translateX(100%);
    transition: transform .3s cubic-bezier(.16, 1, .3, 1);
}
.mobile-menu.open {
    transform: translateX(0);
}

/* ===== Room Cards ===== */
.room-card {
    border-radius: 24px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, .06);
    background: #fff;
    transition: all .5s cubic-bezier(.16, 1, .3, 1);
    cursor: pointer;
}
.room-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 25px 60px rgba(139, 21, 56, .18);
}
.room-card .room-image {
    height: 200px;
    position: relative;
    overflow: hidden;
}
.room-card .room-image::after {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, .4), transparent);
}

/* ===== Menu Cards ===== */
.menu-card {
    cursor: pointer;
    position: relative;
    overflow: hidden;
}

/* ===== Menu Items ===== */
.menu-item-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 10px 0;
    border-bottom: 1px solid rgba(0, 0, 0, .05);
}
.menu-item-row:last-child { border-bottom: none; }
.menu-sub-item { padding-left: 16px; }
.menu-subcategory {
    font-weight: 700;
    color: #1E293B;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: .5px;
    margin-top: 16px;
    margin-bottom: 4px;
    padding-bottom: 4px;
    border-bottom: 2px solid #D4A574;
}

/* ===== Amenity Tags ===== */
.amenity-tag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    border-radius: 10px;
    background: #f8f4f0;
    font-size: 12px;
    font-weight: 500;
    color: #4A4A4A;
}

/* ===== Modal ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, .6);
    backdrop-filter: blur(8px);
    z-index: 200;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    visibility: hidden;
    transition: all .3s;
    padding: 20px;
}
.modal-overlay.active {
    opacity: 1;
    visibility: visible;
}
.modal-content {
    background: #fff;
    border-radius: 24px;
    max-width: 560px;
    width: 100%;
    max-height: 90vh;
    overflow-y: auto;
    transform: scale(.95) translateY(20px);
    transition: all .4s cubic-bezier(.16, 1, .3, 1);
}
.modal-overlay.active .modal-content {
    transform: scale(1) translateY(0);
}
.modal-content::-webkit-scrollbar { width: 6px; }
.modal-content::-webkit-scrollbar-track { background: transparent; }
.modal-content::-webkit-scrollbar-thumb { background: #D4A574; border-radius: 3px; }

/* ===== Review Cards ===== */
.review-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 20px;
    padding: 28px;
    transition: all .4s cubic-bezier(.16, 1, .3, 1);
}
.review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 48px -12px rgba(139, 21, 56, .12);
    border-color: rgba(139, 21, 56, .1);
}

/* ===== Stars ===== */
.star-filled { color: #E8B923; }
.star-empty { color: #E5E7EB; }

/* ===== Rating Bar ===== */
.rating-bar {
    height: 8px;
    border-radius: 4px;
    background: #f3f4f6;
    overflow: hidden;
}
.rating-bar-fill {
    height: 100%;
    border-radius: 4px;
    background: linear-gradient(90deg, #E8B923, #D4A574);
}

/* ===== Contact Cards ===== */
.contact-card {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 20px;
    padding: 32px;
    text-align: center;
    transition: all .4s cubic-bezier(.16, 1, .3, 1);
}
.contact-card:hover {
    transform: translateY(-6px);
    box-shadow: 0 20px 60px -15px rgba(139, 21, 56, .15);
    border-color: rgba(139, 21, 56, .12);
}

/* ===== FAQ ===== */
.faq-item {
    border: 1px solid rgba(0, 0, 0, .06);
    border-radius: 16px;
    overflow: hidden;
    transition: all .3s;
}
.faq-item:hover {
    border-color: rgba(139, 21, 56, .12);
}
.faq-header {
    padding: 20px 24px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 16px;
}
.faq-header:hover {
    background: #faf8f6;
}
.faq-body {
    max-height: 0;
    overflow: hidden;
    transition: max-height .3s ease-out;
}
.faq-item.open .faq-body {
    max-height: 300px;
}
.faq-item.open .faq-chevron {
    transform: rotate(180deg);
}
.faq-chevron {
    transition: transform .3s;
}

/* ===== Form Inputs ===== */
.form-input {
    width: 100%;
    padding: 14px 18px;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    font-size: 15px;
    transition: all .3s;
}
.form-input:focus {
    outline: none;
    border-color: #8B1538;
    box-shadow: 0 0 0 3px rgba(139, 21, 56, .08);
}

/* ===== Room Options (Booking) ===== */
.room-option {
    border: 2px solid #e5e7eb;
    border-radius: 16px;
    padding: 20px;
    cursor: pointer;
    transition: all .3s;
}
.room-option:hover {
    border-color: #D4A574;
    background: #faf8f6;
}
.room-option.selected {
    border-color: #8B1538;
    background: #fff5f7;
    box-shadow: 0 8px 20px -5px rgba(139, 21, 56, .15);
}

/* ===== Conference Section ===== */
.conference-bg {
    background: linear-gradient(135deg, rgba(139, 21, 56, .92) 0%, rgba(107, 16, 41, .88) 40%, rgba(30, 41, 59, .9) 100%),
        url('images/deckel_mt_elgon.webp') center/cover fixed;
    position: relative;
}
.conference-bg::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(circle, rgba(255, 255, 255, .04) 1.5px, transparent 1.5px);
    background-size: 25px 25px;
}

/* ===== Loading ===== */
.loading-progress {
    position: relative;
    display: block;
    width: 8rem;
    height: 8rem;
}
.loading-progress circle {
    fill: none;
    stroke: #8B1538;
    stroke-width: 0.18rem;
    transform-origin: 50% 50%;
    transform: rotate(-90deg);
}
.loading-progress circle:last-child {
    stroke: #D4A574;
    stroke-dasharray: calc(3.141 * var(--blazor-load-percentage, 0%) * 0.8), 500%;
    transition: stroke-dasharray 0.05s ease-in-out;
}

/* ===== Blazor Error UI ===== */
#blazor-error-ui {
    background: #8B1538;
    bottom: 0;
    box-shadow: 0 -1px 2px rgba(0, 0, 0, 0.2);
    display: none;
    left: 0;
    padding: 0.6rem 1.25rem 0.7rem 1.25rem;
    position: fixed;
    width: 100%;
    z-index: 1000;
    color: white;
}
#blazor-error-ui .dismiss {
    cursor: pointer;
    position: absolute;
    right: 0.75rem;
    top: 0.5rem;
}
