* {
  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:space-between;
  align-items:center;
}
.top-bar-main {
  padding-bottom: 24px;
}
.top-left{
  display:flex;
  align-items:center;
  gap:16px;
}

/* ---------- HAMBURGER ---------- */

.menu-toggle {
  display: none;
  position: relative;
  top: 0px;
  left: 0px;
  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);
  margin-right: 15px;
}

/* --------- jazyky---------- */
.language-switch {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  
}

.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('../images/spolecne/balkony.JPG') 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(320px, 1fr));
  gap: 24px;
  margin-top: 40px;
  
  margin-left: auto;
  margin-right: auto;
}

.features-contact{
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 24px;
  margin-top: 40px;
}

.feature-card {
  background: var(--card);
  padding: 0px;
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.feature-card h3 {
  margin-bottom: 12px;
  font-size: 22px;
}

.feature-card p {
  color: var(--muted);
  
}

.toggle-text-center{
  width: 100%;
  text-align: center;
}

.text-card {
  max-height: 50px;
  overflow: hidden;
  margin-bottom: 20px;
  font-size: large;
}

.text-card.active {
  max-height: auto;
  transition: max-height 0.3s ease;
}

.feature-content {
  flex: 0 0 20%;
  padding: 6px;
  margin: 20px 20px 0px 20px;
}

.feature-kontakt{
  padding: 6px;
  margin: 20px 20px 10px 20px;
}

.feature-content h3 {
  font-size: 28px;
  margin-bottom: 0px;
}

.feature-content p {
  color: var(--muted);
}

.feature-card:hover {
  transform: translateY(-6px);
}

.feature-image {
  flex: 0 0 80%;
  overflow: hidden;
}

.feature-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.feature-card:hover img {
  transform: scale(1.05);
}

.card-head-wrapper {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  
}

.card-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;

  width: 38px;
  height: 38px;

  border-radius: 50%;

  background: var(--accent);
  color: white;

  text-decoration: none;
  font-size: 18px;
  font-weight: 600;

  transition: 0.2s ease;
}

.card-button:hover {
  background: var(--accent-dark);
  transform: translateX(2px);
}

/* ---------- SECTION ---------- */

.section-title {
  font-size: 42px;
  margin-bottom: 0px;
}

/* ---------- Apartments ---------- */

select {
  padding: 14px 18px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: white;
  font-size: 15px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  align-items: end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.filters-wrapper {
  margin-bottom: 32px;
}

.filter-toggle {
  display: none;
}

.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);
}

.detail-info{
 min-width: 350px;
}

.main-image {
  border-radius: 24px;
  overflow: hidden;
  margin-bottom: 20px;
  max-height: 800px;
}

.main-image img {
  width: 100%;
  max-height: 800px;
  object-fit: cover;
  object-position: center center;
}

.gallery {
  display: flex;
  gap: 12px;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
}

.gallery::-webkit-scrollbar {
  display: none;
}


.gallery img {
  border-radius: 16px;
  cursor: pointer;
  aspect-ratio: 1/1;
  object-fit: cover;
  transition: 0.2s ease;
  height: 250px;
  scroll-snap-align: start;
}

.gallery img:hover {
  transform: scale(1.04);
}

.gallery-wrapper {
  position: relative;
}

.gallery-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  width: 42px;
  height: 42px;

  border: none;
  border-radius: 50%;

  background: rgba(147, 147, 147, 0.9);
  color: #fffbef;
  box-shadow: var(--shadow);

  cursor: pointer;
  z-index: 10;

  display: flex;
  align-items: center;
  justify-content: center;

  font-size: 28px;
  font-weight: 600;
}

.gallery-arrow.left {
  left: 5px;
}

.gallery-arrow.right {
  right: 5px;
}

.gallery {
  padding: 4px;
}

.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: 15px;
  border-radius: 20px;
  text-align: center;
  margin-top: 24px;
  height: 350px;
}
.texty{
  padding: 28px;
  border-radius: 20px;
  margin-top: 24px;
  background: #edf5ea;
}

/* ---------- LOCATION ---------- */

.location-grid {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 40px;
}

.location-content {
  display: flex;
  flex-direction: column;
  gap: 28px;
  margin-left: 0px;
}

.map {
  margin-top: 24px;
  border-radius: 28px;
  overflow: hidden;
  height: 500px;
  box-shadow: var(--shadow);
}

.map iframe {
  width: 100%;
  height: 100%;
  border: 0;
}

.letni-aktivity{
  padding: 5px;
  padding-left: 40px;
  border-radius: 20px;
  border: solid;
  border-width: 2px;
  border-color: #7e7e7e;
  background-color: #dcffd9;
}
.zimni-aktivity{
  padding: 5px;
  padding-left: 40px;
  border-radius: 20px;
  border: solid;
  border-width: 2px;
  border-color: #7e7e7e;
  background-color: #d9f5ff;
}
.muzea{
  padding: 5px;
  padding-left: 40px;
  border-radius: 20px;
  border: solid;
  border-width: 2px;
  border-color: #7e7e7e;
  background-color: #fffdd9;
}

/* ---------- 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: 1350px) {

  .layout {
    grid-template-columns: 1fr;
  }

  aside {
    position: fixed;
    top: 0;
    left: -100%;
    width: 280px;
    height: 100vh;
    transition: left 0.3s ease;
    z-index: 2500;
  }

  .logo {
    padding-top: 64px;
    margin-bottom: 48px;
  }

  aside.active {
    left: 0;
  }

  .menu-toggle {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .top-bar{
    justify-content:space-between;
  }

  main {
    padding: 24px 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: 24px 16px 20px;
  }

  .top-bar{
    justify-content:space-between;
    align-items:flex-start;

  }
  .top-left{
    flex-wrap:wrap;
    align-items:flex-start;
  }

  .logo {
    flex-direction:column;
    align-items:flex-start;
    gap:8px;
  }

  .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-top: 5px;
    margin-bottom: 24px;
  }

  .features {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
    gap: 28px;
    margin-top: 40px;
  }

  .features-contact {
    grid-template-columns: 1fr;
  }

  .feature-card {
    background: var(--card);
    border-radius: 28px;
    overflow: hidden;
    border: 1px solid var(--border);
    box-shadow: var(--shadow);

    display: flex;
    flex-direction: column;

    transition: 0.25s ease;
  }

  .feature-card:hover {
    transform: translateY(-6px);
  }

  .feature-image {
    aspect-ratio: 16 / 10;
    overflow: hidden;
  }

  .feature-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
  }

  .feature-card:hover img {
    transform: scale(1.05);
  }


  .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);
  }

  .gallery img {
    height: 150px;
  }

  .booking-box {
    padding: 20px;
  }

  footer {
    flex-direction: column;
    align-items: flex-start;
  }

  nav a {
    font-size: 18px;
  }

  .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;
  }

  .filter-toggle {
    display: flex;
    width: 100%;
    justify-content: center;
    align-items: center;
    padding: 14px 18px;
    border: none;
    border-radius: 14px;
    background: var(--accent);
    color: white;
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 16px;
    cursor: pointer;
  }

  .filters {
    display: none;
    flex-direction: column;
    gap: 20px;
    background: white;
    padding: 20px;
    border-radius: 20px;
    box-shadow: var(--shadow);
  }

  .filters.active {
    display: flex;
  }

  .filter-group {
    width: 100%;
  }

  .filter-group h3 {
    font-size: 18px;
  }

  .filter-group select {
    width: 100%;
  }

}