/* Hide all images inside the menu popup to ensure no icons show */
#menuPopup img {
    display: none !important;
}
/* Mini popup for menu selection */
.menu-popup {
    position: fixed;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0,0,0,0.66);
    z-index: 20000; /* ensure popup sits above other elements */
    display: flex;
    align-items: center;
    justify-content: center;
    pointer-events: all;
}
.menu-popup-content {
    background: #121212; /* make fully opaque to hide underlying page during popup */
    border-radius: 18px;
    border: 1.5px solid #222;
    box-shadow: 0 8px 32px rgba(0,0,0,0.32);
    min-width: 340px;
    max-width: 92vw;
    text-align: center;
    padding: 32px 28px 24px 28px;
    position: relative;
    display: flex;
    flex-direction: column;
    align-items: center;
}

/* When the menu popup is open, hide the underlying external links to avoid duplicate/small icons showing through */
.menu-popup-open .external-links-section {
    visibility: hidden;
    pointer-events: none;
}

/* Also hide any icons loaded from icons8 (or other external image overlays) while the popup is open */

/* Mini transparent popup styles */
.menu-popup-content.mini {
    background: rgba(18,18,18,0.38);
    min-width: 260px;
    max-width: 80vw;
    padding: 18px 20px;
    border-radius: 12px;
    backdrop-filter: blur(6px);
    position: relative;
}
.menu-popup-content.mini .menu-popup-title {
    font-size: 1rem;
    font-weight: 700;
    margin-bottom: 12px;
    color: #ffffff;
}
.menu-popup-options.mini {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
    justify-items: center;
    align-items: center;
}
/* Make mini buttons uniform and center-aligned */
/* Mini popup button layout with icon for website */
.menu-popup-content.mini .menu-popup-option {
    min-width: 120px;
    padding: 10px 12px;
    border-radius: 10px;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 6px;
    background: rgba(255,255,255,0.03);
    border: 1px solid rgba(255,255,255,0.04);
}
.menu-popup-content.mini .menu-popup-option .menu-option-label {
    font-size: 0.95rem;
    font-weight: 700;
    color: #fff;
}
.menu-option-icon-img {
    width: 36px;
    height: 36px;
    margin-bottom: 4px;
    display: block;
    object-fit: contain;
}
/* Ensure buttons stack nicely on very small screens */
@media (max-width: 360px) {
    .menu-popup-options.mini {
        grid-template-columns: 1fr;
    }
}
.menu-popup-close {
    position: absolute;
    top: 10px;
    right: 14px;
    background: none;
    color: #fff;
    border: none;
    font-size: 1.5rem;
    cursor: pointer;
    opacity: 0.7;
    padding: 0;
    line-height: 1;
    z-index: 2;
}
.menu-popup-option {
    background: rgba(255,255,255,0.04);
    color: #fff;
    border: 1.5px solid #222;
    border-radius: 10px;
    font-size: 1.08rem;
    font-weight: 600;
    padding: 22px 0 14px 0;
    cursor: pointer;
    transition: background 0.18s, border 0.18s, color 0.18s;
    box-shadow: 0 1px 4px 0 rgba(0,0,0,0.10);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
}
.menu-popup-option:hover {
    background: #00cc55;
    color: #181818;
    border-color: #00ff66;
}
/* Mini popup button layout with only the provided icons */
.menu-popup-buttons {
    display: flex;
    gap: 20px;
    justify-content: center;
    margin-top: 8px;
}
.menu-btn {
    background: rgba(30,30,30,0.7);
    border: none;
    border-radius: 12px;
    padding: 16px 24px;
    display: flex;
    flex-direction: column;
    align-items: center;
    cursor: pointer;
    transition: background 0.2s;
}
.menu-btn span {
    color: #fff;
    font-weight: bold;
    font-size: 16px;
}
    opacity: 1;
}
/* ========================================
   RESTAURANT DETAIL PAGE STYLES
   ======================================== */

.restaurant-detail-page {
    background-color: var(--bg-primary);
}

.restaurant-detail-main {
    flex: 1;
    padding: 0;
    max-width: 900px;
    margin: 0 auto;
    width: 100%;
}

/* ========================================
   LOADING STATE
   ======================================== */

.loading-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-height: 400px;
    gap: 16px;
}

.seo-content-block h1 {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--text-primary, #fff);
    text-align: center;
    margin: 0 0 8px;
}
.seo-content-block .seo-address,
.seo-content-block .seo-about {
    font-size: 0.95rem;
    color: var(--text-secondary, #999);
    text-align: center;
    max-width: 600px;
    margin: 0;
}
.seo-content-block .loading-text {
    font-size: 0.9rem;
    color: var(--text-secondary, #999);
    margin: 0;
}

.spinner {
    width: 40px;
    height: 40px;
    border: 2px solid var(--border);
    border-top-color: var(--accent);
    border-radius: 50%;
    animation: spin 0.8s linear infinite;
}

@keyframes spin {
    to { transform: rotate(360deg); }
}

/* ========================================
   RESTAURANT HERO
   ======================================== */

.restaurant-hero {
    position: relative;
    width: 100%;
    height: 300px;
    background: linear-gradient(135deg, #1a1a1a 0%, #0b0b0b 100%);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
}

.share-button {
    position: absolute;
    bottom: 32px;
    right: 16px;
    z-index: 100;
    width: 44px;
    height: 44px;
    background-color: rgba(0, 255, 102, 0.15);
    border: 2px solid var(--accent);
    color: var(--accent);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.share-button:hover {
    background-color: var(--accent);
    color: var(--bg-primary);
    transform: scale(1.1);
}

.share-button:active {
    transform: scale(0.95);
}

.restaurant-hero-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    opacity: 0.6;
}

.restaurant-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1;
    background: linear-gradient(180deg, transparent 0%, rgba(11, 11, 11, 0.9) 100%);
}

.restaurant-hero-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 32px 20px;
    z-index: 2;
}

.restaurant-rank-badge {
    display: inline-block;
    background-color: var(--accent);
    color: var(--bg-primary);
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.5px;
    padding: 6px 12px;
    border-radius: 4px;
    margin-bottom: 12px;
}

.restaurant-name-hero {
    font-size: 32px;
    font-weight: 700;
    letter-spacing: -0.5px;
    margin: 0;
}

@media (max-width: 600px) {
    .restaurant-hero {
        height: 240px;
    }

    .restaurant-name-hero {
        font-size: 24px;
    }
}

/* ========================================
   INFO SECTION
   ======================================== */

.restaurant-info-section {
    padding: 24px 20px;
    border-bottom: 1px solid var(--border);
}

/* ========================================
   RESTAURANT BASICS (Address, Phone)
   ======================================== */

.restaurant-basics {
    display: flex;
    flex-direction: column;
    gap: 16px;
    margin-bottom: 24px;
}

.basic-item {
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.basic-icon {
    flex: 0 0 24px;
    width: 24px;
    height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--accent);
    font-weight: 700;
    font-size: 14px;
}

.basic-content {
    flex: 1;
}

.basic-label {
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 4px;
}

.basic-value {
    font-size: 16px;
    color: var(--text-primary);
    line-height: 1.4;
}

.basic-value a {
    color: var(--accent);
    text-decoration: none;
    transition: opacity 0.2s;
}

.basic-value a:hover {
    opacity: 0.8;
}

.restaurant-description-detail {
    font-size: 15px;
    line-height: 1.6;
    color: var(--text-primary);
    word-wrap: break-word;
    white-space: normal;
}

/* ========================================
   RATINGS GRID
   ======================================== */

.ratings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
    gap: 12px;
    margin-bottom: 24px;
}

.rating-card {
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 8px;
    padding: 16px;
    text-align: center;
    transition: all 0.2s;
}

.rating-card:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: rgba(255, 255, 255, 0.1);
}

.rating-card.primary {
    border-color: var(--accent);
    background-color: rgba(0, 255, 102, 0.08);
    box-shadow: 0 0 16px rgba(0, 255, 102, 0.1);
}

.rating-logo {
    height: 24px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: 700;
    font-size: 12px;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
}

.rating-value {
    font-size: 24px;
    font-weight: 700;
    color: var(--text-primary);
    margin-bottom: 4px;
}

.rating-count {
    font-size: 12px;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.rating-card.primary .rating-value {
    color: var(--accent);
    font-size: 28px;
}

.rating-card.primary .rating-count {
    color: var(--accent);
    opacity: 0.8;
}

/* ========================================
   EXTERNAL LINKS
   ======================================== */

.external-links-section {
    padding: 24px 20px;
    border-bottom: 1px solid var(--border);
}

.external-links-title {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin-bottom: 16px;
}

.external-links {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
    gap: 12px;
}

.external-link {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 8px;
    text-decoration: none;
    color: var(--text-primary);
    transition: all 0.2s;
}

.external-link:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
    transform: translateY(-2px);
}

.external-link-icon {
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 6px;
    background-color: rgba(255, 255, 255, 0.05);
    font-size: 18px;
    overflow: hidden;
}

.external-link-icon img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    display: block;
}

.external-link-icon svg {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.external-link-icon svg path,
.external-link-icon svg circle {
    fill: inherit;
    stroke: inherit;
}

/* Brand icon colors */
.external-link-icon.google-icon {
    background-color: transparent;
    padding: 0;
}

.external-link-icon.yelp-icon {
    background-color: transparent;
    padding: 0;
}

.external-link-icon.uber-icon {
    background-color: transparent;
    padding: 0;
}

.external-link-icon.website-icon {
    background-color: rgba(255, 255, 255, 0.05);
    color: var(--accent);
}

.external-link.disabled {
    opacity: 0.4;
    pointer-events: none;
}

.external-link-label {
    font-size: 13px;
    font-weight: 600;
    text-align: center;
}

/* ========================================
   MENU SECTION
   ======================================== */

.menu-section {
    padding: 24px 20px;
    border-bottom: 1px solid var(--border);
}

.section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 16px;
}

.section-title {
    font-size: 14px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-primary);
    text-transform: uppercase;
    margin: 0;
}

.menu-count {
    font-size: 12px;
    color: var(--text-secondary);
    background-color: rgba(255, 255, 255, 0.05);
    padding: 4px 8px;
    border-radius: 4px;
}

.menu-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 12px;
    margin-bottom: 16px;
}

.menu-item {
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.2s;
}

.menu-item:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0, 255, 102, 0.1);
}

.menu-item-image {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #1a1a1a 0%, #0b0b0b 100%);
    object-fit: cover;
    display: flex;
    align-items: center;
    justify-content: center;
}

.menu-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.menu-item-name {
    font-size: 13px;
    font-weight: 600;
    padding: 8px;
    color: var(--text-primary);
    line-height: 1.3;
    min-height: 32px;
    display: flex;
    align-items: center;
}

.explore-menu-btn {
    width: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 12px;
    background-color: var(--accent);
    color: var(--bg-primary);
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    border: none;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s;
}

.explore-menu-btn:hover {
    background-color: #00e65e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 102, 0.2);
}

.explore-menu-btn::after {
    content: '→';
    font-weight: 900;
}

.no-menu-message {
    text-align: center;
    padding: 24px;
    color: var(--text-secondary);
    font-size: 14px;
}

/* ========================================
   DISH MODAL
   ======================================== */

.modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background-color: rgba(0, 0, 0, 0.7);
    z-index: 1000;
    animation: fadeIn 0.2s ease-out;
    overflow-y: auto;
}

.modal-overlay.active {
    display: flex;
    align-items: center;
    justify-content: center;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

.dish-modal {
    background-color: var(--bg-primary);
    border-top: 1px solid var(--border);
    width: 100%;
    max-width: 600px;
    max-height: 90vh;
    overflow-y: auto;
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        transform: translateY(100%);
    }
    to {
        transform: translateY(0);
    }
}

.modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 32px;
    height: 32px;
    background-color: rgba(255, 255, 255, 0.1);
    border: 1px solid var(--border);
    border-radius: 50%;
    color: var(--text-primary);
    font-size: 24px;
    font-weight: 300;
    cursor: pointer;
    transition: all 0.2s;
    z-index: 1001;
}

.modal-close:hover {
    background-color: rgba(255, 255, 255, 0.15);
}

.dish-modal-content {
    padding: 20px;
    position: relative;
}

.dish-modal-image {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #1a1a1a 0%, #0b0b0b 100%);
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.dish-modal-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.dish-modal-details {
    margin-bottom: 24px;
}

.dish-name {
    font-size: 24px;
    font-weight: 700;
    margin: 0 0 8px 0;
    color: var(--text-primary);
}

.dish-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--accent);
    margin: 0 0 12px 0;
}

.dish-description {
    font-size: 14px;
    line-height: 1.6;
    color: var(--text-secondary);
    margin: 0 0 16px 0;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 12px 16px;
    border: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 13px;
    letter-spacing: 0.5px;
    cursor: pointer;
    text-decoration: none;
    transition: all 0.2s;
    width: 100%;
}

.btn.btn-primary {
    background-color: var(--accent);
    color: var(--bg-primary);
}

.btn.btn-primary:hover {
    background-color: #00e65e;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 255, 102, 0.2);
}

/* ========================================
   DISH SUGGESTIONS CAROUSEL
   ======================================== */

.dishes-label {
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--text-secondary);
    text-transform: uppercase;
    margin: 24px 20px 12px 20px;
    padding: 0;
}

.dishes-carousel {
    display: flex;
    gap: 12px;
    padding: 0 20px 20px 20px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
}

.carousel-dish {
    flex: 0 0 100px;
    cursor: pointer;
    background-color: rgba(255, 255, 255, 0.02);
    border: 1px solid var(--border);
    border-radius: 6px;
    overflow: hidden;
    transition: all 0.2s;
}

.carousel-dish:hover {
    background-color: rgba(255, 255, 255, 0.05);
    border-color: var(--accent);
}

.carousel-dish-image {
    width: 100%;
    aspect-ratio: 1;
    background: linear-gradient(135deg, #1a1a1a 0%, #0b0b0b 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-dish-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.carousel-dish-name {
    font-size: 11px;
    font-weight: 600;
    padding: 6px;
    color: var(--text-primary);
    text-align: center;
    line-height: 1.3;
    min-height: 24px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ========================================
   SHARE MODAL
   ======================================== */

/* ========================================
   RELATED RESTAURANTS SECTION
   ======================================== */

.share-modal {
    max-width: 400px;
    width: 90vw;
    background-color: var(--bg-secondary);
    border: 1px solid var(--border);
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0,0,0,0.18);
}

.share-modal-content {
    padding: 32px 24px;
}

.share-title {
    font-size: 20px;
    font-weight: 700;
    margin: 0 0 24px;
    color: var(--text-primary);
}

.share-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    padding: 16px 12px;
    background-color: rgba(255, 255, 255, 0.05);
    border: 1px solid var(--border);
    border-radius: 8px;
    color: var(--text-secondary);
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.5px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.share-option:hover,
.share-option:active {
    background-color: rgba(255, 255, 255, 0.1);
    border-color: var(--accent);
    color: var(--accent);
    transform: translateY(-2px);
}

.share-option svg {
    width: 24px;
    height: 24px;
}

.related-restaurants-section {
    padding: 24px 20px;
    border-bottom: 1px solid var(--border);
}

.carousel-container {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.carousel-arrow {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
    background-color: rgba(0, 255, 102, 0.15);
    border: 2px solid var(--accent);
    color: var(--accent);
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 2;
}

.carousel-arrow:hover {
    background-color: var(--accent);
    color: var(--bg-primary);
    transform: scale(1.1);
}

.carousel-arrow:active {
    transform: scale(0.95);
}

.carousel-arrow-left {
    order: -1;
}

.carousel-arrow-right {
    order: 1;
}

.related-restaurants-carousel {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    padding: 16px 0;
    scroll-behavior: smooth;
    scrollbar-width: thin;
    scrollbar-color: var(--accent) rgba(255, 255, 255, 0.1);
    flex: 1;
    min-width: 0;
}

.related-restaurants-carousel::-webkit-scrollbar {
    height: 6px;
}

.related-restaurants-carousel::-webkit-scrollbar-track {
    background: rgba(255, 255, 255, 0.05);
    border-radius: 3px;
}

.related-restaurants-carousel::-webkit-scrollbar-thumb {
    background: var(--accent);
    border-radius: 3px;
}

.related-restaurants-carousel::-webkit-scrollbar-thumb:hover {
    background: rgba(0, 255, 102, 0.8);
}

.related-restaurant-card {
    flex: 0 0 140px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
    transition: all 0.2s ease;
    border-radius: 8px;
    overflow: hidden;
    border: 2px solid transparent;
    padding: 0;
}

.related-restaurant-card:hover {
    transform: translateY(-4px);
    border-color: var(--accent);
}

.related-restaurant-card.current {
    border-color: var(--accent);
    background-color: rgba(0, 255, 102, 0.1);
}

.related-restaurant-image {
    width: 140px;
    height: 140px;
    overflow: hidden;
    border-radius: 6px;
    background: linear-gradient(135deg, rgba(0, 255, 102, 0.15) 0%, rgba(0, 255, 102, 0.05) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.restaurant-placeholder {
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, rgba(0, 255, 102, 0.2) 0%, rgba(0, 255, 102, 0.1) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    font-weight: 700;
    color: var(--accent);
    border: 2px solid rgba(0, 255, 102, 0.3);
}

.related-restaurant-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.related-restaurant-card:hover .related-restaurant-image img {
    transform: scale(1.05);
}

.related-restaurant-info {
    padding: 0 8px 8px 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.related-restaurant-rank {
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    color: var(--accent);
    text-transform: uppercase;
}

.related-restaurant-name {
    font-size: 13px;
    font-weight: 600;
    color: var(--text-primary);
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    word-break: break-word;
}

.related-restaurant-score {
    font-size: 15px;
    font-weight: 700;
    color: var(--accent);
    margin-top: 2px;
}

.carousel-loading {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--text-secondary);
    font-size: 14px;
    min-width: 200px;
}

@media (max-width: 600px) {
    .related-restaurant-card {
        flex: 0 0 120px;
    }

    .related-restaurant-image {
        width: 120px;
        height: 120px;
    }
    
    .restaurant-placeholder {
        font-size: 40px;
    }
    
    .related-restaurant-name {
        font-size: 12px;
    }
    
    .related-restaurant-score {
        font-size: 14px;
    }
}

/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 600px) {
    .restaurant-info-section,
    .external-links-section,
    .menu-section {
        padding: 20px 16px;
    }

    .ratings-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .external-links {
        grid-template-columns: repeat(2, 1fr);
    }

    .menu-grid {
        grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    }

    .modal-overlay.active {
        align-items: center;
    }

    .dish-modal {
        max-width: 100%;
        max-height: 80vh;
        border-radius: 8px 8px 0 0;
    }
}

@media (max-width: 400px) {
    .section-title {
        font-size: 13px;
    }

    .rating-value {
        font-size: 20px;
    }

    .menu-grid {
        grid-template-columns: repeat(auto-fill, minmax(85px, 1fr));
        gap: 10px;
    }
}
