* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  --bg: #f5f4f1;
  --card: #ffffff;
  --border: #dedbd2;
  --text: #1f1f1f;
  --muted: #666;
  --accent: #4d7c44;
  --accent-dark: #35592f;
  --shadow: 0 10px 30px rgba(0,0,0,0.06);
  --radius: 22px;
}

body {
  font-family: 'Inter', sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

a {
  text-decoration: none;
  color: inherit;
}

img {
  display: block;
  width: 100%;
}

/* ---------- LAYOUT ---------- */

.layout {
  display: grid;
  grid-template-columns: 260px 1fr;
  min-height: 100vh;
}

/* ---------- SIDEBAR ---------- */

aside {
  background: white;
  border-right: 1px solid var(--border);
  padding: 32px 24px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  height: 100vh;
  position: sticky;
  top: 0;
  z-index: 1000;
}

.logo {
  margin-bottom: 48px;
}

.logo h1 {
  font-size: 24px;
  line-height: 1.1;
}

.logo span {
  color: var(--accent);
}

nav {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

nav a {
  padding: 14px 16px;
  border-radius: 12px;
  transition: 0.2s ease;
  font-weight: 500;
}

nav a:hover,
nav a.active {
  background: #edf5ea;
  color: var(--accent-dark);
}

.sidebar-contact {
  font-size: 14px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 12px;
}
/* ---------- TOPBAR ------------- */
.top-bar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  margin-bottom: 24px;
}

/* ---------- HAMBURGER ---------- */

.menu-toggle {
  display: none;
  position: fixed;
  top: 16px;
  left: 16px;
  z-index: 3000;
  width: 52px;
  height: 52px;
  border: none;
  border-radius: 14px;
  background: var(--accent);
  color: white;
  font-size: 28px;
  cursor: pointer;
  box-shadow: var(--shadow);
}

/* --------- jazyky---------- */
.language-switch {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-bottom: 24px;
}

.language-switch a {
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: 0.2s ease;
  border: 1px solid var(--border);
  background: white;
}

.language-switch a:hover {
  background: #edf5ea;
  color: var(--accent-dark);
}

.language-switch a.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}
/* ---------- MAIN ---------- */

main {
  padding: 40px;
}

section {
  margin-bottom: 80px;
}

/* ---------- HERO ---------- */

.hero {
  position: relative;
  overflow: hidden;
  border-radius: 32px;
  min-height: 500px;
  display: flex;
  align-items: center;
  padding: 60px;
  background:
    linear-gradient(rgba(0,0,0,0.35), rgba(0,0,0,0.35)),
    url('https://images.unsplash.com/photo-1506744038136-46273834b3fb?q=80&w=1800&auto=format&fit=crop') center/cover;
  color: white;
  box-shadow: var(--shadow);
}

.hero-content {
  max-width: 520px;
}

.hero h2 {
  font-size: 64px;
  line-height: 1;
  margin-bottom: 24px;
}

.hero p {
  font-size: 18px;
  margin-bottom: 32px;
  color: rgba(255,255,255,0.9);
}

/* ---------- BUTTON ---------- */

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 14px 28px;
  background: var(--accent);
  color: white;
  border-radius: 14px;
  font-weight: 600;
  transition: 0.2s ease;
}

.button:hover {
  background: var(--accent-dark);
  transform: translateY(-2px);
}

/* ---------- FEATURES ---------- */

.features {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.features-contact{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.feature-card {
  background: var(--card);
  padding: 28px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.feature-card h3 {
  margin-bottom: 12px;
  font-size: 22px;
}

.feature-card p {
  color: var(--muted);
}

/* ---------- SECTION ---------- */

.section-title {
  font-size: 42px;
  margin-bottom: 32px;
}

/* ---------- FILTERS ---------- */

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 32px;
}

select {
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: white;
  font-size: 15px;
}

/* ---------- APARTMENTS ---------- */

.apartments {
  display: grid;
  gap: 24px;
}

.apartment-card {
  display: grid;
  grid-template-columns: 320px 1fr;
  background: white;
  border-radius: 24px;
  overflow: hidden;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.apartment-card img {
  height: 100%;
  object-fit: cover;
}

.apartment-content {
  padding: 28px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
}

.apartment-top {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: flex-start;
}

.apartment-top h3 {
  font-size: 30px;
  margin-bottom: 12px;
}

.price {
  font-size: 28px;
  font-weight: 700;
  color: var(--accent-dark);
}

.muted {
  color: var(--muted);
}

/* ---------- DETAIL ---------- */

.apartment-detail {
  display: grid;
  grid-template-columns: 1.2fr 0.8fr;
  gap: 40px;
  background: white;
  border-radius: 32px;
  padding: 40px;
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}

.main-image {
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 20px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.gallery img {
  border-radius: 16px;
  cursor: pointer;
  aspect-ratio: 1/1;
  object-fit: cover;
  transition: 0.2s ease;
}

.gallery img:hover {
  transform: scale(1.04);
}

.detail-info h3 {
  font-size: 42px;
  margin-bottom: 18px;
}

.equipment {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 24px 0 36px;
}

.equipment div {
  background: #f7f7f5;
  border-radius: 14px;
  padding: 12px 16px;
  border: 1px solid var(--border);
}

.booking-box {
  border: 2px dashed var(--border);
  padding: 28px;
  border-radius: 20px;
  text-align: center;
  margin-top: 24px;
}

/* ---------- LOCATION ---------- */

.location-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
}

.location-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.map {
  border-radius: 28px;
  overflow: hidden;
  min-height: 520px;
  box-shadow: var(--shadow);
}

.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

/* ---------- FOOTER ---------- */

footer {
  border-top: 1px solid var(--border);
  padding-top: 32px;
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  flex-wrap: wrap;
  gap: 16px;
  margin-top: 60px;
}

/* ---------- TABLET ---------- */

@media (max-width: 1100px) {

  .layout {
    grid-template-columns: 1fr;
  }

  aside {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    transition: left 0.3s ease;
    z-index: 2500;
  }

  aside.active {
    left: 0;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  main {
    padding: 90px 24px 24px;
  }

  .apartment-detail,
  .location-grid,
  .apartment-card {
    grid-template-columns: 1fr;
  }

  .apartment-card img {
    height: 280px;
  }

  .hero {
    min-height: 420px;
    padding: 40px;
  }

  .hero h2 {
    font-size: 48px;
  }

  .detail-info h3 {
    font-size: 36px;
  }

  .map {
    min-height: 360px;
  }
}

.language-switch {
  display: flex;
  gap: 8px;
}

.language-switch a {
  padding: 8px 12px;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  transition: 0.2s ease;
  border: 1px solid var(--border);
  background: white;
}

.language-switch a:hover {
  background: #edf5ea;
  color: var(--accent-dark);
}

.language-switch a.active {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
}

/* ---------- MOBILE ---------- */

@media (max-width: 700px) {

  main {
    padding: 110px 16px 20px;
  }

  .hero {
    padding: 24px;
    min-height: 360px;
    border-radius: 24px;
  }

  .hero h2 {
    font-size: 36px;
    line-height: 1.1;
  }

  .hero p {
    font-size: 16px;
  }

  .section-title {
    font-size: 28px;
    margin-bottom: 24px;
  }

  .features {
    grid-template-columns: 1fr;
  }

  .features-contact {
    grid-template-columns: 1fr;
  }

  .feature-card {
    padding: 22px;
  }

  .apartment-content {
    padding: 20px;
  }

  .apartment-top {
    flex-direction: column;
    align-items: flex-start;
  }

  .apartment-top h3 {
    font-size: 24px;
  }

  .price {
    font-size: 22px;
  }

  .apartment-detail {
    padding: 20px;
    border-radius: 24px;
    gap: 24px;
  }

  .detail-info h3 {
    font-size: 30px;
  }

  .equipment {
    grid-template-columns: 1fr;
  }

  .gallery {
    grid-template-columns: repeat(2, 1fr);
  }

  .booking-box {
    padding: 20px;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
  }

  nav a {
    font-size: 18px;
  }

  .top-bar {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 2600;
    margin: 0;
  }

  .language-switch {
    display: flex;
    gap: 6px;
    background: white;
    padding: 6px;
    border-radius: 14px;
    box-shadow: var(--shadow);
  }

  .language-switch a {
    padding: 6px 10px;
    font-size: 13px;
  }


}