:root {
    --accent: #1a6b54;
    --bg: #fafaf8;
    --text: #1c1c1c;
    --muted: #6b6b6b;
    --card-bg: #ffffff;
    --border: #e4e4e0;
}

* { box-sizing: border-box; }

body {
    margin: 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
    background: var(--bg);
    color: var(--text);
    line-height: 1.5;
}

.topbar {
    display: flex;
    align-items: baseline;
    gap: 1rem;
    padding: 1.2rem 2rem;
    background: var(--accent);
    color: white;
}

.nav-auth {
    margin-left: auto;
    display: flex;
    align-items: baseline;
    gap: 1rem;
    font-size: 0.9rem;
}

.nav-auth a, .nav-auth .link-btn {
    color: white;
    text-decoration: none;
    opacity: 0.9;
}
.nav-auth a:hover, .nav-auth .link-btn:hover { opacity: 1; text-decoration: underline; }

.inline-form { display: inline; }

.link-btn {
    background: none;
    border: none;
    padding: 0;
    font: inherit;
    cursor: pointer;
}

.form-error {
    background: #fdecea;
    color: #b3261e;
    border: 1px solid #f5c2c0;
    border-radius: 6px;
    padding: 0.6rem 1rem;
    font-size: 0.9rem;
}

.topbar .brand {
    font-weight: 700;
    font-size: 1.4rem;
    color: white;
    text-decoration: none;
}

.topbar .tagline {
    font-size: 0.9rem;
    opacity: 0.85;
}

.container {
    max-width: 960px;
    margin: 0 auto;
    padding: 2rem;
}

h1 { margin-top: 0; }
.lead { color: var(--muted); font-size: 1.05rem; }

.card-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.city-card, .listing-card {
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    padding: 1.2rem;
    text-decoration: none;
    color: var(--text);
    transition: box-shadow 0.15s ease;
}

.city-card:hover, .listing-card:hover {
    box-shadow: 0 2px 10px rgba(0,0,0,0.08);
}

.listing-card h3 { margin: 0 0 0.3rem; }
.meta { color: var(--muted); font-size: 0.85rem; margin: 0.2rem 0; }
.price { font-weight: 700; color: var(--accent); margin: 0.3rem 0; }
.badge {
    display: inline-block;
    background: #eef6f2;
    color: var(--accent);
    padding: 0.2rem 0.7rem;
    border-radius: 20px;
    font-size: 0.85rem;
}

.btn {
    display: inline-block;
    margin-top: 0.6rem;
    background: var(--accent);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    text-decoration: none;
    font-size: 0.9rem;
    border: none;
    cursor: pointer;
}

.info-list { list-style: none; padding: 0; }
.info-list li {
    border-bottom: 1px solid var(--border);
    padding: 0.8rem 0;
}

.back-link { color: var(--muted); text-decoration: none; font-size: 0.9rem; }
.empty { color: var(--muted); font-style: italic; }

.contact-section {
    margin-top: 3rem;
    padding-top: 1.5rem;
    border-top: 1px solid var(--border);
}

.lead-form {
    display: flex;
    flex-direction: column;
    gap: 0.6rem;
    max-width: 420px;
}

.lead-form input, .lead-form textarea {
    padding: 0.6rem;
    border: 1px solid var(--border);
    border-radius: 6px;
    font-family: inherit;
}

.map-container {
    height: 420px;
    border-radius: 10px;
    margin: 1.2rem 0 0.5rem;
    border: 1px solid var(--border);
    background: #eee;
}

.map-legend {
    font-size: 0.85rem;
    color: var(--muted);
    margin: 0 0 1.5rem;
}

.legend-dot {
    display: inline-block;
    width: 10px;
    height: 10px;
    border-radius: 50%;
    margin: 0 4px 0 12px;
    vertical-align: middle;
}
.legend-dot:first-child { margin-left: 0; }
.legend-accommodation { background: #1a6b54; }
.legend-car { background: #c0742d; }
.legend-attraction { background: #3a5aab; }

.highlight-pulse {
    animation: relobase-pulse 1.8s ease-out;
}

@keyframes relobase-pulse {
    0%   { box-shadow: 0 0 0 0 rgba(26, 107, 84, 0.5); }
    100% { box-shadow: 0 0 0 14px rgba(26, 107, 84, 0); }
}

.admin-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
}

.link-btn-outline {
    background: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 0.4rem 0.9rem;
    font-size: 0.85rem;
    cursor: pointer;
    color: var(--muted);
}
.link-btn-outline:hover { border-color: var(--accent); color: var(--accent); }

.admin-table {
    width: 100%;
    border-collapse: collapse;
    background: var(--card-bg);
    border: 1px solid var(--border);
    border-radius: 10px;
    overflow: hidden;
    font-size: 0.9rem;
}

.admin-table th, .admin-table td {
    text-align: left;
    padding: 0.7rem 1rem;
    border-bottom: 1px solid var(--border);
}

.admin-table th {
    background: #f5f5f2;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    color: var(--muted);
}

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

.admin-actions { display: flex; gap: 0.8rem; flex-wrap: wrap; }

.badge-ok { background: #eef6f2; color: var(--accent); padding: 0.15rem 0.6rem; border-radius: 20px; font-size: 0.8rem; }
.badge-warn { background: #fff6e6; color: #a9690b; padding: 0.15rem 0.6rem; border-radius: 20px; font-size: 0.8rem; }
.badge-danger { background: #fdecea; color: #b3261e; padding: 0.15rem 0.6rem; border-radius: 20px; font-size: 0.8rem; }

.link-btn-danger { color: #b3261e; }

.footer {
    text-align: center;
    color: var(--muted);
    font-size: 0.8rem;
    padding: 2rem;
}
