/* ========================================
   RESTAURANGKARTA.SE — Design System
   Clean, modern, food-themed minimalist
   ======================================== */

/* ---------- Reset & Base ---------- */
*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
    --font: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
    --primary: #2C3E50;
    --primary-light: #34495E;
    --accent: #E67E22;
    --accent-light: #F39C12;
    --accent-dark: #D35400;
    --bg: #F8F9FA;
    --bg-white: #FFFFFF;
    --text: #2D2D2D;
    --text-light: #6B7280;
    --text-lighter: #9CA3AF;
    --border: #E5E7EB;
    --border-light: #F3F4F6;
    --green: #27AE60;
    --green-light: #EAFAF1;
    --red: #E74C3C;
    --star: #F1C40F;
    --radius: 12px;
    --radius-sm: 8px;
    --shadow: 0 1px 3px rgba(0,0,0,0.08), 0 1px 2px rgba(0,0,0,0.04);
    --shadow-md: 0 4px 12px rgba(0,0,0,0.08);
    --shadow-lg: 0 8px 30px rgba(0,0,0,0.1);
    --max-width: 1200px;
    --transition: 0.2s ease;
}

html { scroll-behavior: smooth; }
body { font-family: var(--font); background: var(--bg); color: var(--text); line-height: 1.7; font-size: 16px; -webkit-font-smoothing: antialiased; }
a { color: var(--accent-dark); text-decoration: none; transition: color var(--transition); }
a:hover { color: var(--accent); }
img { max-width: 100%; height: auto; display: block; }
ul, ol { padding-left: 1.5rem; }

/* ---------- Header ---------- */
.site-header { background: var(--primary); color: #fff; position: sticky; top: 0; z-index: 1000; box-shadow: 0 2px 8px rgba(0,0,0,0.15); }
.header-inner { max-width: var(--max-width); margin: 0 auto; padding: 0 1.5rem; display: flex; align-items: center; justify-content: space-between; height: 60px; }
.site-logo { color: #fff; font-weight: 800; font-size: 1.25rem; display: flex; align-items: center; gap: 0.5rem; text-decoration: none; }
.logo-icon { font-size: 1.4rem; }
.nav-links { display: flex; gap: 0.25rem; }
.nav-links a { color: rgba(255,255,255,0.85); padding: 0.4rem 0.8rem; border-radius: var(--radius-sm); font-size: 0.9rem; font-weight: 500; transition: all var(--transition); }
.nav-links a:hover, .nav-links a.active { color: #fff; background: rgba(255,255,255,0.15); }
.mobile-menu-btn { display: none; background: none; border: none; color: #fff; font-size: 1.5rem; cursor: pointer; }

/* ---------- Hero ---------- */
.hero { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); color: #fff; padding: 4rem 1.5rem 3.5rem; text-align: center; }
.hero h1 { font-size: 2.4rem; font-weight: 800; margin-bottom: 0.75rem; letter-spacing: -0.5px; }
.hero p { font-size: 1.15rem; opacity: 0.9; max-width: 600px; margin: 0 auto 2rem; }
.search-box { max-width: 560px; margin: 0 auto; position: relative; }
.search-box input { width: 100%; padding: 1rem 1.2rem 1rem 3rem; border: none; border-radius: 50px; font-size: 1rem; font-family: var(--font); box-shadow: var(--shadow-lg); outline: none; }
.search-box input::placeholder { color: var(--text-lighter); }
.search-icon { position: absolute; left: 1.1rem; top: 50%; transform: translateY(-50%); font-size: 1.2rem; color: var(--text-light); pointer-events: none; }

/* ---------- Main Content ---------- */
.page-content { max-width: var(--max-width); margin: 0 auto; padding: 2rem 1.5rem 3rem; }
.section-title { font-size: 1.5rem; font-weight: 700; margin-bottom: 1.5rem; color: var(--primary); display: flex; align-items: center; gap: 0.5rem; }
.section-title .icon { font-size: 1.3rem; }

/* ---------- Breadcrumbs ---------- */
.breadcrumb { font-size: 0.85rem; color: var(--text-light); margin-bottom: 1.5rem; }
.breadcrumb a { color: var(--accent-dark); }
.breadcrumb span { margin: 0 0.3rem; color: var(--text-lighter); }

/* ---------- Restaurant Cards ---------- */
.restaurant-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(340px, 1fr)); gap: 1.5rem; margin-bottom: 2.5rem; }
.restaurant-card { background: var(--bg-white); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); transition: transform var(--transition), box-shadow var(--transition); border: 1px solid var(--border-light); }
.restaurant-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-md); }
.card-image { width: 100%; height: 200px; object-fit: cover; background: var(--border-light); }
.card-body { padding: 1.2rem 1.4rem 1.4rem; }
.card-cuisine { display: inline-block; font-size: 0.75rem; font-weight: 600; color: var(--accent-dark); background: #FFF3E0; padding: 0.2rem 0.6rem; border-radius: 20px; margin-bottom: 0.5rem; text-transform: uppercase; letter-spacing: 0.5px; }
.card-title { font-size: 1.15rem; font-weight: 700; margin-bottom: 0.4rem; color: var(--text); }
.card-title a { color: inherit; }
.card-title a:hover { color: var(--accent-dark); }
.card-meta { font-size: 0.85rem; color: var(--text-light); display: flex; flex-wrap: wrap; gap: 0.8rem; align-items: center; }
.card-rating { color: var(--star); font-weight: 600; }
.card-location { display: flex; align-items: center; gap: 0.25rem; }

/* ---------- Category Tags ---------- */
.tag-grid { display: flex; flex-wrap: wrap; gap: 0.75rem; margin-bottom: 2.5rem; }
.tag-link { display: inline-flex; align-items: center; gap: 0.4rem; padding: 0.5rem 1rem; background: var(--bg-white); border: 1px solid var(--border); border-radius: 50px; font-size: 0.9rem; font-weight: 500; color: var(--text); transition: all var(--transition); }
.tag-link:hover { border-color: var(--accent); color: var(--accent-dark); background: #FFF3E0; }

/* ---------- Restaurant Detail Page ---------- */
.restaurant-hero { background: linear-gradient(135deg, var(--primary) 0%, var(--primary-light) 100%); color: #fff; padding: 2.5rem 1.5rem 2rem; }
.restaurant-hero-inner { max-width: var(--max-width); margin: 0 auto; }
.restaurant-hero h1 { font-size: 2rem; font-weight: 800; margin-bottom: 0.5rem; }
.restaurant-hero .cuisine-tag { background: rgba(255,255,255,0.2); color: #fff; padding: 0.3rem 0.8rem; border-radius: 20px; font-size: 0.8rem; font-weight: 600; display: inline-block; margin-right: 0.5rem; }
.restaurant-hero .rating-display { margin-top: 0.75rem; font-size: 1.1rem; display: flex; align-items: center; gap: 0.5rem; }
.restaurant-hero .stars { color: var(--star); }

/* ---------- Quick Info Box ---------- */
.quick-info { background: var(--bg-white); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 2rem; box-shadow: var(--shadow); border: 1px solid var(--border-light); display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; }
.info-item { display: flex; align-items: flex-start; gap: 0.6rem; }
.info-item .info-icon { font-size: 1.2rem; flex-shrink: 0; margin-top: 0.1rem; }
.info-item .info-label { font-size: 0.75rem; color: var(--text-light); text-transform: uppercase; letter-spacing: 0.3px; font-weight: 600; }
.info-item .info-value { font-size: 0.95rem; font-weight: 500; color: var(--text); }

/* ---------- Menu Section ---------- */
.menu-section { background: var(--bg-white); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 2rem; box-shadow: var(--shadow); border: 1px solid var(--border-light); }
.menu-section h2 { font-size: 1.3rem; margin-bottom: 1.2rem; color: var(--primary); display: flex; align-items: center; gap: 0.5rem; }
.menu-category { margin-bottom: 1.5rem; }
.menu-category:last-child { margin-bottom: 0; }
.menu-category h3 { font-size: 1.05rem; font-weight: 700; color: var(--accent-dark); margin-bottom: 0.75rem; padding-bottom: 0.4rem; border-bottom: 2px solid #FFF3E0; }
.menu-item { display: flex; justify-content: space-between; align-items: baseline; padding: 0.5rem 0; border-bottom: 1px dashed var(--border); }
.menu-item:last-child { border-bottom: none; }
.menu-item-name { font-weight: 500; font-size: 0.95rem; flex: 1; }
.menu-item-desc { font-size: 0.82rem; color: var(--text-light); margin-top: 0.15rem; }
.menu-item-price { font-weight: 700; color: var(--primary); white-space: nowrap; margin-left: 1rem; font-size: 0.95rem; }

/* ---------- Review Cards ---------- */
.reviews-section { margin-bottom: 2rem; }
.reviews-section h2 { font-size: 1.3rem; margin-bottom: 1.2rem; color: var(--primary); display: flex; align-items: center; gap: 0.5rem; }
.review-card { background: var(--bg-white); border-radius: var(--radius); padding: 1.2rem 1.4rem; margin-bottom: 1rem; box-shadow: var(--shadow); border: 1px solid var(--border-light); }
.review-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 0.5rem; }
.review-author { font-weight: 600; font-size: 0.95rem; }
.review-stars { color: var(--star); font-size: 0.9rem; }
.review-text { font-size: 0.92rem; color: var(--text); line-height: 1.6; font-style: italic; }
.review-source { font-size: 0.78rem; color: var(--text-lighter); margin-top: 0.4rem; }

/* ---------- Map Embed ---------- */
.map-container { border-radius: var(--radius); overflow: hidden; margin-bottom: 2rem; box-shadow: var(--shadow); border: 1px solid var(--border-light); }
.map-container iframe { width: 100%; height: 350px; border: none; }

/* ---------- Article Body ---------- */
.article-body { margin-bottom: 2rem; }
.article-body h2 { font-size: 1.3rem; font-weight: 700; color: var(--primary); margin: 2rem 0 0.75rem; padding-bottom: 0.4rem; border-bottom: 2px solid var(--border-light); }
.article-body h3 { font-size: 1.1rem; font-weight: 600; color: var(--primary-light); margin: 1.5rem 0 0.5rem; }
.article-body p { margin-bottom: 1rem; color: var(--text); }
.article-body ul, .article-body ol { margin-bottom: 1rem; }
.article-body li { margin-bottom: 0.3rem; }
.article-body table { width: 100%; border-collapse: collapse; margin: 1rem 0 1.5rem; background: var(--bg-white); border-radius: var(--radius-sm); overflow: hidden; box-shadow: var(--shadow); }
.article-body th { background: var(--primary); color: #fff; padding: 0.7rem 1rem; text-align: left; font-size: 0.85rem; font-weight: 600; }
.article-body td { padding: 0.6rem 1rem; border-bottom: 1px solid var(--border); font-size: 0.9rem; }
.article-body tr:last-child td { border-bottom: none; }
.article-body tr:nth-child(even) td { background: var(--bg); }

/* ---------- Info Boxes ---------- */
.info-box { padding: 1rem 1.2rem; border-radius: var(--radius-sm); margin: 1rem 0 1.5rem; font-size: 0.92rem; }
.info-box.tip { background: #FFF3E0; border-left: 4px solid var(--accent); }
.info-box.warning { background: #FFF3E0; border-left: 4px solid var(--red); }

/* ---------- FAQ Section ---------- */
.faq-section { margin-bottom: 2rem; }
.faq-item { border: 1px solid var(--border); border-radius: var(--radius-sm); margin-bottom: 0.5rem; overflow: hidden; background: var(--bg-white); }
.faq-question { width: 100%; padding: 1rem 1.2rem; background: none; border: none; text-align: left; font-size: 0.95rem; font-weight: 600; cursor: pointer; font-family: var(--font); color: var(--text); display: flex; justify-content: space-between; align-items: center; }
.faq-question::after { content: '+'; font-size: 1.2rem; color: var(--accent); font-weight: 400; transition: transform var(--transition); }
.faq-item.open .faq-question::after { content: '−'; }
.faq-answer { max-height: 0; overflow: hidden; transition: max-height 0.3s ease; }
.faq-item.open .faq-answer { max-height: 500px; }
.faq-answer p { padding: 0 1.2rem 1rem; font-size: 0.9rem; color: var(--text-light); }

/* ---------- Related Restaurants ---------- */
.related-section { background: var(--bg-white); border-radius: var(--radius); padding: 1.5rem; margin-bottom: 2rem; box-shadow: var(--shadow); border: 1px solid var(--border-light); }
.related-section h3 { font-size: 1.1rem; font-weight: 700; color: var(--primary); margin-bottom: 1rem; }
.related-section ul { list-style: none; padding: 0; }
.related-section li { margin-bottom: 0.5rem; }
.related-section a { display: flex; align-items: center; gap: 0.5rem; padding: 0.5rem 0.75rem; border-radius: var(--radius-sm); transition: background var(--transition); color: var(--text); }
.related-section a:hover { background: var(--bg); color: var(--accent-dark); }

/* ---------- Footer ---------- */
.site-footer { background: var(--primary); color: rgba(255,255,255,0.85); padding: 3rem 1.5rem 1.5rem; margin-top: 2rem; }
.footer-inner { max-width: var(--max-width); margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 2rem; }
.footer-brand h3 { color: #fff; font-size: 1.2rem; margin-bottom: 0.5rem; }
.footer-brand p { font-size: 0.85rem; opacity: 0.8; }
.footer-col h4 { color: #fff; font-size: 0.9rem; margin-bottom: 0.75rem; }
.footer-col ul { list-style: none; padding: 0; }
.footer-col li { margin-bottom: 0.4rem; }
.footer-col a { color: rgba(255,255,255,0.7); font-size: 0.85rem; }
.footer-col a:hover { color: #fff; }
.footer-bottom { max-width: var(--max-width); margin: 2rem auto 0; padding-top: 1.5rem; border-top: 1px solid rgba(255,255,255,0.15); text-align: center; font-size: 0.82rem; color: rgba(255,255,255,0.5); }

/* ---------- Hero Image ---------- */
.restaurant-hero-img { width: 100%; height: 320px; object-fit: cover; border-radius: 0; }
@media (max-width: 768px) { .restaurant-hero-img { height: 200px; } }

/* ---------- Photo Gallery ---------- */
.gallery-section { margin-bottom: 2rem; }
.gallery-section h2 { font-size: 1.3rem; margin-bottom: 1rem; color: var(--primary); display: flex; align-items: center; gap: 0.5rem; }
.gallery-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0.75rem; }
.gallery-item { border-radius: var(--radius-sm); overflow: hidden; cursor: pointer; position: relative; aspect-ratio: 4/3; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s ease; }
.gallery-item:hover img { transform: scale(1.05); }
.gallery-caption { position: absolute; bottom: 0; left: 0; right: 0; background: linear-gradient(transparent, rgba(0,0,0,0.7)); color: #fff; padding: 0.5rem 0.75rem; font-size: 0.8rem; font-weight: 500; }
.lightbox { display: none; position: fixed; top: 0; left: 0; width: 100%; height: 100%; background: rgba(0,0,0,0.9); z-index: 9999; align-items: center; justify-content: center; padding: 2rem; }
.lightbox.active { display: flex; }
.lightbox img { max-width: 90%; max-height: 85vh; object-fit: contain; border-radius: var(--radius); }
.lightbox-close { position: absolute; top: 1.5rem; right: 2rem; color: #fff; font-size: 2rem; cursor: pointer; background: none; border: none; z-index: 10000; }
.lightbox-caption { position: absolute; bottom: 2rem; left: 50%; transform: translateX(-50%); color: #fff; font-size: 1rem; text-align: center; }
@media (max-width: 768px) { .gallery-grid { grid-template-columns: repeat(2, 1fr); } }
@media (max-width: 480px) { .gallery-grid { grid-template-columns: 1fr 1fr; gap: 0.5rem; } }

/* ---------- Ad Slots ---------- */
.ad-slot { background: var(--border-light); border: 1px dashed var(--border); border-radius: var(--radius-sm); padding: 1.5rem; text-align: center; margin: 2rem 0; font-size: 0.8rem; color: var(--text-lighter); min-height: 90px; display: flex; align-items: center; justify-content: center; }

/* ---------- Mobile ---------- */
@media (max-width: 768px) {
    .mobile-menu-btn { display: block; }
    .nav-links { display: none; position: absolute; top: 60px; left: 0; right: 0; background: var(--primary); flex-direction: column; padding: 1rem; gap: 0.25rem; box-shadow: var(--shadow-lg); }
    .nav-links.open { display: flex; }
    .nav-links a { padding: 0.7rem 1rem; }
    .hero h1 { font-size: 1.7rem; }
    .hero p { font-size: 1rem; }
    .restaurant-grid { grid-template-columns: 1fr; }
    .footer-inner { grid-template-columns: 1fr; gap: 1.5rem; }
    .quick-info { grid-template-columns: 1fr 1fr; }
    .restaurant-hero h1 { font-size: 1.5rem; }
}

@media (max-width: 480px) {
    .quick-info { grid-template-columns: 1fr; }
    .tag-grid { gap: 0.5rem; }
    .card-image { height: 160px; }
}
