/* Restaurant Pages CSS */

body {
    font-family: 'Poppins', sans-serif;
    background: var(--bg-light);
    color: var(--text-dark);
    min-height: 100vh;
    padding-bottom: 80px;
}

/* Header */
.restaurant-header {
    background: var(--header-bg);
    color: var(--header-text);
    padding: 20px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.1);
}

.restaurant-header .cover-image {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-size: cover;
    background-position: center;
    opacity: 1.0;
    transition: opacity 0.3s;
}

.header-content {
    position: relative;
    z-index: 1;
    display: flex;
    align-items: center;
    gap: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.restaurant-logo {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    object-fit: cover;
    border: 3px solid var(--logo-border);
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.2);
    background: white;
}

.restaurant-logo.logo-placeholder {
    background: white;
    display: flex;
    align-items: center;
    justify-content: center;
    text-decoration: none;
}

.restaurant-logo.logo-placeholder i {
    font-size: 1.8rem;
    color: var(--primary);
}

.restaurant-info h1 {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 5px;
    color: var(--header-text);
    text-shadow: var(--header-text-shadow);
    letter-spacing: -0.5px;
}

.restaurant-info p {
    font-size: 0.9rem;
    opacity: 0.95;
    margin: 0;
    color: var(--header-text);
    display: flex;
    align-items: center;
    gap: 6px;
}

/* Navigation Tabs */
.nav-tabs-custom {
    background: white;
    padding: 0 15px;
    display: flex;
    justify-content: center;
    border-bottom: 1px solid var(--border-color);
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.03);
    position: sticky;
    top: 0;
    z-index: 100;
}

.nav-tab {
    padding: 15px 25px;
    color: var(--text-light);
    text-decoration: none;
    font-size: 0.95rem;
    font-weight: 600;
    white-space: nowrap;
    border-bottom: 3px solid transparent;
    transition: all 0.3s;
}

.nav-tab.active,
.nav-tab:hover {
    color: var(--primary);
    border-bottom-color: var(--primary);
}

.nav-tab i {
    margin-right: 8px;
}

/* Bottom Navigation */
.bottom-nav {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: var(--primary);
    display: flex;
    justify-content: space-around;
    padding: 12px 0;
    box-shadow: 0 -5px 20px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    border-top-left-radius: 20px;
    border-top-right-radius: 20px;
}

.bottom-nav a {
    display: flex;
    flex-direction: column;
    align-items: center;
    color: rgba(255, 255, 255, 0.7);
    text-decoration: none;
    font-size: 0.75rem;
    font-weight: 500;
    padding: 5px 15px;
    transition: all 0.2s;
    position: relative;
}

.bottom-nav a.active {
    color: white;
}

.bottom-nav a.active i {
    transform: translateY(-2px);
}

.bottom-nav a:hover {
    color: white;
}

.bottom-nav a i {
    font-size: 1.4rem;
    margin-bottom: 4px;
    transition: transform 0.2s;
}

/* Content Cards */
.content-card {
    background: white;
    border-radius: 16px;
    padding: 24px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.03);
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.content-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 18px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 10px;
}

.content-card h3 i {
    color: var(--primary);
}

.content-card p {
    color: var(--text-light);
    line-height: 1.7;
    margin: 0;
}

/* Page Content */
.page-content {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

/* Search Box */
.search-box {
    padding: 15px 20px;
    background: white;
    position: sticky;
    top: 55px;
    /* Adjust based on navbar height */
    z-index: 90;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.03);
}

.search-input {
    width: 100%;
    padding: 12px 20px;
    border: 1px solid var(--border-color);
    border-radius: 50px;
    font-size: 0.95rem;
    background: var(--bg-light);
    transition: all 0.3s;
    padding-left: 45px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='%239ca3af' class='bi bi-search' viewBox='0 0 16 16'%3E%3Cpath d='M11.742 10.344a6.5 6.5 0 1 0-1.397 1.398h-.001c.03.04.062.078.098.115l3.85 3.85a1 1 0 0 0 1.415-1.414l-3.85-3.85a1.007 1.007 0 0 0-.115-.1zM12 6.5a5.5 5.5 0 1 1-11 0 5.5 5.5 0 0 1 11 0z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: 15px center;
}

.search-input:focus {
    outline: none;
    border-color: var(--primary);
    background-color: white;
    box-shadow: 0 0 0 4px rgba(var(--primary-rgb), 0.1);
}

/* Categories Scroll */
.categories-scroll {
    background: white;
    padding: 15px 20px;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    border-bottom: 1px solid var(--border-color);
    scrollbar-width: none;
    /* Firefox */
}

.categories-scroll::-webkit-scrollbar {
    display: none;
}

.category-pill {
    display: inline-flex;
    align-items: center;
    padding: 10px 20px;
    margin-right: 10px;
    background: var(--bg-light);
    border-radius: 50px;
    color: var(--text-dark);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid transparent;
}

.category-pill.active,
.category-pill:hover {
    background: var(--primary);
    color: white;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.category-pill i {
    margin-right: 8px;
}

/* Menu Section */
.menu-section {
    padding: 20px;
    max-width: 800px;
    margin: 0 auto;
}

.section-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 20px;
    margin-top: 30px;
    color: var(--text-dark);
    display: flex;
    align-items: center;
    gap: 12px;
}

.section-title i {
    color: var(--primary);
    background: rgba(0, 0, 0, 0.05);
    width: 36px;
    height: 36px;
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1rem;
}

/* Menu Item Card */
.menu-item {
    background: white;
    border-radius: 16px;
    padding: 16px;
    margin-bottom: 16px;
    display: flex;
    gap: 16px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.04);
    transition: transform 0.2s, box-shadow 0.2s;
    border: 1px solid rgba(0, 0, 0, 0.02);
}

.menu-item:active {
    transform: scale(0.98);
}

.menu-item-image {
    width: 100px;
    height: 100px;
    border-radius: 12px;
    object-fit: cover;
    flex-shrink: 0;
}

.menu-item-image.placeholder {
    background: linear-gradient(135deg, var(--bg-light), #e9ecef);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-light);
    font-size: 1.5rem;
}

.menu-item-content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
}

.menu-item-name {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--text-dark);
    line-height: 1.4;
}

.menu-item-desc {
    font-size: 0.85rem;
    color: var(--text-light);
    margin-bottom: auto;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    line-height: 1.5;
}

.menu-item-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 10px;
}

.menu-item-price {
    font-size: 1.1rem;
    font-weight: 700;
    color: var(--primary);
}

.menu-item-badges {
    display: flex;
    gap: 6px;
}

.badge-icon {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.75rem;
}

.badge-vegetarian {
    background: #dcfce7;
    color: #16a34a;
}

.badge-spicy {
    background: #fee2e2;
    color: #dc2626;
}

.badge-popular {
    background: #fef3c7;
    color: #d97706;
}

.menu-item.unavailable {
    opacity: 0.6;
    filter: grayscale(1);
}

.unavailable-badge {
    background: #e74c3c;
    color: white;
    font-size: 0.7rem;
    padding: 4px 10px;
    border-radius: 50px;
    font-weight: 600;
}

/* Contact Items */
.contact-item {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 16px;
    border-bottom: 1px solid #f1f5f9;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
    border-radius: 12px;
}

.contact-item:hover {
    background: #f8fafc;
}

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

.contact-icon {
    width: 48px;
    height: 48px;
    border-radius: 12px;
    background: var(--primary);
    color: white;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.2rem;
    flex-shrink: 0;
    box-shadow: 0 4px 10px rgba(var(--primary-rgb), 0.2);
}

.contact-info h4 {
    font-size: 0.8rem;
    color: var(--text-light);
    margin: 0 0 2px 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.contact-info p {
    font-size: 1.05rem;
    font-weight: 600;
    margin: 0;
    color: var(--text-dark);
}

/* Hours */
.hours-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 0;
    border-bottom: 1px solid #f1f5f9;
}

.hours-row:last-child {
    border-bottom: none;
}

.hours-day {
    font-weight: 500;
    color: var(--text-dark);
}

.hours-time {
    color: var(--text-light);
    font-family: monospace;
    font-size: 0.95rem;
}

.hours-closed {
    color: #dc2626;
    font-weight: 500;
}

/* Action Buttons */
.action-buttons {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-top: 24px;
}

.action-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 10px;
    padding: 16px;
    border-radius: 12px;
    text-decoration: none;
    font-weight: 600;
    transition: transform 0.2s, box-shadow 0.2s;
    color: white;
}

.action-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
    color: white;
}

.action-btn:active {
    transform: scale(0.98);
}

.btn-call {
    background: linear-gradient(135deg, var(--primary), var(--primary-dark));
}

.btn-whatsapp {
    background: #25D366;
}

.btn-directions {
    background: #4285F4;
}

.btn-email {
    background: #64748b;
}

/* Map */
.map-container {
    border-radius: 16px;
    overflow: hidden;
    height: 240px;
    margin-bottom: 20px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

.map-container iframe {
    width: 100%;
    height: 100%;
    border: none;
}

/* Restaurant Image */
.restaurant-image {
    width: 100%;
    height: 250px;
    object-fit: cover;
    border-radius: 16px;
    margin-bottom: 24px;
    box-shadow: 0 10px 30px rgba(0, 0, 0, 0.1);
}

/* Responsive Navigation */
/* Desktop: Hide bottom sticky menu, show navbar tabs */
@media (min-width: 768px) {
    .bottom-nav {
        display: none !important;
    }

    .nav-tabs-custom {
        display: flex !important;
    }
}

/* Mobile: Hide navbar tabs, show bottom sticky menu */
@media (max-width: 767px) {
    .nav-tabs-custom {
        display: none !important;
    }

    .bottom-nav {
        display: flex !important;
    }
}