/* Clone of Minin Apartments layout language
   Brand/content: Mercuriali Living (no Minin name)
   Single full-bleed hero image · fixed dark header · centered container 73.75rem */

:root {
  --bg: #f7f7f7;
  --white: #ffffff;
  --ink: #363132;
  --ink-soft: #242121;
  --muted: #6b6567;
  --line: #e5e2e1;
  --header: #232121;
  --cream: #fef1e1;
  --rating-bg: #eceef2;
  --font: "Mulish", Arial, sans-serif;
  --display: "Cormorant Garamond", Georgia, serif;
  --container: 73.75rem;
  --header-h: 66px;
}

*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }
html { scroll-behavior: smooth; }
body {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 400;
  line-height: 1.5;
  color: var(--ink);
  background: var(--bg);
  -webkit-font-smoothing: antialiased;
  min-width: 320px;
}
img { max-width: 100%; display: block; }
a { color: inherit; text-decoration: none; }
ul, li { list-style: none; }

/* —— Container (Minin __container) —— */
.wrap {
  width: 100%;
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 0.625rem;
}
@media (min-width: 768px) {
  .wrap { padding: 0 40px; }
}
@media (min-width: 1200px) {
  .wrap { padding: 0 0.625rem; }
}

/* —— Fixed dark header —— */
.site-header {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  z-index: 9999;
  background: var(--header);
  padding-top: env(safe-area-inset-top, 0);
}
.header-inner {
  max-width: 100%;
  padding: 8px 40px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  min-height: var(--header-h);
}
@media (max-width: 768px) {
  .header-inner { padding: 12px 10px; gap: 10px; }
}
.logo {
  font-family: var(--display);
  font-size: 1.35rem;
  color: #f7f7f7;
  letter-spacing: 0.02em;
  white-space: nowrap;
}
.nav-desktop {
  display: none;
  gap: 28px;
  margin-left: auto;
  font-size: 15px;
  font-weight: 500;
  color: #f0f0f0;
}
.nav-desktop a:hover { opacity: 0.65; }
.btn-book {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 18px;
  background: var(--cream);
  color: var(--ink);
  font-size: 14px;
  font-weight: 600;
  border-radius: 4px;
  transition: background 0.3s;
}
.btn-book:hover { background: #eaeaea; }
.nav-toggle {
  display: none;
  width: 35px;
  height: 22px;
  border: 0;
  background: transparent;
  position: relative;
  cursor: pointer;
}
.nav-toggle span,
.nav-toggle::before,
.nav-toggle::after {
  content: "";
  position: absolute;
  right: 0;
  width: 100%;
  height: 2px;
  background: #f7f7f7;
  border-radius: 20px;
}
.nav-toggle span { top: calc(50% - 1px); }
.nav-toggle::before { top: 0; }
.nav-toggle::after { bottom: 0; width: 20px; left: 0; }
@media (max-width: 1200px) {
  .nav-desktop { display: none; }
  .nav-toggle { display: block; }
}
@media (min-width: 1201px) {
  .nav-desktop { display: flex; }
}

.nav-drawer {
  position: fixed;
  inset: 0;
  z-index: 10000;
  background: #f6f6f6;
  display: flex;
  align-items: center;
  justify-content: center;
}
.nav-drawer[hidden] { display: none; }
.nav-drawer nav {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 1.25rem;
  font-size: 1.25rem;
  color: var(--ink);
}
.nav-drawer .btn-book {
  margin-top: 1rem;
  background: var(--ink);
  color: #fff;
}

/* —— SINGLE image hero (Minin .hero) —— */
.hero {
  position: relative;
  height: 800px;
  min-height: 728px;
  overflow: hidden;
  background: #000;
  margin-top: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: center;
}
@media (max-width: 992px) {
  .hero { height: 700px; }
}
@media (max-width: 767px) {
  .hero {
    height: auto;
    min-height: 0;
    flex-direction: column;
    background: #f6f6f6;
  }
}
.hero-media {
  position: absolute;
  inset: 0;
  z-index: 0;
}
@media (max-width: 767px) {
  .hero-media {
    position: relative;
    inset: auto;
    aspect-ratio: 390 / 267;
    width: 100%;
  }
}
.hero-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
  display: block;
}
.hero-veil {
  position: absolute;
  inset: 0;
  z-index: 1;
  background: linear-gradient(180deg, rgba(0,0,0,0.25) 0%, rgba(0,0,0,0.35) 100%);
  pointer-events: none;
}
@media (max-width: 767px) {
  .hero-veil { display: none; }
}
.hero-content {
  position: relative;
  z-index: 2;
  max-width: 1090px;
  width: 100%;
  margin: 0 auto;
  padding: 164px 16px 40px;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
}
@media (max-width: 1200px) {
  .hero-content { padding-top: 120px; max-width: 620px; }
}
@media (max-width: 767px) {
  .hero-content {
    padding: 24px 16px 58px;
    max-width: 100%;
    color: var(--ink-soft);
  }
}
.hero-kicker {
  color: #a9a9a9;
  font-size: 16px;
  line-height: 1.4;
  text-transform: uppercase;
  margin-bottom: 16px;
}
@media (max-width: 767px) {
  .hero-kicker { color: #242121; opacity: 0.4; font-size: 14px; margin-bottom: 10px; }
}
.hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2rem, 6vw, 5.5rem);
  line-height: 1.05;
  color: #f6f6f6;
  opacity: 0.9;
  margin-bottom: 12px;
  max-width: 14ch;
}
@media (max-width: 767px) {
  .hero h1 { color: var(--ink); opacity: 1; font-size: 2.2rem; }
}
.hero-lead {
  max-width: 428px;
  font-size: 20px;
  line-height: 1.4;
  color: #d1d1d1;
  margin-bottom: 0;
}
@media (max-width: 767px) {
  .hero-lead { color: #242121; opacity: 0.6; font-size: 16px; max-width: 340px; }
}
.hero-meta {
  display: none;
}
.btn-primary,
.hero .btn-primary {
  margin-top: 50px;
  display: flex;
  align-items: center;
  justify-content: center;
  height: 52px;
  min-width: 258px;
  padding: 0 24px;
  background: var(--cream);
  color: var(--ink);
  font-weight: 600;
  font-size: 15px;
  border-radius: 4px;
  border: 0;
  transition: background 0.4s;
}
.hero .btn-primary:hover { background: #eaeaea; }
@media (max-width: 767px) {
  .hero .btn-primary {
    margin-top: 47px;
    background: var(--ink);
    color: #fff;
    min-width: 260px;
    height: 50px;
  }
}

/* —— Generic section —— */
.section {
  margin-top: 100px;
  margin-bottom: 20px;
}
@media (max-width: 767px) {
  .section { margin-top: 80px; }
}
.section-title,
.title {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.25rem, 5vw, 4.5rem);
  line-height: 1.2;
  color: var(--ink);
  margin-bottom: 48px;
  max-width: 18ch;
}
@media (max-width: 767px) {
  .section-title { margin-bottom: 32px; font-size: 2.25rem; }
}
.lede {
  color: var(--muted);
  max-width: 36rem;
  margin-bottom: 1.5rem;
  font-size: 16px;
  line-height: 1.55;
}
.empty { color: var(--muted); }

/* Trust block — centered cards in container */
.trust-grid {
  display: grid;
  gap: 16px;
  max-width: 100%;
}
@media (min-width: 900px) {
  .trust-grid {
    grid-template-columns: 1fr 1fr 1.2fr;
    gap: 16px;
  }
}
.trust-card,
.trust-about {
  background: var(--white);
  border-radius: 8px;
  padding: 28px 24px;
  border: 1px solid var(--line);
}
.trust-platform {
  font-size: 13px;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 12px;
}
.trust-stat strong {
  display: block;
  font-family: var(--display);
  font-size: 48px;
  font-weight: 400;
  line-height: 1;
  margin-bottom: 4px;
}
.trust-rating {
  color: var(--muted);
  margin: 8px 0 16px;
  font-size: 15px;
}
.trust-about-photo {
  width: 100%;
  max-width: 280px;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  margin: 0 auto 16px;
  display: block;
}
.trust-about {
  text-align: center;
}
.trust-about-text {
  text-align: left;
  margin-bottom: 16px;
  line-height: 1.55;
  font-size: 15px;
}
.text-link {
  font-size: 15px;
  font-weight: 600;
  border-bottom: 1px solid currentColor;
}
.text-link:hover { opacity: 0.55; }

/* Promo */
.band-promo {
  margin-top: 100px;
  background: #ebe9e8;
  padding: 56px 0;
}
.band-promo-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 32px;
  max-width: 900px;
  margin: 0 auto;
}
.band-promo h2 {
  font-family: var(--display);
  font-size: clamp(1.5rem, 3vw, 2.25rem);
  font-weight: 400;
  margin-bottom: 8px;
  max-width: 20ch;
}
.band-promo p { color: var(--muted); margin: 0; max-width: 28rem; }
.band-promo-right { text-align: center; }
.discount {
  font-family: var(--display);
  font-size: 56px;
  line-height: 1;
  margin-bottom: 12px;
}
.band-promo .btn-primary {
  margin-top: 0;
  background: var(--ink);
  color: #fff;
}
.band-promo .btn-primary:hover { opacity: 0.9; }

/* Apartments — 2-col grid INSIDE container (not full-bleed) */
.apartments-section { margin-top: 120px; }
@media (max-width: 767px) {
  .apartments-section { margin-top: 80px; }
}
.apt-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 44px 16px;
}
@media (min-width: 900px) {
  .apt-grid {
    grid-template-columns: 1fr 1fr;
    gap: 44px 16px;
  }
}
.apt-card {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 100%;
}
.apt-card-media {
  display: block;
  position: relative;
  overflow: hidden;
  border-radius: 4px;
  aspect-ratio: 3 / 2;
  background: #ddd;
}
.apt-card-media img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}
.apt-card:hover .apt-card-media img { transform: scale(1.03); }
.apt-rating-badge {
  position: absolute;
  top: 16px;
  right: 16px;
  min-width: 140px;
  height: 30px;
  padding: 0 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: var(--rating-bg);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  color: #333;
  z-index: 2;
}
.apt-card-body { display: flex; flex-direction: column; gap: 10px; }
.apt-card h3 {
  font-family: var(--display);
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  font-weight: 400;
  line-height: 1.2;
}
.apt-card h3 a:hover { opacity: 0.55; }
.apt-addr {
  font-size: 14px;
  color: var(--muted);
  line-height: 1.4;
}
.apt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 16px;
  align-items: center;
  margin-top: 8px;
}
.btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 18px;
  border: 1px solid var(--ink);
  border-radius: 4px;
  font-size: 14px;
  font-weight: 600;
  background: transparent;
  transition: background 0.3s, color 0.3s;
}
.btn-outline:hover {
  background: var(--ink);
  color: #fff;
}
.section-foot { margin-top: 40px; }

/* Services — 2-col in container */
.service-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 24px 40px;
  max-width: 100%;
}
@media (min-width: 900px) {
  .service-grid {
    grid-template-columns: 1fr 1fr;
  }
  .service-card:nth-child(even) {
    padding-left: 40px;
  }
}
.service-card {
  display: flex;
  gap: 16px;
  align-items: flex-start;
}
.service-num {
  font-size: 14px;
  font-weight: 700;
  color: var(--muted);
  min-width: 2rem;
  padding-top: 4px;
}
.service-card h3 {
  font-family: var(--font);
  font-size: 22px;
  font-weight: 600;
  line-height: 1.3;
  margin-bottom: 6px;
}
.service-card p {
  margin: 0;
  font-size: 15px;
  color: var(--muted);
  line-height: 1.45;
  max-width: 36ch;
}

/* Location — image contained, not full page */
.location-block {
  display: grid;
  gap: 32px;
  align-items: center;
}
@media (min-width: 900px) {
  .location-block {
    grid-template-columns: 1fr 1fr;
    gap: 48px;
  }
}
.location-visual {
  border-radius: 8px;
  overflow: hidden;
  max-height: 360px;
  background: #ddd;
}
.location-visual img {
  width: 100%;
  height: 360px;
  object-fit: cover;
  object-position: center;
}

/* FAQ */
.faq-list {
  max-width: 820px;
  border-top: 1px solid var(--line);
}
.faq-item { border-bottom: 1px solid var(--line); }
.faq-item summary {
  list-style: none;
  cursor: pointer;
  display: flex;
  gap: 16px;
  align-items: baseline;
  padding: 20px 0;
  font-weight: 600;
  font-size: 16px;
}
.faq-item summary::-webkit-details-marker { display: none; }
.faq-n {
  color: var(--muted);
  font-size: 14px;
  min-width: 28px;
}
.faq-body {
  padding: 0 0 20px 44px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.55;
}
.faq-body p { margin: 0; }

/* Rules */
.rules-grid {
  display: grid;
  gap: 16px;
  grid-template-columns: 1fr;
}
@media (min-width: 700px) {
  .rules-grid { grid-template-columns: 1fr 1fr; }
}
@media (min-width: 1000px) {
  .rules-grid { grid-template-columns: 1fr 1fr 1fr; }
}
.rule-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 20px;
}
.rule-card h3 {
  font-family: var(--font);
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
}
.rule-card p {
  margin: 0;
  font-size: 14px;
  color: var(--muted);
  line-height: 1.45;
}

/* CTA */
.cta-contact {
  margin-top: 100px;
  background: var(--header);
  color: #fff;
  padding: 80px 0;
}
.cta-contact .section-title { color: #fff; }
.cta-contact .lede { color: rgba(255,255,255,0.7); }
.cta-channels {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.cta-contact .btn-outline {
  border-color: rgba(255,255,255,0.4);
  color: #fff;
}
.cta-contact .btn-outline:hover {
  background: #fff;
  color: var(--ink);
}
.cta-contact .btn-primary {
  margin-top: 0;
  background: var(--cream);
  color: var(--ink);
}

/* Inner pages */
.page-hero {
  margin-top: calc(var(--header-h) + 48px);
  padding-bottom: 24px;
}
.page-hero h1 {
  font-family: var(--display);
  font-weight: 400;
  font-size: clamp(2.25rem, 5vw, 3.5rem);
  margin-bottom: 12px;
}
.page-hero .hero-kicker {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  margin-bottom: 8px;
}

.detail-layout {
  display: grid;
  gap: 32px;
  margin-bottom: 80px;
  max-width: 100%;
}
@media (min-width: 900px) {
  .detail-layout {
    grid-template-columns: 1.35fr 1fr;
    gap: 40px;
  }
}
.detail-cover,
.detail-cover-ph {
  width: 100%;
  border-radius: 4px;
  aspect-ratio: 3 / 2;
  object-fit: cover;
  background: #ddd;
}
.detail-thumbs {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(88px, 1fr));
  gap: 8px;
  margin-top: 10px;
}
.detail-thumbs img {
  border-radius: 4px;
  aspect-ratio: 1;
  object-fit: cover;
}
.detail-facts {
  margin: 0 0 20px;
  padding: 0;
}
.detail-facts li {
  display: flex;
  justify-content: space-between;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  font-size: 15px;
}
.detail-facts span { color: var(--muted); }

.contact-board {
  max-width: 480px;
  margin: 0 auto 80px;
}
.contact-row {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 18px 0;
  border-bottom: 1px solid var(--line);
}
.contact-row span {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
}
.contact-row a {
  font-size: 18px;
  font-weight: 600;
}
.contact-row a:hover { opacity: 0.55; }
.content-narrow {
  max-width: 640px;
  margin: 0 auto 80px;
}

/* Footer */
.site-footer {
  background: var(--header);
  color: rgba(247, 247, 247, 0.55);
  padding: 48px 0 32px;
  margin-top: 80px;
}
.footer-grid {
  max-width: var(--container);
  margin: 0 auto;
  padding: 0 0.625rem;
  display: grid;
  gap: 28px;
}
@media (min-width: 768px) {
  .footer-grid {
    grid-template-columns: 1.4fr 1fr 1fr;
    padding: 0 40px;
  }
}
.footer-brand {
  font-family: var(--display);
  color: #f7f7f7;
  font-size: 1.35rem;
  margin-bottom: 8px;
}
.footer-tag { font-size: 14px; margin: 0; }
.footer-links,
.footer-contact {
  display: flex;
  flex-direction: column;
  gap: 8px;
  font-size: 14px;
}
.footer-links a:hover,
.footer-contact a:hover { color: #fff; }
.footer-copy {
  max-width: var(--container);
  margin: 32px auto 0;
  padding: 0 0.625rem;
  font-size: 12px;
  opacity: 0.7;
}
@media (min-width: 768px) {
  .footer-copy { padding: 0 40px; }
}

.apt-ph {
  width: 100%;
  height: 100%;
  min-height: 200px;
  background: #ccc;
}

/* Listings inset — whitespace flanking the apartments grid (narrower than the section container) */
.apartments-section .apt-grid {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}
@media (min-width: 900px) {
  .apartments-section .apt-grid { gap: 48px 40px; }
}
.apartments-section .section-title,
.apartments-section .section-foot {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}
