/* RestaurangMenyn design: Bootstrap 5.3 + this file. */

:root {
	--rm-brand: #1f7a3a;
	--rm-brand-dark: #17602d;
	--rm-brand-soft: #e8f3eb;
	--rm-ink: #1d2420;
	--rm-muted: #5d6862;
	--rm-line: #e3e7e4;
	--rm-bg: #f5f7f5;
	--rm-open: #1f7a3a;
	--rm-open-bg: #e6f4ea;
	--rm-closed: #b42318;
	--rm-closed-bg: #fdecea;
	--rm-radius: 14px;

	--bs-body-font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
	--bs-body-color: var(--rm-ink);
	--bs-body-bg: var(--rm-bg);
	--bs-link-color: var(--rm-brand);
	--bs-link-color-rgb: 31, 122, 58;
	--bs-link-hover-color: var(--rm-brand-dark);
	--bs-link-hover-color-rgb: 23, 96, 45;
	--bs-border-color: var(--rm-line);
}

body { -webkit-font-smoothing: antialiased; }
.min-w-0 { min-width: 0; }
h1, h2, h3 { font-weight: 700; letter-spacing: -0.01em; }
h1 { font-size: clamp(1.6rem, 1.2rem + 1.6vw, 2.25rem); }

.btn-brand {
	--bs-btn-color: #fff;
	--bs-btn-bg: var(--rm-brand);
	--bs-btn-border-color: var(--rm-brand);
	--bs-btn-hover-color: #fff;
	--bs-btn-hover-bg: var(--rm-brand-dark);
	--bs-btn-hover-border-color: var(--rm-brand-dark);
	--bs-btn-active-bg: var(--rm-brand-dark);
	--bs-btn-active-border-color: var(--rm-brand-dark);
	--bs-btn-focus-shadow-rgb: 31, 122, 58;
}
.btn-soft {
	--bs-btn-color: var(--rm-ink);
	--bs-btn-bg: #fff;
	--bs-btn-border-color: var(--rm-line);
	--bs-btn-hover-bg: var(--rm-bg);
	--bs-btn-hover-border-color: #cfd6d1;
	--bs-btn-active-bg: var(--rm-bg);
}

/* Header */
.site-header { background: #fff; border-bottom: 1px solid var(--rm-line); }
.site-header .logo img { height: 34px; width: auto; }
.site-header nav a { color: var(--rm-ink); text-decoration: none; font-weight: 500; }
.site-header nav a:hover { color: var(--rm-brand); }
.site-search { position: relative; min-width: 0; width: 100%; }
.site-search .fa-magnifying-glass { position: absolute; left: .85rem; top: 50%; transform: translateY(-50%); color: var(--rm-muted); }
.site-search input { padding-left: 2.3rem; border-radius: 999px; background: var(--rm-bg); }
@media (min-width: 768px) { .site-search { width: 320px; } }

.crumbs { font-size: .875rem; color: var(--rm-muted); }
.crumbs a { color: var(--rm-muted); text-decoration: none; }
.crumbs a:hover { color: var(--rm-brand); }

/* Status */
.status { display: inline-flex; align-items: center; gap: .35rem; font-weight: 600; font-size: .875rem; }
.status::before { content: ""; width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.status-open { color: var(--rm-open); }
.status-closed { color: var(--rm-closed); }
.status-unknown { color: var(--rm-muted); }
.status-unknown::before { display: none; }
.status .detail { font-weight: 400; color: var(--rm-muted); }
.status-pill { padding: .35rem .75rem; border-radius: 999px; font-size: .95rem; }
.status-pill.status-open { background: var(--rm-open-bg); }
.status-pill.status-closed { background: var(--rm-closed-bg); }

/* Chips */
.chips { display: flex; gap: .5rem; overflow-x: auto; padding-bottom: .25rem; scrollbar-width: thin; }
.chip {
	flex: 0 0 auto; display: inline-flex; align-items: center; gap: .35rem;
	padding: .35rem .8rem; border-radius: 999px; border: 1px solid var(--rm-line); background: #fff;
	color: var(--rm-ink); text-decoration: none; font-size: .875rem; white-space: nowrap;
}
.chip:hover { border-color: #c5cec8; color: var(--rm-ink); }
.chip.active { background: var(--rm-ink); border-color: var(--rm-ink); color: #fff; }
.chip.active-open { background: var(--rm-open-bg); border-color: var(--rm-open); color: var(--rm-open); font-weight: 600; }
.chip .count { color: var(--rm-muted); font-size: .8em; }
.chip.active .count { color: #c9d1cc; }

/* Restaurant card (listings) */
.rcard {
	position: relative; display: flex; gap: .9rem; align-items: center; height: 100%;
	padding: .9rem 1rem; background: #fff; border: 1px solid var(--rm-line); border-radius: var(--rm-radius);
	transition: border-color .15s, box-shadow .15s;
}
.rcard:hover { border-color: #c5cec8; box-shadow: 0 2px 10px rgba(29, 36, 32, .06); }
.rcard-featured { border-color: #b9dbc3; background: linear-gradient(0deg, #fff, #fff) padding-box; }
.rcard-icon {
	flex: 0 0 48px; height: 48px; border-radius: 12px; display: grid; place-items: center;
	background: var(--rm-brand-soft); color: var(--rm-brand); font-size: 1.25rem;
}
.rcard-body { min-width: 0; flex: 1; }
.rcard-title { font-size: 1.05rem; font-weight: 650; margin: 0 0 .15rem; }
.rcard-title a { color: var(--rm-ink); text-decoration: none; }
.rcard-meta { font-size: .85rem; color: var(--rm-muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.rcard-call { position: relative; z-index: 2; flex: 0 0 auto; width: 40px; height: 40px; padding: 0; display: grid; place-items: center; }
.rating { color: #a16207; font-weight: 600; }

/* Restaurant page */
.rhead { background: #fff; border: 1px solid var(--rm-line); border-radius: var(--rm-radius); padding: 1.25rem; }
@media (min-width: 768px) { .rhead { padding: 1.75rem 2rem; } }
.rhead .rcard-icon { flex-basis: 64px; height: 64px; font-size: 1.6rem; border-radius: 16px; }
.panel { background: #fff; border: 1px solid var(--rm-line); border-radius: var(--rm-radius); padding: 1.25rem; }
.panel h2 { font-size: 1.1rem; margin-bottom: .9rem; }
.hours-table td { padding: .45rem 0; border-bottom: 1px solid var(--rm-line); }
.hours-table tr:last-child td { border-bottom: 0; }
.hours-table td:last-child { text-align: right; font-variant-numeric: tabular-nums; }
.hours-table tr.today td { font-weight: 700; }
.menu-group { font-size: 1rem; font-weight: 650; margin: 1.1rem 0 .5rem; color: var(--rm-ink); }
.menu-group:first-of-type { margin-top: 0; }
.dish-list { list-style: none; padding: 0; margin: 0; columns: 1; column-gap: 2rem; }
@media (min-width: 576px) { .dish-list { columns: 2; } }
.dish-list li { break-inside: avoid; padding: .35rem 0; border-bottom: 1px solid var(--rm-line); }
.dish-desc { display: block; font-size: .85rem; color: var(--rm-muted); line-height: 1.35; }
.map-frame { width: 100%; height: 260px; border: 0; border-radius: 10px; background: var(--rm-bg); }

/* Mobile action bar on restaurant pages */
.action-bar {
	position: fixed; left: 0; right: 0; bottom: 0; z-index: 1030; display: flex; gap: .5rem;
	padding: .6rem .75rem calc(.6rem + env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid var(--rm-line);
	box-shadow: 0 -4px 16px rgba(29, 36, 32, .06);
}
.action-bar .btn { flex: 1; }
@media (max-width: 767.98px) { body.has-action-bar { padding-bottom: 76px; } }

/* Start page */
.hero { padding: 1.5rem 0 .5rem; max-width: 640px; }
.hero-search .fa-magnifying-glass { left: 1.1rem; }
.hero-search input { padding-left: 2.8rem; background: #fff; }
.city-card {
	display: flex; flex-direction: column; gap: .15rem; height: 100%; padding: 1rem 1.1rem;
	background: #fff; border: 1px solid var(--rm-line); border-radius: var(--rm-radius);
	color: var(--rm-ink); text-decoration: none; transition: border-color .15s, box-shadow .15s;
}
.city-card:hover { border-color: #c5cec8; box-shadow: 0 2px 10px rgba(29, 36, 32, .06); color: var(--rm-ink); }
.city-name { font-weight: 650; font-size: 1.05rem; }
.city-count { font-size: .85rem; color: var(--rm-muted); }
.city-group { display: flex; gap: 1rem; padding: .6rem 0; border-bottom: 1px solid var(--rm-line); }
.city-group:last-child { border-bottom: 0; }
.city-letter { flex: 0 0 1.5rem; font-weight: 700; color: var(--rm-muted); }
.city-links { display: flex; flex-wrap: wrap; gap: .25rem 1rem; }
.city-links a { color: var(--rm-ink); text-decoration: none; }
.city-links a:hover { color: var(--rm-brand); text-decoration: underline; }

/* Ads: reserve space so the page doesn't jump when an ad loads */
.ad-slot { min-height: 120px; }

.site-footer { border-top: 1px solid var(--rm-line); background: #fff; color: var(--rm-muted); font-size: .875rem; }
.site-footer a { color: var(--rm-muted); }

.pagination { --bs-pagination-active-bg: var(--rm-ink); --bs-pagination-active-border-color: var(--rm-ink); --bs-pagination-color: var(--rm-ink); }
