@import url('https://fonts.googleapis.com/css2?family=Special+Elite&display=swap');

:root {
    --cream:   #faf7f2;
    --ink:     #1a1a1a;
    --muted:   #7a7060;
    --accent:  #e84c1e;
    --accent2: #f5a623;
    --border:  #e2ddd5;
    --card-bg: #ffffff;
}

*, *::before, *::after { box-sizing: border-box; }

body {
    font-family: 'Special Elite', sans-serif;
    background: var(--cream);
    color: var(--ink);
    margin: 0;
}

/* ── NAVBAR ── */
.navbar {
    background: var(--card-bg);
    border-bottom: 2px solid var(--ink);
    padding: 0 2rem;
    min-height: 62px;
}
.navbar-brand {
    font-size: 1.35rem;
    color: var(--ink) !important;
    display: flex;
    align-items: center;
    gap: .5rem;
    letter-spacing: .02em;
}
.navbar-brand img.logo-icon {
    width: 36px;
    height: 36px;
}
.nav-link {
    font-size: .9rem;
    color: var(--muted) !important;
    padding: .25rem .75rem !important;
    transition: color .2s;
}
.nav-link:hover, .nav-link.active {
    color: var(--ink) !important;
}
.nav-search {
    flex-shrink: 1;
    min-width: 0;
}
.nav-search-wrapper {
    position: relative;
    display: flex;
    align-items: center;
}
.nav-search-icon {
    position: absolute;
    left: .7rem;
    color: var(--muted);
    font-size: .8rem;
    pointer-events: none;
}
.nav-search-input {
    font-family: inherit;
    font-size: .85rem;
    border: 1.5px solid var(--border);
    border-radius: 2rem;
    padding: .55rem 1rem .35rem 2rem;
    background: var(--cream);
    color: var(--ink);
    width: 160px;
    transition: width .3s, border-color .2s;
    outline: none;
}
.nav-search-input:focus {
    width: 220px;
    border-color: var(--accent);
}
.nav-search-input::placeholder {
    color: var(--muted);
}
.nav-login {
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .06em;
    text-transform: uppercase;
    color: var(--ink) !important;
    border: 2px solid var(--ink);
    border-radius: 2rem;
    padding: .3rem 1rem !important;
    transition: background .2s, color .2s;
}
.nav-login:hover {
    background: var(--ink);
    color: var(--cream) !important;
}
.nav-user {
    font-size: .85rem;
    font-weight: 700;
    letter-spacing: .04em;
    color: var(--ink) !important;
    display: flex;
    align-items: center;
    gap: .5rem;
}
.nav-user-logout {
    font-size: .8rem;
    color: var(--muted) !important;
    padding: .2rem .6rem !important;
    border: 1px solid var(--border);
    border-radius: 2rem;
    transition: color .2s, border-color .2s;
}
.nav-user-logout:hover {
    color: var(--accent) !important;
    border-color: var(--accent);
}

/* ── HEADINGS ── */
h1, h2, h3, h4, h5 {
}

h1 {
    text-align: center;
    margin: 2rem 0 1.5rem;
    font-size: 2rem;
    letter-spacing: .04em;
}

h2 {
    text-align: center;
    font-size: 1.6rem;
    margin-bottom: .5rem;
}

/* ── HERO (homepage) ── */
.hero {
    display: flex;
    flex-direction: column;
    align-items: center;
    text-align: center;
    padding: 5rem 1.5rem 4rem;
    position: relative;
    overflow: hidden;
}
.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(var(--border) 1.5px, transparent 1.5px);
    background-size: 28px 28px;
    opacity: .6;
    pointer-events: none;
}
.hero-logo {
    width: 130px;
    position: relative;
    z-index: 1;
    filter: drop-shadow(0 4px 12px rgba(0,0,0,.1));
    animation: float 4s ease-in-out infinite;
}
@keyframes float {
    0%, 100% { transform: translateY(0); }
    50%      { transform: translateY(-10px); }
}
.hero-badge {
    display: inline-block;
    font-size: .75rem;
    letter-spacing: .18em;
    text-transform: uppercase;
    color: var(--accent);
    background: #fef0eb;
    border: 1.5px solid #f7c9b8;
    border-radius: 2rem;
    padding: 0.7rem .9rem .25rem .9rem;
    margin: 1.4rem 0 .8rem;
    position: relative; z-index: 1;
}
.hero-title {
    font-size: clamp(2.6rem, 6vw, 4.4rem);
    line-height: 1.05;
    letter-spacing: .04em;
    color: var(--ink);
    position: relative; z-index: 1;
    margin-bottom: .5rem;
}
.hero-title span { color: var(--accent); }
.hero-subtitle {
    font-size: 1.05rem;
    color: var(--muted);
    max-width: 480px;
    line-height: 1.65;
    position: relative; z-index: 1;
    margin-bottom: 2.4rem;
}
.hero-cta-group {
    display: flex;
    flex-wrap: wrap;
    gap: .75rem;
    justify-content: center;
    position: relative; z-index: 1;
}

/* ── BUTTONS ── */
.btn-primary-custom,
.btn-secondary-custom,
.btn-ghost,
.btn-danger-custom,
.btn-cta-light,
.btn-cta-outline {
    line-height: 1;
    padding-top: .95rem !important;
}

.btn-primary-custom i,
.btn-secondary-custom i,
.btn-ghost i,
.btn-danger-custom i,
.btn-cta-light i,
.btn-cta-outline i {
    transform: translateY(-2px);
}

.btn-primary-custom {
    font-size: .95rem;
    letter-spacing: .04em;
    background: var(--accent);
    color: #fff;
    border: 2px solid var(--accent);
    border-radius: .35rem;
    padding: .65rem 1.6rem;
    transition: background .2s, transform .15s;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: .5rem;
    text-decoration: none;
    cursor: pointer;
}
.btn-primary-custom:hover {
    background: #c93c12;
    border-color: #c93c12;
    color: #fff;
    transform: translateY(-2px);
}
.btn-secondary-custom {
    font-size: .95rem;
    letter-spacing: .04em;
    background: transparent;
    color: var(--ink);
    border: 2px solid var(--ink);
    border-radius: .35rem;
    padding: .65rem 1.6rem;
    transition: background .2s, transform .15s;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
    cursor: pointer;
}
.btn-secondary-custom:hover {
    background: var(--ink);
    color: var(--cream);
    transform: translateY(-2px);
}
.btn-ghost {
    font-size: .9rem;
    letter-spacing: .04em;
    background: transparent;
    color: var(--muted);
    border: 1.5px solid var(--border);
    border-radius: .35rem;
    padding: .5rem 1.2rem;
    transition: color .2s, border-color .2s, transform .15s;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
    cursor: pointer;
}
.btn-ghost:hover {
    color: var(--ink);
    border-color: var(--ink);
    transform: translateY(-1px);
}
.btn-danger-custom {
    font-size: .85rem;
    font-weight: 700;
    background: transparent;
    color: #c0392b;
    border: 2px solid #c0392b;
    border-radius: .35rem;
    padding: .5rem 1.2rem;
    transition: background .2s, color .2s;
    cursor: pointer;
    width: 100%;
}
.btn-danger-custom:hover {
    background: #c0392b;
    color: #fff;
}
.btn-cta-light {
    font-size: .95rem;
    letter-spacing: .04em;
    background: var(--cream);
    color: var(--ink);
    border: 2px solid var(--cream);
    border-radius: .35rem;
    padding: .65rem 1.6rem;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
    transition: background .2s, color .2s, transform .15s;
    position: relative; z-index: 1;
}
.btn-cta-light:hover {
    background: transparent;
    color: var(--cream);
    transform: translateY(-2px);
}
.btn-cta-outline {
    font-size: .95rem;
    letter-spacing: .04em;
    background: transparent;
    color: var(--cream);
    border: 2px solid rgba(250,247,242,.4);
    border-radius: .35rem;
    padding: .65rem 1.6rem;
    display: inline-flex;
    align-items: center;
    gap: .5rem;
    text-decoration: none;
    transition: background .2s, color .2s, transform .15s;
    position: relative; z-index: 1;
}
.btn-cta-outline:hover {
    background: rgba(250,247,242,.15);
    color: var(--cream);
    transform: translateY(-2px);
}

/* ── SECTION DIVIDER ── */
.section-divider {
    border: none;
    border-top: 2px dashed var(--border);
    margin: 0;
}

/* ── PERK STRIP ── */
.perk-strip {
    background: var(--ink);
    color: var(--cream);
    padding: 1.1rem 2rem;
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 2rem;
}
.perk-item {
    padding-top: 0.4rem;
    font-size: .82rem;
    text-transform: uppercase;
    display: flex;
    align-items: center;
    gap: .45rem;
    opacity: .85;
}
.perk-item i { color: var(--accent2); }

/* ── FEATURES ── */
.features {
    padding: 4.5rem 1.5rem;
    background: var(--card-bg);
    border-top: 2px solid var(--ink);
    border-bottom: 2px solid var(--ink);
}
.feature-card {
    text-align: center;
    padding: 2rem 1.5rem;
    border-radius: .5rem;
    transition: transform .2s, box-shadow .2s;
}
.feature-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 24px rgba(0,0,0,.07);
}
.feature-icon {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 1.4rem;
    margin-bottom: 1rem;
    padding-top: 0.2rem;
}
.icon-red   { background: #fef0eb; color: var(--accent); }
.icon-amber { background: #fef8ec; color: var(--accent2); }
.icon-slate { background: #f0f0f0; color: #444; }
.feature-card h5 {
    font-size: 1.05rem;
    margin-bottom: .4rem;
}
.feature-card p {
    font-size: .88rem;
    color: var(--muted);
    line-height: 1.6;
    margin: 0;
}

/* ── LEGEND ── */
.legend-section {
    padding: 5rem 1.5rem;
}
.legend-section .lead-text {
    text-align: center;
    color: var(--muted);
    font-size: .95rem;
    margin-bottom: 2.5rem;
}
.legend-card {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: .6rem;
    padding: 1.4rem 1.5rem;
    margin-bottom: 1rem;
    transition: border-color .2s, box-shadow .2s;
}
.legend-card:hover {
    border-color: var(--accent);
    box-shadow: 0 4px 16px rgba(232,76,30,.1);
}
.legend-card .term {
    font-size: 1rem;
    color: var(--ink);
}
.legend-card .definition {
    font-size: .88rem;
    color: var(--muted);
    margin: .15rem 0 .55rem;
}
.legend-card .example {
    font-size: .84rem;
    color: var(--ink);
    background: var(--cream);
    border-left: 3px solid var(--accent);
    padding: .7rem .7rem .3rem .7rem;
    border-radius: 0 .25rem .25rem 0;
    font-style: italic;
}

/* ── CTA SECTION ── */
.cta-section {
    background: var(--ink);
    color: var(--cream);
    text-align: center;
    padding: 5rem 1.5rem;
    position: relative;
    overflow: hidden;
}
.cta-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image: radial-gradient(rgba(255,255,255,.06) 1px, transparent 1px);
    background-size: 22px 22px;
}
.cta-section h2 {
    font-size: clamp(1.8rem, 4vw, 2.8rem);
    margin-bottom: .75rem;
    position: relative; z-index: 1;
}
.cta-section p {
    color: rgba(250,247,242,.65);
    font-size: .95rem;
    max-width: 400px;
    margin: 0 auto 2rem;
    position: relative; z-index: 1;
}

/* ── CARDS ── */
.entity-card {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: .6rem;
    overflow: hidden;
    transition: border-color .2s, box-shadow .2s, transform .2s;
    height: 100%;
    display: flex;
    flex-direction: column;
}
.entity-card:hover {
    border-color: var(--accent);
    box-shadow: 0 6px 20px rgba(232,76,30,.08);
    transform: translateY(-3px);
}
.entity-card-img-wrapper {
    position: relative;
}
.entity-card-img {
    aspect-ratio: 1;
    width: 100%;
    overflow: hidden;
    background: #f0ede8;
    object-fit: cover;
}
.rating-badge {
    position: absolute;
    bottom: .5rem;
    right: .5rem;
    background: rgba(26, 26, 26, .75);
    color: var(--accent2);
    font-size: .8rem;
    padding: .55rem .55rem .35rem .55rem;
    border-radius: .3rem;
    line-height: 1;
    backdrop-filter: blur(4px);
}
.rating-badge i {
    font-size: .7rem;
}
.rating-badge-max {
    font-size: .65rem;
    opacity: .6;
}
.rating-badge--inline {
    position: static;
    display: inline-flex;
    align-items: center;
    gap: .2rem;
    backdrop-filter: none;
}
.entity-card-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}
.entity-card-header {
    padding: 1rem 1.2rem .4rem;
}
.entity-card-header h5 {
    font-size: 1rem;
    margin: 0;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: .5rem;
}
.entity-card-body {
    padding: .4rem 1.2rem 1rem;
    font-size: .88rem;
    color: var(--muted);
    flex: 1;
}
.entity-card-body a {
    color: var(--ink);
    text-decoration: none;
    transition: color .2s;
}
.entity-card-body a:hover {
    color: var(--accent);
}
.entity-card-actions {
    padding: .6rem 1.2rem 1.2rem;
    display: flex;
    flex-direction: column;
    gap: .4rem;
}
.entity-card-footer {
    padding: .6rem 1.2rem;
    border-top: 1px solid var(--border);
    font-size: .8rem;
    color: var(--muted);
    text-align: right;
}

/* ── DISH SEPARATOR ── */
.dish-separator {
    position: relative;
    text-align: center;
    margin: 1rem 0 .5rem;
}
.dish-separator hr {
    border: none;
    border-top: 1px solid var(--border);
}
.dish-separator-label {
    position: relative;
    top: -0.2rem;
    background: var(--cream);
    padding: 0 1rem;
    font-size: .82rem;
    color: var(--muted);
}

/* ── DISH DETAIL ── */
.dish-detail {
    max-width: 600px;
    margin: 0 auto;
}
.dish-detail-hero {
    border-radius: .6rem .6rem 0 0;
    overflow: hidden;
    border: 2px solid var(--border);
    border-bottom: none;
    max-height: 350px;
}
.dish-detail-hero img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    max-height: 350px;
}
.dish-detail-card {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: .6rem;
    padding: 2rem;
}
.dish-detail-hero + .dish-detail-card {
    border-radius: 0 0 .6rem .6rem;
}
.dish-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.2rem;
}
.dish-detail-header h1 {
    font-size: 1.6rem;
    margin: 0;
}
.dish-detail-info {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    margin-bottom: 1.5rem;
}
.dish-detail-info-item {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .95rem;
    color: var(--muted);
}
.dish-detail-info-item i {
    width: 1.2rem;
    text-align: center;
    flex-shrink: 0;
}
.dish-detail-info-item a {
    color: var(--accent);
    text-decoration: none;
}
.dish-detail-info-item a:hover {
    text-decoration: underline;
}
.dish-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--border);
}

/* ── CHECK-IN DETAIL ── */
.checkin-detail {
    max-width: 600px;
    margin: 0 auto;
}
.checkin-detail-hero {
    border-radius: .6rem .6rem 0 0;
    overflow: hidden;
    border: 2px solid var(--border);
    border-bottom: none;
    max-height: 450px;
}
.checkin-detail-hero img {
    width: 100%;
    display: block;
    max-height: 450px;
    object-fit: cover;
}
.checkin-detail-card {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: .6rem;
    padding: 2rem;
}
.checkin-detail-hero + .checkin-detail-card {
    border-radius: 0 0 .6rem .6rem;
}
.checkin-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.2rem;
}
.checkin-detail-header h1 {
    font-size: 1.6rem;
    margin: 0;
}
.checkin-detail-info {
    display: flex;
    flex-direction: column;
    gap: .6rem;
}
.checkin-detail-info-item {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .95rem;
    color: var(--muted);
}
.checkin-detail-info-item i {
    width: 1.2rem;
    text-align: center;
    flex-shrink: 0;
}
.checkin-detail-info-item a {
    color: var(--accent);
    text-decoration: none;
}
.checkin-detail-info-item a:hover {
    text-decoration: underline;
}
.checkin-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    padding-top: 1.2rem;
    margin-top: 1.5rem;
    border-top: 1px solid var(--border);
}

/* ── DISH GALLERY ── */
.dish-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
    gap: .5rem;
}
.dish-gallery-item {
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: .4rem;
    border: 2px solid var(--border);
    transition: border-color .2s, transform .15s;
    display: block;
}
.dish-gallery-item:hover {
    border-color: var(--accent);
    transform: scale(1.03);
}
.dish-gallery-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── STAT CARDS ── */
.stat-card {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: .6rem;
    padding: 1.2rem;
    text-align: center;
    transition: border-color .2s;
}
.stat-card:hover {
    border-color: var(--accent);
}
.stat-card h3 {
    font-size: 2rem;
    margin: 0;
    color: var(--accent);
}
.stat-card small {
    font-size: .82rem;
    color: var(--muted);
}

/* ── BADGES ── */
.user-badge {
    font-size: .85rem;
    background: #fef0eb;
    color: var(--accent);
    border: 1.5px solid #f7c9b8;
    border-radius: 2rem;
    padding: .35rem .9rem;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
}

/* ── TABLES ── */
.detail-table {
    width: 100%;
    border-collapse: collapse;
}
.detail-table th,
.detail-table td {
    padding: .75rem 1rem;
    border-bottom: 1px solid var(--border);
    text-align: left;
}
.detail-table th {
    font-size: .9rem;
    color: var(--muted);
    width: 35%;
}
.detail-table td {
    font-size: .95rem;
    word-break: break-word;
}
.detail-table a {
    color: var(--accent);
    text-decoration: none;
}
.detail-table a:hover {
    text-decoration: underline;
}

/* ── RESTAURANT DETAIL ── */
.restaurant-detail-card {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: .6rem;
    padding: 2rem;
    max-width: 600px;
    margin: 0 auto;
}
.restaurant-detail-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    margin-bottom: 1.2rem;
}
.restaurant-detail-header h1 {
    font-size: 1.6rem;
    margin: 0;
}
.restaurant-detail-info {
    display: flex;
    flex-direction: column;
    gap: .6rem;
    margin-bottom: 1.5rem;
}
.restaurant-detail-info-item {
    display: flex;
    align-items: center;
    gap: .6rem;
    font-size: .95rem;
    color: var(--muted);
}
.restaurant-detail-info-item i {
    width: 1.2rem;
    text-align: center;
    flex-shrink: 0;
}
.restaurant-detail-info-item a {
    color: var(--accent);
    text-decoration: none;
}
.restaurant-detail-info-item a:hover {
    text-decoration: underline;
}
.restaurant-detail-actions {
    display: flex;
    flex-wrap: wrap;
    gap: .5rem;
    padding-top: 1.2rem;
    border-top: 1px solid var(--border);
}

/* ── ANTI-SPAM HONEYPOT ── */
.hp-field {
    position: absolute;
    left: -9999px;
    top: -9999px;
    opacity: 0;
    height: 0;
    width: 0;
    overflow: hidden;
    pointer-events: none;
}

/* ── FORMS ── */
.form-small {
    max-width: 460px;
    margin: 0 auto;
}
.form-control,
.form-select {
    border: 2px solid var(--border);
    border-radius: .35rem;
    padding: .6rem .9rem;
    font-size: .95rem;
    transition: border-color .2s;
    background: var(--card-bg);
}
.form-control:focus,
.form-select:focus {
    border-color: var(--accent);
    box-shadow: 0 0 0 3px rgba(232,76,30,.1);
    outline: none;
}
/* Tom-Select: match native input style */
.ts-wrapper.form-control,
.ts-wrapper.form-select {
    border: none !important;
    padding: 0 !important;
    background: none !important;
    box-shadow: none !important;
}
.ts-wrapper .ts-control,
.ts-wrapper .ts-control input {
    border: 2px solid var(--border) !important;
    border-radius: .35rem !important;
    padding: 1rem .9rem .6rem .9rem !important;
    font-size: .95rem !important;
    background: var(--card-bg) !important;
    background-image: none !important;
    transition: border-color .2s;
}
.ts-wrapper .ts-control input {
    border: none !important;
    padding: 0 !important;
    background: transparent !important;
}
.ts-wrapper.focus .ts-control {
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 3px rgba(232,76,30,.1) !important;
}
label {
    font-size: .9rem;
    margin-bottom: .3rem;
    display: block;
}
.form-check-label {
    display: inline;
}

/* ── SEARCH FORM ── */
.search-form {
    background: var(--card-bg);
    border: 2px solid var(--border);
    border-radius: .6rem;
    padding: 1.2rem;
    margin-bottom: 2rem;
}

/* ── PAGINATION ── */
.pagination .page-link {
    color: var(--ink);
    border: 1.5px solid var(--border);
    border-radius: .3rem;
    margin: 0 .15rem;
    padding: .35rem .7rem;
    font-size: .9rem;
    transition: background .2s, color .2s;
}
.pagination .page-item.active .page-link {
    background: var(--accent);
    border-color: var(--accent);
    color: #fff;
}
.pagination .page-link:hover {
    background: var(--ink);
    border-color: var(--ink);
    color: var(--cream);
}
.pagination .page-item.disabled .page-link {
    color: var(--border);
    background: transparent;
}

/* ── ALERTS ── */
.alert {
    border-radius: .5rem;
    border: 2px solid;
    font-size: .9rem;
}
.alert-success {
    background: #f0faf0;
    border-color: #7bc67b;
    color: #2d6a2d;
}
.alert-danger {
    background: #fef0eb;
    border-color: var(--accent);
    color: #8b2500;
}
.alert-info {
    background: #f0f4fa;
    border-color: #7ba3c6;
    color: #2d4a6a;
}
.alert-warning {
    background: #fef8ec;
    border-color: var(--accent2);
    color: #6a4a00;
}

/* ── FOOTER ── */
.site-footer {
    border-top: 2px solid var(--border);
    background: var(--card-bg);
    padding: 1.5rem 2rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: .5rem;
}
.site-footer .brand {
    font-size: .9rem;
    color: var(--ink);
}
.site-footer .meta {
    font-size: .8rem;
    color: var(--muted);
    display: flex;
    align-items: center;
    gap: .4rem;
}
.site-footer .meta i { color: var(--accent2); }

/* ── CONTENT SECTIONS ── */
.content-section {
    padding: 2rem 0;
}

/* ── BACK LINK ── */
.back-link {
    font-size: .88rem;
    color: var(--muted);
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    gap: .4rem;
    transition: color .2s;
    margin-bottom: 1rem;
}
.back-link:hover {
    color: var(--ink);
}

/* ── DETAIL PAGE ── */
.detail-wrapper {
    max-width: 560px;
    margin: 0 auto;
}

/* ── FAVORITE HEART ── */
.favorite-btn {
    background: none;
    border: none;
    cursor: pointer;
    padding: 0;
    font-size: 1rem;
    transition: transform .15s;
}
.favorite-btn:hover {
    transform: scale(1.2);
}

/* ── EDIT ICON ── */
.edit-link {
    color: var(--muted);
    font-size: .85rem;
    transition: color .2s;
}
.edit-link:hover {
    color: var(--accent);
}

/* ── MAP ── */
gmp-map {
    width: 100%;
    height: 400px;
    border-radius: .6rem;
    border: 2px solid var(--border);
    margin-top: 1rem;
}

/* ── SEPARATOR ── */
.separator {
    text-align: center;
    color: var(--border);
    margin: 1.5rem 0;
    font-size: .9rem;
}
.separator::before,
.separator::after {
    content: '— ';
}
.separator::after {
    content: ' —';
}

/* ── SCAN RESULTS ── */
.scan-card {
    border: 2px solid var(--border);
    border-radius: .6rem;
    overflow: hidden;
    margin-bottom: 1rem;
}
.scan-card-header {
    padding: .8rem 1rem;
}
.scan-card-body {
    padding: .8rem 1rem;
}
.scan-card.is-duplicate {
    border-color: var(--accent2);
}
.scan-card.is-duplicate .scan-card-header {
    background: #fef8ec;
}
.scan-card.is-new .scan-card-header {
    background: #f0faf0;
}

/* ── TEXT HELPERS ── */
.text-muted { color: var(--muted) !important; }
.text-accent { color: var(--accent) !important; }
.text-accent2 { color: var(--accent2) !important; }

/* ── IMAGE ── */
.detail-image {
    border: 2px solid var(--border);
    border-radius: .6rem;
    width: 100%;
}

/* ── DROPZONE overrides ── */
.dropzone {
    border: 2px dashed var(--border) !important;
    border-radius: .6rem !important;
    background: var(--card-bg) !important;
}

/* ── NAVBAR COLLAPSE (mobile menu) ── */
@media (max-width: 767.98px) {
    .nav-auth {
        margin-top: .75rem;
        padding-top: .75rem;
        padding-bottom: .75rem;
        border-top: 1px solid var(--border);
    }
}

/* ══════════════════════════════════════════
   MOBILE RESPONSIVE (max-width: 576px)
   ══════════════════════════════════════════ */
@media (max-width: 576px) {
    /* Navbar */
    .navbar {
        padding: 0 1rem;
    }

    /* Hero */
    .hero {
        padding: 3rem 1rem 2.5rem;
    }
    .hero-logo {
        width: 100px;
    }
    .hero-subtitle {
        font-size: .95rem;
        margin-bottom: 1.8rem;
    }

    /* Perk strip */
    .perk-strip {
        padding: .8rem 1rem;
        gap: .6rem 1.2rem;
    }
    .perk-item {
        font-size: .72rem;
    }

    /* Features */
    .features {
        padding: 2.5rem 1rem;
    }
    .feature-card {
        padding: 1.2rem 1rem;
    }

    /* Legend */
    .legend-section {
        padding: 3rem 1rem;
    }

    /* CTA */
    .cta-section {
        padding: 3rem 1rem;
    }

    /* Detail table — stack vertically */
    .detail-table,
    .detail-table tbody,
    .detail-table tr,
    .detail-table th,
    .detail-table td {
        display: block;
        width: 100%;
    }
    .detail-table tr {
        padding: .5rem 0;
        border-bottom: 1px solid var(--border);
    }
    .detail-table th {
        border-bottom: none;
        padding: .4rem 0 0;
        font-size: .82rem;
    }
    .detail-table td {
        border-bottom: none;
        padding: 0 0 .4rem;
    }

    /* Forms */
    .form-small {
        max-width: 100%;
        padding: 0 .5rem;
    }

    /* Detail wrapper */
    .detail-wrapper {
        max-width: 100%;
        padding: 0 .5rem;
    }

    /* Pagination — larger tap targets */
    .pagination .page-link {
        padding: .55rem .85rem;
        font-size: .85rem;
        min-width: 2.5rem;
        min-height: 2.5rem;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }

    /* Map — shorter */
    gmp-map {
        height: 250px;
    }

    /* Entity card — horizontal layout on mobile */
    .entity-card {
        flex-direction: row;
        height: auto;
    }
    .entity-card-img-wrapper {
        flex-shrink: 0;
        width: 110px;
    }
    .entity-card-img {
        aspect-ratio: 1;
        width: 100%;
        height: 100%;
        object-fit: cover;
    }
    .entity-card-header {
        padding: .6rem .8rem .2rem;
    }
    .entity-card-body {
        padding: .2rem .8rem .4rem;
    }
    .entity-card-actions {
        padding: .4rem .8rem .6rem;
    }

    /* Footer */
    .site-footer {
        padding: 1rem;
        flex-direction: column;
        text-align: center;
    }

    /* Content sections */
    .content-section {
        padding: 1.5rem 0;
    }

    /* Headings */
    h1 {
        font-size: 1.6rem;
        margin: 1.2rem 0 1rem;
    }
    h2 {
        font-size: 1.3rem;
    }

    /* Search form */
    .search-form {
        padding: .8rem;
    }

    /* Address form flex rows — stack */
    .address-row {
        flex-direction: column;
    }
    .address-row > * {
        margin-left: 0 !important;
        margin-right: 0 !important;
    }
}

/* ══════════════════════════════════════════
   TAP TARGETS (touch devices)
   ══════════════════════════════════════════ */
@media (pointer: coarse) {
    .back-link {
        min-height: 44px;
        display: inline-flex;
        align-items: center;
    }
    .favorite-btn {
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .edit-link {
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .nav-user-logout {
        min-width: 44px;
        min-height: 44px;
        display: inline-flex;
        align-items: center;
        justify-content: center;
    }
    .btn-ghost {
        min-height: 44px;
    }
    .btn-danger-custom {
        min-height: 44px;
    }
}
