:root {
    --bg: #f5f7fb;
    --card: #ffffff;
    --text: #1f2937;
    --muted: #6b7280;
    --line: #d6dde8;
    --brand: #1f6f78;
    --brand-dark: #174f55;
    --accent: #e8f4f5;
    --danger: #b42318;
    --success: #157347;
    --warning: #9a6700;
    --radius: 14px;
    --shadow: 0 12px 30px rgba(16, 24, 40, 0.08);
}
* { box-sizing: border-box; }
body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: var(--bg);
    color: var(--text);
}
a { color: var(--brand); text-decoration: none; }
a:hover { text-decoration: underline; }
.container {
    width: min(1180px, calc(100% - 32px));
    margin: 0 auto;
}

.announcement-bar {
    background: #2d6cdf;
    color: #fff;
    padding: 8px 10px;
    font-size: 14px;

    display: flex;
    justify-content: center;
    align-items: center;
    text-align: center;
    gap: 5px;
}

.announcement-bar a {
    color: #fff;              /* force white link */
    font-weight: bold;
    text-decoration: underline;
}

.announcement-bar a:hover {
    color: #fff;              /* stop it turning green */
    opacity: 0.85;            /* subtle hover effect */
}
.site-header {
    position: sticky;
    top: 0;
    z-index: 50;
    background: rgba(255,255,255,0.95);
    backdrop-filter: blur(8px);
    border-bottom: 1px solid var(--line);
}
.nav-wrap {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 72px;
    gap: 20px;
}
.logo {
    font-size: 24px;
    font-weight: 700;
    color: var(--text);
}
.site-nav {
    display: flex;
    gap: 18px;
    flex-wrap: wrap;
}
.site-nav a {
    color: var(--muted);
    font-weight: 600;
}
.site-nav a.active,
.site-nav a:hover {
    color: var(--brand);
    text-decoration: none;
}
.hero {
    padding: 32px 0 20px;
}
.hero-grid {
    display: grid;
    grid-template-columns: 1.2fr 0.8fr;
    gap: 24px;
}
.card {
    background: var(--card);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
}
.hero-card,
.stats-card,
.search-card,
.form-card,
.admin-card {
    padding: 24px;
}
.eyebrow {
    display: inline-flex;
    background: var(--accent);
    color: var(--brand-dark);
    padding: 8px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 12px;
}
h1, h2, h3 { margin: 0 0 12px; line-height: 1.15; }
h1 { font-size: 42px; }
h2 { font-size: 28px; }
h3 { font-size: 20px; }
p { color: var(--muted); line-height: 1.6; }
.search-card {
    margin-bottom: 20px;
}
.search-grid,
.form-grid,
.admin-grid {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 16px;
}
.field { grid-column: span 12; }
.field.half { grid-column: span 6; }
.field.third { grid-column: span 4; }
label {
    display: block;
    font-size: 14px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--text);
}
input[type="text"],
input[type="email"],
input[type="tel"],
input[type="date"],
input[type="time"],
input[type="password"],
textarea,
select {
    width: 100%;
    border: 1px solid var(--line);
    background: #fff;
    border-radius: 12px;
    padding: 14px 14px;
    font-size: 16px;
    color: var(--text);
}
textarea { min-height: 150px; resize: vertical; }
.actions {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
    align-items: center;
}
.btn,
button,
input[type="submit"] {
    appearance: none;
    border: 0;
    background: var(--brand);
    color: #fff;
    padding: 14px 18px;
    border-radius: 12px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
}
.btn:hover,
button:hover,
input[type="submit"]:hover { background: var(--brand-dark); text-decoration: none; }
.btn.secondary { background: #fff; color: var(--text); border: 1px solid var(--line); }
.btn.secondary:hover { background: #f8fafc; }
.layout-grid {
    display: grid;
    grid-template-columns: 380px 1fr;
    gap: 20px;
    align-items: start;
}
.results-col { display: grid; gap: 16px; }
.map-panel, .list-panel { padding: 18px; }
.map-canvas {
    width: 100%;
    min-height: 600px;
    border-radius: 14px;
    overflow: hidden;
    border: 1px solid var(--line);
}
.sale-list { display: grid; gap: 16px; }
.sale-card {
    display: grid;
    grid-template-columns: 150px 1fr;
    gap: 16px;
    padding: 16px;
    border: 1px solid var(--line);
    border-radius: 14px;
    background: #fff;
}
.sale-card img,
.detail-image img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 12px;
    background: #eef2f7;
}
.sale-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin: 8px 0 10px;
}
.meta-pill, .badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}
.meta-pill { background: #f2f4f7; color: #344054; }
.badge-approved { background: #e8fff1; color: var(--success); }
.badge-pending { background: #fff7e8; color: var(--warning); }
.badge-expired { background: #fdecec; color: var(--danger); }
.featured-flag {
    display: inline-block;
    margin-bottom: 8px;
    color: #875300;
    background: #fff1c7;
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}
.results-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    margin-bottom: 14px;
}
.muted { color: var(--muted); }
.notice {
    padding: 14px 16px;
    border-radius: 12px;
    margin-bottom: 16px;
    border: 1px solid var(--line);
}
.notice.success { background: #ecfdf3; border-color: #b7ebc6; color: #05603a; }
.notice.error { background: #fef3f2; border-color: #f7c5c0; color: #b42318; }
.table-wrap { overflow-x: auto; }
table {
    width: 100%;
    border-collapse: collapse;
}
th, td {
    text-align: left;
    padding: 12px 10px;
    border-bottom: 1px solid var(--line);
    font-size: 14px;
    vertical-align: top;
}
th { color: #475467; }
.admin-actions {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}
.small-link {
    font-size: 13px;
    font-weight: 700;
}
.detail-grid {
    display: grid;
    grid-template-columns: 1.1fr 0.9fr;
    gap: 24px;
    padding: 28px 0 48px;
}
.detail-card { padding: 24px; }
.kv {
    display: grid;
    grid-template-columns: 140px 1fr;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--line);
}


.site-footer {
    margin-top: 60px;
    background: #1F6F78;
    padding: 60px 20px 30px;
    text-align: center;
}

.footer-links {
    display: flex;
    justify-content: center;
    gap: 14px;
    flex-wrap: wrap;
    margin-bottom: 50px;
}

/* NEW STYLE BUTTONS */
.footer-links a {
    background: #1e293b; /* soft dark card */
    color: #e2e8f0;
    text-decoration: none;
    border-radius: 10px;
    padding: 12px 20px;
    font-size: 15px;
    transition: all 0.25s ease;
    box-shadow: 0 4px 10px rgba(0,0,0,0.25);
}

.footer-links a:hover {
    background: #2563eb; /* blue highlight */
    color: #fff;
    transform: translateY(-2px);
}

.footer-brand {
    color: #fff;
    font-size: 18px;
    margin-bottom: 8px;
}

.footer-meta {
    color: rgba(255,255,255,0.6);
    font-size: 13px;
}

.footer-small-links {
    margin-top: 20px;
    margin-bottom: 20px;
    font-size: 13px;
    color: rgba(255,255,255,0.7);
}

.footer-small-links a {
    color: rgba(255,255,255,0.8);
    text-decoration: none;
    margin: 0 6px;
}

.footer-small-links a:hover {
    text-decoration: underline;
}

.inline-note { font-size: 13px; color: var(--muted); margin-top: 6px; }
.empty-state {
    padding: 28px;
    text-align: center;
    border: 1px dashed var(--line);
    border-radius: 14px;
    background: #fff;
}
@media (max-width: 980px) {
    .hero-grid,
    .layout-grid,
    .detail-grid { grid-template-columns: 1fr; }
    h1 { font-size: 34px; }
}
@media (max-width: 720px) {
    .field.half,
    .field.third { grid-column: span 12; }
    .sale-card { grid-template-columns: 1fr; }
    .footer-wrap,
    .results-head,
    .nav-wrap { flex-direction: column; align-items: flex-start; }
    .map-canvas { min-height: 420px; }
}

#mapView {
    display: none;
}