/* Fonts are loaded via <link> in includes/head.php (faster than @import). */

:root {
    --color-bg-image: url('../assets/images/dinemap-greek-restaurants.webp');
    --color-mask: rgba(250, 246, 240, 0.38);
    --color-olive-soft: rgba(101, 126, 78, 0.18);
    --color-chocolate: #2b221e;
    --color-olive: #657e4e;
    --color-red: #d12c2c;
    --color-cream: #faf6f0;
    --color-divider: #eadecc;
    --color-text: #2b221e;
    --color-muted: #6b5e54;
    --shadow-soft: 0 10px 30px rgba(43, 34, 30, 0.12);
    --shadow-card: 0 8px 24px rgba(43, 34, 30, 0.10);
    --radius-capsule: 30px;
    --transition: 0.3s ease;
}

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

[hidden] {
    display: none !important;
}

.skip-link {
    position: absolute;
    top: -48px;
    left: 16px;
    z-index: 200;
    padding: 10px 18px;
    background: var(--color-chocolate);
    color: #fff;
    border-radius: 0 0 12px 12px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: top 0.2s ease;
}

.skip-link:focus {
    top: 0;
}

.brand-accent {
    color: var(--color-red);
}

a:focus-visible,
button:focus-visible,
.result-card:focus-visible {
    outline: 2px solid var(--color-olive);
    outline-offset: 2px;
}

img {
    border: none;
    outline: none;
    box-shadow: none;
}

html {
    scroll-behavior: smooth;
    overflow-y: scroll;
}

body {
    font-family: 'Poppins', system-ui, -apple-system, sans-serif;
    color: var(--color-text);
    min-height: 100vh;
    line-height: 1.6;
    position: relative;
    overflow-x: hidden;
}

body::before {
    content: '';
    position: fixed;
    inset: 0;
    background: var(--color-bg-image) center var(--bg-y, center) / cover no-repeat;
    filter: blur(var(--bg-blur, 0px));
    z-index: -2;
    transition: filter 0.15s linear;
}

@media (max-width: 768px) {
    body::before {
        background-size: 100% auto;
        background-position: center top;
    }
}

body::after {
    content: '';
    position: fixed;
    inset: 0;
    background-color: var(--color-mask);
    z-index: -1;
    pointer-events: none;
}

/* =================== HEADER / NAVBAR =================== */
.site-header {
    position: fixed;
    top: 16px;
    left: 50%;
    transform: translateX(-50%);
    width: calc(100% - 32px);
    max-width: 1180px;
    z-index: 100;
}

.navbar {
    position: relative;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 12px 22px;
    background: rgba(255, 255, 255, 0.18);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    border: 1px solid rgba(255, 255, 255, 0.45);
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--color-chocolate);
    font-family: 'Fredoka', 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.35rem;
    letter-spacing: 0.3px;
    transition: var(--transition);
}

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

.brand-logo {
    height: 42px;
    width: auto;
    display: block;
    transition: var(--transition);
}

.brand:hover .brand-logo {
    transform: scale(1.04);
}

.footer-brand .brand-logo {
    height: 44px;
}

.nav-menu {
    list-style: none;
    display: flex;
    align-items: center;
    gap: 6px;
}

.nav-menu a {
    text-decoration: none;
    color: var(--color-chocolate);
    font-weight: 500;
    font-size: 0.95rem;
    padding: 8px 16px;
    border-radius: 999px;
    transition: var(--transition);
}

.nav-menu a:hover,
.nav-menu a.active {
    background: rgba(43, 34, 30, 0.08);
    color: var(--color-red);
    transform: translateY(-2px);
}

.burger {
    display: none;
    background: transparent;
    border: 0;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    cursor: pointer;
    align-items: center;
    justify-content: center;
    transition: var(--transition);
}

.lang-switch {
    display: inline-flex;
    align-items: center;
    gap: 2px;
    background: rgba(255, 255, 255, 0.35);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 999px;
    padding: 3px;
    margin: 0 6px;
}

.lang-btn {
    text-decoration: none;
    color: var(--color-chocolate);
    font-weight: 600;
    font-size: 0.8rem;
    padding: 6px 12px;
    border-radius: 999px;
    transition: var(--transition);
    line-height: 1;
}

.lang-btn:hover {
    background: rgba(101, 126, 78, 0.15);
    color: var(--color-olive);
}

.lang-btn.is-active {
    background: var(--color-olive);
    color: #fff;
    box-shadow: 0 2px 6px rgba(101, 126, 78, 0.4);
}

.burger:hover {
    background: rgba(43, 34, 30, 0.08);
}

.burger span {
    position: relative;
    display: block;
    width: 22px;
    height: 2px;
    background: var(--color-chocolate);
    border-radius: 2px;
    transition: var(--transition);
}

.burger span::before,
.burger span::after {
    content: '';
    position: absolute;
    left: 0;
    width: 22px;
    height: 2px;
    background: var(--color-chocolate);
    border-radius: 2px;
    transition: var(--transition);
}

.burger span::before { top: -7px; }
.burger span::after  { top: 7px; }

.burger.is-open span { background: transparent; }
.burger.is-open span::before { top: 0; transform: rotate(45deg); }
.burger.is-open span::after  { top: 0; transform: rotate(-45deg); }

/* =================== HERO =================== */
.hero {
    min-height: 100vh;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 140px 20px 80px;
}

.eyebrow {
    display: inline-block;
    color: var(--color-olive);
    text-transform: uppercase;
    letter-spacing: 4px;
    font-size: 0.78rem;
    font-weight: 600;
    margin-bottom: 18px;
    padding: 6px 14px;
    border: 1px solid rgba(101, 126, 78, 0.35);
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.hero-title {
    font-family: 'Fredoka', 'Poppins', sans-serif;
    font-weight: 700;
    color: var(--color-chocolate);
    font-size: clamp(2.8rem, 8vw, 6.5rem);
    line-height: 1.02;
    letter-spacing: -1.5px;
    margin-bottom: 18px;
}

.hero-title .accent { color: var(--color-red); }

.hero-sub {
    max-width: 640px;
    color: var(--color-muted);
    font-size: clamp(1rem, 1.6vw, 1.15rem);
    margin-bottom: 42px;
}

/* =================== DUAL SEARCH CAPSULE =================== */
.search-form {
    width: 100%;
    max-width: 720px;
    background: #fff;
    border-radius: var(--radius-capsule);
    box-shadow: var(--shadow-soft);
    display: flex;
    align-items: stretch;
    padding: 8px;
    transition: var(--transition);
}

.search-form:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 40px rgba(43, 34, 30, 0.18);
}

.search-field {
    flex: 1;
    display: flex;
    align-items: center;
    padding: 10px 18px;
    position: relative;
}

.search-field + .search-field::before {
    content: '';
    position: absolute;
    left: 0;
    top: 18%;
    bottom: 18%;
    width: 1px;
    background: var(--color-divider);
}

.search-icon {
    flex: 0 0 22px;
    color: var(--color-olive);
    margin-right: 10px;
    display: grid;
    place-items: center;
}

.search-icon svg {
    width: 20px;
    height: 20px;
    stroke: currentColor;
    fill: none;
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.search-field input,
.search-field select {
    flex: 1;
    border: 1px solid transparent;
    border-right: 1px solid transparent;
    outline: 0;
    background: transparent;
    font-family: inherit;
    font-size: 1rem;
    color: var(--color-text);
    width: 100%;
    padding: 6px 10px;
    appearance: none;
    -webkit-appearance: none;
    border-radius: 10px;
    transition: var(--transition);
}

.search-field input::placeholder {
    color: #8a7b6e;
}

.search-field input,
.search-field select {
    caret-color: var(--color-olive);
}

.search-field input::selection,
.search-field select::selection {
    background: var(--color-olive);
    color: #fff;
}

.search-field input:hover,
.search-field select:hover {
    border-color: var(--color-olive);
    border-right-color: var(--color-olive);
    background: var(--color-olive-soft);
}

.search-field input:focus,
.search-field select:focus {
    border-color: var(--color-olive);
    border-right-color: var(--color-olive);
    background: var(--color-olive-soft);
    box-shadow: 0 0 0 3px rgba(101, 126, 78, 0.18);
}

/* Kill Chrome autofill yellow */
input:-webkit-autofill,
input:-webkit-autofill:hover,
input:-webkit-autofill:focus,
input:-webkit-autofill:active {
    -webkit-box-shadow: 0 0 0 1000px #fff inset !important;
    -webkit-text-fill-color: var(--color-text) !important;
    caret-color: var(--color-olive);
    border-radius: 10px;
}

/* =================== CUSTOM SELECT =================== */
.custom-select {
    flex: 1;
    position: relative;
    width: 100%;
}

.select-trigger {
    display: flex;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 6px 36px 6px 14px;
    border: 1.5px solid var(--color-olive);
    border-radius: 20px;
    background: transparent;
    font-family: inherit;
    font-size: 1rem;
    color: var(--color-text);
    cursor: pointer;
    transition: var(--transition);
    position: relative;
}

.select-trigger:hover {
    background: var(--color-olive-soft);
}

.select-trigger:focus-visible {
    outline: 2px solid var(--color-olive);
    outline-offset: 2px;
}

.select-label {
    flex: 1;
    text-align: left;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.select-arrow {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: var(--color-olive);
    stroke-width: 2.5;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
    transition: transform 0.3s ease;
    position: absolute;
    right: 10px;
    top: 50%;
    margin-top: -9px;
    pointer-events: none;
}

.select-trigger.is-open .select-arrow {
    transform: rotate(180deg);
}

.select-options {
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 100;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    list-style: none;
    padding: 6px;
    margin: 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-6px);
    transition: opacity 0.25s ease, transform 0.25s ease, visibility 0.25s;
}

.select-options.is-open {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.select-option {
    padding: 10px 14px;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: var(--color-text);
    cursor: pointer;
    transition: background 0.2s ease, color 0.2s ease;
}

.select-option:hover,
.select-option:focus {
    background: var(--color-olive);
    color: #fff;
    outline: none;
}

.select-option.is-active {
    background: var(--color-olive-soft);
    color: var(--color-olive);
    font-weight: 600;
}

.select-option.is-active:hover {
    background: var(--color-olive);
    color: #fff;
}

.search-submit {
    flex: 0 0 56px;
    width: 56px;
    height: 56px;
    border-radius: 50%;
    border: 0;
    background: var(--color-red);
    color: #fff;
    cursor: pointer;
    display: grid;
    place-items: center;
    box-shadow: 0 6px 16px rgba(209, 44, 44, 0.35);
    transition: var(--transition);
    align-self: center;
}

.search-submit:hover {
    transform: translateY(-3px);
    background: #b91d1d;
    box-shadow: 0 10px 22px rgba(209, 44, 44, 0.45);
}

.search-submit svg {
    width: 22px;
    height: 22px;
    stroke: #fff;
    fill: none;
    stroke-width: 2.4;
    stroke-linecap: round;
    stroke-linejoin: round;
}

/* =================== CITY INPUT + AUTOCOMPLETE =================== */
.input-wrapper {
    flex: 1;
    position: relative;
    width: 100%;
}

.input-wrapper input {
    width: 100%;
    border: 1px solid transparent;
    outline: 0;
    background: transparent;
    font-family: inherit;
    font-size: 1rem;
    color: var(--color-text);
    padding: 6px 10px;
    appearance: none;
    -webkit-appearance: none;
    border-radius: 10px;
    transition: var(--transition);
    caret-color: var(--color-olive);
}

.input-wrapper input::placeholder {
    color: #8a7b6e;
}

.input-wrapper input:hover {
    border-color: var(--color-olive);
    background: var(--color-olive-soft);
}

.input-wrapper input:focus {
    border-color: var(--color-olive);
    background: var(--color-olive-soft);
    box-shadow: 0 0 0 3px rgba(101, 126, 78, 0.18);
}

.city-suggestions {
    display: none;
    position: absolute;
    top: calc(100% + 6px);
    left: 0;
    right: 0;
    z-index: 100;
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow-soft);
    list-style: none;
    padding: 6px;
    margin: 0;
    max-height: 280px;
    overflow-y: auto;
}

.city-suggestions.is-open {
    display: block;
    animation: cityFadeIn 0.2s ease both;
}

.city-suggestions li {
    list-style: none;
    padding: 10px 14px;
    margin: 0;
    border-radius: 12px;
    font-family: 'Poppins', sans-serif;
    font-size: 0.95rem;
    color: var(--color-text);
    cursor: pointer;
    text-align: left;
    transition: background 0.2s ease, color 0.2s ease;
}

.city-suggestions li:hover,
.city-suggestions li.is-active {
    background: var(--color-olive);
    color: #fff;
}

@keyframes cityFadeIn {
    from { opacity: 0; transform: translateY(-6px); }
    to   { opacity: 1; transform: translateY(0); }
}

/* =================== NEAR ME BUTTON =================== */
.near-me-btn {
    flex: 0 0 auto;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    align-self: center;
    margin-right: 8px;
    padding: 10px 18px;
    border: 1.5px solid var(--color-olive);
    border-radius: 999px;
    background: transparent;
    color: var(--color-olive);
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: var(--transition);
}

.near-me-btn:hover:not(:disabled) {
    background: var(--color-olive);
    color: #fff;
    transform: translateY(-2px);
}

.near-me-btn:disabled {
    opacity: 0.6;
    cursor: wait;
}

.near-me-btn svg {
    width: 17px;
    height: 17px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linecap: round;
    flex-shrink: 0;
}

.empty-state {
    text-align: center;
    padding: 50px 30px;
    background: #fff;
    border-radius: 18px;
    box-shadow: var(--shadow-card);
}

.empty-state-icon {
    margin-bottom: 16px;
}

.empty-state-icon svg {
    width: 60px;
    height: 60px;
}

.empty-state-title {
    font-family: 'Fredoka', 'Poppins', sans-serif;
    font-size: 1.3rem;
    color: var(--color-chocolate);
    margin-bottom: 8px;
    line-height: 1.3;
}

.empty-state-text {
    font-size: 0.9rem;
    color: var(--color-muted);
    line-height: 1.6;
    max-width: 380px;
    margin: 0 auto;
}

.empty-state-reset {
    display: inline-block;
    margin-top: 18px;
    padding: 9px 22px;
    border: 1.5px solid var(--color-olive);
    border-radius: 999px;
    color: var(--color-olive);
    font-size: 0.88rem;
    font-weight: 600;
    text-decoration: none;
    transition: var(--transition);
}

.empty-state-reset:hover {
    background: var(--color-olive);
    color: #fff;
    transform: translateY(-2px);
}

/* =================== FOOTER =================== */
.site-footer {
    margin-top: 40px;
    background: rgba(43, 34, 30, 0.92);
    backdrop-filter: blur(14px);
    -webkit-backdrop-filter: blur(14px);
    color: #f1e8db;
    padding: 60px 20px 24px;
    position: relative;
    overflow: hidden;
}

.site-footer::before {
    content: '';
    position: absolute;
    top: 0; left: 0; right: 0;
    height: 3px;
    background: linear-gradient(90deg, var(--color-red), var(--color-olive));
}

.footer-grid {
    max-width: 1180px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1.2fr 2.8fr;
    gap: 28px;
}

.footer-right {
    display: grid;
    grid-template-columns: 1fr 1fr 1.1fr;
    gap: 10px;
    padding: 18px 22px;
}

.footer-right .footer-col {
    padding: 0;
    background: none;
    border-radius: 0;
}

.footer-right .footer-col .footer-h {
    margin-top: 0;
}

.footer-col .footer-h {
    font-family: 'Fredoka', 'Poppins', sans-serif;
    color: #fff;
    font-size: 1.1rem;
    margin-top: 12px;
    margin-bottom: 16px;
    letter-spacing: 0.5px;
}

.footer-col p,
.footer-col li {
    color: #cfc4b6;
    font-size: 0.92rem;
    line-height: 1.7;
}

.footer-col ul {
    list-style: none;
}

.footer-col a {
    color: #cfc4b6;
    text-decoration: none;
    transition: var(--transition);
    display: inline-block;
    padding: 2px 0;
}

.footer-col a:hover {
    color: #fff;
    transform: translateX(4px);
}

.footer-col--contact li {
    color: #cfc4b6;
    display: flex;
    align-items: center;
    gap: 8px;
}

.footer-col--contact li a {
    color: #cfc4b6;
}

.footer-col--contact li a:hover {
    color: #f5f5f5;
}

.footer-col--contact li:hover .contact-icon {
    fill: #f5f5f5;
}

.contact-icon {
    width: 16px;
    height: 16px;
    fill: currentColor;
    flex: 0 0 16px;
    transition: var(--transition);
}

.footer-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 14px;
    color: #fff;
    font-family: 'Fredoka', 'Poppins', sans-serif;
    font-weight: 700;
    font-size: 1.3rem;
}

.footer-brand .brand-mark { background: var(--color-red); }

.socials {
    display: flex;
    gap: 10px;
    margin-top: 24px;
}

.socials a {
    width: 38px;
    height: 38px;
    border-radius: 50%;
    display: grid;
    place-items: center;
    background: rgba(255, 255, 255, 0.08);
    color: #f1e8db;
    transition: var(--transition);
}

.socials a:hover {
    background: var(--color-red);
    color: #fff;
    transform: translateY(-3px);
}

.socials svg {
    width: 18px;
    height: 18px;
    fill: currentColor;
}

.footer-bottom {
    max-width: 1180px;
    margin: 36px auto 0;
    padding-top: 18px;
    border-top: 1px solid rgba(255, 255, 255, 0.08);
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 10px;
    color: #9b8f80;
    font-size: 0.85rem;
}

.footer-bottom a { color: #9b8f80; }
.footer-bottom a:hover { color: #fff; }

/* =================== ABOUT SECTION =================== */
.about-section {
    max-width: 880px;
    margin: 0 auto;
    padding: 40px 20px 60px;
    text-align: center;
}

.about-section h2 {
    font-family: 'Fredoka', 'Poppins', sans-serif;
    color: var(--color-chocolate);
    font-size: clamp(1.6rem, 3vw, 2.2rem);
    margin-bottom: 14px;
}

.about-section p {
    color: var(--color-muted);
    max-width: 640px;
    margin: 0 auto;
}

.about-cards {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-top: 56px;
}

@media (max-width: 768px) {
    .about-cards {
        grid-template-columns: repeat(2, 1fr);
        gap: 16px;
    }
}

@media (max-width: 480px) {
    .about-cards {
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

.counter-card {
    background: rgba(255, 255, 255, 0.55);
    backdrop-filter: blur(12px);
    -webkit-backdrop-filter: blur(12px);
    border-radius: 18px;
    padding: 32px 20px 28px;
    box-shadow: var(--shadow-card);
    text-align: center;
    transition: transform 0.4s ease, box-shadow 0.4s ease;
    opacity: 0;
    transform: translateY(24px);
    border: 1px solid rgba(255, 255, 255, 0.35);
}

.counter-card.is-visible {
    animation: counterRise 0.7s ease forwards;
}

.counter-card:nth-child(1).is-visible { animation-delay: 0.05s; }
.counter-card:nth-child(2).is-visible { animation-delay: 0.15s; }
.counter-card:nth-child(3).is-visible { animation-delay: 0.25s; }

.counter-card:hover {
    transform: translateY(-6px);
    box-shadow: var(--shadow-soft);
    background: rgba(255, 255, 255, 0.72);
}

.counter-number {
    font-family: 'Fredoka', 'Poppins', sans-serif;
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    font-weight: 700;
    color: var(--color-olive);
    line-height: 1;
    display: inline;
}

.counter-plus {
    font-family: 'Fredoka', 'Poppins', sans-serif;
    font-size: clamp(2.2rem, 4.5vw, 3.2rem);
    font-weight: 700;
    color: var(--color-olive);
    line-height: 1;
    display: inline;
}

.counter-label {
    display: block;
    font-family: 'Poppins', sans-serif;
    font-size: clamp(0.87rem, 1.5vw, 1.02rem);
    color: var(--color-muted);
    margin-top: 8px;
    font-weight: 500;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

@keyframes counterRise {
    from {
        opacity: 0;
        transform: translateY(24px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* =================== RESPONSIVE =================== */
@media (max-width: 900px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .footer-right {
        gap: 14px;
        padding: 16px 18px;
    }
}

@media (max-width: 768px) {
    .burger { display: flex; }

    .brand { font-size: 1.15rem; gap: 6px; }
    .brand-logo { height: 34px; }

    .lang-switch { margin: 0 4px; padding: 2px; }
    .lang-btn { padding: 5px 9px; font-size: 0.72rem; }

    .nav-menu {
        position: absolute;
        top: calc(100% + 10px);
        left: 0;
        right: 0;
        flex-direction: column;
        align-items: stretch;
        gap: 4px;
        background: rgba(255, 255, 255, 0.97);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border: 1px solid rgba(255, 255, 255, 0.7);
        border-radius: 16px;
        padding: 12px;
        box-shadow: var(--shadow-soft);
        opacity: 0;
        visibility: hidden;
        transform: translateY(-8px);
        transition: var(--transition);
    }

    .nav-menu.is-open {
        opacity: 1;
        visibility: visible;
        transform: translateY(0);
    }

    .nav-menu a {
        display: block;
        padding: 12px 16px;
        text-align: center;
    }

    .search-form {
        flex-direction: column;
        border-radius: 22px;
        padding: 6px;
    }

    .search-field {
        width: 100%;
        padding: 14px 16px;
    }

    .search-field + .search-field::before {
        left: 18%;
        right: 18%;
        top: 0;
        bottom: auto;
        width: auto;
        height: 1px;
    }

    .near-me-btn {
        width: 100%;
        justify-content: center;
        margin: 4px 0 0;
        padding: 12px 18px;
        border-radius: 16px;
    }

    .search-submit {
        width: 100%;
        height: 52px;
        border-radius: 16px;
        margin-top: 4px;
        flex: 0 0 auto;
    }

    .search-submit svg { width: 20px; height: 20px; }
}

@media (max-width: 560px) {
    .footer-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    .footer-right {
        grid-template-columns: 1fr 1fr;
        gap: 12px;
        padding: 14px;
    }
    .footer-right .footer-col--contact {
        grid-column: 1 / -1;
    }
    .footer-bottom { justify-content: center; text-align: center; }
    .brand > span { display: none; }
    .brand-logo { height: 38px; }
}

/* Reveal animation for hero */
@keyframes rise {
    from { opacity: 0; transform: translateY(16px); }
    to   { opacity: 1; transform: translateY(0); }
}

.hero .eyebrow,
.hero .hero-title,
.hero .hero-sub,
.hero .search-form {
    animation: rise 0.8s ease both;
}
.hero .eyebrow    { animation-delay: 0.05s; }
.hero .hero-title { animation-delay: 0.15s; }
.hero .hero-sub   { animation-delay: 0.25s; }
.hero .search-form{ animation-delay: 0.35s; }

/* =================== SEARCH RESULTS PAGE =================== */
.search-page {
    display: flex;
    flex-direction: column;
    min-height: 100vh;
    background: var(--color-cream);
}

.search-page::before {
    display: none;
}

.container {
    flex: 1;
    width: calc(100% - 32px);
    max-width: 1180px;
    margin: 0 auto;
    display: flex;
    flex-direction: column;
    gap: 32px;
}

.search-section {
    flex-shrink: 0;
    background: var(--color-cream);
    padding: 125px 0 0;
}

.search-section .search-form {
    max-width: 780px;
    margin: 0 auto;
}

/* ----- Split Layout ----- */
.split-layout {
    flex: 1;
    min-height: 550px;
    display: flex;
}

.results-panel {
    flex: 1;
    max-width: 60%;
    padding: 28px 45px 32px 28px;
    background: var(--color-cream);
    min-height: 550px;
}

.results-panel-inner {
    max-width: 700px;
    margin: 0 auto;
    padding-left: 30px;
}

.results-heading {
    font-family: 'Fredoka', 'Poppins', sans-serif;
    font-size: clamp(1.5rem, 3vw, 2rem);
    color: var(--color-chocolate);
    margin-bottom: 4px;
    line-height: 1.2;
}

.results-sub {
    color: var(--color-olive);
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 20px;
}

/* ----- Filter Tags ----- */
.filter-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.filter-tag {
    display: inline-block;
    padding: 7px 18px;
    border: 1.5px solid var(--color-divider);
    border-radius: 999px;
    background: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.83rem;
    font-weight: 500;
    color: var(--color-muted);
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.filter-tag:hover {
    border-color: var(--color-olive);
    color: var(--color-olive);
    background: var(--color-olive-soft);
}

.filter-tag.is-active {
    border-color: var(--color-olive);
    background: var(--color-olive);
    color: #fff;
}

/* ----- Result Cards ----- */
.result-cards {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.result-card {
    display: flex;
    background: #fff;
    border: 1px solid var(--color-divider);
    border-radius: 18px;
    overflow: hidden;
    box-shadow: var(--shadow-card);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.result-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 18px 36px rgba(43, 34, 30, 0.14);
}

.result-card-img {
    flex: 0 0 200px;
    min-height: 180px;
    position: relative;
    overflow: hidden;
    background-size: cover;
    background-position: center;
}

/* Shared visuals per place: photo for stis-annas, brand gradients elsewhere.
   Used by both result cards and the restaurant hero. */
.result-card-img[data-img="stis-annas"] {
    background-image: url('../assets/images/restaurants/stis-annas2.webp');
    background-size: cover;
    background-position: center;
}
[data-img="olympos"] {
    background-image: linear-gradient(135deg, #d4a373, #cc8b5c);
}
[data-img="harami"] {
    background-image: linear-gradient(135deg, #a8c49a, #7fa86a);
}
[data-img="elgreco"] {
    background-image: linear-gradient(135deg, #e9b16f, #d4954a);
}
[data-img="kyma"] {
    background-image: linear-gradient(135deg, #7ec8c8, #4fa8a8);
}
[data-img="streetbites"] {
    background-image: linear-gradient(135deg, #f0a88b, #e8886a);
}
[data-img="7seas"] {
    background-image: linear-gradient(135deg, #b088c8, #9068b0);
}

.result-card-price {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(255, 255, 255, 0.88);
    backdrop-filter: blur(4px);
    padding: 3px 10px;
    border-radius: 8px;
    font-size: 0.82rem;
    font-weight: 600;
    color: var(--color-chocolate);
    letter-spacing: 0.5px;
}

.result-card-body {
    flex: 1;
    padding: 20px 22px;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.result-card-top {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 10px;
    margin-bottom: 6px;
}

.result-card-name {
    font-family: 'Fredoka', 'Poppins', sans-serif;
    font-size: 1.2rem;
    color: var(--color-chocolate);
    font-weight: 600;
    line-height: 1.3;
}

.result-card-rating {
    flex-shrink: 0;
    font-size: 0.95rem;
    font-weight: 600;
    color: var(--color-red);
    letter-spacing: 0.3px;
}

.result-card-city {
    font-size: 0.85rem;
    color: var(--color-olive);
    font-weight: 500;
    margin-bottom: 6px;
}

.result-card-desc {
    font-size: 0.88rem;
    color: var(--color-muted);
    line-height: 1.5;
    margin-bottom: 12px;
}

.result-card-distance {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(43, 34, 30, 0.78);
    backdrop-filter: blur(4px);
    color: #fff;
    padding: 3px 10px;
    border-radius: 8px;
    font-size: 0.78rem;
    font-weight: 600;
    letter-spacing: 0.3px;
}

.result-card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
}

.result-card-tag {
    display: inline-block;
    padding: 4px 12px;
    background: var(--color-olive-soft);
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 500;
    color: var(--color-olive);
    letter-spacing: 0.3px;
}

.result-card-link {
    display: inline-block;
    margin-top: 14px;
    padding: 8px 20px;
    background: var(--color-olive);
    color: #fff;
    border-radius: 999px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: background 0.3s ease, transform 0.3s ease;
    align-self: flex-start;
}

.result-card-link:hover {
    background: #50633d;
    transform: translateY(-2px);
}

.result-card-website {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    margin-top: 8px;
    padding: 6px 16px;
    border: 1.5px solid var(--color-olive);
    border-radius: 999px;
    font-size: 0.8rem;
    font-weight: 500;
    color: var(--color-olive);
    text-decoration: none;
    transition: background 0.3s ease, color 0.3s ease;
    align-self: flex-start;
}

.result-card-website svg {
    width: 14px;
    height: 14px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
    flex-shrink: 0;
}

.result-card-website:hover {
    background: var(--color-olive);
    color: #fff;
}



/* ----- Map Panel ----- */
.map-panel {
    flex: 0 0 40%;
    max-width: 40%;
    position: relative;
    min-height: 550px;
    padding: 0 28px 0 0;
    margin-bottom: 60px;
}

#map {
    position: sticky;
    top: 90px;
    width: 100%;
    min-height: 550px;
    height: 100%;
    max-height: calc(100vh - 160px);
}

/* ----- Custom Marker Pin ----- */
.dine-pin {
    background: transparent !important;
    border: none !important;
}

.dine-pin svg {
    display: block;
    width: 36px;
    height: 44px;
    filter: drop-shadow(0 2px 6px rgba(43, 34, 30, 0.25));
    transition: transform 0.2s ease;
}

.dine-pin svg:hover {
    transform: scale(1.12);
}

/* ----- Leaflet Popup Branding ----- */
#map .leaflet-popup-content-wrapper {
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(43, 34, 30, 0.15);
    padding: 0;
}

#map .leaflet-popup-content {
    margin: 14px 16px;
    font-family: 'Poppins', sans-serif;
}

#map .leaflet-popup-tip {
    box-shadow: none;
}

.dine-popup {
    min-width: 140px;
}

.dine-popup-name {
    display: block;
    font-size: 1rem;
    font-weight: 700;
    color: #657e4e;
    margin-bottom: 4px;
    line-height: 1.3;
}

.dine-popup-rating {
    display: block;
    font-size: 0.9rem;
    font-weight: 600;
    color: #d12c2c;
    margin-bottom: 6px;
}

.dine-popup-link {
    display: inline-block;
    font-size: 0.85rem;
    font-weight: 500;
    color: #657e4e;
    text-decoration: none;
    padding: 4px 0;
    border-top: 1px solid #eadecc;
    width: 100%;
    padding-top: 8px;
    margin-top: 2px;
    transition: color 0.2s ease;
}

.dine-popup-link:hover {
    color: #50633d;
}

.result-card {
    cursor: pointer;
}

.result-card.is-highlighted {
    border-color: var(--color-olive);
    box-shadow: 0 0 0 2px var(--color-olive-soft);
}

/* =================== RESTAURANT DETAIL PAGE =================== */
.restaurant-page {
    background: var(--color-cream);
    min-height: 100vh;
}

.restaurant-page::before {
    display: none;
}

@media (max-width: 768px) {
    .search-header {
        position: fixed;
        top: 8px;
        left: 50%;
        transform: translateX(-50%);
        width: calc(100% - 20px);
        max-width: 1180px;
        z-index: 100;
        background: transparent;
        border: none;
        padding: 0;
        border-radius: 0;
    }

    .search-header .navbar {
        max-width: none;
        margin: 0;
        padding: 8px 14px;
        background: rgba(255, 255, 255, 0.18);
        backdrop-filter: blur(14px);
        -webkit-backdrop-filter: blur(14px);
        border: 1px solid rgba(255, 255, 255, 0.45);
        border-radius: 18px;
        box-shadow: var(--shadow-soft);
    }

    .search-page {
        padding-top: 64px;
    }
}

/* ----- Hero Banner ----- */
.resto-hero {
    position: relative;
    height: 40vh;
    min-height: 320px;
    display: flex;
    align-items: flex-end;
    justify-content: center;
    overflow: hidden;
}

.resto-hero-bg {
    position: absolute;
    inset: 0;
    background-color: var(--color-chocolate);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    z-index: 0;
}

.resto-hero-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(transparent 55%, var(--color-cream) 100%);
    z-index: 1;
}

.resto-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    padding: 0 20px 40px;
    max-width: 700px;
}

.resto-hero-name {
    font-family: 'Fredoka', 'Poppins', sans-serif;
    font-size: clamp(2.6rem, 6vw, 4.5rem);
    font-weight: 700;
    color: #fff;
    text-shadow: 0 2px 20px rgba(0, 0, 0, 0.3);
    line-height: 1.05;
    margin-bottom: 10px;
    letter-spacing: -0.5px;
}

.resto-hero-sub {
    font-size: clamp(1rem, 1.6vw, 1.2rem);
    font-weight: 500;
    color: rgba(255, 255, 255, 0.92);
    margin-bottom: 16px;
    letter-spacing: 0.3px;
}

.resto-hero-meta {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    flex-wrap: wrap;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.88);
}

.resto-hero-rating {
    font-weight: 600;
}

.resto-hero-reviews {
    font-weight: 400;
    opacity: 0.75;
}

.resto-hero-dot {
    opacity: 0.5;
}

.resto-hero-price {
    letter-spacing: 0.5px;
}

/* ----- Two-column Layout ----- */
.resto-layout {
    max-width: 1180px;
    margin: 0 auto;
    padding: 40px 24px 60px;
    display: grid;
    grid-template-columns: 1fr 340px;
    gap: 36px;
}

.resto-main {
    min-width: 0;
}

.resto-section {
    background: #fff;
    border-radius: 18px;
    padding: 32px 34px;
    box-shadow: var(--shadow-card);
    margin-bottom: 24px;
}

.resto-section-title {
    font-family: 'Fredoka', 'Poppins', sans-serif;
    font-size: 1.5rem;
    color: var(--color-olive);
    margin-bottom: 16px;
    font-weight: 600;
}

.resto-story-text {
    color: var(--color-muted);
    font-size: 1rem;
    line-height: 1.75;
}

.resto-story-text strong {
    color: var(--color-chocolate);
}

/* ----- Menu ----- */
.resto-menu {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.resto-menu-item {
    display: flex;
    align-items: baseline;
    gap: 10px;
}

.resto-menu-name {
    font-weight: 500;
    color: var(--color-chocolate);
    font-size: 0.98rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.resto-menu-dots {
    flex: 1;
    min-width: 20px;
    height: 1px;
    border-bottom: 1px dashed var(--color-divider);
    align-self: center;
}

.resto-menu-price {
    font-weight: 600;
    color: var(--color-olive);
    font-size: 0.98rem;
    white-space: nowrap;
    flex-shrink: 0;
}

.resto-menu-item--complimentary .resto-menu-price {
    color: var(--color-red);
    font-size: 0.9rem;
    font-weight: 500;
}

/* ----- Sidebar Card ----- */
.resto-sidebar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.resto-card {
    background: #fff;
    border-radius: 18px;
    padding: 26px 24px;
    box-shadow: var(--shadow-card);
}

.resto-card-title {
    font-family: 'Fredoka', 'Poppins', sans-serif;
    font-size: 1.2rem;
    color: var(--color-chocolate);
    font-weight: 600;
    margin-bottom: 18px;
}

.resto-card-info {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.resto-card-row {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    font-size: 0.92rem;
    color: var(--color-muted);
    line-height: 1.5;
}

.resto-card-row a {
    color: var(--color-olive);
    text-decoration: none;
    font-weight: 500;
}

.resto-card-row a:hover {
    text-decoration: underline;
}

.resto-card-icon {
    width: 18px;
    height: 18px;
    flex-shrink: 0;
    fill: none;
    stroke: var(--color-olive);
    stroke-width: 2;
    stroke-linecap: round;
    stroke-linejoin: round;
    margin-top: 3px;
}

.resto-card-hours {
    display: flex;
    flex-direction: column;
    gap: 3px;
}

.resto-card-hours-row {
    font-size: 0.92rem;
}

.resto-card-hours-day {
    font-weight: 600;
    color: var(--color-chocolate);
    margin-right: 6px;
}

.resto-card-hours-row--closed {
    color: var(--color-red) !important;
}

.resto-card-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    width: 100%;
    margin-top: 20px;
    padding: 14px 20px;
    background: var(--color-red);
    color: #fff;
    border: none;
    border-radius: 14px;
    font-family: 'Poppins', sans-serif;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    transition: background 0.3s ease, transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 6px 16px rgba(209, 44, 44, 0.3);
}

.resto-card-btn:hover {
    background: #b91d1d;
    transform: translateY(-2px);
    box-shadow: 0 10px 24px rgba(209, 44, 44, 0.4);
}

.resto-card-btn svg {
    width: 20px;
    height: 20px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2.2;
    stroke-linecap: round;
    stroke-linejoin: round;
}

.resto-card-website-link {
    color: var(--color-olive);
    font-weight: 500;
    font-size: 0.9rem;
    text-decoration: none;
    transition: color 0.2s ease;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.resto-card-website-link:hover {
    color: #50633d;
    text-decoration: underline;
}

/* ----- Mini-map ----- */
.resto-map {
    width: 100%;
    height: 200px;
    border-radius: 12px;
    overflow: hidden;
}

.resto-map .leaflet-control-attribution {
    display: none;
}

/* ----- Restaurant Page Responsive ----- */
@media (max-width: 900px) {
    .resto-layout {
        grid-template-columns: 1fr;
        padding: 28px 18px 50px;
        gap: 28px;
    }

    .resto-sidebar {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 20px;
    }

    .resto-hero {
        min-height: 280px;
    }
}

@media (max-width: 600px) {
    .resto-sidebar {
        grid-template-columns: 1fr;
    }

    .resto-section {
        padding: 24px 18px;
    }

    .resto-hero {
        min-height: 240px;
    }

    .resto-hero-content {
        padding: 0 16px 28px;
    }

    .resto-map {
        height: 180px;
    }
}

/* ----- Search Page Responsive ----- */
@media (max-width: 900px) {
    .container {
        gap: 24px;
    }

    .split-layout {
        flex-direction: column;
    }

    .results-panel {
        flex: none;
        max-width: 100%;
        padding: 24px 18px 8px;
        min-height: auto;
    }

    .results-panel-inner {
        padding-left: 0;
    }

    .map-panel {
        flex: none;
        max-width: 100%;
        min-height: 400px;
        border-top: 1px solid var(--color-divider);
        padding-top: 0;
        margin-bottom: 60px;
    }

    #map {
        position: static;
        height: 400px;
        min-height: 400px;
    }

    .result-card {
        flex-direction: column;
    }

    .result-card-img {
        flex: 0 0 160px;
        min-height: 160px;
    }
}

@media (max-width: 560px) {
    .container {
        gap: 20px;
        width: calc(100% - 16px);
    }

    .search-section {
        padding: 105px 0 0;
    }

    .results-panel {
        padding: 20px 14px 8px;
    }

    .map-panel {
        min-height: 300px;
    }

    #map {
        height: 300px;
        min-height: 300px;
    }

    .result-card-body {
        padding: 16px;
    }

    .result-card-img {
        flex: 0 0 140px;
        min-height: 140px;
    }

    .results-heading {
        font-size: 1.3rem;
    }

    .results-panel-inner {
        padding-left: 0;
        text-align: center;
    }

    .result-cards {
        align-items: center;
    }

    .result-card {
        width: 100%;
        max-width: 500px;
    }

    .result-card-body {
        text-align: left;
    }

    .map-panel {
        padding: 0 14px 0;
        margin-bottom: 60px;
    }
}

/* =================== STATIC PAGES (privacy / terms / 404) =================== */
.static-page {
    background: var(--color-cream);
    min-height: 100vh;
    display: flex;
    flex-direction: column;
}

.static-page::before {
    display: none;
}

.static-content {
    flex: 1;
    max-width: 820px;
    width: calc(100% - 32px);
    margin: 0 auto;
    padding: 130px 0 60px;
}

.static-card {
    background: #fff;
    border-radius: 18px;
    padding: 40px 42px;
    box-shadow: var(--shadow-card);
}

.static-card h1 {
    font-family: 'Fredoka', 'Poppins', sans-serif;
    color: var(--color-chocolate);
    font-size: clamp(1.7rem, 3vw, 2.3rem);
    margin-bottom: 18px;
}

.static-card p {
    color: var(--color-muted);
    margin-bottom: 14px;
    line-height: 1.7;
}

.static-card--center {
    text-align: center;
}

.static-404-code {
    font-family: 'Fredoka', 'Poppins', sans-serif;
    font-size: clamp(4rem, 10vw, 7rem);
    font-weight: 700;
    line-height: 1;
    color: var(--color-olive);
    opacity: 0.35;
    margin-bottom: 8px;
}

.static-404-actions {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-top: 24px;
}

.static-404-actions .resto-card-btn {
    width: auto;
    margin-top: 0;
}

@media (max-width: 560px) {
    .static-card {
        padding: 28px 20px;
    }
}

/* =================== RESTAURANT PAGE EXTRAS =================== */
.resto-breadcrumb {
    margin-bottom: 16px;
}

.resto-breadcrumb a {
    color: var(--color-olive);
    text-decoration: none;
    font-size: 0.9rem;
    font-weight: 500;
    transition: var(--transition);
}

.resto-breadcrumb a:hover {
    color: #50633d;
    text-decoration: underline;
}

.resto-tags {
    margin-top: 18px;
}

/* =================== MOBILE LIST/MAP TOGGLE =================== */
.map-toggle {
    display: none;
    position: fixed;
    bottom: 22px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 150;
    align-items: center;
    gap: 8px;
    padding: 12px 24px;
    border: none;
    border-radius: 999px;
    background: var(--color-chocolate);
    color: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.92rem;
    font-weight: 600;
    cursor: pointer;
    box-shadow: 0 8px 24px rgba(43, 34, 30, 0.35);
    transition: var(--transition);
}

.map-toggle svg {
    width: 18px;
    height: 18px;
    fill: none;
    stroke: currentColor;
    stroke-width: 2;
    stroke-linejoin: round;
}

.map-toggle:hover {
    transform: translateX(-50%) translateY(-2px);
}

@media (max-width: 900px) {
    .map-toggle {
        display: inline-flex;
    }

    body.is-map-view .results-panel {
        display: none;
    }

    body.is-map-view .map-panel {
        border-top: none;
    }

    body.is-map-view #map {
        height: calc(100vh - 180px);
        min-height: 400px;
    }
}

/* =================== ADMIN PANEL =================== */
.admin-page {
    background: var(--color-cream);
}

.admin-login-wrap {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 40px 16px;
    min-height: 100vh;
}

.admin-login {
    background: #fff;
    border-radius: 18px;
    box-shadow: var(--shadow-soft);
    padding: 40px 36px;
    width: 100%;
    max-width: 360px;
    text-align: center;
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.admin-login-logo {
    height: 56px;
    width: auto;
    margin: 0 auto;
}

.admin-login h1 {
    font-family: 'Fredoka', 'Poppins', sans-serif;
    font-size: 1.4rem;
    color: var(--color-chocolate);
}

.admin-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    padding: 14px 24px;
    background: #fff;
    border-bottom: 1px solid var(--color-divider);
}

.admin-brand {
    display: flex;
    align-items: center;
    gap: 10px;
    text-decoration: none;
    color: var(--color-chocolate);
    font-family: 'Fredoka', 'Poppins', sans-serif;
    font-size: 1.15rem;
}

.admin-brand img {
    height: 34px;
    width: auto;
}

.admin-brand b {
    color: var(--color-red);
}

.admin-nav {
    display: flex;
    align-items: center;
    gap: 14px;
}

.admin-nav a {
    color: var(--color-olive);
    text-decoration: none;
    font-size: 0.92rem;
    font-weight: 500;
}

.admin-nav a:hover {
    text-decoration: underline;
}

.admin-content {
    max-width: 1180px;
    margin: 0 auto;
    padding: 28px 20px 60px;
}

.admin-content h1 {
    font-family: 'Fredoka', 'Poppins', sans-serif;
    color: var(--color-chocolate);
    font-size: 1.6rem;
    margin-bottom: 18px;
}

.admin-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    margin-bottom: 6px;
}

.admin-toolbar h1 {
    margin-bottom: 0;
}

.admin-count {
    display: inline-block;
    background: var(--color-olive-soft);
    color: var(--color-olive);
    border-radius: 999px;
    font-size: 0.9rem;
    padding: 2px 12px;
    vertical-align: middle;
}

.admin-flash {
    background: rgba(101, 126, 78, 0.14);
    border: 1px solid rgba(101, 126, 78, 0.35);
    color: #4c5f3a;
    border-radius: 12px;
    padding: 10px 16px;
    margin: 12px 0;
    font-size: 0.92rem;
}

.admin-error {
    background: rgba(209, 44, 44, 0.08);
    border: 1px solid rgba(209, 44, 44, 0.3);
    color: #a02020;
    border-radius: 12px;
    padding: 10px 16px;
    margin: 12px 0;
    font-size: 0.92rem;
}

.admin-table-wrap {
    background: #fff;
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    overflow-x: auto;
    margin-top: 16px;
}

.admin-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.92rem;
}

.admin-table th,
.admin-table td {
    text-align: left;
    padding: 12px 16px;
    border-bottom: 1px solid var(--color-divider);
    vertical-align: middle;
    white-space: nowrap;
}

.admin-table th {
    font-family: 'Fredoka', 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--color-olive);
    font-size: 0.82rem;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.admin-table tbody tr:hover {
    background: rgba(101, 126, 78, 0.05);
}

.admin-table tr.is-hidden-row {
    opacity: 0.55;
}

.admin-place-name {
    color: var(--color-chocolate);
    font-weight: 600;
    text-decoration: none;
}

.admin-place-name:hover {
    color: var(--color-red);
}

.admin-slug {
    display: block;
    color: #a89c91;
    font-size: 0.78rem;
}

.admin-muted {
    color: #a89c91;
}

.admin-badge {
    display: inline-block;
    border-radius: 999px;
    padding: 3px 12px;
    font-size: 0.78rem;
    font-weight: 600;
}

.admin-badge--live {
    background: rgba(101, 126, 78, 0.15);
    color: var(--color-olive);
}

.admin-badge--hidden {
    background: rgba(43, 34, 30, 0.1);
    color: var(--color-muted);
}

.admin-actions {
    display: flex;
    align-items: center;
    gap: 8px;
}

.admin-actions form {
    display: inline;
}

.admin-btn {
    display: inline-block;
    padding: 7px 16px;
    border: 1.5px solid var(--color-divider);
    border-radius: 999px;
    background: #fff;
    color: var(--color-chocolate);
    font-family: 'Poppins', sans-serif;
    font-size: 0.85rem;
    font-weight: 500;
    text-decoration: none;
    cursor: pointer;
    transition: var(--transition);
    white-space: nowrap;
}

.admin-btn:hover {
    border-color: var(--color-olive);
    color: var(--color-olive);
    background: var(--color-olive-soft);
}

.admin-btn--primary {
    background: var(--color-red);
    border-color: var(--color-red);
    color: #fff;
}

.admin-btn--primary:hover {
    background: #b91d1d;
    border-color: #b91d1d;
    color: #fff;
}

.admin-btn--danger:hover {
    border-color: var(--color-red);
    color: var(--color-red);
    background: rgba(209, 44, 44, 0.06);
}

.admin-btn--ghost {
    border-color: transparent;
    background: transparent;
}

/* ----- Форма ----- */
.admin-form {
    margin-top: 8px;
}

.admin-fieldset {
    background: #fff;
    border: none;
    border-radius: 16px;
    box-shadow: var(--shadow-card);
    padding: 22px 24px;
    margin-bottom: 18px;
}

.admin-fieldset legend {
    font-family: 'Fredoka', 'Poppins', sans-serif;
    font-weight: 600;
    color: var(--color-olive);
    font-size: 1.02rem;
    padding: 0 8px;
}

.admin-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
    gap: 14px 18px;
}

.admin-grid--full {
    grid-template-columns: 1fr 1fr;
}

.admin-grid label {
    display: flex;
    flex-direction: column;
    gap: 5px;
    font-size: 0.85rem;
    font-weight: 500;
    color: var(--color-muted);
}

.admin-input {
    width: 100%;
    padding: 9px 12px;
    border: 1.5px solid var(--color-divider);
    border-radius: 10px;
    background: #fff;
    font-family: 'Poppins', sans-serif;
    font-size: 0.92rem;
    color: var(--color-text);
    transition: var(--transition);
}

.admin-input:focus {
    outline: none;
    border-color: var(--color-olive);
    box-shadow: 0 0 0 3px rgba(101, 126, 78, 0.15);
}

textarea.admin-input {
    resize: vertical;
    min-height: 42px;
}

.admin-checks {
    display: flex;
    flex-wrap: wrap;
    gap: 10px 18px;
}

.admin-check {
    display: inline-flex;
    align-items: center;
    gap: 7px;
    font-size: 0.92rem;
    color: var(--color-text);
    cursor: pointer;
}

.admin-check input {
    accent-color: var(--color-olive);
    width: 16px;
    height: 16px;
}

.admin-form-footer {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    flex-wrap: wrap;
    padding: 4px 4px 0;
}

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

@media (max-width: 700px) {
    .admin-grid--full {
        grid-template-columns: 1fr;
    }

    .admin-actions {
        flex-wrap: wrap;
    }
}
