/* 
   ========================================================================
   STYLE SHEET: Emarat Nakhlestan Traditional Mansion Menu
   Theme: Royal Persian Mansion (Deep Charcoal, Saffron Gold, Terracotta Accent, Premium Cream Canvas)
   ========================================================================
*/

/* 1. Base Reset & Font declarations */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    -webkit-tap-highlight-color: transparent;
}

@font-face {
    font-family: 'MyFont';
    src: url('MyFont.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'BTitr';
    src: url('BTitr.ttf') format('truetype');
    font-weight: bold;
    font-style: normal;
}
@font-face {
    font-family: 'MyFont1';
    src: url('MyFont1.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Yekan';
    src: url('Yekan.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}
@font-face {
    font-family: 'Dasteha';
    src: url('Dasteha.ttf') format('truetype');
    font-weight: normal;
    font-style: normal;
}

:root {
    --color-bg-light: #FBF9F6;
    --color-bg-card: rgba(255, 255, 255, 0.95);
    --color-text-primary: #2C2623;
    --color-text-secondary: #5C524E;
    --color-gold: #C5A059;
    --color-gold-hover: #E3C187;
    --color-terracotta: #B94A38;
    --color-terracotta-light: rgba(185, 74, 56, 0.08);
    --color-shadow: rgba(44, 38, 35, 0.08);
    --font-heading: 'BTitr', 'MyFont', 'Tahoma', sans-serif;
    --font-body: 'Yekan', 'MyFont1', 'Tahoma', sans-serif;
    --font-title: 'MyFont', 'Tahoma', sans-serif;
}

/* Base Body Styles with Elegant Textured Persian Theme */
body {
    font-family: var(--font-body);
    background-color: var(--color-bg-light);
    color: var(--color-text-primary);
    min-height: 100vh;
    overflow-x: hidden;
    line-height: 1.6;
    background-image: radial-gradient(var(--color-shadow) 0.5px, transparent 0.5px), radial-gradient(var(--color-shadow) 0.5px, var(--color-bg-light) 0.5px);
    background-size: 20px 20px;
    background-position: 0 0, 10px 10px;
    display: flex;
    flex-direction: column;
}

/* Global RTL defaults (Farsi / Arabic) */
html[lang="fa"] body,
html[lang="ar"] body {
    direction: rtl;
}

html[lang="en"] body {
    direction: ltr;
}

/* Container limits to keep it beautiful on ultra-wide screens */
.app-container {
    width: 100%;
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px;
}

/* Header Container & Glassmorphism design */
.header {
    position: relative;
    padding: 24px 0 32px 0;
    text-align: center;
    border-bottom: 1px solid rgba(197, 160, 89, 0.2);
    background-color: rgba(44, 38, 35, 0.03);
    margin-bottom: 24px;
}

.header-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: linear-gradient(rgba(44, 38, 35, 0.85), rgba(44, 38, 35, 0.95)), url('header-image.jpg');
    background-position: center;
    background-size: cover;
    z-index: -1;
    border-bottom-left-radius: 20px;
    border-bottom-right-radius: 20px;
    box-shadow: 0 8px 24px rgba(44, 38, 35, 0.15);
}

.header-content {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    color: white;
    padding: 20px 16px;
    position: relative;
}

.restaurant-logo {
    width: 76px;
    height: 76px;
    object-fit: contain;
    border-radius: 50%;
    padding: 4px;
    background: linear-gradient(135deg, var(--color-gold), #F1E5C9);
    border: 2px solid var(--color-gold);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    margin-bottom: 12px;
    transition: transform 0.5s ease;
}

.restaurant-logo:hover {
    transform: rotate(360deg);
}

.header-content h1 {
    font-size: 26px;
    font-family: var(--font-heading);
    color: #FFF;
    letter-spacing: 0.5px;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
    margin-bottom: 4px;
}

.header-subtitle {
    font-size: 14px;
    font-family: var(--font-body);
    font-weight: 300;
    color: #F1E5C9;
    letter-spacing: 1px;
    opacity: 0.9;
    text-shadow: 0 1px 4px rgba(0, 0, 0, 0.5);
    margin-bottom: 16px;
}

/* Beautiful custom Pill Language Switcher in Header */
.language-buttons {
    display: inline-flex;
    background-color: rgba(255, 255, 255, 0.12);
    border-radius: 30px;
    padding: 4px;
    gap: 2px;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.2);
    backdrop-filter: blur(8px);
}

.lang-btn {
    border: none;
    background: transparent;
    color: rgba(255, 255, 255, 0.85);
    padding: 6px 14px;
    font-size: 13px;
    font-family: var(--font-body);
    font-weight: 500;
    border-radius: 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.25s cubic-bezier(0.4, 0, 0.2, 1);
}

.lang-btn .flag {
    font-size: 14px;
}

.lang-btn:hover {
    color: white;
    background-color: rgba(255, 255, 255, 0.08);
}

.lang-btn.active {
    color: var(--color-text-primary);
    background-color: white;
    box-shadow: 0 2px 6px rgba(0, 0, 0, 0.15);
    font-weight: bold;
}

/* Sticky Sliding Category Navigation Bar */
.category-wrapper {
    position: sticky;
    top: 0;
    z-index: 100;
    background-color: rgba(251, 249, 246, 0.95);
    backdrop-filter: blur(10px);
    border-bottom: 1px solid rgba(197, 160, 89, 0.15);
    box-shadow: 0 4px 12px rgba(44, 38, 35, 0.03);
    margin-bottom: 24px;
    width: 100%;
}

.category-list {
    display: flex;
    align-items: center;
    overflow-x: auto;
    scroll-behavior: smooth;
    white-space: nowrap;
    padding: 12px 16px;
    gap: 8px;
    width: 100%;
    scrollbar-width: none; /* Hide standard Firefox scrollbar */
}

.category-list::-webkit-scrollbar {
    display: none; /* Hide Chrome/Safari scrollbar */
}

.category-list li {
    list-style: none;
    display: inline-block;
}

.category-list a {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    text-decoration: none;
    font-family: var(--font-heading);
    font-size: 13px;
    color: var(--color-text-secondary);
    background-color: rgba(44, 38, 35, 0.04);
    border: 1px solid transparent;
    border-radius: 50px;
    transition: all 0.3s ease;
}

.category-list a:hover {
    color: var(--color-terracotta);
    border-color: rgba(185, 74, 56, 0.2);
    background-color: var(--color-terracotta-light);
}

.category-list a.active {
    color: white;
    background-color: var(--color-terracotta);
    border-color: var(--color-terracotta);
    box-shadow: 0 4px 8px rgba(185, 74, 56, 0.25);
}

.category-icon {
    width: 18px;
    height: 18px;
    object-fit: contain;
    filter: drop-shadow(0 1px 1px rgba(0,0,0,0.15));
}

.category-list a.active .category-icon {
    filter: brightness(0) invert(1);
}

/* Beautiful Instagram and Announcement banner */
.instagram-link {
    background: linear-gradient(135deg, rgba(235, 87, 87, 0.05), rgba(185, 74, 56, 0.07));
    border: 1px solid rgba(185, 74, 56, 0.15);
    border-radius: 12px;
    margin-bottom: 24px;
    padding: 12px 16px;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px var(--color-shadow);
}

.instagram-link:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(185, 74, 56, 0.12);
}

.social-banner-text {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--color-text-primary);
    font-size: 13.5px;
    font-weight: 500;
}

.social-banner-buttons {
    display: flex;
    align-items: center;
    gap: 10px;
}

.social-pill {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-decoration: none;
    color: #ffffff !important;
    transition: all 0.2s ease;
}

.instagram-pill {
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    box-shadow: 0 3px 6px rgba(220, 39, 67, 0.2);
}

.rubika-pill {
    background: linear-gradient(135deg, #7433f0 0%, #3ca0e6 50%, #3cdc9a 100%);
    box-shadow: 0 3px 6px rgba(116, 51, 240, 0.2);
}

.social-pill:hover {
    transform: translateY(-1px);
    box-shadow: 0 5px 10px rgba(0, 0, 0, 0.15);
    filter: brightness(1.1);
}

.social-pill svg {
    width: 16px;
    height: 16px;
}

@media (max-width: 600px) {
    .instagram-link {
        flex-direction: column;
        align-items: center;
        text-align: center;
        gap: 12px;
    }
    .social-banner-buttons {
        width: 100%;
        justify-content: center;
    }
    .social-pill {
        flex: 1;
        justify-content: center;
    }
}

/* Main Menu Body & Grid Layouts */
.menu {
    width: 100%;
}

.menu-section {
    padding-top: 20px;
    margin-bottom: 32px;
    scroll-margin-top: 70px; /* Offset for sticky header */
}

/* Custom Persian Section Divider Heading Styling */
.menu-section-header {
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 18px;
    gap: 12px;
    position: relative;
}

.menu-section-header::before,
.menu-section-header::after {
    content: '';
    flex: 1;
    height: 1px;
    background: linear-gradient(to var(--direction, left), var(--color-gold), transparent);
}

html[lang="fa"] .menu-section-header::before,
html[lang="ar"] .menu-section-header::before {
    --direction: left;
}
html[lang="fa"] .menu-section-header::after,
html[lang="ar"] .menu-section-header::after {
    --direction: right;
}

html[lang="en"] .menu-section-header::before {
    --direction: right;
}
html[lang="en"] .menu-section-header::after {
    --direction: left;
}

.menu-section h2 {
    font-family: var(--font-heading);
    color: var(--color-terracotta);
    font-size: 20px;
    text-align: center;
    font-weight: bold;
    padding: 0 8px;
    text-shadow: 0 1px 1px rgba(0,0,0,0.03);
    white-space: nowrap;
}

/* Menu Grid System - Flexible 2 columns on tablet/desktop, 1 column on mobile */
.menu-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    width: 100%;
}

/* Elegantly Sculpted Menu Cards */
.menu-item {
    background-color: var(--color-bg-card);
    border-radius: 16px;
    border: 1px solid rgba(197, 160, 89, 0.12);
    box-shadow: 0 4px 10px var(--color-shadow);
    padding: 14px;
    display: flex;
    flex-direction: row;
    align-items: flex-start;
    gap: 12px;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    position: relative;
    overflow: hidden;
    width: 100%;
}

.menu-item::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-gold), transparent, var(--color-gold));
    opacity: 0;
    transition: opacity 0.3s ease;
}

.menu-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 18px rgba(44, 38, 35, 0.12);
    border-color: rgba(197, 160, 89, 0.3);
}

.menu-item:hover::before {
    opacity: 1;
}

/* Image Container */
.menu-image-container {
    position: relative;
    width: 84px;
    height: 84px;
    flex-shrink: 0;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 3px 6px rgba(0, 0, 0, 0.08);
    background-color: rgba(44, 38, 35, 0.05);
}

.menu-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.menu-item:hover .menu-image {
    transform: scale(1.1);
}

/* Image zoom/popup trigger overlay icon */
.image-zoom-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.3);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
    cursor: zoom-in;
}

.menu-image-container:hover .image-zoom-overlay {
    opacity: 1;
}

.zoom-icon {
    font-size: 16px;
    font-weight: bold;
}

/* Item details text block */
.menu-item-info {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    height: 100%;
    min-width: 0; /* Enable text ellipsis behavior */
    text-align: inherit;
}

.menu-item-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 4px;
}

.menu-item h3 {
    font-family: var(--font-heading);
    font-size: 14.5px;
    color: var(--color-text-primary);
    font-weight: bold;
    line-height: 1.3;
}

.price-badge {
    color: var(--color-terracotta);
    font-size: 13.5px;
    font-family: var(--font-heading);
    font-weight: bold;
    white-space: nowrap;
    background-color: var(--color-terracotta-light);
    padding: 2px 8px;
    border-radius: 8px;
    border: 1px dashed rgba(185, 74, 56, 0.25);
    direction: rtl;
}

/* Sold Out / اتمام styling */
.price-badge.sold-out {
    color: #8C827D;
    background-color: #ECEAE7;
    border-color: #D3CFCB;
}

.menu-item-description {
    font-family: var(--font-body);
    font-size: 11px;
    color: var(--color-text-secondary);
    line-height: 1.4;
    margin-top: 4px;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Double sub-items inside one card container (e.g. کته کباب & بریان) */
.food-details {
    display: flex;
    flex-direction: column;
    width: 100%;
    gap: 8px;
    margin-top: 4px;
    padding-top: 8px;
    border-top: 1px solid rgba(197, 160, 89, 0.1);
}

.food-half {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    padding: 2px 0;
}

.food-half h3 {
    font-size: 12.5px;
    color: var(--color-text-primary);
    font-weight: 500;
}

.food-half .price-badge {
    font-size: 12px;
}

/* Compact Sublist layout for section text items (e.g., Khorak text pricing) */
.dish-line {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.dish-icon {
    width: 32px;
    height: 32px;
    object-fit: cover;
    border-radius: 50%;
    border: 1px solid var(--color-gold);
    cursor: zoom-in;
    transition: transform 0.3s ease;
}

.dish-icon:hover {
    transform: scale(1.15);
}

.dish-text-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 0;
    border-bottom: 1px dashed rgba(197, 160, 89, 0.1);
}

.dish-text-item:last-child {
    border-bottom: none;
}

.flex-col-item {
    display: flex;
    flex-direction: column;
    align-items: stretch !important;
    width: 100%;
    padding: 10px 0;
}

.dish-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    width: 100%;
    margin-bottom: 8px;
}

.pizza-sub-sizes {
    display: flex;
    flex-direction: column;
    gap: 6px;
    width: 100%;
    padding-right: 12px;
    border-right: 2px solid rgba(197, 160, 89, 0.2);
    margin-top: 4px;
}

html[lang="en"] .pizza-sub-sizes {
    padding-right: 0;
    padding-left: 12px;
    border-right: none;
    border-left: 2px solid rgba(197, 160, 89, 0.2);
}

.pizza-sub-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 6px 10px;
    border-radius: 8px;
    background-color: rgba(44, 38, 35, 0.02);
    transition: all 0.2s ease;
}

.pizza-sub-row:hover {
    background-color: rgba(185, 74, 56, 0.05);
    transform: translateX(-2px);
}

html[lang="en"] .pizza-sub-row:hover {
    transform: translateX(2px);
}

.sub-size-label {
    font-family: var(--font-body);
    font-size: 12px;
    color: var(--color-text-secondary);
    font-weight: 500;
}

.dish-name-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* Custom styled sections */
.pure-text-card {
    grid-column: span 2;
}

/* Beautiful Interactive Overlay / Popup modal */
.popup {
    display: none;
    position: fixed;
    z-index: 1000;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(28, 25, 23, 0.85);
    backdrop-filter: blur(12px);
    overflow: hidden;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.4s ease;
    display: none; /* Controlled dynamically in JS */
}

.popup.show {
    display: flex;
    opacity: 1;
}

.popup-container {
    position: relative;
    max-width: min(500px, 90vw);
    max-height: 80vh;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.5);
    border: 2px solid var(--color-gold);
    background-color: var(--color-bg-card);
    transform: scale(0.9);
    transition: transform 0.4s cubic-bezier(0.34, 1.56, 0.64, 1);
}

.popup.show .popup-container {
    transform: scale(1);
}

.popup-content {
    display: block;
    width: 100%;
    height: auto;
    object-fit: contain;
    max-height: 60vh;
}

.popup-caption {
    background-color: var(--color-bg-card);
    color: var(--color-text-primary);
    padding: 16px;
    text-align: center;
    font-family: var(--font-heading);
    font-weight: bold;
    font-size: 15px;
    border-top: 1px solid rgba(197, 160, 89, 0.15);
}

.close {
    position: absolute;
    top: 12px;
    right: 12px;
    color: var(--color-text-primary);
    background-color: #FFF;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 22px;
    font-weight: bold;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    cursor: pointer;
    transition: all 0.2s ease;
    z-index: 10;
}

.close:hover {
    background-color: var(--color-terracotta);
    color: white;
    transform: scale(1.1);
}

/* Beautiful Bento Grid Blocks for Footer / Information Sections */
.info-bento-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin: 32px 0;
}

.info-card {
    background-color: var(--color-bg-card);
    border-radius: 16px;
    border: 1px solid rgba(197, 160, 89, 0.12);
    box-shadow: 0 4px 10px var(--color-shadow);
    padding: 20px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
    transition: transform 0.3s ease;
}

.info-card:hover {
    transform: translateY(-2px);
}

.info-card-icon {
    font-size: 24px;
    color: var(--color-terracotta);
}

.info-card-title {
    font-family: var(--font-heading);
    font-size: 14.5px;
    font-weight: bold;
    color: var(--color-text-primary);
}

.info-card-text {
    font-family: var(--font-body);
    font-size: 12.5px;
    color: var(--color-text-secondary);
    line-height: 1.5;
}

/* Custom Interactive Copy Action for Wifi */
.copy-button {
    background-color: var(--color-terracotta-light);
    color: var(--color-terracotta);
    border: 1px dashed var(--color-terracotta);
    border-radius: 8px;
    padding: 4px 12px;
    font-size: 11.5px;
    font-family: var(--font-body);
    font-weight: bold;
    cursor: pointer;
    transition: all 0.2s ease;
    margin-top: 6px;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.copy-button:hover {
    background-color: var(--color-terracotta);
    color: #FFF;
}

/* Call Button styling in address/phone cards */
.action-link {
    text-decoration: none;
    color: var(--color-text-primary);
    cursor: pointer;
}

.action-link:hover .info-card-title {
    color: var(--color-terracotta);
}

/* Beautiful Premium Footer Layout */
footer {
    background-color: rgba(44, 38, 35, 0.95);
    color: white;
    padding: 30px 16px;
    text-align: center;
    border-top: 2px solid var(--color-gold);
    font-family: var(--font-body);
}

footer .footer-logo {
    width: 60px;
    margin-bottom: 12px;
    opacity: 0.85;
}

footer .law-notice {
    font-size: 11px;
    color: #D3CFCB;
    margin-bottom: 16px;
    max-width: 500px;
    margin-left: auto;
    margin-right: auto;
    line-height: 1.5;
    position: relative;
    padding-bottom: 12px;
}

footer .law-notice::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
    height: 1px;
    background-color: rgba(197, 160, 89, 0.3);
}

footer .address,
footer .phone,
footer .copyright {
    font-size: 12.5px;
    color: #FFF;
    margin: 6px 0;
    opacity: 0.9;
}

footer .copyright {
    font-size: 10.5px;
    color: #A59E9A;
    margin-top: 18px;
}

/* Mobile responsive media queries */
@media (max-width: 768px) {
    .menu-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }
    
    .pure-text-card {
        grid-column: span 1;
    }

    .info-bento-grid {
        grid-template-columns: 1fr;
        gap: 12px;
    }

    .header-content h1 {
        font-size: 20px;
    }

    .header-subtitle {
        font-size: 12px;
    }

    .restaurant-logo {
        width: 64px;
        height: 64px;
    }

    .category-list {
        padding: 10px 12px;
    }

    .category-list a {
        padding: 6px 12px;
        font-size: 12px;
    }

    .menu-item {
        border-radius: 14px;
        padding: 10px;
        gap: 10px;
    }

    .menu-image-container {
        width: 76px;
        height: 76px;
        border-radius: 10px;
    }

    .menu-item h3 {
        font-size: 13.5px;
    }

    .price-badge {
        font-size: 12.5px;
        padding: 1px 6px;
    }

    .menu-item-description {
        font-size: 10px;
    }
}

/* ========================================================================
   PREMIUM CUSTOM ADDITIONS (SERVERLESS ENHANCEMENTS)
   ======================================================================== */

/* Dynamic Mansion Status Badge */
.mansion-status-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    margin-top: 10px;
    background-color: rgba(44, 38, 35, 0.05);
    border: 1px solid rgba(197, 160, 89, 0.25);
    transition: all 0.3s ease;
}

.mansion-status-badge.open {
    background-color: rgba(39, 174, 96, 0.08);
    border-color: rgba(39, 174, 96, 0.3);
    color: #27ae60;
}

.mansion-status-badge.closed {
    background-color: rgba(185, 74, 56, 0.08);
    border-color: rgba(185, 74, 56, 0.3);
    color: var(--color-terracotta);
}

.status-dot {
    width: 8px;
    height: 8px;
    border-radius: 50%;
    background-color: #95a5a6;
    display: inline-block;
}

.open .status-dot {
    background-color: #2cc76b;
    box-shadow: 0 0 8px #2cc76b;
    animation: pulse 1.8s infinite;
}

.closed .status-dot {
    background-color: var(--color-terracotta);
    box-shadow: 0 0 8px var(--color-terracotta);
}

@keyframes pulse {
    0% { transform: scale(0.9); opacity: 0.6; }
    50% { transform: scale(1.15); opacity: 1; }
    100% { transform: scale(0.9); opacity: 0.6; }
}

/* Tab Switcher Layout */
.main-tab-bar {
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-bottom: 24px;
    background-color: rgba(44, 38, 35, 0.04);
    padding: 6px;
    border-radius: 35px;
    border: 1px solid rgba(197, 160, 89, 0.15);
}

.tab-btn {
    flex: 1;
    max-width: 250px;
    padding: 10px 18px;
    border-radius: 28px;
    border: none;
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: 600;
    cursor: pointer;
    background: transparent;
    color: var(--color-text-secondary);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

.tab-btn.active {
    background-color: #ffffff;
    color: var(--color-terracotta);
    box-shadow: 0 4px 10px rgba(44, 38, 35, 0.08);
    border: 1px solid rgba(197, 160, 89, 0.15);
}

/* Beautiful Search Area */
.search-container {
    margin-bottom: 20px;
}

.search-inner {
    position: relative;
    width: 100%;
    box-shadow: 0 4px 12px var(--color-shadow);
    border-radius: 12px;
    overflow: hidden;
    border: 1px solid rgba(197, 160, 89, 0.2);
}

.search-inner input {
    width: 100%;
    padding: 14px 44px 14px 40px;
    border: none;
    outline: none;
    background-color: #ffffff;
    font-family: var(--font-body);
    font-size: 13.5px;
    color: var(--color-text-primary);
}

html[lang="en"] .search-inner input {
    padding: 14px 40px 14px 44px;
}

.search-icon {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    font-size: 16px;
    color: var(--color-gold);
    pointer-events: none;
}

html[lang="fa"] .search-icon,
html[lang="ar"] .search-icon {
    right: 16px;
}

html[lang="en"] .search-icon {
    left: 16px;
}

#search-clear-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: none;
    border: none;
    font-size: 20px;
    color: #95a5a6;
    cursor: pointer;
    padding: 4px;
}

html[lang="fa"] #search-clear-btn,
html[lang="ar"] #search-clear-btn {
    left: 12px;
}

html[lang="en"] #search-clear-btn {
    right: 12px;
}

/* Filter Tags / Pills row */
.filter-pills {
    display: flex;
    overflow-x: auto;
    gap: 8px;
    padding: 10px 0;
    scrollbar-width: none;
}

.filter-pills::-webkit-scrollbar {
    display: none;
}

.filter-pill {
    white-space: nowrap;
    padding: 6px 14px;
    border-radius: 15px;
    font-size: 11.5px;
    font-family: var(--font-body);
    font-weight: 500;
    background-color: rgba(44, 38, 35, 0.04);
    border: 1px solid transparent;
    color: var(--color-text-secondary);
    cursor: pointer;
    transition: all 0.2s ease;
}

.filter-pill.active {
    background-color: var(--color-terracotta-light);
    border-color: rgba(185, 74, 56, 0.2);
    color: var(--color-terracotta);
    font-weight: 600;
}

/* Order calculator button controls inside menu items */
.item-order-controls {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
}

.add-btn {
    padding: 4px 12px;
    border-radius: 16px;
    border: 1px solid rgba(197, 160, 89, 0.4);
    background-color: #ffffff;
    color: var(--color-text-primary);
    font-family: var(--font-body);
    font-size: 11px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: all 0.2s ease;
}

.add-btn:hover {
    border-color: var(--color-terracotta);
    background-color: var(--color-terracotta-light);
    color: var(--color-terracotta);
}

.quantity-controls {
    display: none;
    align-items: center;
    background-color: #ffffff;
    border: 1px solid var(--color-terracotta);
    border-radius: 16px;
    overflow: hidden;
    height: 26px;
}

.qty-btn {
    width: 28px;
    height: 100%;
    border: none;
    background-color: transparent;
    color: var(--color-terracotta);
    font-size: 14px;
    font-weight: bold;
    cursor: pointer;
    transition: background-color 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.qty-btn:hover {
    background-color: var(--color-terracotta-light);
}

.qty-val {
    width: 24px;
    text-align: center;
    font-size: 12px;
    font-weight: bold;
    color: var(--color-text-primary);
    font-family: var(--font-body);
}

/* Floating Order Tray Badge */
.order-tray-btn {
    position: fixed;
    bottom: 24px;
    z-index: 1000;
    background: linear-gradient(135deg, var(--color-terracotta), #962a1a);
    color: white !important;
    border: 1px solid rgba(255, 255, 255, 0.1);
    box-shadow: 0 10px 25px rgba(185, 74, 56, 0.4);
    padding: 12px 20px;
    border-radius: 30px;
    display: none;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    font-family: var(--font-body);
    font-size: 13.5px;
    font-weight: bold;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275);
}

html[lang="fa"] .order-tray-btn,
html[lang="ar"] .order-tray-btn {
    left: 24px;
}

html[lang="en"] .order-tray-btn {
    right: 24px;
}

.order-tray-btn:hover {
    transform: translateY(-4px) scale(1.03);
    box-shadow: 0 14px 28px rgba(185, 74, 56, 0.5);
}

.tray-count {
    background-color: white;
    color: var(--color-terracotta);
    font-size: 11px;
    font-weight: 800;
    width: 20px;
    height: 20px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* Slide-up Pre-order Modal Sheet */
.tray-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 38, 35, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1100;
    display: flex;
    justify-content: center;
    align-items: flex-end;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.3s ease;
}

.tray-modal.show {
    opacity: 1;
    pointer-events: auto;
}

.tray-sheet {
    width: 100%;
    max-width: 600px;
    background-color: #ffffff;
    border-top-left-radius: 24px;
    border-top-right-radius: 24px;
    box-shadow: 0 -10px 30px rgba(44, 38, 35, 0.25);
    padding: 24px;
    transform: translateY(100%);
    transition: transform 0.3s cubic-bezier(0.25, 1, 0.5, 1);
    max-height: 85vh;
    display: flex;
    flex-direction: column;
}

.tray-modal.show .tray-sheet {
    transform: translateY(0);
}

.tray-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding-bottom: 16px;
    border-bottom: 1px solid rgba(44, 38, 35, 0.1);
    margin-bottom: 16px;
}

.tray-header h2 {
    font-family: var(--font-heading);
    color: var(--color-terracotta);
    font-size: 18px;
    margin: 0;
}

.close-tray-btn {
    background: none;
    border: none;
    font-size: 24px;
    color: #95a5a6;
    cursor: pointer;
}

.tray-items-list {
    flex: 1;
    overflow-y: auto;
    margin-bottom: 16px;
    padding-right: 4px;
}

.tray-item-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px dotted rgba(44, 38, 35, 0.08);
}

.tray-item-title {
    font-size: 13.5px;
    font-weight: bold;
    color: var(--color-text-primary);
}

.tray-item-sub {
    font-size: 11px;
    color: var(--color-text-secondary);
}

.tray-item-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.tray-summary-box {
    background-color: rgba(44, 38, 35, 0.03);
    border-radius: 12px;
    padding: 14px;
    margin-bottom: 16px;
    border: 1px dashed rgba(197, 160, 89, 0.3);
}

.summary-row {
    display: flex;
    justify-content: space-between;
    font-size: 12.5px;
    margin-bottom: 8px;
    color: var(--color-text-secondary);
}

.summary-row.total {
    border-top: 1px solid rgba(44, 38, 35, 0.1);
    padding-top: 8px;
    font-weight: bold;
    color: var(--color-terracotta);
    font-size: 15px;
    margin-bottom: 0;
}

.tray-checkout-actions {
    display: flex;
    gap: 10px;
}

.tray-action-btn {
    flex: 1;
    padding: 12px;
    border-radius: 12px;
    font-weight: bold;
    font-family: var(--font-body);
    font-size: 13px;
    cursor: pointer;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.2s ease;
}

.send-whatsapp-btn {
    background-color: #27ae60;
    color: white !important;
}

.send-whatsapp-btn:hover {
    background-color: #219653;
}

.clear-tray-btn {
    background-color: #f2f2f2;
    color: #5c524e !important;
    max-width: 120px;
}

/* Room Ecolodge Section Card Design */
.hotel-mansion-section {
    padding-top: 10px;
}

.mansion-intro {
    background-color: var(--color-bg-card);
    border-radius: 16px;
    padding: 20px;
    border: 1px solid rgba(197, 160, 89, 0.2);
    margin-bottom: 24px;
    text-align: center;
    box-shadow: 0 4px 10px var(--color-shadow);
}

.mansion-intro-title {
    font-family: var(--font-heading);
    color: var(--color-terracotta);
    font-size: 18px;
    margin-bottom: 8px;
}

.mansion-intro-text {
    font-size: 13px;
    color: var(--color-text-secondary);
    line-height: 1.6;
}

.suites-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
    margin-bottom: 24px;
}

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

.suite-card {
    background-color: var(--color-bg-card);
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(197, 160, 89, 0.15);
    box-shadow: 0 4px 12px var(--color-shadow);
    transition: transform 0.3s ease;
}

.suite-card:hover {
    transform: translateY(-4px);
}

.suite-img-box {
    height: 160px;
    overflow: hidden;
    position: relative;
}

.suite-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.suite-card:hover .suite-img {
    transform: scale(1.05);
}

.suite-badge {
    position: absolute;
    top: 12px;
    background-color: rgba(44, 38, 35, 0.85);
    color: var(--color-gold);
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 10.5px;
    font-weight: bold;
}

html[lang="fa"] .suite-badge,
html[lang="ar"] .suite-badge {
    right: 12px;
}

html[lang="en"] .suite-badge {
    left: 12px;
}

.suite-content {
    padding: 16px;
}

.suite-title {
    font-family: var(--font-heading);
    font-size: 16px;
    color: var(--color-text-primary);
    margin-bottom: 6px;
}

.suite-desc {
    font-size: 11.5px;
    color: var(--color-text-secondary);
    margin-bottom: 12px;
    line-height: 1.5;
}

.suite-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px dotted rgba(44, 38, 35, 0.1);
    padding-top: 10px;
}

.suite-price {
    font-size: 13px;
    font-weight: bold;
    color: var(--color-terracotta);
}

.suite-btn {
    background-color: var(--color-gold);
    color: white !important;
    padding: 5px 12px;
    border-radius: 15px;
    font-size: 11px;
    font-weight: bold;
    cursor: pointer;
    border: none;
}

.suite-btn:hover {
    background-color: var(--color-gold-hover);
}

/* Mansion Amenities Section */
.mansion-amenities {
    background-color: #ffffff;
    border-radius: 16px;
    padding: 24px;
    border: 1px solid rgba(197, 160, 89, 0.15);
    margin-bottom: 24px;
}

.amenities-title {
    font-family: var(--font-heading);
    text-align: center;
    color: var(--color-terracotta);
    font-size: 17px;
    margin-bottom: 16px;
}

.amenities-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 14px;
}

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

.amenity-item {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 12px;
    color: var(--color-text-primary);
}

.amenity-icon {
    font-size: 18px;
    color: var(--color-gold);
}

/* Modal booking simulation style */
.booking-dialog {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(44, 38, 35, 0.6);
    backdrop-filter: blur(4px);
    z-index: 1200;
    justify-content: center;
    align-items: center;
    padding: 16px;
}

.booking-dialog.show {
    display: flex;
}

.booking-card {
    background-color: #ffffff;
    border-radius: 20px;
    width: 100%;
    max-width: 440px;
    padding: 24px;
    box-shadow: 0 10px 30px rgba(44, 38, 35, 0.2);
    border: 1px solid rgba(197, 160, 89, 0.25);
    animation: zoomIn 0.3s ease;
}

@keyframes zoomIn {
    from { transform: scale(0.92); opacity: 0; }
    to { transform: scale(1); opacity: 1; }
}

.booking-card h3 {
    font-family: var(--font-heading);
    color: var(--color-terracotta);
    font-size: 18px;
    margin-bottom: 6px;
    border-bottom: 1px solid rgba(44, 38, 35, 0.08);
    padding-bottom: 10px;
}

.booking-field {
    margin-bottom: 12px;
}

.booking-field label {
    display: block;
    font-size: 11.5px;
    font-weight: 500;
    color: var(--color-text-secondary);
    margin-bottom: 4px;
}

.booking-field input,
.booking-field select {
    width: 100%;
    padding: 10px;
    font-family: var(--font-body);
    font-size: 12.5px;
    border: 1px solid rgba(197, 160, 89, 0.3);
    border-radius: 8px;
    outline: none;
}

.booking-field input:focus,
.booking-field select:focus {
    border-color: var(--color-terracotta);
}

.calc-summary {
    background-color: rgba(197, 160, 89, 0.06);
    border-radius: 8px;
    padding: 12px;
    border: 1px solid rgba(197, 160, 89, 0.2);
    margin-bottom: 16px;
    font-size: 12.5px;
}

.calc-summary-row {
    display: flex;
    justify-content: space-between;
    margin-bottom: 4px;
}

.calc-summary-row:last-child {
    margin-bottom: 0;
    font-weight: bold;
    color: var(--color-terracotta);
    border-top: 1px dotted rgba(44, 38, 35, 0.1);
    padding-top: 4px;
}

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

.booking-submit {
    flex: 1;
    background-color: var(--color-terracotta);
    color: white !important;
    border: none;
    padding: 11px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-weight: bold;
    cursor: pointer;
    text-align: center;
}

.booking-cancel {
    background-color: #f2f2f2;
    color: var(--color-text-secondary) !important;
    border: none;
    padding: 11px;
    border-radius: 8px;
    font-family: var(--font-body);
    font-weight: bold;
    cursor: pointer;
    text-align: center;
}



