@import url('https://fonts.googleapis.com/css2?family=Bodoni+Moda:wght@400;700&display=swap');

:root {
  --navy: #0a2342;
  --gold: #C2A63D;
  --cos-gold: #C2A63D;
  --gold-dark: #9B8419;
  --gold-light: #E8D4A0;
  --white: #ffffff;
  --muted: #faf8f3;
  --text: #0a2342;
  --maxw: 1200px;
}

* {
  box-sizing: border-box
}

body {
  margin: 0;
  font-family: Lato, Arial, Helvetica, sans-serif;
  color: var(--text);
  background: #fff;
  line-height: 1.5
}

.container {
  width: 90%;
  max-width: var(--maxw);
  margin: 0 auto
}

header {
  background: var(--white);
  border-bottom: 2px solid var(--gold);
  position: sticky;
  top: 0;
  z-index: 100
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 0
}

.logo-wrap {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: inherit;
  cursor: pointer
}

.logo-wrap img {
  height: 56px;
  display: block
}

.brand-title {
  font-family: 'Bodoni Moda', serif;
  font-weight: 700;
  color: var(--cos-gold);
  font-size: 1.1rem;
  letter-spacing: 1px
}

nav .menu {
  display: flex;
  gap: 18px
}

nav a {
  color: var(--gold-dark);
  text-decoration: none;
  font-weight: 600
}

.hero {
  background-image: url('https://images.unsplash.com/photo-1600585154340-be6161a56a0c?auto=format&fit=crop&w=1600&q=80');
  background-size: cover;
  background-position: center;
  color: var(--white);
  text-align: left;
  padding: 120px 0 80px;
  position: relative
}

.hero .overlay {
  background: linear-gradient(180deg, rgba(10, 35, 66, 0.45), rgba(10, 35, 66, 0.2));
  position: absolute;
  inset: 0;
}

.hero .hero-inner {
  position: relative;
  z-index: 2;
  color: var(--white)
}

.hero h1 {
  font-size: 2.1rem;
  margin: 0 0 10px
}

.hero p.lead {
  margin: 0 0 18px;
  font-size: 1.05rem;
  opacity: 0.95
}

.btn {
  background: var(--gold-dark);
  color: var(--white);
  padding: 10px 18px;
  border-radius: 6px;
  text-decoration: none;
  font-weight: 700;
  display: inline-block
}

.section {
  padding: 56px 0
}

.section.alt {
  background: var(--gold-light)
}

.h2 {
  font-size: 1.4rem;
  color: var(--gold-dark);
  margin: 0 0 14px
}

.grid {
  display: grid;
  gap: 20px
}

.offers {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr))
}

.card {
  background: #fff;
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 6px 18px rgba(194, 166, 61, 0.08);
  border: 1px solid var(--gold-light)
}

/* Make link-wrapped cards keep card appearance */
a.card-link {
  text-decoration: none;
  color: inherit;
  display: block;
}

a.card-link:focus {
  outline: 2px solid rgba(10,35,66,0.12);
  outline-offset: 2px;
}

.card img {
  width: 100%;
  height: 180px;
  object-fit: cover;
  display: block
}

.card .card-body {
  padding: 14px
}

.benefits {
  display: flex;
  flex-wrap: wrap;
  gap: 12px
}

.benefit {
  flex: 1 1 160px;
  background: var(--gold-light);
  border-radius: 8px;
  padding: 14px;
  border: 1px solid var(--gold);
  text-align: center;
  font-weight: 600;
  color: var(--navy)
}

.contact-panel {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 24px
}

.footer {
  background: var(--cos-gold);
  color: var(--white);
  padding: 26px 0;
  text-align: center;
  font-size: 0.95rem
}

/* Gallery & slideshow - GLOBAL (desktop first) */
.gallery { }
.main-image-container { position: relative; }
.main-image-container img { display: block; width: 100%; max-width: 800px; max-height: 480px; height: auto; object-fit: cover; border-radius: 6px; transition: opacity .6s ease, transform .6s ease; opacity: 1; }
.main-image-container img.fading { opacity: 0; transform: scale(1.02); }
.thumbs { display: flex; gap: 12px; margin-top: 12px; flex-wrap: wrap; }
.thumb-wrap { position: relative; display: inline-block; }
.thumbs img { width: 88px; height: 62px; object-fit: cover; border-radius: 4px; cursor: pointer; border: 2px solid transparent; display: block; }
.thumbs img.active { border-color: var(--gold-dark); }
.thumb-remove { position: absolute; top: 4px; right: 4px; background: rgba(10,35,66,0.8); color: #fff; border-radius: 50%; width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; font-size: 12px; cursor: pointer; opacity: 0.0; transition: opacity .15s; }
.thumb-wrap:hover .thumb-remove { opacity: 1; }
.slide-arrow { position: absolute; top: 50%; transform: translateY(-50%); background: rgba(10,35,66,0.7); color: #fff; border: none; padding: 10px 12px; border-radius: 4px; cursor: pointer; font-size: 18px; display: flex; align-items: center; justify-content: center; }
.slide-arrow.left { left: 12px; }
.slide-arrow.right { right: 12px; }
.slide-arrow:focus { outline: 2px solid var(--gold); }

.price-icon { color: var(--gold-dark); font-weight: 700; margin-right: 6px; }
.property-info { margin-top: 12px; display: block; color: rgba(10,35,66,0.85); }

/* Property attributes layout */
.property-attrs { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 8px 12px; margin-top: 10px; padding: 0; list-style: none; }
.property-attrs .attr { display: flex; align-items: center; gap: 8px; padding: 6px 0; color: rgba(10,35,66,0.85); }
.attr-icon svg { width: 18px; height: 18px; fill: var(--gold-dark); flex: 0 0 18px; }
.attr-label { font-size: 0.95rem; }
.provision-badge { background: var(--gold-dark); color: #fff; padding: 4px 8px; border-radius: 12px; font-weight: 800; margin-left: 8px; font-size: 0.95rem; }

.price-row { display: flex; align-items: center; gap: 8px; }
.price-value { font-size: 1.1rem; font-weight: 800; }

/* Quick attributes icon sizing and color */
.quick-attrs .qa-item { font-size: 0.95rem; }
.quick-attrs .qa-item svg { width: 18px; height: 18px; fill: var(--cos-gold); flex: 0 0 18px; }
.quick-attrs .qa-item .qa-value { margin-left: 6px; }

/* Attributes table (plain, no icons) */
.attrs-table { width: 100%; border-collapse: collapse; margin-top: 14px; background: #fff; border-radius: 8px; overflow: hidden; }
.attrs-table td { padding: 10px 12px; border-bottom: 1px solid rgba(10,35,66,0.06); }
.attrs-table tr:last-child td { border-bottom: none; }
.attrs-table td:first-child { color: rgba(10,35,66,0.75); width: 50%; font-weight: 600; }
.attrs-table td:nth-child(2) { color: rgba(10,35,66,0.9); }

/* Responsive & small */
@media (max-width:900px) {
  .header-inner {
    padding: 12px 0;
  }

  .hero {
    padding: 90px 0 60px;
    text-align: center;
  }

  .hero h1 {
    font-size: 1.6rem;
  }

  .hero p.lead {
    font-size: 0.98rem;
  }

  nav .menu {
    display: none;
  }

  .contact-panel {
    grid-template-columns: 1fr;
    align-items: start;
  }

  /* Responsive for apartment detail two-column layout */
  .two-column {
    grid-template-columns: 1fr !important;
  }

  /* Mobile gallery adjustments */
  .main-image-container img { max-height: 320px; }
  .thumbs img { width: 64px; height: 48px; }
  .slide-arrow { padding: 8px 10px; font-size: 16px; }
  .slide-arrow.left { left: 8px; }
  .slide-arrow.right { right: 8px; }
  .quick-attrs .qa-item svg { width: 14px; height: 14px; flex: 0 0 14px; }
}

@media (max-width:480px) {
  .main-image-container img { max-height: 220px; }
  .thumbs img { width: 48px; height: 36px; }
  .slide-arrow { padding: 6px 8px; font-size: 14px; }
}