@import url('https://fonts.googleapis.com/css2?family=Roboto:wght@300;400;700&display=swap');
:root {
  --header-dark: #bbae74;
  --bg-light: #ffffff;
  --text: #000000;
  --gutter: 18px;
}
* { box-sizing: border-box; }
body {
  font-family: Roboto, sans-serif;
  margin: 0;
  color: var(--text);
  background: var(--bg-light);
}

/* ====== HEADER ====== */
.header {
  background: var(--header-dark);
  padding: 12px 20px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.nav-left a {
  color: var(--text);
  text-decoration: none;
  margin-right: 12px;
}
.nav-right button {
  margin-left: 6px;
  padding: 6px 10px;
  cursor: pointer;
  font-weight: 700;
}

/* ====== MAIN LAYOUT ====== */
.container {
  max-width: 1200px;
  margin: 20px auto;
  padding: 0 16px;
}
.split {
  display: flex;
  gap: var(--gutter);
  height: calc(100vh - 140px);
}
.map-pane {
  flex: 0 0 70%;
  border: 1px solid rgba(0, 0, 0, 0.08);
}
.side-pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.side-photo {
  flex: 7;
  overflow: hidden;
}
.side-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.side-video {
  flex: 3;
}
.side-video iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ====== TEXT STYLES ====== */
.page-title {
  font-size: 28px;
  margin: 12px 0;
}
.section-title {
  font-size: 20px;
  margin-bottom: 4px;
  font-weight: 700;
}
.location {
  font-size: 14px;
  font-weight: 400;
  margin-top: 0;
}

/* ====== RESPONSIVE (MOBILE) ====== */
@media (max-width: 900px) {
  .split {
    flex-direction: column;
    height: auto;
  }

  /* Порядок отображения на телефоне */
  .map-pane {
    order: 1;
  }
  .side-photo {
    order: 2;
  }
  .side-video {
    order: 3;
  }

  /* Размер карты (больше, чем раньше) */
  .map-pane iframe {
    width: 100%;
    height: 450px;
  }

  /* Фото — на всю ширину, авто высота */
  .side-photo img {
    width: 100%;
    height: auto;
  }

  /* Видео — на всю ширину, сохраняем пропорции */
  .side-video iframe {
    width: 100%;
    height: auto;
    aspect-ratio: 16 / 9;
  }
}

/* ====== FOOTER ====== */
.footer {
  padding: 20px;
  text-align: center;
  color: #222;
  opacity: 0.8;
}

/* --- Mobile layout --- */
@media (max-width: 900px) {
  .header {
    flex-direction: column;
    align-items: center;
    text-align: center;
    gap: 10px;
    padding: 16px 10px;
  }

  .nav-left {
    display: flex;
    flex-wrap: wrap;
    justify-content: center;
    gap: 8px;
  }

  .nav-left a {
    display: inline-block;
    margin: 0;
    padding: 8px 14px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 10px;
    font-size: 16px;
    font-weight: 500;
    color: var(--text);
    transition: background 0.3s ease;
  }

  .nav-left a:hover {
    background: rgba(255, 255, 255, 0.3);
  }

  .nav-right {
    display: flex;
    justify-content: center;
    align-items: center;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .nav-right button {
    padding: 6px 12px;
    border-radius: 6px;
    background: #ffffff;
    color: #000000;
    font-size: 15px;
    font-weight: 600;
    border: 1px solid #ddd;
    transition: all 0.3s ease;
  }

  .nav-right button:hover {
    background: #f0f0f0;
  }
}

/* --- Extra small screens --- */
@media (max-width: 500px) {
  .header {
    padding: 12px 8px;
    gap: 8px;
  }

  .nav-left a {
    font-size: 14px;
    padding: 6px 10px;
    border-radius: 6px;
  }

  .nav-right button {
    font-size: 13px;
    padding: 5px 9px;
  }
}