/* ============================================================
   FLAT MALTA – Shared Stylesheet
   flatmalta.com | A BMH Group Company
   ============================================================ */

:root {
  --navy:      #1A2A3A;
  --navy-lt:   #243447;
  --navy-xlt:  #2E4159;
  --gold:      #C8A96E;
  --gold-lt:   #E2D0A8;
  --cream:     #FAF7F2;
  --white:     #FFFFFF;
  --slate:     #5A6B7B;
  --slate-lt:  #8A9BAB;
  --border:    rgba(200,169,110,0.2);
  --radius:    10px;
  --radius-lg: 18px;
  --shadow:    0 4px 32px rgba(26,42,58,0.12);
  --shadow-lg: 0 12px 64px rgba(26,42,58,0.18);
  --trans:     all 0.25s ease;
  --ff-head:   'Playfair Display', Georgia, serif;
  --ff-body:   'DM Sans', system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; font-size: 16px; }
body {
  font-family: var(--ff-body);
  background: var(--cream);
  color: var(--navy);
  line-height: 1.65;
  overflow-x: hidden;
}
img { display: block; max-width: 100%; }
a { color: inherit; text-decoration: none; }
h1,h2,h3,h4 { font-family: var(--ff-head); line-height: 1.15; }

/* ── UTILITY ── */
.container { max-width: 1180px; margin: 0 auto; padding: 0 32px; }
.section    { padding: 96px 0; }
.section--dark { background: var(--navy); }
.section--white { background: var(--white); }
.section--cream { background: var(--cream); }

.eyebrow {
  display: inline-block;
  font-size: 0.7rem; letter-spacing: 0.22em;
  text-transform: uppercase; font-weight: 600;
  color: var(--gold); margin-bottom: 12px;
}
.section-title {
  font-size: clamp(1.9rem, 3vw, 2.8rem);
  font-weight: 700; color: var(--navy);
}
.section-title--white { color: var(--white); }
.section-sub {
  font-size: 1.02rem; color: var(--slate);
  max-width: 560px; margin-top: 14px;
}
.section-sub--white { color: rgba(255,255,255,0.6); }

.btn {
  display: inline-block; padding: 13px 28px;
  border-radius: var(--radius); font-weight: 600;
  font-size: 0.9rem; letter-spacing: 0.01em;
  cursor: pointer; transition: var(--trans);
  border: 2px solid transparent;
}
.btn--gold {
  background: var(--gold); color: var(--navy);
}
.btn--gold:hover { background: var(--gold-lt); transform: translateY(-2px); }
.btn--outline {
  background: transparent;
  border-color: rgba(255,255,255,0.35); color: var(--white);
}
.btn--outline:hover { border-color: var(--gold); color: var(--gold); transform: translateY(-2px); }
.btn--outline-dark {
  background: transparent;
  border-color: var(--navy); color: var(--navy);
}
.btn--outline-dark:hover { background: var(--navy); color: var(--white); }
.btn--ghost {
  background: transparent;
  border-color: var(--gold); color: var(--gold);
  padding: 10px 22px; font-size: 0.85rem;
}
.btn--ghost:hover { background: var(--gold); color: var(--navy); }

.tag {
  display: inline-block; padding: 4px 12px;
  border-radius: 20px; font-size: 0.72rem;
  font-weight: 600; letter-spacing: 0.06em;
  text-transform: uppercase;
}
.tag--available { background: rgba(52,168,83,0.12); color: #1E7E34; }
.tag--coming    { background: rgba(200,169,110,0.15); color: var(--gold); }
.tag--let       { background: rgba(90,107,123,0.12); color: var(--slate); }

/* ── NAV ── */
.site-nav {
  position: fixed; top: 0; left: 0; right: 0; z-index: 900;
  background: rgba(26,42,58,0.97);
  backdrop-filter: blur(14px);
  border-bottom: 1px solid var(--border);
}
.nav-inner {
  display: flex; align-items: center;
  justify-content: space-between;
  padding: 0 32px; height: 68px;
  max-width: 1280px; margin: 0 auto;
}
.nav-brand {
  display: flex; flex-direction: column; gap: 1px;
}
.nav-brand-main {
  font-family: var(--ff-head);
  font-size: 1.3rem; font-weight: 700;
  color: var(--gold); letter-spacing: 0.03em;
}
.nav-brand-sub {
  font-size: 0.62rem; color: rgba(255,255,255,0.4);
  letter-spacing: 0.14em; text-transform: uppercase;
}
.nav-menu {
  display: flex; align-items: center;
  list-style: none; gap: 6px;
}
.nav-menu > li { position: relative; }
.nav-menu a {
  display: block; padding: 8px 14px;
  color: rgba(255,255,255,0.8);
  font-size: 0.88rem; font-weight: 500;
  border-radius: 6px;
  transition: var(--trans);
}
.nav-menu a:hover,
.nav-menu a.active { color: var(--gold); background: rgba(200,169,110,0.08); }

/* Dropdown */
.nav-dropdown { position: relative; }
.nav-dropdown > a::after { content: ' ▾'; font-size: 0.65rem; }
.dropdown-menu {
  display: none; position: absolute; top: 100%; left: 0;
  min-width: 220px;
  background: var(--navy-lt);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 8px 0;
  box-shadow: var(--shadow-lg);
  z-index: 100;
}
.nav-dropdown:hover .dropdown-menu { display: block; }
.dropdown-menu a {
  padding: 9px 18px; border-radius: 0;
  font-size: 0.84rem;
}
.dropdown-menu a:hover { background: rgba(200,169,110,0.1); }

.nav-cta {
  background: var(--gold) !important;
  color: var(--navy) !important;
  font-weight: 600 !important; padding: 8px 18px !important;
}
.nav-cta:hover { background: var(--gold-lt) !important; }

.nav-hamburger {
  display: none; flex-direction: column; gap: 5px;
  cursor: pointer; padding: 4px;
}
.nav-hamburger span {
  display: block; width: 24px; height: 2px;
  background: var(--white); border-radius: 2px;
  transition: var(--trans);
}

/* ── TOP BAR (BMH group link) ── */
.top-bar {
  background: var(--navy-lt);
  border-bottom: 1px solid rgba(200,169,110,0.1);
  padding: 7px 32px;
  display: flex; align-items: center; justify-content: space-between;
}
.top-bar-text {
  font-size: 0.73rem; color: rgba(255,255,255,0.45);
  letter-spacing: 0.05em;
}
.top-bar-text a { color: var(--gold); }
.top-bar-text a:hover { text-decoration: underline; }
.top-bar-contact {
  font-size: 0.73rem; color: rgba(255,255,255,0.45);
  display: flex; gap: 20px;
}
.top-bar-contact a { color: rgba(255,255,255,0.5); transition: color 0.2s; }
.top-bar-contact a:hover { color: var(--gold); }

/* ── PAGE HEADER (inner pages) ── */
.page-header {
  padding: 140px 0 72px;
  background: var(--navy);
  position: relative; overflow: hidden;
}
.page-header::before {
  content: '';
  position: absolute; inset: 0;
  background: url('https://images.unsplash.com/photo-1512917774080-9991f1c4c750?w=1400&q=60') center/cover;
  opacity: 0.07;
}
.page-header-content { position: relative; }
.page-header h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  color: var(--white); font-weight: 700;
}
.page-header .breadcrumb {
  font-size: 0.8rem; color: rgba(255,255,255,0.45);
  margin-top: 12px;
}
.page-header .breadcrumb a { color: var(--gold); }
.page-header .breadcrumb a:hover { text-decoration: underline; }

/* ── CARD ── */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(200,169,110,0.15);
  transition: var(--trans);
  box-shadow: var(--shadow);
}
.card:hover {
  transform: translateY(-5px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(200,169,110,0.4);
}
.card-img { width: 100%; height: 220px; object-fit: cover; }
.card-body { padding: 24px 26px 28px; }
.card-tag { margin-bottom: 10px; }
.card-title {
  font-family: var(--ff-head); font-size: 1.2rem;
  color: var(--navy); margin-bottom: 8px;
}
.card-text { font-size: 0.88rem; color: var(--slate); line-height: 1.7; }
.card-meta {
  display: flex; gap: 16px; margin-top: 14px;
  flex-wrap: wrap;
}
.card-meta-item {
  display: flex; gap: 5px; align-items: center;
  font-size: 0.8rem; color: var(--slate);
}
.card-meta-item svg { width: 14px; height: 14px; flex-shrink: 0; }
.card-price {
  margin-top: 18px;
  display: flex; align-items: baseline; gap: 4px;
  border-top: 1px solid rgba(200,169,110,0.12);
  padding-top: 16px;
}
.card-price-num {
  font-family: var(--ff-head);
  font-size: 1.7rem; font-weight: 700; color: var(--gold);
}
.card-price-unit { font-size: 0.8rem; color: var(--slate-lt); }
.card-footer {
  padding: 14px 26px;
  background: rgba(250,247,242,0.6);
  border-top: 1px solid rgba(200,169,110,0.1);
  display: flex; justify-content: space-between; align-items: center;
}

/* ── GRID LAYOUTS ── */
.grid-3 {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 28px;
}
.grid-2 {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 28px;
}

/* ── STATS BAR ── */
.stats-bar {
  background: var(--gold);
  padding: 28px 0;
}
.stats-bar-inner {
  display: flex; justify-content: center;
  gap: 64px; flex-wrap: wrap;
}
.stat { text-align: center; }
.stat-num {
  font-family: var(--ff-head); font-size: 2rem;
  font-weight: 700; color: var(--navy);
}
.stat-lbl { font-size: 0.78rem; color: rgba(26,42,58,0.65); margin-top: 2px; }

/* ── FEATURE ICON ── */
.feature-icon {
  width: 52px; height: 52px; border-radius: 12px;
  background: rgba(200,169,110,0.12);
  display: flex; align-items: center; justify-content: center;
  font-size: 1.3rem; flex-shrink: 0; margin-bottom: 16px;
}
.feature-icon--dark { background: rgba(200,169,110,0.15); }

/* ── NEWS CARD ── */
.news-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  border: 1px solid rgba(200,169,110,0.15);
  transition: var(--trans);
}
.news-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(200,169,110,0.35);
}
.news-card-img { width: 100%; height: 200px; object-fit: cover; }
.news-card-body { padding: 22px 24px 26px; }
.news-card-date { font-size: 0.75rem; color: var(--slate-lt); margin-bottom: 8px; }
.news-card-title {
  font-family: var(--ff-head); font-size: 1.1rem;
  color: var(--navy); line-height: 1.3;
}
.news-card-title:hover { color: var(--gold); }
.news-card-excerpt { font-size: 0.86rem; color: var(--slate); margin-top: 8px; line-height: 1.7; }
.news-card-link {
  display: inline-block; margin-top: 14px;
  font-size: 0.82rem; font-weight: 600; color: var(--gold);
}
.news-card-link:hover { text-decoration: underline; }
.news-cat {
  font-size: 0.68rem; letter-spacing: 0.12em;
  text-transform: uppercase; font-weight: 700;
  color: var(--gold); margin-bottom: 6px;
}

/* ── FOOTER ── */
.site-footer {
  background: var(--navy);
  padding: 72px 0 0;
}
.footer-grid {
  display: grid; grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 48px;
}
.footer-brand-name {
  font-family: var(--ff-head); font-size: 1.4rem;
  color: var(--gold); font-weight: 700; margin-bottom: 8px;
}
.footer-brand-sub { font-size: 0.72rem; color: rgba(255,255,255,0.35); letter-spacing: 0.12em; text-transform: uppercase; }
.footer-about {
  font-size: 0.86rem; color: rgba(255,255,255,0.5);
  line-height: 1.75; margin-top: 16px;
}
.footer-heading {
  font-size: 0.7rem; letter-spacing: 0.2em; text-transform: uppercase;
  font-weight: 700; color: var(--gold); margin-bottom: 18px;
}
.footer-links { list-style: none; display: flex; flex-direction: column; gap: 10px; }
.footer-links a {
  color: rgba(255,255,255,0.5); font-size: 0.86rem;
  transition: color 0.2s;
}
.footer-links a:hover { color: var(--gold); }
.footer-contact-item {
  display: flex; gap: 10px;
  margin-bottom: 12px;
}
.footer-contact-icon { color: var(--gold); font-size: 0.9rem; margin-top: 2px; }
.footer-contact-text { font-size: 0.84rem; color: rgba(255,255,255,0.5); line-height: 1.5; }
.footer-contact-text a { color: rgba(255,255,255,0.5); }
.footer-contact-text a:hover { color: var(--gold); }
.footer-bottom {
  margin-top: 56px;
  border-top: 1px solid rgba(200,169,110,0.12);
  padding: 22px 0;
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 12px;
}
.footer-copy { font-size: 0.78rem; color: rgba(255,255,255,0.3); }
.footer-copy a { color: var(--gold); }
.footer-bottom-links { display: flex; gap: 20px; }
.footer-bottom-links a { font-size: 0.78rem; color: rgba(255,255,255,0.35); transition: color 0.2s; }
.footer-bottom-links a:hover { color: var(--gold); }

/* ── WA FLOAT ── */
.wa-float {
  position: fixed; bottom: 28px; right: 28px; z-index: 800;
  width: 56px; height: 56px; border-radius: 50%;
  background: #25D366;
  display: flex; align-items: center; justify-content: center;
  box-shadow: 0 6px 24px rgba(37,211,102,0.45);
  transition: var(--trans);
}
.wa-float:hover { transform: scale(1.1); box-shadow: 0 10px 32px rgba(37,211,102,0.6); }
.wa-float svg { width: 28px; height: 28px; fill: white; }

/* ── ARTICLE CONTENT ── */
.article-body { max-width: 740px; }
.article-body h2 {
  font-size: 1.6rem; color: var(--navy);
  margin: 36px 0 14px;
}
.article-body h3 {
  font-size: 1.2rem; color: var(--navy);
  margin: 28px 0 10px;
}
.article-body p { margin-bottom: 18px; font-size: 1rem; color: #3A4A5A; line-height: 1.8; }
.article-body ul { padding-left: 22px; margin-bottom: 18px; }
.article-body ul li { margin-bottom: 7px; font-size: 1rem; color: #3A4A5A; }
.article-img { border-radius: var(--radius-lg); margin: 32px 0; }
.article-meta {
  display: flex; gap: 20px; align-items: center;
  padding: 20px 0; border-bottom: 1px solid rgba(200,169,110,0.15);
  margin-bottom: 32px; flex-wrap: wrap;
}
.article-meta-item { font-size: 0.82rem; color: var(--slate-lt); }

/* ── PROPERTY DETAIL ── */
.prop-detail-grid {
  display: grid; grid-template-columns: 1fr 380px;
  gap: 48px; align-items: start;
}
.prop-gallery-main {
  border-radius: var(--radius-lg); overflow: hidden;
  height: 400px;
}
.prop-gallery-main img { width: 100%; height: 100%; object-fit: cover; }
.prop-spec-card {
  background: var(--white);
  border-radius: var(--radius-lg);
  border: 1px solid var(--border);
  padding: 28px;
  position: sticky; top: 84px;
}
.prop-price-big {
  font-family: var(--ff-head); font-size: 2.2rem;
  font-weight: 700; color: var(--gold);
}
.prop-price-note { font-size: 0.78rem; color: var(--slate-lt); margin-top: 2px; }
.prop-specs { list-style: none; margin: 22px 0; display: flex; flex-direction: column; gap: 12px; }
.prop-specs li {
  display: flex; justify-content: space-between;
  font-size: 0.9rem; padding-bottom: 12px;
  border-bottom: 1px solid rgba(200,169,110,0.1);
}
.prop-specs li:last-child { border: none; }
.prop-spec-lbl { color: var(--slate-lt); }
.prop-spec-val { font-weight: 600; color: var(--navy); }

/* ── RESPONSIVE ── */
@media (max-width: 1024px) {
  .grid-3 { grid-template-columns: repeat(2, 1fr); }
  .footer-grid { grid-template-columns: 1fr 1fr; gap: 36px; }
  .prop-detail-grid { grid-template-columns: 1fr; }
  .prop-spec-card { position: static; }
}
@media (max-width: 768px) {
  .container { padding: 0 20px; }
  .section { padding: 64px 0; }
  .nav-inner { padding: 0 20px; }
  .nav-menu { display: none; }
  .nav-hamburger { display: flex; }
  .grid-3, .grid-2 { grid-template-columns: 1fr; }
  .footer-grid { grid-template-columns: 1fr; }
  .stats-bar-inner { gap: 36px; }
  .top-bar { display: none; }
  .page-header { padding: 110px 0 56px; }
}
