* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }

body {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  line-height: 1.7;
  font-size: 1.125rem;
  color: #1a1a1a;
  background: #f4f7f2;
}

.container {
  width: min(100%, 760px);
  margin-inline: auto;
  padding: 24px 16px;
}

/* Headings */
h1, h2, h3 {
  font-family: Georgia, serif;
  line-height: 1.3;
  font-weight: 700;
  color: #2e4631;
}
h1 {
  font-size: clamp(2rem, 5vw, 2.8rem);
  margin: 16px 0 24px;
}
h2 {
  font-size: 1.5rem;
  margin: 24px 0 12px;
}

/* Gallery */
.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr;
  grid-template-rows: auto auto;
  gap: 16px;
  margin-bottom: 24px;
}
.gallery a:first-child { grid-row: span 2; }
.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 14px;
  box-shadow: 0 6px 16px rgba(0,0,0,0.15);
  cursor: pointer;
  transition: transform 0.2s ease;
}
.gallery img:hover { transform: scale(1.02); }

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.95);
  justify-content: center;
  align-items: center;
  flex-direction: column;
  z-index: 1000;
  text-align: center;
}
.lightbox:target { display: flex; }
.lightbox img {
  max-width: 90%;
  max-height: 80vh;
  border-radius: 12px;
}
.lightbox .close,
.lightbox .prev,
.lightbox .next {
  position: absolute;
  color: #fff;
  text-decoration: none;
}
.lightbox .close {
  top: 20px; right: 30px;
  font-size: 2.2rem;
}
.lightbox .prev,
.lightbox .next {
  top: 50%;
  transform: translateY(-50%);
  font-size: 3rem;
  padding: 0 12px;
}
.lightbox .prev { left: 20px; }
.lightbox .next { right: 20px; }
.lightbox .counter {
  margin-top: 16px;
  color: #fff;
  font-family: Georgia, serif;
  font-size: 1rem;
}

/* Info */
.price {
  font-weight: 700;
  font-size: 1.25rem;
  margin: 8px 0;
  color: #2e4631;
}
.address {
  margin: 0 0 20px;
  font-size: 1rem;
}
.address a {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: #2e4631;
  text-decoration: none;
  font-weight: 500;
}
.address a:hover { opacity: 0.8; }
.address .icon {
  width: 14px; height: 14px;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
  position: relative;
  top: -0.3em;
}

/* Features */
.features {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px 24px;
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
}
.features li {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 1rem;
  color: #222;
}
.icon {
  width: 20px;
  height: 20px;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.desc {
  margin: 0 0 28px;
  font-size: 1.1rem;
  color: #333;
}

/* Call-to-action */
.cta {
  display: inline-block;
  padding: 16px 24px;
  border-radius: 14px;
  background: #4a7856;
  color: #fff;
  text-decoration: none;
  font-weight: 600;
  font-size: 1.125rem;
  box-shadow: 0 3px 8px rgba(0,0,0,0.25);
  transition: background 0.2s ease, transform 0.1s ease;
}
.cta:hover { background: #3d6549; }
.cta:active { transform: translateY(1px); }

/* Footer */
footer {
  margin-top: 48px;
  text-align: center;
  color: #666;
  font-size: 0.9rem;
}

/* Host */
.host {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 24px;
}
.host-avatar {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  object-fit: cover;
  flex-shrink: 0;
}
.host p {
  margin: 0;
  font-size: 1rem;
  color: #333;
}

/* Availability badge */
.availability-badge {
  font-weight: 600;
  font-size: 1rem;
  color: #2e4631;
  margin: 8px 0 12px;
  padding: 4px 8px;
  background: #e8f0eb;
  border-radius: 8px;
  float: right;
  display: inline-block;
}

/* Good to know */
.good-to-know {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 16px;
  margin: 0 0 32px;
  font-size: 0.95rem;
  color: #444;
  align-items: start;
}
.good-to-know div { display: contents; }
.good-to-know dt {
  font-weight: 600;
  color: #2e4631;
  padding: 6px 0;
  border-bottom: 1px solid #ddd;
}
.good-to-know dd {
  margin: 0;
  padding: 6px 0;
  border-bottom: 1px solid #ddd;
}

.accessibility {
  display: grid;
  grid-template-columns: 1fr auto auto; /* 1st column fills, last 2 auto */
  justify-content: end; /* aligns the whole grid to the right */
  gap: 6px 16px;
  margin: 0 0 32px;
  font-size: 0.95rem;
  color: #444;
  align-items: start;
}

.accessibility div {
  display: contents;
}

.accessibility dt {
  font-weight: 600;
  color: #2e4631;
  padding: 6px 0;
  border-bottom: 1px solid #ddd;
}

.accessibility dd {
  margin: 0;
  padding: 6px 0;
  border-bottom: 1px solid #ddd;
}


/* Desktop tweaks */
@media (min-width: 700px) {
  .good-to-know {
    grid-template-columns: auto 1fr auto 1fr;
  }
}
