/* ═══════════════════════════════════════════════════════
   2JC GROUP — MASTER STYLESHEET
   Navy #123554 · Gold #D3AF34 · Cal Sans
   Mobile-first · Static HTML · Netlify Drop
   ═══════════════════════════════════════════════════════ */

@font-face {
  font-family: 'Cal Sans';
  src: url('../fonts/CalSans-SemiBold.woff2') format('woff2');
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

:root {
  --navy:        #123554;
  --navy-dark:   #0c2540;
  --navy-light:  #1a4a70;
  --gold:        #D3AF34;
  --gold-dark:   #b8961f;
  --cream:       #F8F8F5;
  --white:       #FFFFFF;
  --gray-100:    #F2F2EF;
  --gray-200:    #E4E4E0;
  --gray-400:    #9A9A94;
  --gray-600:    #5A5A54;
  --text:        #1A1A16;

  --font-display: 'Cal Sans', Georgia, serif;
  --font-body:    Georgia, 'Times New Roman', serif;
  --font-ui:      -apple-system, BlinkMacSystemFont, 'Segoe UI', Arial, sans-serif;

  --radius:    4px;
  --radius-lg: 8px;
  --shadow-sm: 0 1px 4px rgba(18,53,84,0.08);
  --shadow-md: 0 4px 20px rgba(18,53,84,0.13);
  --shadow-lg: 0 12px 48px rgba(18,53,84,0.18);
  --transition: 0.2s ease;
  --max-width: 1200px;
  --gutter: 20px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body { font-family: var(--font-ui); color: var(--text); background: var(--cream); line-height: 1.6; -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; height: auto; }
a { color: inherit; text-decoration: none; }
ul { list-style: none; }
button { font-family: inherit; cursor: pointer; border: none; background: none; }

.container { width: 100%; max-width: var(--max-width); margin: 0 auto; padding: 0 var(--gutter); }

/* ── TYPOGRAPHY ─────────────────────────────────────── */
h1, h2, h3, h4 { font-family: var(--font-display); line-height: 1.2; color: var(--navy); font-weight: 600; }
h1 { font-size: clamp(1.8rem, 4vw, 2.8rem); }
h2 { font-size: clamp(1.4rem, 3vw, 2rem); }
h3 { font-size: clamp(1rem, 2vw, 1.35rem); }

/* ── BUTTONS ────────────────────────────────────────── */
.btn {
  display: inline-block;
  font-family: var(--font-ui);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 12px 28px;
  border-radius: var(--radius);
  transition: var(--transition);
  white-space: nowrap;
  text-align: center;
}
.btn-gold  { background: var(--gold); color: var(--navy-dark); }
.btn-gold:hover { background: var(--gold-dark); }
.btn-navy  { background: var(--navy); color: var(--white); }
.btn-navy:hover { background: var(--navy-dark); }
.btn-outline { border: 2px solid var(--gold); color: var(--gold); }
.btn-outline:hover { background: var(--gold); color: var(--navy-dark); }
.btn-ghost { border: 1.5px solid var(--gray-200); color: var(--gray-600); }
.btn-ghost:hover { border-color: var(--navy); color: var(--navy); }

/* ════════════════════════════════════════════════════
   NAVIGATION
   ════════════════════════════════════════════════════ */
.nav {
  position: sticky;
  top: 0;
  z-index: 200;
  background: var(--navy-dark);
  border-bottom: 2px solid var(--gold);
}
.nav__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 60px;
}
.nav__brand { display: flex; flex-direction: column; line-height: 1; gap: 2px; }
.nav__brand-name { font-family: var(--font-display); font-size: 1.35rem; color: var(--white); letter-spacing: -0.01em; }
.nav__brand-sub { font-family: var(--font-ui); font-size: 0.58rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--gold); }
.nav__links { display: none; gap: 28px; align-items: center; }
.nav__links a { font-family: var(--font-ui); font-size: 0.78rem; font-weight: 600; letter-spacing: 0.06em; text-transform: uppercase; color: rgba(255,255,255,0.75); transition: color var(--transition); }
.nav__links a:hover, .nav__links a.active { color: var(--gold); }
.nav__viber { background: var(--gold); color: var(--navy-dark); padding: 8px 18px; border-radius: var(--radius); font-size: 0.75rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; }
.nav__viber:hover { background: var(--gold-dark); color: var(--navy-dark); }

.nav__toggle { display: flex; flex-direction: column; gap: 5px; padding: 8px; }
.nav__toggle span { display: block; width: 22px; height: 2px; background: var(--white); transition: var(--transition); }
.nav__toggle.open span:nth-child(1) { transform: rotate(45deg) translate(5px, 5px); }
.nav__toggle.open span:nth-child(2) { opacity: 0; }
.nav__toggle.open span:nth-child(3) { transform: rotate(-45deg) translate(5px, -5px); }

.nav__mobile { display: none; flex-direction: column; background: var(--navy-dark); border-top: 1px solid rgba(211,175,52,0.2); padding: 12px var(--gutter) 20px; }
.nav__mobile.open { display: flex; }
.nav__mobile a { font-family: var(--font-ui); font-size: 0.85rem; font-weight: 600; letter-spacing: 0.05em; text-transform: uppercase; color: rgba(255,255,255,0.75); padding: 12px 0; border-bottom: 1px solid rgba(255,255,255,0.07); transition: color var(--transition); }
.nav__mobile a:hover { color: var(--gold); }
.nav__mobile a:last-child { border-bottom: none; }

@media (min-width: 768px) { .nav__links { display: flex; } .nav__toggle { display: none; } }

/* ════════════════════════════════════════════════════
   IDENTITY BAR (replaces hero)
   ════════════════════════════════════════════════════ */
.identity-bar {
  background: var(--navy-dark);
  padding: 28px 0;
  border-bottom: 1px solid rgba(211,175,52,0.2);
}
.identity-bar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}
.identity-bar__left { display: flex; flex-direction: column; gap: 6px; }
.identity-bar__tagline {
  font-family: var(--font-display);
  font-size: clamp(1.2rem, 3vw, 1.7rem);
  color: var(--white);
  line-height: 1.2;
}
.identity-bar__tagline em { font-style: normal; color: var(--gold); }
.identity-bar__sub {
  font-size: 0.8rem;
  color: rgba(255,255,255,0.55);
  letter-spacing: 0.04em;
}
.identity-bar__stats { display: flex; gap: 28px; flex-wrap: wrap; }
.identity-bar__stat { display: flex; flex-direction: column; gap: 2px; }
.identity-bar__stat-num { font-family: var(--font-display); font-size: 1.4rem; color: var(--gold); line-height: 1; }
.identity-bar__stat-label { font-size: 0.65rem; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255,255,255,0.45); }

/* ════════════════════════════════════════════════════
   FILTER STRIP
   ════════════════════════════════════════════════════ */
.filter-strip {
  background: var(--white);
  border-bottom: 1px solid var(--gray-200);
  position: sticky;
  top: 62px;
  z-index: 100;
  box-shadow: var(--shadow-sm);
}
.filter-strip__inner {
  display: flex;
  align-items: center;
  gap: 8px;
  height: 50px;
  overflow-x: auto;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.filter-strip__inner::-webkit-scrollbar { display: none; }
.filter-btn {
  flex-shrink: 0;
  font-family: var(--font-ui);
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  padding: 7px 16px;
  border-radius: 99px;
  border: 1.5px solid var(--gray-200);
  color: var(--gray-600);
  background: var(--white);
  cursor: pointer;
  transition: var(--transition);
}
.filter-btn:hover  { border-color: var(--navy); color: var(--navy); }
.filter-btn.active { background: var(--navy); color: var(--white); border-color: var(--navy); }
.filter-count { margin-left: auto; flex-shrink: 0; font-size: 0.72rem; color: var(--gray-400); white-space: nowrap; }

/* ════════════════════════════════════════════════════
   LISTINGS GRID
   ════════════════════════════════════════════════════ */
.listings { padding: 32px 0 64px; }
.listings__grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 20px;
}
@media (min-width: 580px)  { .listings__grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 960px)  { .listings__grid { grid-template-columns: 1fr 1fr 1fr; } }
@media (min-width: 1200px) { .listings__grid { grid-template-columns: 1fr 1fr 1fr 1fr; } }

.no-results { grid-column: 1/-1; text-align: center; padding: 60px 20px; color: var(--gray-400); font-size: 0.9rem; }

/* ════════════════════════════════════════════════════
   PROPERTY CARD
   ════════════════════════════════════════════════════ */
.card {
  background: var(--white);
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-direction: column;
  cursor: pointer;
}
.card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.card__photo {
  position: relative;
  aspect-ratio: 4/3;
  background: var(--gray-200);
  overflow: hidden;
}
.card__photo img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.35s ease; }
.card:hover .card__photo img { transform: scale(1.04); }
.card__photo-placeholder { width: 100%; height: 100%; background: var(--navy); display: flex; align-items: center; justify-content: center; }
.card__photo-placeholder span { font-family: var(--font-display); font-size: 1.5rem; color: rgba(211,175,52,0.25); text-align: center; padding: 16px; }

.card__badge {
  position: absolute; top: 10px; left: 10px;
  font-family: var(--font-ui); font-size: 0.65rem; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase;
  padding: 4px 9px; border-radius: 2px;
}
.badge-for-sale   { background: var(--gold); color: var(--navy-dark); }
.badge-for-rent   { background: var(--navy); color: var(--white); }
.badge-sold       { background: var(--gray-600); color: var(--white); }
.badge-reserved   { background: #b03a2e; color: var(--white); }

.card__type {
  position: absolute; bottom: 10px; right: 10px;
  background: rgba(12,37,64,0.82); color: rgba(255,255,255,0.9);
  font-family: var(--font-ui); font-size: 0.62rem; font-weight: 600;
  letter-spacing: 0.08em; text-transform: uppercase;
  padding: 3px 8px; border-radius: 2px;
}

.card__body { padding: 16px 18px 20px; flex: 1; display: flex; flex-direction: column; }
.card__location { font-size: 0.68rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--gold); margin-bottom: 6px; }
.card__title { font-family: var(--font-display); font-size: 0.98rem; color: var(--navy); margin-bottom: 12px; line-height: 1.3; }
.card__price { font-family: var(--font-display); font-size: 1.25rem; color: var(--navy-dark); }
.card__price-note { font-size: 0.68rem; color: var(--gray-400); margin-bottom: 14px; margin-top: 2px; }

.card__specs {
  display: flex; gap: 12px; flex-wrap: wrap;
  padding-top: 12px; border-top: 1px solid var(--gray-200); margin-top: auto;
}
.card__spec { font-size: 0.75rem; color: var(--gray-600); display: flex; align-items: center; gap: 4px; }

.card__cta { margin-top: 14px; display: flex; gap: 8px; }
.card__cta .btn { flex: 1; padding: 10px 12px; font-size: 0.72rem; }

/* ════════════════════════════════════════════════════
   PROPERTY DETAIL PAGE
   ════════════════════════════════════════════════════ */
.detail-gallery { background: var(--navy-dark); }
.gallery-main {
  position: relative;
  width: 100%;
  max-height: 620px;
  min-height: 280px;
  overflow: hidden;
  background: var(--navy-dark);
  display: flex;
  align-items: center;
  justify-content: center;
}
.gallery-main img {
  width: 100%;
  max-height: 620px;
  object-fit: contain;
  display: block;
}
.gallery-main__badge {
  position: absolute; top: 16px; left: 16px;
  font-family: var(--font-ui); font-size: 0.72rem; font-weight: 700;
  letter-spacing: 0.09em; text-transform: uppercase;
  padding: 5px 12px; border-radius: 2px;
}
.gallery-counter {
  position: absolute; bottom: 16px; right: 16px;
  background: rgba(0,0,0,0.5); color: var(--white);
  font-family: var(--font-ui); font-size: 0.75rem;
  padding: 5px 12px; border-radius: 2px;
  backdrop-filter: blur(4px);
}
.gallery-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 100%; display: flex; justify-content: space-between;
  padding: 0 12px; pointer-events: none;
}
.gallery-btn {
  pointer-events: all;
  background: rgba(0,0,0,0.45); color: var(--white);
  width: 40px; height: 40px; border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  cursor: pointer; border: none; transition: background var(--transition);
  font-size: 1.1rem;
}
.gallery-btn:hover { background: var(--gold); color: var(--navy-dark); }
.gallery-thumbs {
  display: flex; gap: 4px; overflow-x: auto; padding: 8px;
  background: var(--navy-dark);
  scrollbar-width: thin; scrollbar-color: var(--gold) var(--navy-dark);
}
.gallery-thumb {
  flex-shrink: 0; width: 72px; height: 52px;
  border-radius: 2px; overflow: hidden; cursor: pointer;
  border: 2px solid transparent; opacity: 0.6;
  transition: opacity var(--transition), border-color var(--transition);
}
.gallery-thumb img { width: 100%; height: 100%; object-fit: cover; }
.gallery-thumb.active { border-color: var(--gold); opacity: 1; }

.detail__breadcrumb {
  font-size: 0.78rem; color: var(--gray-400);
  padding: 14px 0; display: flex; gap: 8px; align-items: center; flex-wrap: wrap;
}
.detail__breadcrumb a { color: var(--navy); }
.detail__breadcrumb a:hover { color: var(--gold); }

.detail__layout {
  display: grid; grid-template-columns: 1fr;
  gap: 32px; padding-bottom: 60px;
}
@media (min-width: 900px) { .detail__layout { grid-template-columns: 1fr 340px; gap: 48px; } }

.detail__title { font-size: clamp(1.4rem, 3.5vw, 2rem); margin-bottom: 6px; }
.detail__location {
  font-size: 0.78rem; font-weight: 700; letter-spacing: 0.1em;
  text-transform: uppercase; color: var(--gold);
  margin-bottom: 20px; display: flex; align-items: center; gap: 6px;
}
.detail__price-block {
  background: var(--gray-100); border-left: 4px solid var(--gold);
  padding: 18px 22px; border-radius: 0 var(--radius) var(--radius) 0; margin-bottom: 24px;
}
.detail__price { font-family: var(--font-display); font-size: 1.9rem; color: var(--navy-dark); }
.detail__price-note { font-size: 0.75rem; color: var(--gray-400); margin-top: 3px; }

.detail__specs-grid {
  display: grid; grid-template-columns: 1fr 1fr;
  gap: 10px; margin-bottom: 28px;
}
@media (min-width: 480px) { .detail__specs-grid { grid-template-columns: 1fr 1fr 1fr; } }
.spec-box {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius); padding: 12px 14px;
  display: flex; flex-direction: column; gap: 3px;
}
.spec-box__label { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase; color: var(--gray-400); }
.spec-box__value { font-family: var(--font-display); font-size: 1rem; color: var(--navy); }

.detail__section { margin-bottom: 28px; }
.detail__section h3 { font-size: 1rem; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid var(--gray-200); }
.detail__description { font-size: 0.9rem; color: var(--gray-600); line-height: 1.8; }
.detail__description p { margin-bottom: 12px; }
.detail__description p:last-child { margin-bottom: 0; }

.detail__highlights li {
  font-size: 0.85rem; color: var(--gray-600);
  display: flex; align-items: flex-start; gap: 10px;
  padding: 6px 0; border-bottom: 1px solid var(--gray-100);
}
.detail__highlights li:last-child { border-bottom: none; }
.detail__highlights li::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: var(--gold); flex-shrink: 0; margin-top: 6px; }

/* Sidebar contact card */
.contact-card {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); overflow: hidden;
  box-shadow: var(--shadow-md);
}
@media (min-width: 900px) { .contact-card { position: sticky; top: 124px; } }
.contact-card__header { background: var(--navy); padding: 18px 22px; }
.contact-card__header h3 { color: var(--white); font-size: 1rem; }
.contact-card__header p { font-size: 0.75rem; color: rgba(255,255,255,0.55); margin-top: 3px; }
.contact-card__body { padding: 20px 22px 0; }
.contact-method { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--gray-100); }
.contact-method:last-child { border-bottom: none; }
.contact-method__icon { width: 36px; height: 36px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; flex-shrink: 0; font-size: 1rem; }
.icon-viber { background: #7360f2; color: var(--white); }
.icon-email { background: var(--navy); color: var(--white); }
.contact-method__label { font-size: 0.62rem; font-weight: 700; letter-spacing: 0.09em; text-transform: uppercase; color: var(--gray-400); }
.contact-method__value { font-size: 0.88rem; color: var(--navy); font-weight: 600; }
.contact-card__cta { padding: 16px 22px 22px; display: flex; flex-direction: column; gap: 8px; }
.contact-card__cta .btn { width: 100%; padding: 12px; font-size: 0.75rem; }

/* ════════════════════════════════════════════════════
   CONTACT PAGE
   ════════════════════════════════════════════════════ */
/* ════════════════════════════════════════════════════
   PAGE HERO (For properties.html - Updated Colors)
   ════════════════════════════════════════════════════ */
.page-hero { 
  background: var(--navy); 
  padding: 48px 0; 
  border-bottom: 1px solid rgba(211,175,52,0.2); 
}
.page-hero h1 { color: var(--white); }
.page-hero p { font-size: 0.9rem; color: rgba(255,255,255,0.55); margin-top: 10px; max-width: 440px; }
.contact-tiles { padding: 48px 0 64px; }
.contact-tiles__grid { display: grid; grid-template-columns: 1fr; gap: 20px; }
@media (min-width: 640px) { .contact-tiles__grid { grid-template-columns: 1fr 1fr 1fr; } }
.contact-tile {
  background: var(--white); border: 1px solid var(--gray-200);
  border-radius: var(--radius-lg); padding: 28px 24px;
  display: flex; flex-direction: column; align-items: flex-start; gap: 12px;
  transition: box-shadow var(--transition);
}
.contact-tile:hover { box-shadow: var(--shadow-md); }
.contact-tile__icon { width: 44px; height: 44px; border-radius: var(--radius); display: flex; align-items: center; justify-content: center; font-size: 1.2rem; }
.contact-tile__label { font-size: 0.65rem; font-weight: 700; letter-spacing: 0.12em; text-transform: uppercase; color: var(--gold); }
.contact-tile__value { font-family: var(--font-display); font-size: 1.05rem; color: var(--navy); }
.contact-tile__sub { font-size: 0.78rem; color: var(--gray-400); }
.contact-tile .btn { margin-top: auto; width: 100%; }

/* ════════════════════════════════════════════════════
   FOOTER
   ════════════════════════════════════════════════════ */
.footer {
  background: var(--navy-dark);
  border-top: 2px solid rgba(211,175,52,0.2);
  padding: 32px 0;
}
.footer__inner {
  display: flex; align-items: center; justify-content: space-between;
  flex-wrap: wrap; gap: 16px;
}
.footer__brand { font-family: var(--font-display); font-size: 1.1rem; color: var(--white); }
.footer__brand span { color: var(--gold); }
.footer__copy { font-size: 0.72rem; color: rgba(255,255,255,0.35); }
.footer__links { display: flex; gap: 20px; }
.footer__links a { font-size: 0.72rem; color: rgba(255,255,255,0.45); letter-spacing: 0.06em; text-transform: uppercase; transition: color var(--transition); }
.footer__links a:hover { color: var(--gold); }

/* ════════════════════════════════════════════════════
   UTILITIES
   ════════════════════════════════════════════════════ */
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); border: 0; }


/* ════════════════════════════════════════════════════
   LIGHTBOX (GLOBAL)
   ════════════════════════════════════════════════════ */
.gallery-main img { cursor: zoom-in; }

.lightbox {
  display: none; position: fixed; inset: 0;
  background: rgba(0,0,0,0.92); z-index: 9999;
  align-items: center; justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox__img {
  max-width: 92vw; max-height: 88vh;
  object-fit: contain; border-radius: 8px;
}
.lightbox__close {
  position: absolute; top: 20px; right: 24px;
  background: none; border: none; color: var(--white);
  font-size: 2rem; cursor: pointer; line-height: 1;
}
.lightbox__prev, .lightbox__next {
  position: absolute; top: 50%; transform: translateY(-50%);
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: var(--white); font-size: 1.5rem; padding: 10px 16px;
  cursor: pointer; border-radius: 6px; transition: background var(--transition);
}
.lightbox__prev:hover, .lightbox__next:hover { background: rgba(255,255,255,0.25); }
.lightbox__prev { left: 16px; }
.lightbox__next { right: 16px; }