/*
Theme Name: Hotel Bahagia
Theme URI: 
Author: DeepMind
Author URI: 
Description: A custom theme for Hotel Bahagia with premium styling.
Version: 1.0.0
License: GNU General Public License v2 or later
Text Domain: hotel-bahagia
*/

:root {
  --primary: #4a1214; /* Dark red */
  --primary-light: #6a1a1d;
  --accent: #cda573; /* Gold */
  --text-dark: #333;
  --text-light: #fff;
  --bg-light: #f9f6f0;
  --bg-dark: #1a1a1a;
  --font-heading: 'Cinzel', serif;
  --font-body: 'Lato', sans-serif;
}

* { margin: 0; padding: 0; box-sizing: border-box; }
body { font-family: var(--font-body); color: var(--text-dark); background-color: var(--bg-light); line-height: 1.6; }
h1, h2, h3, h4, h5, h6 { font-family: var(--font-heading); font-weight: 700; margin-bottom: 1rem; color: var(--primary); }
a { text-decoration: none; color: inherit; transition: 0.3s; }
ul { list-style: none; }

.container { max-width: 1200px; margin: 0 auto; padding: 0 15px; }
.section-padding { padding: 80px 0; }
.text-center { text-align: center; }
.mt-3 { margin-top: 1rem; }
.mt-4 { margin-top: 1.5rem; }

/* Buttons */
.btn {
  display: inline-block; padding: 12px 24px; background: var(--primary); color: #fff;
  border: 1px solid var(--primary); border-radius: 4px; font-family: var(--font-body);
  font-weight: 700; font-size: 0.85rem; letter-spacing: 1px; cursor: pointer; text-transform: uppercase;
}
.btn:hover { background: #fff; color: var(--primary); }
.btn-outline { background: transparent; color: #fff; border-color: #fff; }
.btn-outline:hover { background: #fff; color: var(--primary); }
.btn-sm { padding: 8px 16px; font-size: 0.75rem; }
.btn-block { display: block; width: 100%; text-align: center; }

/* Header */
.site-header { background: #fff; padding: 10px 0; box-shadow: 0 2px 10px rgba(0,0,0,0.05); position: sticky; top: 0; z-index: 100; }
.header-container { display: flex; justify-content: space-between; align-items: center; min-height: 70px; }
.site-branding { display: flex; align-items: center; }

/* Constrain logo image size - force small logo in header */
.site-branding img,
.custom-logo,
.custom-logo-link img,
.site-branding .custom-logo-link img,
.site-header img,
header img {
    max-height: 80px !important;
    max-width: 220px !important;
    width: auto !important;
    height: auto !important;
    display: block;
}

.site-title { line-height: 1.1; margin: 0; text-align: center; }
.title-hotel { font-family: var(--font-body); font-size: 1rem; color: var(--text-dark); font-weight: 300; letter-spacing: 2px; }
.title-bahagia { font-family: var(--font-heading); font-size: 2rem; color: var(--primary); }

/* ── Main Navigation ── */
.main-navigation { position: relative; }
.main-navigation ul { display: flex; gap: 5px; list-style: none; margin: 0; padding: 0; }
.main-navigation li { position: relative; }
.main-navigation a {
    display: block;
    padding: 8px 14px;
    font-size: 0.82rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-dark);
    white-space: nowrap;
    border-radius: 4px;
    transition: color 0.2s, background 0.2s;
}
.main-navigation a:hover,
.main-navigation .current-menu-item > a,
.main-navigation .current-menu-ancestor > a { color: var(--primary); background: rgba(74,18,20,0.06); }

/* Arrow indicator for parent items */
.main-navigation li.menu-item-has-children > a::after {
    content: ' ▾';
    font-size: 0.7rem;
    opacity: 0.6;
}

/* ── Dropdown Submenu ── */
.main-navigation ul ul {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    min-width: 210px;
    background: #fff;
    border-radius: 6px;
    box-shadow: 0 8px 30px rgba(0,0,0,0.12);
    border-top: 3px solid var(--primary);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.22s ease, transform 0.22s ease, visibility 0.22s;
    z-index: 200;
    gap: 0;
}
.main-navigation li:hover > ul,
.main-navigation li:focus-within > ul {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}
.main-navigation ul ul a {
    padding: 10px 18px;
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-dark);
    border-radius: 0;
    border-bottom: 1px solid #f5f5f5;
}
.main-navigation ul ul li:last-child a { border-bottom: none; }
.main-navigation ul ul a:hover { background: var(--bg-light); color: var(--primary); }

/* ── Second level (nested) dropdown ── */
.main-navigation ul ul ul {
    top: 0;
    left: 100%;
    margin-top: -3px;
}

/* ── Mobile Hamburger ── */
.menu-toggle {
    display: none;
    background: none;
    border: 2px solid var(--primary);
    border-radius: 4px;
    padding: 6px 10px;
    cursor: pointer;
    color: var(--primary);
    font-size: 1.2rem;
}
@media (max-width: 900px) {
    .menu-toggle { display: block; }
    .main-navigation ul {
        display: none;
        flex-direction: column;
        position: absolute;
        top: 100%;
        right: 0;
        background: #fff;
        box-shadow: 0 8px 30px rgba(0,0,0,0.12);
        border-radius: 6px;
        min-width: 220px;
        padding: 10px 0;
        z-index: 300;
    }
    .main-navigation ul.toggled { display: flex; }
    .main-navigation ul ul {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        box-shadow: none;
        border-top: none;
        border-left: 3px solid var(--primary);
        margin-left: 15px;
        border-radius: 0;
    }
}

/* WordPress admin bar offset */
.admin-bar .site-header { top: 32px; }
@media screen and (max-width: 782px) { .admin-bar .site-header { top: 46px; } }

/* Hero */
.hero-section { position: relative; height: 65vh; min-height: 550px; display: flex; align-items: center; background: #333; color: #fff; text-align: left; overflow: hidden; }
.hero-small { height: 40vh; min-height: 350px; }
.hero-section > .container { width: 100%; position: relative; z-index: 3; }
.hero-carousel { position: absolute; top:0; left:0; width:100%; height:100%; z-index: 1; }
.hero-slide { position: absolute; top:0; left:0; width:100%; height:100%; opacity: 0; transition: opacity 1s ease-in-out; background-size: cover; background-position: center; }
.hero-slide.active { opacity: 1; }
.hero-overlay { position: absolute; top:0; left:0; width:100%; height:100%; background: linear-gradient(to right, rgba(0,0,0,0.8), rgba(0,0,0,0.2)); z-index: 2; }
.hero-content { max-width: 600px; }
.hero-subtitle { font-size: 1rem; letter-spacing: 3px; margin-bottom: 10px; }
.hero-title { font-size: 4rem; line-height: 1.1; color: #fff; margin-bottom: 5px; }
.hero-location { font-family: var(--font-heading); font-size: 1.2rem; margin-bottom: 20px; color: var(--accent); }
.hero-tagline { font-size: 1.1rem; font-weight: 700; margin-bottom: 15px; color: var(--accent); }
.hero-desc { font-size: 0.95rem; margin-bottom: 30px; opacity: 0.9; }
.hero-actions { display: flex; gap: 15px; }

/* Booking Widget */
.booking-section { position: relative; z-index: 10; margin-top: -40px; }
.booking-form-card { background: #fff; padding: 0; box-shadow: 0 10px 30px rgba(0,0,0,0.08); border-radius: 12px; }
.booking-form { display: flex; flex-wrap: nowrap; align-items: stretch; }
.form-group { flex: 1; min-width: 150px; padding: 15px 25px; position: relative; display: flex; flex-direction: column; justify-content: center; border-right: 1px solid #eaeaea; }
.form-group:nth-child(3) { border-right: none; }
.form-group label { display: block; font-size: 0.7rem; font-weight: 700; margin-bottom: 2px; color: #a17b5f; text-transform: uppercase; letter-spacing: 1px; }
.form-group input, .form-group select { width: 100%; border: none; padding: 0; border-radius: 0; font-family: var(--font-body); font-size: 1.1rem; font-weight: 600; outline: none; background: transparent; }
.form-group input[type="date"] { padding-right: 25px; }
.form-submit { flex: 0 0 220px; padding: 0; border: none; }
.form-submit .btn { height: 100%; width: 100%; border-radius: 0 12px 12px 0; display: flex; align-items: center; justify-content: center; padding: 0; font-size: 0.95rem; }

/* Section Title */
.section-title { margin-bottom: 40px; }
.section-title h2 { font-size: 2.5rem; margin-bottom: 5px; }
.section-title .subtitle { font-size: 0.85rem; letter-spacing: 2px; color: var(--text-dark); text-transform: uppercase; }
.title-separator { width: 60px; height: 2px; background: var(--accent); margin: 15px auto; }

/* Rooms Grid — 3 columns, one row, equal height cards */
.rooms-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 25px;
}
.room-card {
    background: #fff;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05);
    border-radius: 8px;
    overflow: hidden;
    transition: 0.3s;
    text-align: center;
    display: flex;
    flex-direction: column;
}
.room-card:hover { transform: translateY(-5px); box-shadow: 0 10px 25px rgba(0,0,0,0.1); }
.room-image { height: 200px; overflow: hidden; flex-shrink: 0; }
.room-image img { width: 100%; height: 100%; object-fit: cover; transition: 0.5s; }
.room-card:hover .room-image img { transform: scale(1.05); }
.room-info { padding: 20px; display: flex; flex-direction: column; flex: 1; justify-content: space-between; }
.room-info h3 { font-size: 1.2rem; margin-bottom: 15px; }

/* Promo Section */
.promo-section { background: var(--bg-dark); color: #fff; padding: 60px 0; position: relative; overflow: hidden; min-height: 450px; }
.promo-carousel { position: absolute; top:0; left:0; width:100%; height:100%; z-index: 1; }
.cafe-slide { position: absolute; top:0; left:0; width:100%; height:100%; opacity: 0; transition: opacity 1s ease-in-out; background-size: cover; background-position: center; }
.cafe-slide.active { opacity: 1; }
.promo-overlay { position: absolute; top:0; left:0; width:100%; height:100%; background: linear-gradient(to right, rgba(0, 0, 0, 0.8) 0%, rgba(0, 0, 0, 0.2) 100%); z-index: 2; }
.promo-container { display: flex; justify-content: space-between; align-items: center; position: relative; z-index: 3; }
.promo-content { max-width: 500px; z-index: 2; }
.badge { background: var(--accent); color: var(--primary); padding: 5px 15px; font-weight: 700; font-size: 0.75rem; text-transform: uppercase; letter-spacing: 1px; border-radius: 20px; display: inline-block; margin-bottom: 20px; }
.promo-brand h2 { font-family: var(--font-heading); font-size: 2.5rem; color: var(--accent); margin-bottom: 0; }
.promo-brand p { font-size: 0.85rem; letter-spacing: 2px; margin-bottom: 20px; color: #ccc; }
.promo-title { font-size: 3rem; line-height: 1.1; color: #fff; margin-bottom: 20px; }
.promo-price-tag { display: inline-block; background: var(--primary); padding: 5px 15px; font-size: 1.2rem; font-weight: 700; margin-bottom: 30px; border-radius: 4px; }
.promo-features { display: flex; gap: 20px; }
.feature-item { display: flex; align-items: center; gap: 10px; font-size: 0.75rem; font-weight: 700; letter-spacing: 1px; }
.feature-item i { color: var(--accent); font-size: 1.5rem; }

/* Amenities */
.amenities-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 30px; text-align: center; }
.amenity-item { padding: 20px; }
.amenity-item .icon-wrap { width: 60px; height: 60px; margin: 0 auto 15px; border: 1px solid var(--accent); border-radius: 50%; display: flex; align-items: center; justify-content: center; font-size: 1.5rem; color: var(--primary); }
.amenity-text h4 { font-size: 1rem; margin-bottom: 10px; font-family: var(--font-body); }
.amenity-text p { font-size: 0.85rem; color: #666; }

/* Bottom Section */
.bottom-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 50px; align-items: start; }
.testimonials-area { width: 100%; min-width: 0; }
.location-area { width: 100%; min-width: 0; }
.testimonials-slider { display: flex; overflow-x: auto; scroll-snap-type: x mandatory; gap: 15px; padding-bottom: 10px; scrollbar-width: none; -ms-overflow-style: none; }
.testimonials-slider::-webkit-scrollbar { display: none; }
.testimonial-card { min-width: calc(50% - 7.5px); scroll-snap-align: start; background: #fff; padding: 15px; border-radius: 8px; box-shadow: 0 2px 10px rgba(0,0,0,0.05); display: flex; flex-direction: column; justify-content: space-between; min-height: 160px; text-align: center; }
.stars { color: var(--accent); margin-bottom: 10px; font-size: 0.8rem; }
.testi-content { font-style: italic; font-size: 0.8rem; margin-bottom: 15px; color: #555; line-height: 1.4; flex-grow: 1; word-wrap: break-word; overflow-wrap: break-word; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.testi-author { font-weight: 700; font-size: 0.75rem; color: var(--primary); }

/* Footer */
.site-footer { background: var(--primary); color: #fff; padding: 60px 0 0; font-size: 0.85rem; }
.footer-container { display: grid; grid-template-columns: 1.5fr 1fr 1fr 1.5fr 1.5fr; gap: 30px; margin-bottom: 40px; }
.footer-logo img { max-height: 150px !important; max-width: 200px !important; margin-bottom: 0; }
.footer-logo .title-hotel { color: #fff; font-size: 0.9rem; letter-spacing: 2px; }
.footer-logo .title-bahagia { font-size: 1.8rem; color: var(--accent); }
.footer-desc { margin-top: 15px; opacity: 0.8; }
.footer-heading { color: var(--accent); font-family: var(--font-body); font-size: 1rem; margin-bottom: 20px; }
.footer-col ul li { margin-bottom: 10px; color: rgba(255,255,255,0.8); }
.footer-col ul li a { color: inherit; transition: color 0.3s; }
.footer-col ul li a:hover { color: var(--accent); }
.footer-col ul li i { margin-right: 10px; color: var(--accent); }
.footer-col ul.sub-menu { 
    display: none;
}
.social-icons { display: flex; gap: 10px; margin-bottom: 20px; }
.social-icons a { display: flex; align-items: center; justify-content: center; width: 35px; height: 35px; background: rgba(255,255,255,0.1); border-radius: 50%; color: #fff; transition: 0.3s; }
.social-icons a:hover { background: var(--accent); }
.btn-whatsapp-outline { border-color: rgba(255,255,255,0.3); }
.site-info { background: var(--primary-light); padding: 15px 0; text-align: center; font-size: 0.75rem; opacity: 0.8; }

/* Responsive */
@media (max-width: 992px) {
  .footer-container { grid-template-columns: 1fr 1fr; }
  .bottom-grid { flex-direction: column; }
  .testimonials-area, .location-area { flex: 0 0 100%; width: 100%; }
}
@media (max-width: 768px) {
  .hero-title { font-size: 3rem; }
  .booking-form { flex-direction: column; }
  .form-group { width: 100%; }
  .promo-container { flex-direction: column; text-align: center; }
  .promo-features { justify-content: center; flex-wrap: wrap; }
  .main-navigation ul { display: none; /* Mobile menu needed */ }
  .footer-container { grid-template-columns: 1fr; }
  .testimonials-slider { grid-template-columns: 1fr; }
}

/* Single Room Redesign */
.room-breadcrumbs { font-size: 0.85rem; color: #a17b5f; margin-bottom: 15px; font-weight: 700; }
.room-page-title { font-size: 3.5rem; margin-bottom: 15px; color: var(--primary); }
.room-excerpt { font-size: 1.1rem; color: #555; max-width: 600px; margin-bottom: 30px; line-height: 1.6; }

/* Room Gallery */
.room-gallery-grid { display: grid; grid-template-columns: 2fr 1fr; gap: 15px; margin-bottom: 40px; height: 500px; }
.gallery-main { border-radius: 12px; overflow: hidden; background: #e3dec9; position: relative; min-height: 0; }
.gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.gallery-secondary { display: grid; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 15px; min-height: 0; }
.gallery-item { border-radius: 12px; overflow: hidden; background: #e3dec9; position: relative; min-height: 0; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.gallery-placeholder { width: 100%; height: 100%; display: flex; align-items: center; justify-content: center; color: rgba(74, 18, 20, 0.3); font-weight: 700; font-size: 1.2rem; }
.gallery-label { position: absolute; bottom: 15px; left: 15px; font-size: 0.75rem; color: #fff; font-weight: 700; letter-spacing: 1px; z-index: 2; text-shadow: 0 1px 3px rgba(0,0,0,0.8); background: rgba(0,0,0,0.3); padding: 4px 8px; border-radius: 4px; }
.view-photos-btn { position: absolute; bottom: 15px; right: 15px; background: #fff; color: #333; border: 1px solid #ddd; padding: 8px 16px; border-radius: 6px; font-size: 0.85rem; font-weight: 700; cursor: pointer; z-index: 2; box-shadow: 0 2px 5px rgba(0,0,0,0.1); }
.relative { position: relative; }

/* Key Features Bar */
.room-features-bar { display: flex; align-items: center; border-top: 1px solid #e5e0d0; border-bottom: 1px solid #e5e0d0; padding: 20px 0; margin-bottom: 50px; }
.feature-box { flex: 1; display: flex; flex-direction: column; padding: 0 20px; border-right: 1px solid #e5e0d0; }
.feature-box:last-child { border-right: none; }
.feature-val { font-family: var(--font-heading); font-size: 1.8rem; color: var(--primary); line-height: 1; margin-bottom: 5px; }
.feature-lbl { font-size: 0.75rem; font-weight: 700; color: #888; text-transform: uppercase; letter-spacing: 1px; }

/* Two Column Layout */
.room-content-wrapper { display: flex; gap: 60px; align-items: flex-start; }
.room-left-col { flex: 1; }
.room-right-col { flex: 0 0 350px; }

/* Overview & Typography */
.section-heading-small { font-size: 0.85rem; font-weight: 700; color: #a17b5f; letter-spacing: 1px; text-transform: uppercase; margin-bottom: 15px; }
.section-heading-italic { font-family: var(--font-heading); font-style: italic; font-size: 1.5rem; color: var(--primary); margin-bottom: 20px; font-weight: 400; }
.room-overview-text { font-size: 1rem; color: #333; line-height: 1.8; margin-bottom: 40px; }
.mt-5 { margin-top: 3rem; }

/* Amenities Tags */
.amenities-tag-grid { display: flex; flex-wrap: wrap; gap: 15px; margin-bottom: 20px; }
.amenity-tag { background: #fff; border: 1px solid #e5e0d0; border-radius: 8px; padding: 12px 20px; font-size: 0.9rem; color: #333; flex: 1 1 calc(33.333% - 15px); font-weight: 500; }

/* Booking Widget */
.sticky-widget { background: #fff; padding: 30px; border-radius: 12px; box-shadow: 0 5px 20px rgba(0,0,0,0.05); position: sticky; top: 100px; }
.widget-title { font-family: var(--font-heading); font-size: 1.8rem; color: var(--primary); margin-bottom: 15px; }
.widget-desc { font-size: 0.9rem; color: #666; margin-bottom: 20px; line-height: 1.5; }
.btn-reserve { background: var(--primary); color: #fff; padding: 15px; border-radius: 8px; font-size: 1rem; text-transform: none; letter-spacing: normal; }
.reply-text { font-size: 0.8rem; color: #888; text-align: center; margin-top: 15px; }
.widget-divider { border: 0; border-top: 1px solid #eee; margin: 25px 0; }
.booking-perks { list-style: none; padding: 0; margin: 0; }
.booking-perks li { position: relative; padding-left: 0; margin-bottom: 12px; font-size: 0.9rem; color: #555; }

/* Responsive adjustments */
@media (max-width: 992px) {
    .room-gallery-grid { grid-template-columns: 1fr; height: auto; }
    .gallery-main { height: 300px; }
    .gallery-secondary { height: 300px; }
    .room-features-bar { flex-wrap: wrap; }
    .feature-box { flex: 0 0 50%; border-right: none; border-bottom: 1px solid #e5e0d0; padding: 20px; }
    .feature-box:nth-child(even) { border-left: 1px solid #e5e0d0; }
    .feature-box:nth-child(3), .feature-box:nth-child(4) { border-bottom: none; }
    .room-content-wrapper { flex-direction: column; }
    .room-right-col { width: 100%; flex: auto; }
    .amenity-tag { flex: 1 1 calc(50% - 15px); }
}
@media (max-width: 576px) {
    .amenity-tag { flex: 1 1 100%; }
}


/* Modal Styles */
.photos-modal { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: #221f1c; z-index: 9999; overflow-y: auto; padding-bottom: 50px; }
.modal-header { display: flex; justify-content: space-between; align-items: center; padding: 20px 40px; background: #1a1715; color: #fff; position: sticky; top: 0; z-index: 10; }
.modal-title { font-size: 1.2rem; font-weight: 700; color: #e3dec9; }
.close-modal-btn { background: none; border: 1px solid #444; color: #fff; padding: 8px 16px; border-radius: 6px; font-size: 1rem; cursor: pointer; transition: 0.3s; }
.close-modal-btn:hover { background: #333; }
.modal-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 20px; padding-top: 40px; max-width: 1200px; margin: 0 auto; }
.modal-gallery-item { border-radius: 12px; overflow: hidden; background: #e3dec9; position: relative; aspect-ratio: 4/3; }
.modal-gallery-item img { width: 100%; height: 100%; object-fit: cover; }
.modal-label { position: absolute; bottom: 15px; left: 15px; font-size: 0.75rem; color: #fff; font-weight: 700; letter-spacing: 1px; text-shadow: 0 1px 3px rgba(0,0,0,0.8); background: rgba(0,0,0,0.3); padding: 4px 8px; border-radius: 4px; }


/* Duration Display */
.duration-display {
    display: none;
    position: absolute;
    right: 0;
    top: 50%;
    transform: translate(50%, -50%);
    z-index: 10;
    font-size: 0.7rem;
    font-weight: 700;
    color: #fff;
    background: var(--primary);
    padding: 3px 10px;
    border-radius: 20px;
    border: 2px solid #fff;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
    white-space: nowrap;
}

/* Guest Picker Dropdown */
.guest-picker-container { position: relative; height: 100%; display: flex; align-items: center; }
.guest-picker-trigger {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    font-size: 1.1rem;
    font-weight: 600;
    color: #333;
    display: flex;
    justify-content: space-between;
    align-items: center;
    cursor: pointer;
    width: 100%;
}
.guest-picker-trigger i { color: #888; font-size: 0.8rem; }
.guest-picker-dropdown {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    width: 250px;
    background: #fff;
    border: 1px solid #eee;
    border-radius: 8px;
    box-shadow: 0 5px 25px rgba(0,0,0,0.1);
    z-index: 100;
    padding: 20px;
    margin-top: 5px;
}
.picker-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}
.picker-row:last-child { margin-bottom: 0; }
.picker-row > span { font-weight: 500; font-size: 0.95rem; color: #333; }
.picker-controls {
    display: flex;
    align-items: center;
    gap: 15px;
}
.picker-controls button {
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: 1px solid #ddd;
    background: #fff;
    color: var(--primary);
    font-size: 1.2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: 0.2s;
    line-height: 0;
    padding: 0;
}
.picker-controls button:hover { background: #f9f9f9; border-color: var(--primary); }

/* ==========================================================================
   CAFE TEMPLATE STYLES
   ========================================================================== */
:root {
    --cafe-bg: #f5f1e8; /* Light warm beige */
    --cafe-dark: #2a100d; /* Very dark red/brown */
    --cafe-accent: #b8860b; /* Goldenrod/dark gold */
    --cafe-text: #4a4a4a;
}

/* Promo Slider (Smaller) */
.cafe-promo-container {
    max-width: 1000px;
    margin: 40px auto 0;
    padding: 0 20px;
}
.cafe-promo {
    position: relative;
    height: 350px;
    border-radius: 12px;
    background-color: var(--cafe-dark);
    color: #fff;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}
.cafe-slider-bg {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    z-index: 1;
}
.cafe-slide {
    position: absolute;
    top: 0; left: 0; width: 100%; height: 100%;
    background-size: cover;
    background-position: center;
    opacity: 0;
    transition: opacity 1s ease-in-out;
}
.cafe-slide.active {
    opacity: 1; /* Full brightness */
}
.cafe-promo-content {
    position: relative;
    z-index: 2;
    max-width: 800px;
    padding: 0 20px;
}
.cafe-open-badge {
    display: inline-block;
    border: 1px solid rgba(255,255,255,0.3);
    border-radius: 20px;
    padding: 4px 12px;
    font-size: 0.8rem;
    margin-bottom: 20px;
}
.cafe-open-badge::before {
    content: '';
    display: inline-block;
    width: 8px;
    height: 8px;
    background-color: #4CAF50;
    border-radius: 50%;
    margin-right: 8px;
}
.cafe-promo-category {
    color: var(--cafe-accent);
    letter-spacing: 3px;
    font-size: 0.8rem;
    margin-bottom: 5px;
    text-transform: uppercase;
}
.cafe-promo-title {
    font-size: 3rem;
    font-weight: 700;
    letter-spacing: 2px;
    margin: 0 0 5px;
    font-family: var(--font-heading);
}
.cafe-promo-tagline {
    font-style: italic;
    color: var(--cafe-accent);
    font-size: 1.1rem;
    margin-bottom: 25px;
}
.cafe-promo-features {
    display: flex;
    justify-content: center;
    gap: 20px;
    flex-wrap: wrap;
}
.cafe-promo-features span {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #fff;
    font-size: 0.8rem;
}
.cafe-promo-features span i {
    color: var(--cafe-accent);
}

/* Operating Hours */
.cafe-hours-bar {
    background: #fff;
    display: flex;
    justify-content: center;
    gap: 60px;
    padding: 30px 20px;
    flex-wrap: wrap;
    box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}
.cafe-hour-block {
    text-align: center;
}
.cafe-hour-title {
    color: #a09581;
    font-size: 0.8rem;
    letter-spacing: 1px;
    margin-bottom: 5px;
    text-transform: uppercase;
}
.cafe-hour-time {
    color: var(--cafe-dark);
    font-weight: bold;
    font-size: 1.1rem;
}

/* Featured Section */
.cafe-featured-section {
    background-color: var(--cafe-dark);
    padding: 50px 0;
    color: #fff;
}
.cafe-featured-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
    display: flex;
    align-items: center;
    gap: 40px;
}
.cafe-featured-title {
    color: var(--cafe-accent);
    letter-spacing: 3px;
    font-size: 0.9rem;
    text-transform: uppercase;
    border-right: 1px solid rgba(255,255,255,0.1);
    padding-right: 40px;
    flex-shrink: 0;
}
.cafe-featured-items {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 10px;
}
.cafe-featured-items::-webkit-scrollbar {
    height: 6px;
}
.cafe-featured-items::-webkit-scrollbar-track {
    background: rgba(255,255,255,0.05);
}
.cafe-featured-items::-webkit-scrollbar-thumb {
    background: rgba(255,255,255,0.2);
    border-radius: 3px;
}
.cafe-featured-card {
    background: rgba(255,255,255,0.05);
    border: 1px solid rgba(255,255,255,0.1);
    border-radius: 8px;
    padding: 15px 25px;
    display: flex;
    align-items: center;
    gap: 15px;
    min-width: 250px;
    transition: background 0.3s;
}
.cafe-featured-card:hover {
    background: rgba(255,255,255,0.1);
}
.cafe-featured-card i {
    color: var(--cafe-accent);
    font-size: 1.2rem;
}
.cafe-fc-info h4 {
    margin: 0 0 5px;
    font-size: 1rem;
    color: #fff;
    display: flex;
    align-items: center;
    gap: 8px;
}
.cafe-fc-info .price {
    color: var(--cafe-accent);
    font-size: 0.9rem;
}
.badge-new {
    background: #f0e6d2;
    color: var(--cafe-dark);
    font-size: 0.7rem;
    padding: 2px 8px;
    border-radius: 4px;
    font-weight: bold;
}

/* Our Menu Section */
.cafe-menu-section {
    max-width: 1000px;
    margin: 60px auto;
    padding: 0 20px;
}
.cafe-menu-header {
    text-align: center;
    margin-bottom: 40px;
}
.cafe-menu-header h2 {
    font-family: var(--font-heading);
    color: var(--cafe-dark);
    font-size: 2.5rem;
    margin-bottom: 20px;
}
.cafe-menu-header h2::after {
    content: '';
    display: block;
    width: 60px;
    height: 2px;
    background: var(--cafe-accent);
    margin: 15px auto 0;
}

.cafe-filters {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}
.cafe-filter-btn {
    background: transparent;
    border: 1px solid #ccc;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 0.95rem;
    color: var(--cafe-dark);
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: all 0.3s;
}
.cafe-filter-btn i {
    color: #888;
}
.cafe-filter-btn.active, .cafe-filter-btn:hover {
    background: #fff;
    border-color: var(--cafe-dark);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
}
.cafe-filter-btn.active i, .cafe-filter-btn:hover i {
    color: var(--cafe-dark);
}

/* Menu Categories */
.cafe-category-block {
    margin-bottom: 60px;
}
.cafe-category-header {
    display: flex;
    align-items: center;
    gap: 15px;
    border-bottom: 1px solid #e0d8c3;
    padding-bottom: 15px;
    margin-bottom: 30px;
}
.cafe-cat-icon {
    background: var(--cafe-dark);
    color: #fff;
    width: 45px;
    height: 45px;
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
}
.cafe-cat-title h3 {
    margin: 0 0 5px;
    color: var(--cafe-dark);
    font-size: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}
.cafe-cat-title p {
    margin: 0;
    color: #888;
    font-size: 0.9rem;
}

.cafe-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 20px;
}

/* Menu Card */
.cafe-card {
    background: #fff; /* White background */
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 4px 15px rgba(0,0,0,0.1);
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    overflow: hidden;
    height: 350px;
}
.cafe-card-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.cafe-card-price-pill {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #e2b96f;
    color: #1a1a2e;
    font-size: 0.85rem;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 20px;
}
.cafe-badge {
    font-size: 0.75rem;
    padding: 4px 10px;
    border-radius: 12px;
    font-weight: bold;
}
.badge-bestseller { background: #fdf5e6; color: #b8860b; }
.badge-veg { background: #e8f5e9; color: #2e7d32; }
.badge-spicy { background: #ffebee; color: #c62828; }
.badge-popular { background: #fff8e1; color: #f57f17; }
.badge-chef { background: #f3e5f5; color: #6a1b9a; }
.badge-new-item { background: #ffebee; color: #c62828; }

.cafe-down-arrow {
    display: flex;
    justify-content: center;
    margin-top: 30px;
}
.cafe-down-arrow span {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 40px; height: 40px;
    background: #fff;
    border-radius: 50%;
    color: var(--cafe-dark);
    box-shadow: 0 4px 10px rgba(0,0,0,0.05);
    cursor: pointer;
}

@media(max-width: 768px) {
    .cafe-featured-container {
        flex-direction: column;
        align-items: flex-start;
        gap: 20px;
    }
    .cafe-featured-title {
        border-right: none;
        border-bottom: 1px solid rgba(255,255,255,0.1);
        padding-right: 0;
        padding-bottom: 15px;
        width: 100%;
    }
    .cafe-hero-title {
        font-size: 3rem;
    }
}
