/* Magnisias 72, Vyronas — listing page
   Palette: Aegean blue / turquoise / white (Greek seaside feel)
   Contrast rule: light text on dark/blue fills, dark navy text on light fills. */

:root {
  --navy: #0e2a47;         /* primary text on light backgrounds */
  --navy-soft: #40607d;    /* secondary/muted text on light backgrounds */
  --blue: #0d5eaf;         /* primary accent — buttons, links, prices */
  --blue-dark: #0a4a8c;    /* hover / pressed state for blue */
  --deep-sea: #0a3d66;     /* dark navy fill — top bar, whole-building banner */
  --turquoise: #0e93a0;    /* secondary accent */
  --turquoise-deep: #0b6f79; /* text version of turquoise, AA on white */
  --white: #ffffff;
  --bg: #f5fafd;           /* page background, faint blue-white */
  --card: #ffffff;
  --border: #d7e6f0;
  --chip-blue-bg: #e2f0fb;
  --chip-turquoise-bg: #dff5f5;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: 'Karla', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--navy);
  overflow-x: hidden;
}

h1, h2, .heading-font {
  font-family: 'Nunito', -apple-system, BlinkMacSystemFont, sans-serif;
}

a { text-decoration: none; }

.wrap { max-width: 1180px; margin: 0 auto; padding-left: 32px; padding-right: 32px; }

/* Top bar — dark fill, white text */
.topbar {
  background: var(--deep-sea);
  color: var(--white);
  text-align: center;
  padding: 13px 16px;
  font-weight: 800;
  font-size: 15px;
  letter-spacing: 0.4px;
  text-transform: uppercase;
}

/* Nav — light fill, dark text */
.nav {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(245, 250, 253, 0.92);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
  padding: 16px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.nav-title { font-weight: 800; font-size: 19px; color: var(--navy); }
.nav-title span { font-weight: 600; color: var(--navy-soft); font-size: 14px; }
.nav-right { display: flex; align-items: center; gap: 16px; }

.lang-toggle {
  display: flex;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 999px;
  padding: 4px;
  gap: 4px;
}
.lang-toggle button {
  padding: 5px 7px;
  border-radius: 8px;
  line-height: 1;
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  background: transparent;
  opacity: 0.4;
}
.lang-toggle button.active { background: var(--chip-blue-bg); opacity: 1; }

.email-pill {
  padding: 10px 20px;
  border-radius: 10px;
  background: var(--blue);
  color: var(--white);
  font-weight: 700;
  font-size: 14px;
  white-space: nowrap;
}
.email-pill.large { padding: 14px 28px; border-radius: 12px; font-size: 15px; display: inline-flex; align-items: center; }

/* Hero — light fill */
.hero { padding: 56px 32px 64px; }
.eyebrow {
  text-transform: uppercase;
  letter-spacing: 1.5px;
  font-size: 13px;
  font-weight: 700;
  color: var(--blue);
  margin-bottom: 14px;
}
.hero h1 { font-weight: 800; font-size: 42px; line-height: 1.15; margin: 0 0 18px 0; }
.hero-sub { font-size: 18px; line-height: 1.6; color: var(--navy-soft); margin: 0 0 30px 0; }
.hero-ctas { display: flex; flex-wrap: wrap; gap: 14px; }
.btn-outline {
  padding: 12px 26px;
  border-radius: 12px;
  background: transparent;
  border: 2px solid var(--blue);
  color: var(--blue);
  font-weight: 700;
  font-size: 15px;
  display: inline-flex;
  align-items: center;
}
.hero-badges { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; margin-bottom: 36px; }
.badge {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  font-weight: 700;
  font-size: 14px;
}
.badge.turquoise { background: var(--chip-turquoise-bg); color: var(--turquoise-deep); }
.badge.blue { background: var(--chip-blue-bg); color: var(--blue); }

.hero-photo-full { width: 100vw; margin-left: calc(50% - 50vw); padding-bottom: 64px; }
.hero-photo-row { display: flex; gap: 4px; }
.hero-photo-row .photo-slot { flex: 1 1 0; border: none; border-radius: 0; }
.photo-slot {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--white);
  border: 1px dashed var(--border);
  color: var(--navy-soft);
  font-size: 14px;
  text-align: center;
  padding: 12px;
  overflow: hidden;
}
.photo-slot img { width: 100%; height: 100%; object-fit: contain; display: block; }

/* Quick facts */
.facts {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  box-shadow: 0 2px 12px rgba(14, 42, 71, 0.06);
  margin-bottom: 56px;
}
.fact { padding: 26px 28px; border-right: 1px solid var(--border); }
.fact-label { font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: 0.8px; color: var(--navy-soft); margin-bottom: 8px; }
.fact-value { font-weight: 800; font-size: 20px; }
.fact-value2 { font-size: 13px; color: var(--navy-soft); margin-top: 2px; }

/* Section headers */
.section { padding: 24px 32px 64px; text-align: center; }
.section h2 { font-weight: 800; font-size: 32px; margin: 0 0 10px 0; }
.section-sub { font-size: 16px; color: var(--navy-soft); margin: 0 auto 32px; }

/* Apartments */
.apt-grid { display: flex; flex-wrap: wrap; gap: 28px; justify-content: center; text-align: left; }
.apt-card {
  flex: 1 1 420px;
  max-width: 480px;
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 32px;
  box-shadow: 0 2px 12px rgba(14, 42, 71, 0.06);
  display: flex;
  flex-direction: column;
}
.apt-tag {
  display: inline-block;
  align-self: flex-start;
  font-size: 12px;
  font-weight: 700;
  padding: 6px 14px;
  border-radius: 999px;
  margin-bottom: 16px;
}
.apt-tag.blue { background: var(--chip-blue-bg); color: var(--blue); }
.apt-tag.turquoise { background: var(--chip-turquoise-bg); color: var(--turquoise-deep); }
.apt-size { font-size: 14px; color: var(--navy-soft); margin-bottom: 4px; }
.apt-price { font-weight: 800; font-size: 34px; margin-bottom: 20px; }
.apt-divider { height: 1px; background: var(--border); margin-bottom: 20px; }
.apt-features { display: flex; flex-direction: column; gap: 11px; margin-bottom: 26px; flex: 1; }
.apt-features div { display: flex; gap: 10px; align-items: flex-start; font-size: 15px; line-height: 1.45; }
.apt-features .check { font-weight: 700; flex: 0 0 auto; }
.apt-features .check.blue { color: var(--blue); }
.apt-features .check.turquoise { color: var(--turquoise-deep); }

.video-thumb { position: relative; border-radius: 12px; overflow: hidden; height: 190px; }
.play-btn {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 56px; height: 56px; border-radius: 50%;
  background: rgba(14, 42, 71, 0.6);
  display: flex; align-items: center; justify-content: center;
}
.play-btn .triangle {
  width: 0; height: 0;
  border-top: 11px solid transparent; border-bottom: 11px solid transparent;
  border-left: 18px solid white; margin-left: 4px;
}

/* Whole building banner — dark fill, white text */
.banner {
  background: var(--deep-sea);
  padding: 56px 32px;
  text-align: center;
  color: var(--white);
}
.banner-inner { max-width: 900px; margin: 0 auto; }
.banner h2 { font-weight: 800; font-size: 30px; margin: 0 0 14px 0; }
.banner-price { font-weight: 800; font-size: 40px; margin-bottom: 16px; }
.banner p { font-size: 16px; line-height: 1.6; opacity: 0.95; margin: 0 0 28px 0; }
.banner .email-pill.on-white { background: var(--white); color: var(--deep-sea); }

/* Photo grid */
.photo-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 16px; margin-bottom: 28px; }
.photo-grid .photo-slot { height: 200px; border-radius: 16px; }

/* Location map */
.map-frame { border-radius: 20px; overflow: hidden; box-shadow: 0 2px 12px rgba(14, 42, 71, 0.08); }
.map-frame .photo-slot { height: 380px; }

/* Floor plans */
.floorplan-grid { display: flex; flex-wrap: wrap; gap: 20px; justify-content: center; }
.floorplan-card { flex: 1 1 260px; max-width: 320px; }
.floorplan-frame {
  border-radius: 14px; overflow: hidden; border: 1px solid var(--border);
  box-shadow: 0 2px 12px rgba(14, 42, 71, 0.08); background: var(--white);
  width: 100%; height: 360px; display: flex; align-items: center; justify-content: center;
}
.floorplan-frame img { width: 100%; height: 100%; object-fit: contain; display: block; }
.floorplan-label { margin-top: 10px; font-weight: 700; font-size: 14px; color: var(--navy); }

/* Contact — light blue fill, dark text */
.contact { background: var(--chip-blue-bg); padding: 64px 32px; text-align: center; }
.contact-inner { max-width: 700px; margin: 0 auto; }
.contact h2 { font-weight: 800; font-size: 30px; margin: 0 0 12px 0; color: var(--navy); }
.contact p { font-size: 16px; line-height: 1.6; color: var(--navy-soft); margin: 0 0 28px 0; }
.contact .email-pill.large { font-size: 16px; padding: 16px 34px; margin-bottom: 14px; }
.copy-btn {
  background: none; border: none; padding: 4px 8px; font-size: 13px; font-weight: 700;
  color: var(--blue); text-decoration: underline; cursor: pointer; font-family: inherit;
}
.contact-badges { display: flex; flex-wrap: wrap; gap: 16px; justify-content: center; font-weight: 700; font-size: 14px; margin-top: 14px; }
.contact-badges .turquoise { color: var(--turquoise-deep); }
.contact-badges .blue { color: var(--blue); }

/* Lightbox */
.lightbox-img { cursor: zoom-in; }
.lightbox-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(14, 42, 71, 0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
  padding: 40px;
  cursor: zoom-out;
}
.lightbox-overlay.active { display: flex; }
.lightbox-overlay img {
  max-width: 100%;
  max-height: 100%;
  border-radius: 10px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.5);
}
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 28px;
  color: var(--white);
  font-size: 32px;
  font-weight: 700;
  line-height: 1;
  background: none;
  border: none;
  cursor: pointer;
}

/* Footer */
.footer { padding: 28px 32px; text-align: center; background: var(--bg); border-top: 1px solid var(--border); }
.footer-address { font-size: 13px; color: var(--navy-soft); margin-bottom: 4px; }
.footer-copy { font-size: 12px; color: var(--navy-soft); }

@media (max-width: 640px) {
  .hero h1 { font-size: 32px; }
  .fact { border-right: none; border-bottom: 1px solid var(--border); }
  .hero-photo-row { flex-wrap: wrap; }
  .hero-photo-row .photo-slot { flex: 1 1 100%; height: 220px !important; }
}
