/* ============================================================
   Southern Tip Insider — Core Stylesheet
   Brand: Navy #0B2A4A · Cyan #1FA9C4
   ============================================================ */

:root {
  --navy: #0B2A4A;
  --navy-light: #123a63;
  --cyan: #1FA9C4;
  --cyan-light: #EAF6F9;
  --sand: #FAF6EF;
  --ink: #1A1A1A;
  --grey: #666666;
  --grey-light: #E5E9EC;
  --white: #FFFFFF;
  --radius: 14px;
  --shadow: 0 6px 24px rgba(11, 42, 74, 0.12);
  --shadow-sm: 0 2px 10px rgba(11, 42, 74, 0.08);
  --maxw: 1180px;
  --font: "Poppins", "Segoe UI", Arial, sans-serif;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }

body {
  margin: 0;
  font-family: var(--font);
  color: var(--ink);
  background: var(--sand);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
}

img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, h4 { font-weight: 700; color: var(--navy); margin: 0 0 0.5em; line-height: 1.2; }
p { margin: 0 0 1em; }
ul { margin: 0; padding: 0; list-style: none; }
.container { max-width: var(--maxw); margin: 0 auto; padding: 0 20px; }

section { padding: 64px 0; }
.section-alt { background: var(--white); }
.section-navy { background: var(--navy); color: var(--white); }
.section-navy h2, .section-navy h3 { color: var(--white); }
.section-tint { background: var(--cyan-light); }

.eyebrow {
  display: inline-block;
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--cyan);
  margin-bottom: 10px;
}
.section-navy .eyebrow { color: var(--cyan); }

.section-head { text-align: center; max-width: 720px; margin: 0 auto 40px; }
.section-head h2 { font-size: clamp(26px, 4vw, 36px); }
.section-head p { color: var(--grey); font-size: 17px; }
.section-navy .section-head p { color: #C9D8E6; }

/* ---------- Buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 13px 26px;
  border-radius: 999px;
  font-weight: 600;
  font-size: 15px;
  border: 2px solid transparent;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, background 0.15s ease, color 0.15s ease;
  white-space: nowrap;
}
.btn:hover { transform: translateY(-2px); }
.btn-primary { background: var(--cyan); color: var(--navy); box-shadow: var(--shadow-sm); }
.btn-primary:hover { background: #17b6d4; }
.btn-navy { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-light); }
.btn-outline { border-color: var(--white); color: var(--white); }
.btn-outline:hover { background: var(--white); color: var(--navy); }
.btn-outline-navy { border-color: var(--navy); color: var(--navy); background: transparent; }
.btn-outline-navy:hover { background: var(--navy); color: var(--white); }
.btn-whatsapp { background: #25D366; color: #fff; }
.btn-whatsapp:hover { background: #1ebe58; }
.btn-sm { padding: 9px 18px; font-size: 13px; }
.btn-block { width: 100%; justify-content: center; }
.btn-disabled {
  background: var(--grey-light); color: var(--grey); cursor: not-allowed; pointer-events: none;
}
.btn-disabled:hover { transform: none; }

/* ---------- Header / Nav ---------- */
.site-header {
  position: sticky; top: 0; z-index: 100;
  background: rgba(11,42,74,0.97);
  backdrop-filter: blur(6px);
  box-shadow: 0 2px 12px rgba(0,0,0,0.15);
}
.nav-wrap {
  display: flex; align-items: center; justify-content: space-between;
  padding: 12px 20px; max-width: var(--maxw); margin: 0 auto;
}
.brand { display: flex; align-items: center; gap: 10px; }
.brand img { width: 40px; height: 40px; object-fit: contain; }
.brand-text { line-height: 1.1; }
.brand-text .en { color: var(--white); font-weight: 700; font-size: 16px; display: block; }
.brand-text .af { color: var(--cyan); font-size: 11px; letter-spacing: 0.04em; display: block; }

.nav-links {
  display: flex; align-items: center; gap: 4px; flex-wrap: wrap;
}
.nav-links a {
  color: #DCE7EF; font-size: 14px; font-weight: 600; padding: 10px 12px;
  border-radius: 8px; transition: background 0.15s, color 0.15s;
}
.nav-links a:hover, .nav-links a.active { background: rgba(31,169,196,0.18); color: var(--cyan); }
.nav-cta { margin-left: 6px; }

.nav-toggle {
  display: none; background: none; border: none; cursor: pointer;
  color: var(--white); font-size: 26px; line-height: 1;
}

@media (max-width: 960px) {
  .nav-toggle { display: block; }
  .nav-links {
    position: fixed; top: 66px; left: 0; right: 0; bottom: 0;
    background: var(--navy); flex-direction: column; align-items: stretch;
    padding: 20px; gap: 6px; transform: translateX(100%);
    transition: transform 0.25s ease; overflow-y: auto;
  }
  .nav-links.open { transform: translateX(0); }
  .nav-links a { padding: 14px 16px; font-size: 16px; }
  .nav-cta { margin: 10px 0 0; }
}

/* ---------- Hero ---------- */
.hero {
  position: relative; color: var(--white);
  min-height: 66vh; display: flex; align-items: flex-end;
  background-size: cover; background-position: center;
}
.hero::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(180deg, rgba(11,42,74,0.25) 0%, rgba(11,42,74,0.85) 100%);
}
.hero-inner { position: relative; z-index: 2; padding: 60px 20px; max-width: var(--maxw); margin: 0 auto; width: 100%; }
.hero-tag { color: var(--cyan); font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; font-size: 13px; }
.hero h1 { color: var(--white); font-size: clamp(32px, 6vw, 58px); margin: 8px 0 14px; max-width: 820px; }
.hero p.lead { font-size: clamp(16px, 2vw, 19px); max-width: 620px; color: #EAF1F6; }
.hero-actions { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 22px; }

.hero-sm { min-height: 40vh; }
.hero-sm h1 { font-size: clamp(28px, 5vw, 44px); }

/* ---------- Status banner ---------- */
.status-banner {
  background: var(--cyan); color: var(--navy);
  text-align: center; padding: 12px 20px; font-weight: 600; font-size: 14px;
}
.status-banner a { text-decoration: underline; }

/* ---------- Quick nav tiles ---------- */
.tiles { display: grid; grid-template-columns: repeat(4, 1fr); gap: 20px; }
@media (max-width: 800px) { .tiles { grid-template-columns: repeat(2, 1fr); } }
.tile {
  background: var(--white); border-radius: var(--radius); padding: 26px 20px;
  text-align: center; box-shadow: var(--shadow-sm); transition: transform 0.15s, box-shadow 0.15s;
  border: 1px solid var(--grey-light);
}
.tile:hover { transform: translateY(-4px); box-shadow: var(--shadow); }
.tile .icon { font-size: 34px; margin-bottom: 10px; }
.tile h3 { font-size: 17px; margin-bottom: 4px; }
.tile p { font-size: 13.5px; color: var(--grey); margin: 0; }

/* ---------- Card grids ---------- */
.grid { display: grid; gap: 26px; }
.grid-3 { grid-template-columns: repeat(3, 1fr); }
.grid-2 { grid-template-columns: repeat(2, 1fr); }
@media (max-width: 900px) { .grid-3 { grid-template-columns: 1fr 1fr; } }
@media (max-width: 640px) { .grid-3, .grid-2 { grid-template-columns: 1fr; } }

.card {
  background: var(--white); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-sm); border: 1px solid var(--grey-light);
  display: flex; flex-direction: column;
}
.card img { height: 190px; width: 100%; object-fit: cover; }
.card-body { padding: 20px 22px; flex: 1; display: flex; flex-direction: column; }
.card-body h3 { font-size: 18px; }
.card-body p { color: var(--grey); font-size: 14.5px; }
.card-tag {
  display: inline-block; background: var(--cyan-light); color: var(--navy);
  font-size: 11.5px; font-weight: 700; padding: 4px 10px; border-radius: 999px;
  margin-bottom: 10px; align-self: flex-start; text-transform: uppercase; letter-spacing: 0.03em;
}
.card-tag.gold { background: #FFF3D6; color: #8a5a00; }
.card-footer { margin-top: auto; padding-top: 12px; display: flex; gap: 10px; flex-wrap: wrap; }

/* image-as-link treatment (used in directory cards with an outbound link) */
.card-img-link { position: relative; display: block; }
.card-img-link img { transition: transform 0.25s ease; }
.card-img-link:hover img { transform: scale(1.04); }
.card-img-link .link-hint {
  position: absolute; top: 10px; left: 10px; background: rgba(11,42,74,0.85); color: #fff;
  font-size: 11px; font-weight: 700; padding: 4px 10px; border-radius: 999px; z-index: 2;
}

/* image gallery strip (used for multi-photo property cards) */
.img-strip { display: grid; grid-template-columns: 2fr 1fr; gap: 3px; height: 220px; }
.img-strip img { height: 100%; width: 100%; object-fit: cover; }

/* ---------- Town profile ---------- */
.town-hero { padding: 60px 0; }
.town-facts {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; margin: 30px 0;
}
@media (max-width: 700px) { .town-facts { grid-template-columns: 1fr; } }
.fact-box {
  background: var(--white); border-radius: var(--radius); padding: 20px;
  border: 1px solid var(--grey-light); text-align: center;
}
.fact-box .num { font-size: 26px; font-weight: 800; color: var(--cyan); display: block; }
.fact-box .label { font-size: 13px; color: var(--grey); }

.attraction-list li {
  display: flex; gap: 14px; padding: 16px 0; border-bottom: 1px solid var(--grey-light);
}
.attraction-list li:last-child { border-bottom: none; }
.attraction-list .num-badge {
  flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--navy);
  color: var(--white); display: flex; align-items: center; justify-content: center;
  font-weight: 700; font-size: 14px;
}
.attraction-list h4 { margin: 0 0 4px; font-size: 16px; }
.attraction-list p { margin: 0; color: var(--grey); font-size: 14.5px; }

/* ---------- Directory / filters ---------- */
.filter-bar {
  display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 34px;
  padding: 16px; background: var(--white); border-radius: var(--radius); border: 1px solid var(--grey-light);
}
.filter-group { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.filter-group .label { font-size: 12.5px; font-weight: 700; color: var(--grey); text-transform: uppercase; letter-spacing: 0.04em; margin-right: 4px; }
.chip {
  border: 1.5px solid var(--grey-light); background: var(--white); color: var(--ink);
  padding: 7px 14px; border-radius: 999px; font-size: 13.5px; font-weight: 600; cursor: pointer;
  transition: all 0.15s;
}
.chip:hover { border-color: var(--cyan); }
.chip.active { background: var(--navy); border-color: var(--navy); color: var(--white); }

.biz-card { position: relative; }
.biz-card .award-badge {
  position: absolute; top: 12px; right: 12px; background: #FFB703; color: #4a2e00;
  font-size: 11px; font-weight: 800; padding: 5px 10px; border-radius: 999px; box-shadow: var(--shadow-sm);
  z-index: 2;
}
.biz-meta { display: flex; gap: 10px; font-size: 13px; color: var(--grey); margin-bottom: 8px; flex-wrap: wrap; }
.biz-meta span { display: inline-flex; align-items: center; gap: 4px; }

.empty-state { text-align: center; padding: 50px 20px; color: var(--grey); display: none; }

/* ---------- Awards ---------- */
.awards-hero { background: linear-gradient(135deg, var(--navy) 0%, #0e3c66 100%); color: var(--white); }
.category-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 18px; }
@media (max-width: 900px) { .category-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 600px) { .category-grid { grid-template-columns: 1fr; } }
.cat-card {
  background: var(--white); border-radius: var(--radius); padding: 22px; border: 1px solid var(--grey-light);
  box-shadow: var(--shadow-sm);
}
.cat-card .num { color: var(--cyan); font-weight: 800; font-size: 13px; }
.cat-card h3 { font-size: 17px; margin: 6px 0 2px; }
.cat-card .af { color: var(--grey); font-style: italic; font-size: 13.5px; margin-bottom: 8px; }
.cat-card p { font-size: 13.5px; color: var(--grey); margin: 0; }

.timeline { display: grid; grid-template-columns: repeat(5, 1fr); gap: 14px; }
@media (max-width: 900px) { .timeline { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .timeline { grid-template-columns: 1fr; } }
.tl-step {
  background: var(--white); border-radius: var(--radius); padding: 18px; text-align: center;
  border-top: 4px solid var(--cyan); box-shadow: var(--shadow-sm);
}
.tl-step .date { font-weight: 800; color: var(--navy); font-size: 13.5px; }
.tl-step .desc { font-size: 13px; color: var(--grey); margin-top: 4px; }

/* ---------- Property / Live ---------- */
.property-card { border: 1px solid var(--grey-light); }
.property-card .price {
  font-size: 22px; font-weight: 800; color: var(--navy); margin-bottom: 4px;
}
.property-facts { display: flex; gap: 14px; font-size: 13.5px; color: var(--grey); margin: 8px 0 14px; flex-wrap: wrap; }
.property-facts span { display: flex; align-items: center; gap: 5px; }
.status-pill {
  display: inline-block; font-size: 11px; font-weight: 800; padding: 4px 10px; border-radius: 999px;
  text-transform: uppercase; letter-spacing: 0.03em;
}
.status-pill.available { background: #E4F7EA; color: #157347; }
.status-pill.offer { background: #FFF3D6; color: #8a5a00; }
.status-pill.sold { background: #F1F1F1; color: #666; }
.status-pill.auction { background: #FDEBD3; color: #a15c00; }

.agent-box {
  display: flex; align-items: center; gap: 16px; background: var(--white);
  border: 1px solid var(--grey-light); border-radius: var(--radius); padding: 22px;
  box-shadow: var(--shadow-sm);
}
.agent-avatar {
  width: 64px; height: 64px; border-radius: 50%; background: var(--navy); color: var(--white);
  display: flex; align-items: center; justify-content: center; font-weight: 800; font-size: 22px; flex: none;
}
.agent-box h4 { margin: 0; font-size: 16px; }
.agent-box p { margin: 2px 0 0; font-size: 13.5px; color: var(--grey); }

/* ---------- Forms ---------- */
.form-card {
  background: var(--white); border-radius: var(--radius); padding: 34px;
  box-shadow: var(--shadow); border: 1px solid var(--grey-light); max-width: 640px; margin: 0 auto;
}
.field { margin-bottom: 18px; }
.field label { display: block; font-weight: 600; font-size: 14px; margin-bottom: 6px; }
.field input, .field select, .field textarea {
  width: 100%; padding: 12px 14px; border-radius: 10px; border: 1.5px solid var(--grey-light);
  font-family: var(--font); font-size: 14.5px; background: var(--sand);
}
.field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--cyan); background: var(--white); }
.field-row { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
@media (max-width: 560px) { .field-row { grid-template-columns: 1fr; } }
.checkbox-row { display: flex; align-items: flex-start; gap: 10px; font-size: 13.5px; color: var(--grey); }
.checkbox-row input { width: auto; margin-top: 3px; }

/* ---------- Timeline / What's on ---------- */
.event-row {
  display: flex; gap: 20px; padding: 18px 0; border-bottom: 1px solid var(--grey-light); align-items: center;
}
.event-date {
  flex: none; width: 68px; text-align: center; background: var(--cyan-light); border-radius: 10px; padding: 10px 4px;
}
.event-date .d { font-size: 20px; font-weight: 800; color: var(--navy); display: block; }
.event-date .m { font-size: 11px; color: var(--grey); text-transform: uppercase; }
.event-info h4 { margin: 0 0 3px; font-size: 15.5px; }
.event-info p { margin: 0; font-size: 13.5px; color: var(--grey); }

/* ---------- Footer ---------- */
.site-footer { background: var(--navy); color: #C9D8E6; padding: 50px 0 20px; }
.footer-grid { display: grid; grid-template-columns: 2fr 1fr 1fr 1fr; gap: 30px; margin-bottom: 30px; }
@media (max-width: 800px) { .footer-grid { grid-template-columns: 1fr 1fr; } }
@media (max-width: 500px) { .footer-grid { grid-template-columns: 1fr; } }
.footer-grid h4 { color: var(--white); font-size: 14px; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 14px; }
.footer-grid a, .footer-grid p { color: #B7C7D6; font-size: 14px; display: block; margin-bottom: 8px; }
.footer-grid a:hover { color: var(--cyan); }
.footer-brand { display: flex; align-items: center; gap: 10px; margin-bottom: 14px; }
.footer-brand img { width: 36px; height: 36px; object-fit: contain; }
.footer-brand span { font-weight: 700; color: var(--white); font-size: 16px; }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.12); padding-top: 20px; text-align: center;
  font-size: 12.5px; color: #8FA3B5;
}
.footer-bottom .sponsor { color: var(--cyan); font-weight: 600; }

/* ---------- Misc ---------- */
.badge-row { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 14px; }
.pill-badge {
  background: rgba(255,255,255,0.12); color: var(--white); font-size: 12.5px; font-weight: 600;
  padding: 6px 14px; border-radius: 999px; display: inline-flex; align-items: center; gap: 6px;
}
.two-col { display: grid; grid-template-columns: 1.1fr 0.9fr; gap: 46px; align-items: center; }
@media (max-width: 860px) { .two-col { grid-template-columns: 1fr; } }
.divider { height: 1px; background: var(--grey-light); margin: 40px 0; }
.breadcrumb { font-size: 13px; color: var(--grey); margin-bottom: 18px; }
.breadcrumb a { color: var(--cyan); }
.center { text-align: center; }
.mt-0 { margin-top: 0; }
.small-note { font-size: 12.5px; color: var(--grey); margin-top: 8px; }

.lang-note {
  background: var(--cyan-light); border-radius: 10px; padding: 14px 18px; font-size: 13.5px; color: var(--navy);
  margin-bottom: 20px;
}

.coming-soon-tag {
  display: inline-flex; align-items: center; gap: 6px; background: var(--grey-light); color: var(--grey);
  font-size: 12.5px; font-weight: 700; padding: 6px 14px; border-radius: 999px; margin-top: 8px;
}

/* ---------- Auto-scraped live listings ---------- */
.auto-listing-card { position: relative; }
.auto-listing-card .card-tag.town-tag { background: var(--navy); color: var(--white); }
.auto-img-link {
  position: relative; display: block; cursor: pointer;
}
.auto-img-link img { transition: transform 0.25s ease, filter 0.25s ease; }
.auto-img-link:hover img { transform: scale(1.04); filter: brightness(0.85); }
.auto-img-link .whatsapp-overlay {
  position: absolute; inset: 0; display: flex; align-items: center; justify-content: center;
  opacity: 0; transition: opacity 0.2s ease; background: rgba(11,42,74,0.35);
}
.auto-img-link:hover .whatsapp-overlay { opacity: 1; }
.auto-img-link .whatsapp-overlay span {
  background: #25D366; color: #fff; font-weight: 700; font-size: 13px;
  padding: 10px 18px; border-radius: 999px; display: flex; align-items: center; gap: 8px;
  box-shadow: 0 4px 14px rgba(0,0,0,0.25);
}
.auto-listing-price { font-size: 19px; font-weight: 800; color: var(--navy); margin: 4px 0; }
.listings-loading, .listings-error, .listings-empty {
  text-align: center; padding: 40px 20px; color: var(--grey); grid-column: 1 / -1;
}
.listings-error { color: #a15c00; }
.listings-meta-note { font-size: 12.5px; color: var(--grey); margin-top: 18px; text-align: center; }
