/* ============================================================
   M&D ApartmentsLviv — Design System
   Fonts: Cormorant Garamond (serif) + Jost (sans-serif)
   ============================================================ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:ital,wght@0,400;0,500;0,600;1,400&family=Jost:wght@300;400;500&display=swap');

/* ============================================================
   CSS VARIABLES
   ============================================================ */
:root {
  --dark:       #1C2B1C;
  --gold:       #B8973A;
  --gold-light: #D4AF5A;
  --cream:      #F8F5EE;
  --white:      #FFFFFF;
  --gray:       #6B6B6B;
  --border:     #E2DDD3;
  --text:       #2A2A2A;

  --header-h:   70px;
  --sidebar-w:  380px;
  --pad-h:      48px;   /* горизонтальний padding сторінки */
}

/* ============================================================
   RESET & BASE
   ============================================================ */
*, *::before, *::after { margin: 0; padding: 0; box-sizing: border-box; }

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  color: var(--text);
  background: var(--white);
  font-size: 15px;
  line-height: 1.6;
}

img { display: block; max-width: 100%; }
a   { color: inherit; }
button { cursor: pointer; font-family: 'Jost', sans-serif; }

/* ============================================================
   TYPOGRAPHY HELPERS
   ============================================================ */
.serif { font-family: 'Cormorant Garamond', serif; }

.section-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold);
  font-weight: 500;
  margin-bottom: 10px;
}

.section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 10px;
}

.section-subtitle {
  color: var(--gray);
  font-size: 15px;
  font-weight: 300;
  max-width: 520px;
  margin-bottom: 40px;
}

/* ============================================================
   HEADER
   ============================================================ */
header {
  background: var(--white);
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 100;
}

.header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px var(--pad-h);
  gap: 24px;
  min-height: var(--header-h);
}

.logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--dark);
  letter-spacing: 0.5px;
  text-decoration: none;
  white-space: nowrap;
  flex-shrink: 0;
}
.logo span { color: var(--gold); }

nav {
  display: flex;
  gap: 28px;
  align-items: center;
}
nav a {
  text-decoration: none;
  color: var(--gray);
  font-size: 14px;
  font-weight: 400;
  letter-spacing: 0.3px;
  transition: color 0.2s;
  white-space: nowrap;
}
nav a:hover { color: var(--dark); }

/* Messenger buttons in header */
.header-messengers {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-shrink: 0;
}
.hdr-btn {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  transition: transform 0.2s, opacity 0.2s;
  flex-shrink: 0;
  border: none;
}
.hdr-btn:hover { transform: scale(1.1); }
.hdr-btn.tg  { background: #2AABEE; }
.hdr-btn.vb  { background: #7360F2; }
.hdr-btn.ig  { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.hdr-btn.bk  { background: #003580; font-family: Arial, sans-serif; font-size: 12px; font-weight: 700; color: #fff; }

/* ============================================================
   SEARCH BAR (homepage)
   ============================================================ */
.search-bar {
  background: var(--cream);
  border-top: 1px solid var(--border);
  padding: 12px var(--pad-h);
}
.search-inner {
  display: flex;
  align-items: stretch;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  max-width: 780px;
}
.search-field {
  display: flex;
  flex-direction: column;
  padding: 10px 20px;
  border-right: 1px solid var(--border);
  flex: 1;
  cursor: pointer;
}
.search-field:last-of-type { border-right: none; }
.search-field label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray);
  font-weight: 500;
  margin-bottom: 2px;
}
.search-field input,
.search-field select {
  border: none;
  outline: none;
  font-family: 'Jost', sans-serif;
  font-size: 14px;
  color: var(--text);
  background: transparent;
  cursor: pointer;
  -webkit-appearance: none;
}
.search-btn {
  background: var(--dark);
  color: var(--white);
  border: none;
  padding: 0 28px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.5px;
  white-space: nowrap;
  min-height: 60px;
  transition: background 0.2s;
}
.search-btn:hover { background: #2A3F2A; }

/* ============================================================
   HERO (homepage)
   ============================================================ */
.hero {
  position: relative;
  height: 520px;
  overflow: hidden;
  display: flex;
  align-items: center;
}
.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center top;
}
.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to right, rgba(28,43,28,0.72) 40%, rgba(28,43,28,0.2));
}
.hero-content {
  position: relative;
  z-index: 2;
  padding: 0 var(--pad-h);
  max-width: 600px;
}
.hero-tag {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 2px;
  color: var(--gold-light);
  font-weight: 500;
  margin-bottom: 14px;
}
.hero h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 52px;
  font-weight: 600;
  color: var(--white);
  line-height: 1.15;
  margin-bottom: 16px;
}
.hero p {
  color: rgba(255,255,255,0.8);
  font-size: 15px;
  font-weight: 300;
  max-width: 420px;
  margin-bottom: 28px;
}
.hero-btn {
  display: inline-block;
  background: var(--gold);
  color: var(--white);
  padding: 13px 32px;
  text-decoration: none;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  transition: background 0.2s;
}
.hero-btn:hover { background: var(--gold-light); }

/* Logo overlay on hero */
.hero-logo-overlay {
  position: absolute;
  right: var(--pad-h);
  top: 50%;
  transform: translateY(-50%);
  z-index: 3;
}
.hero-logo-overlay img {
  width: 420px;
  height: auto;
  filter: sepia(1) saturate(3) brightness(0.85) hue-rotate(5deg) drop-shadow(0 2px 16px rgba(0,0,0,0.5));
  opacity: 0.9;
}

/* ============================================================
   SECTIONS — COMMON
   ============================================================ */
section { padding: 64px var(--pad-h); }

/* ============================================================
   APARTMENTS GRID (homepage catalog)
   ============================================================ */
.apts-section { background: var(--white); }

.apts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 28px;
}

.apt-card {
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  transition: box-shadow 0.25s;
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: block;
}
.apt-card:hover { box-shadow: 0 8px 32px rgba(0,0,0,0.10); }

.apt-card-img {
  position: relative;
  height: 240px;
  overflow: hidden;
  background: var(--cream);
}
.apt-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s;
}
.apt-card:hover .apt-card-img img { transform: scale(1.04); }

.apt-card-badge {
  position: absolute;
  top: 14px;
  left: 14px;
  background: var(--dark);
  color: var(--white);
  font-size: 11px;
  padding: 4px 10px;
  letter-spacing: 0.5px;
}

.apt-card-body { padding: 20px 22px; }
.apt-card-body h3 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--dark);
  margin-bottom: 6px;
  line-height: 1.3;
}
.apt-card-body .location {
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 14px;
  display: flex;
  align-items: center;
  gap: 5px;
}

.apt-card-meta { display: flex; gap: 20px; margin-bottom: 16px; }
.meta-item {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 13px;
  color: var(--gray);
}
.meta-icon { width: 16px; height: 16px; opacity: 0.6; flex-shrink: 0; }

.apt-card-footer {
  border-top: 1px solid var(--border);
  padding-top: 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.apt-card-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 20px;
  font-weight: 500;
  color: var(--dark);
}
.apt-card-price span {
  font-family: 'Jost', sans-serif;
  font-size: 12px;
  color: var(--gray);
  font-weight: 300;
}
.apt-card-link {
  font-size: 13px;
  color: var(--dark);
  font-weight: 500;
  text-decoration: none;
  letter-spacing: 0.3px;
  display: flex;
  align-items: center;
  gap: 6px;
  transition: color 0.2s;
}
.apt-card-link:hover { color: var(--gold); }

/* Loading skeleton */
.apt-card-skeleton .apt-card-img { background: var(--cream); }
.skeleton-line {
  background: linear-gradient(90deg, var(--cream) 25%, var(--border) 50%, var(--cream) 75%);
  background-size: 200% 100%;
  animation: shimmer 1.4s infinite;
  border-radius: 3px;
  height: 14px;
  margin-bottom: 8px;
}
@keyframes shimmer { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }

/* ============================================================
   ABOUT SECTION (homepage)
   ============================================================ */
.about-section { background: var(--cream); }

.about-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: center;
}
.about-text .section-subtitle { max-width: 100%; margin-bottom: 20px; }
.about-text p {
  color: var(--gray);
  font-size: 15px;
  font-weight: 300;
  margin-bottom: 16px;
  line-height: 1.8;
}

.about-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
  margin-top: 32px;
}
.stat-item { border-left: 2px solid var(--gold); padding-left: 16px; }
.stat-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 36px;
  font-weight: 500;
  color: var(--dark);
  line-height: 1;
}
.stat-label {
  font-size: 12px;
  color: var(--gray);
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 4px;
}

.about-img-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  grid-template-rows: 200px 200px;
  gap: 10px;
}
.about-img-grid img { width: 100%; height: 100%; object-fit: cover; border-radius: 2px; }
.about-img-grid img:first-child { grid-row: span 2; height: 100%; }

/* ============================================================
   LVIV PLACES (homepage)
   ============================================================ */
.places-section { background: var(--white); }

.places-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 18px;
}
.place-card {
  position: relative;
  height: 220px;
  overflow: hidden;
  border-radius: 2px;
  cursor: pointer;
}
.place-card img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.4s; }
.place-card:hover img { transform: scale(1.06); }
.place-card-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(28,43,28,0.7) 40%, transparent);
}
.place-card-text { position: absolute; bottom: 14px; left: 14px; right: 14px; }
.place-card-text h4 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 17px;
  color: var(--white);
  font-weight: 500;
}
.place-card-text p { font-size: 12px; color: rgba(255,255,255,0.75); margin-top: 2px; }
.places-note { text-align: center; color: var(--gray); font-size: 13px; margin-top: 24px; font-style: italic; }

/* ============================================================
   REVIEWS SECTION (homepage & apartment page)
   ============================================================ */
.reviews-section { background: var(--cream); }

.reviews-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 22px;
}
.review-card {
  background: var(--white);
  border: 1px solid var(--border);
  padding: 24px;
  border-radius: 2px;
}
.review-stars { color: var(--gold); font-size: 14px; letter-spacing: 2px; margin-bottom: 12px; }
.review-text {
  font-size: 14px;
  color: var(--text);
  line-height: 1.75;
  font-weight: 300;
  margin-bottom: 16px;
  font-style: italic;
}
.review-author { display: flex; align-items: center; gap: 10px; }
.review-avatar {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: var(--dark);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  color: var(--white);
  font-weight: 500;
  flex-shrink: 0;
}
.review-name { font-size: 13px; font-weight: 500; color: var(--dark); }
.review-source { font-size: 11px; color: var(--gray); }

/* ============================================================
   CONTACTS SECTION (homepage)
   ============================================================ */
.contacts-section { background: var(--white); }

.contacts-inner {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 64px;
  align-items: start;
}
.contact-info { display: flex; flex-direction: column; gap: 28px; }
.contact-item { display: flex; gap: 16px; }
.contact-icon {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: var(--gold);
}
.contact-item h4 { font-size: 13px; font-weight: 500; color: var(--dark); margin-bottom: 4px; }
.contact-item p, .contact-item a {
  font-size: 14px;
  color: var(--gray);
  font-weight: 300;
  text-decoration: none;
}
.contact-item a:hover { color: var(--dark); }

/* ============================================================
   FOOTER
   ============================================================ */
footer {
  background: var(--dark);
  color: rgba(255,255,255,0.75);
  padding: 48px var(--pad-h);
}
.footer-inner {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}
.footer-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  font-weight: 600;
  color: var(--white);
  margin-bottom: 12px;
  text-decoration: none;
  display: inline-block;
}
.footer-logo span { color: var(--gold); }
.footer-desc { font-size: 14px; font-weight: 300; line-height: 1.7; }

.footer-col h4 {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1.5px;
  color: var(--gold);
  margin-bottom: 16px;
  font-weight: 500;
}
.footer-col ul { list-style: none; }
.footer-col ul li { margin-bottom: 10px; }
.footer-col ul li a {
  color: rgba(255,255,255,0.65);
  text-decoration: none;
  font-size: 14px;
  font-weight: 300;
  transition: color 0.2s;
}
.footer-col ul li a:hover { color: var(--white); }

.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.1);
  padding-top: 24px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 13px;
  font-weight: 300;
}

/* ============================================================
   FLOATING SOCIAL BUTTONS
   ============================================================ */
.floating-btns {
  position: fixed;
  right: 20px;
  bottom: 28px;
  display: flex;
  flex-direction: column;
  gap: 10px;
  z-index: 200;
}
.float-btn {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
  box-shadow: 0 2px 10px rgba(0,0,0,0.18);
  transition: transform 0.2s, box-shadow 0.2s;
}
.float-btn:hover { transform: scale(1.08); box-shadow: 0 4px 16px rgba(0,0,0,0.25); }
.float-btn svg { width: 20px; height: 20px; fill: white; }
.float-btn.telegram  { background: #2AABEE; }
.float-btn.instagram { background: radial-gradient(circle at 30% 107%, #fdf497 0%, #fd5949 45%, #d6249f 60%, #285AEB 90%); }
.float-btn.booking   { background: #003580; font-family: Arial, sans-serif; font-size: 13px; font-weight: 700; color: white; }

/* ============================================================
   BREADCRUMB (apartment page)
   ============================================================ */
.breadcrumb {
  padding: 14px var(--pad-h);
  background: var(--cream);
  border-bottom: 1px solid var(--border);
  font-size: 13px;
  color: var(--gray);
  display: flex;
  align-items: center;
  gap: 8px;
}
.breadcrumb a { color: var(--gray); text-decoration: none; }
.breadcrumb a:hover { color: var(--dark); }
.breadcrumb-sep { opacity: 0.4; }

/* ============================================================
   GALLERY (apartment page)
   ============================================================ */
.gallery { padding: 28px var(--pad-h) 0; }

.gallery-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 280px 200px;
  gap: 8px;
}
.gallery-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 2px;
  cursor: pointer;
  transition: filter 0.2s;
  background: var(--cream);
}
.gallery-grid img:hover { filter: brightness(0.92); }
.gallery-grid img:first-child { grid-row: span 2; height: 100%; }

.gallery-more { position: relative; cursor: pointer; }
.gallery-more img { filter: brightness(0.65); }
.gallery-more-label {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  color: var(--white);
  pointer-events: none;
}
.gallery-more-label span:first-child {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 500;
}
.gallery-more-label span:last-child {
  font-size: 12px;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-top: 2px;
}

/* Thumbnail strip */
.gallery-strip {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: thin;
  scrollbar-color: var(--border) transparent;
}
.gallery-strip img {
  width: 100px;
  height: 68px;
  object-fit: cover;
  border-radius: 2px;
  flex-shrink: 0;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color 0.2s;
}
.gallery-strip img:hover,
.gallery-strip img.active { border-color: var(--gold); }

/* Lightbox overlay */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.92);
  z-index: 1000;
  align-items: center;
  justify-content: center;
}
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 90vh; object-fit: contain; }
.lightbox-close {
  position: absolute;
  top: 20px;
  right: 24px;
  color: white;
  font-size: 32px;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
}
.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255,255,255,0.12);
  border: none;
  color: white;
  font-size: 24px;
  padding: 12px 16px;
  cursor: pointer;
  border-radius: 2px;
  transition: background 0.2s;
}
.lightbox-prev:hover,
.lightbox-next:hover { background: rgba(255,255,255,0.22); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }

/* ============================================================
   APARTMENT PAGE LAYOUT
   ============================================================ */
.apt-layout {
  display: grid;
  grid-template-columns: 1fr var(--sidebar-w);
  gap: 52px;
  padding: 36px var(--pad-h) 56px;
  align-items: start;
}

/* LEFT COLUMN */
.apt-header { margin-bottom: 6px; }
.apt-header h1 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 42px;
  font-weight: 500;
  color: var(--dark);
  line-height: 1.15;
  margin-bottom: 10px;
}
.apt-location {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--gray);
  font-size: 14px;
  margin-bottom: 24px;
}
.apt-location svg { flex-shrink: 0; }

/* Meta strip */
.apt-meta {
  display: flex;
  gap: 0;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 32px;
}
.meta-cell {
  flex: 1;
  text-align: center;
  padding: 16px 12px;
  border-right: 1px solid var(--border);
}
.meta-cell:last-child { border-right: none; }
.meta-cell-num {
  font-family: 'Cormorant Garamond', serif;
  font-size: 28px;
  font-weight: 500;
  color: var(--dark);
  line-height: 1;
}
.meta-cell-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  color: var(--gray);
  margin-top: 5px;
}

/* Description */
.apt-description h2 {
  font-family: 'Cormorant Garamond', serif;
  font-size: 26px;
  font-weight: 500;
  color: var(--dark);
  margin: 28px 0 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--border);
}
.apt-description h2:first-child { margin-top: 0; }
.apt-description p {
  color: var(--gray);
  font-size: 14px;
  font-weight: 300;
  line-height: 1.9;
  margin-bottom: 12px;
}

/* Amenities */
.amenities-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 8px;
}
.amenity {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 14px;
  background: var(--cream);
  border-radius: 3px;
  font-size: 13px;
  color: var(--text);
}
.amenity svg { flex-shrink: 0; opacity: 0.6; }

/* Rules */
.rules-list { display: flex; flex-direction: column; gap: 10px; }
.rule-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 14px;
  color: var(--gray);
  font-weight: 300;
}
.rule-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--cream);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

/* Check-in/out times */
.checkin-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  margin-bottom: 8px;
}
.checkin-card {
  background: var(--cream);
  border-radius: 4px;
  padding: 16px 20px;
}
.checkin-card .label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray);
  margin-bottom: 6px;
}
.checkin-card .value {
  font-family: 'Cormorant Garamond', serif;
  font-size: 22px;
  color: var(--dark);
}

/* Map */
.map-section { margin-top: 32px; }
.map-placeholder {
  height: 280px;
  background: var(--cream);
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
}
.map-placeholder iframe { width: 100%; height: 100%; border: 0; }

/* Apartment page reviews */
.apt-reviews { margin-top: 40px; }
.rating-summary {
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 20px;
  background: var(--cream);
  border-radius: 4px;
  margin-bottom: 24px;
}
.rating-big {
  font-family: 'Cormorant Garamond', serif;
  font-size: 56px;
  font-weight: 500;
  color: var(--dark);
  line-height: 1;
}
.rating-details .stars { color: var(--gold); font-size: 18px; letter-spacing: 3px; margin-bottom: 4px; }
.rating-details p { font-size: 13px; color: var(--gray); }

.apt-reviews-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

/* ============================================================
   BOOKING SIDEBAR (apartment page)
   ============================================================ */
.booking-sidebar { position: sticky; top: 80px; }

.booking-widget {
  border: 1px solid var(--border);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: 0 4px 24px rgba(0,0,0,0.07);
}
.bw-header { background: var(--dark); padding: 22px 24px; color: var(--white); }
.bw-price {
  font-family: 'Cormorant Garamond', serif;
  font-size: 34px;
  font-weight: 500;
  line-height: 1;
}
.bw-price-per { font-size: 15px; font-weight: 300; opacity: 0.75; }
.bw-price-note { font-size: 12px; opacity: 0.6; margin-top: 6px; }
.bw-price-loading {
  font-size: 14px;
  font-weight: 300;
  opacity: 0.7;
  font-style: italic;
}

.bw-rating {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid rgba(255,255,255,0.15);
}
.bw-rating .stars { color: var(--gold-light); font-size: 12px; letter-spacing: 1px; }
.bw-rating p { font-size: 12px; opacity: 0.75; }

.bw-body { padding: 22px 24px; }

.bw-dates {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border: 1px solid var(--border);
  border-radius: 4px;
  overflow: hidden;
  margin-bottom: 12px;
}
.bw-date-field {
  padding: 10px 14px;
  cursor: pointer;
}
.bw-date-field:first-child { border-right: 1px solid var(--border); }
.bw-date-field label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray);
  font-weight: 500;
  margin-bottom: 3px;
}
.bw-date-field input {
  border: none;
  outline: none;
  font-size: 13px;
  color: var(--text);
  width: 100%;
  background: transparent;
  cursor: pointer;
}

.bw-guests {
  border: 1px solid var(--border);
  border-radius: 4px;
  padding: 10px 14px;
  margin-bottom: 16px;
}
.bw-guests label {
  display: block;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray);
  font-weight: 500;
  margin-bottom: 3px;
}
.bw-guests select {
  border: none;
  outline: none;
  font-size: 13px;
  color: var(--text);
  width: 100%;
  background: transparent;
  -webkit-appearance: none;
  cursor: pointer;
}

.bw-summary {
  background: var(--cream);
  border-radius: 4px;
  padding: 14px 16px;
  margin-bottom: 14px;
  display: none;
}
.bw-summary-row {
  display: flex;
  justify-content: space-between;
  font-size: 13px;
  color: var(--gray);
  margin-bottom: 8px;
}
.bw-summary-row:last-child {
  margin-bottom: 0;
  color: var(--dark);
  font-weight: 500;
  padding-top: 8px;
  border-top: 1px solid var(--border);
}

.book-btn {
  width: 100%;
  background: var(--gold);
  color: var(--white);
  border: none;
  padding: 15px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 1px;
  text-transform: uppercase;
  border-radius: 3px;
  transition: background 0.2s;
  margin-bottom: 10px;
}
.book-btn:hover { background: var(--gold-light); }

.bw-divider {
  text-align: center;
  font-size: 12px;
  color: var(--gray);
  margin: 10px 0;
  position: relative;
}
.bw-divider::before,
.bw-divider::after {
  content: '';
  position: absolute;
  top: 50%;
  width: 38%;
  height: 1px;
  background: var(--border);
}
.bw-divider::before { left: 0; }
.bw-divider::after  { right: 0; }

.tg-btn {
  width: 100%;
  background: #2AABEE;
  color: var(--white);
  border: none;
  padding: 14px;
  font-size: 13px;
  font-weight: 500;
  border-radius: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: background 0.2s;
  margin-bottom: 14px;
}
.tg-btn:hover { background: #1E9BD6; }

.bw-note {
  font-size: 12px;
  color: var(--gray);
  text-align: center;
  line-height: 1.65;
}

/* Similar apartments */
.bw-similar { margin-top: 20px; }
.bw-similar h4 {
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 1px;
  color: var(--gray);
  margin-bottom: 12px;
  font-weight: 500;
}
.similar-apt {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid var(--border);
  text-decoration: none;
}
.similar-apt:last-child { border-bottom: none; }
.similar-apt img { width: 60px; height: 46px; object-fit: cover; border-radius: 2px; flex-shrink: 0; }
.similar-apt-info { flex: 1; }
.similar-apt-name { font-size: 13px; color: var(--dark); font-weight: 500; line-height: 1.3; }
.similar-apt-meta { font-size: 12px; color: var(--gray); margin-top: 2px; }

/* ============================================================
   MOBILE BOOKING BAR (apartment page, mobile only)
   ============================================================ */
.mobile-booking-bar {
  display: none;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  padding: 14px 16px;
}

/* ============================================================
   UTILITY
   ============================================================ */
.loading-spinner {
  display: inline-block;
  width: 18px;
  height: 18px;
  border: 2px solid var(--border);
  border-top-color: var(--gold);
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }

.error-msg {
  background: #fff3f3;
  border: 1px solid #f5c6cb;
  color: #721c24;
  padding: 12px 16px;
  border-radius: 4px;
  font-size: 13px;
}

/* ============================================================
   RESPONSIVE — 1024px
   ============================================================ */
@media (max-width: 1024px) {
  :root { --pad-h: 24px; }

  .hero-logo-overlay img { width: 320px; }
  .about-inner { gap: 36px; }
  .contacts-inner { gap: 36px; }

  /* Apartment page */
  .apt-layout { gap: 32px; }
  footer { padding: 40px 24px; }
}

/* ============================================================
   RESPONSIVE — 768px
   ============================================================ */
@media (max-width: 768px) {
  :root { --pad-h: 16px; }

  /* Header */
  nav { display: none; }
  .header-messengers { display: none; }

  /* Hero */
  .hero { height: 420px; }
  .hero h1 { font-size: 36px; }
  .hero-logo-overlay { display: none; }

  /* Homepage sections */
  .apts-grid { grid-template-columns: 1fr; }
  .about-inner { grid-template-columns: 1fr; }
  .about-img-grid { display: none; }
  .places-grid { grid-template-columns: 1fr 1fr; }
  .reviews-grid { grid-template-columns: 1fr; gap: 14px; }
  .contacts-inner { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr 1fr; gap: 24px; }

  /* Search bar */
  .search-inner { flex-direction: column; border-radius: 4px; }
  .search-field { border-right: none; border-bottom: 1px solid var(--border); }
  .search-field:last-of-type { border-bottom: none; }
  .search-btn { min-height: 48px; width: 100%; }

  /* Apartment page */
  .breadcrumb { font-size: 12px; padding: 10px 16px; }
  .gallery { padding: 12px 16px 0; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: 200px 140px; }
  .apt-layout { grid-template-columns: 1fr; gap: 0; padding: 20px 16px 40px; }
  .booking-sidebar { display: none; }
  .mobile-booking-bar { display: block; }
  .apt-header h1 { font-size: 28px; }
  .apt-meta { flex-wrap: wrap; }
  .meta-cell { min-width: 80px; padding: 12px 8px; }
  .meta-cell-num { font-size: 22px; }
  .apt-description h2 { font-size: 20px; }
  .amenities-grid { grid-template-columns: 1fr; }
  .apt-reviews-grid { grid-template-columns: 1fr; gap: 12px; }
  footer { padding: 32px 16px; }
}

/* ============================================================
   RESPONSIVE — 480px
   ============================================================ */
@media (max-width: 480px) {
  .hero h1 { font-size: 28px; }
  .section-title { font-size: 28px; }
  .places-grid { grid-template-columns: 1fr; }
  .footer-inner { grid-template-columns: 1fr; }

  /* Gallery: single photo */
  .gallery-grid { grid-template-columns: 1fr; grid-template-rows: 240px; }
  .gallery-grid img:first-child { grid-row: span 1; }
  .gallery-grid img:nth-child(2),
  .gallery-grid img:nth-child(3),
  .gallery-grid .gallery-more { display: none; }
}
