/*
 * Nezdoo — the server-drawn PG, city and area pages (website-server/, 0067)
 * and the free tools. Builds on styles.css: its colours, header, footer,
 * .kicker and .btn.
 */

.pg-shell {
  max-width: 1120px;
  margin: 0 auto;
  padding: 18px var(--gutter) 90px;
}

.pg-shell section {
  margin-top: 38px;
}

.pg-shell h2 {
  font-size: clamp(21px, 2.4vw, 26px);
  letter-spacing: -0.02em;
  margin: 0 0 14px;
}

.muted {
  color: var(--text-secondary);
}

.crumbs {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  font-size: 14px;
  color: var(--text-secondary);
  margin: 0 0 18px;
}

.crumbs a {
  color: var(--text-secondary);
}

.crumbs .sep {
  color: var(--text-muted);
}

.crumbs [aria-current] {
  color: var(--navy);
  font-weight: 500;
}

/* ---------- one PG ---------- */

.pg-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 20px;
  flex-wrap: wrap;
}

.pg-head h1,
.list-head h1 {
  font-size: clamp(32px, 5.4vw, 54px);
  line-height: 1.04;
  letter-spacing: -0.04em;
  margin: 8px 0 10px;
}

.list-head h1 em {
  font-style: normal;
  color: var(--coral);
}

.list-head .lead {
  color: var(--text-secondary);
  font-size: clamp(17px, 1.6vw, 20px);
  max-width: 40em;
  margin: 0;
}

.facts {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 14px;
  align-items: center;
  margin: 0;
  font-size: 15px;
}

.rate {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
}

.rate svg {
  width: 17px;
  height: 17px;
  fill: #f5a623;
}

.rate small {
  color: var(--text-secondary);
  font-weight: 400;
}

.free,
.full,
.verified,
.tag {
  display: inline-block;
  font-size: 13px;
  font-weight: 600;
  padding: 4px 11px;
  border-radius: 999px;
  white-space: nowrap;
}

.free {
  background: var(--success-soft);
  color: var(--success);
}

.full {
  background: var(--surface-alt);
  color: var(--text-secondary);
}

.verified {
  background: #e8f0fe;
  color: #2457c5;
}

.price-box {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 20px;
  padding: 14px 20px;
  box-shadow: var(--shadow-md);
}

.price-box small {
  display: block;
  color: var(--text-secondary);
  font-size: 13px;
}

.price-box b {
  font-size: 20px;
}

.gallery {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: 200px 200px;
  gap: 10px;
  margin-top: 24px;
  border-radius: 26px;
  overflow: hidden;
}

.gallery img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: var(--surface-alt);
}

.gallery img:first-child {
  grid-row: span 2;
}

.gallery.one {
  grid-template-columns: 1fr;
  grid-template-rows: 380px;
}

.pg-cols {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 40px;
  align-items: start;
}

.pg-cols aside {
  position: sticky;
  top: 110px;
  margin-top: 38px;
}

.about {
  white-space: pre-line;
  color: var(--text-body);
}

.rooms {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 12px;
}

.room {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
  padding: 16px 18px;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
}

.room .rent {
  font-size: 20px;
  font-weight: 600;
}

.room .rent small {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-secondary);
}

.room .night {
  font-size: 14px;
  color: var(--text-secondary);
}

.room .free,
.room .full {
  margin-top: 6px;
}

.amenities {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 10px 18px;
}

.amenities li {
  display: flex;
  align-items: center;
  gap: 10px;
}

.amenities svg {
  width: 22px;
  height: 22px;
  flex: none;
  fill: none;
  stroke: var(--coral);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ---------- the app card ---------- */

.get-app {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 24px;
  border-radius: 26px;
  background: linear-gradient(135deg, var(--coral) 0%, #e8573b 55%, #d9573c 100%);
  color: #fff;
  box-shadow: 0 30px 70px -36px rgba(217, 87, 60, 0.8);
}

.pg-shell > .get-app {
  margin-top: 44px;
  flex-direction: row;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  padding: 30px 34px;
}

.get-app h2 {
  margin: 0 0 6px;
  color: #fff;
}

.get-app h2 em {
  font-style: normal;
  color: #ffe1d6;
}

.get-app p {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
}

.get-app .soon {
  font-size: 14px;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.78);
}

.get-app .btn {
  background: #fff;
  color: var(--coral-pressed);
  box-shadow: none;
  align-self: flex-start;
}

.pg-shell > .get-app .btn {
  align-self: center;
}

.get-app .btn:hover {
  background: #fff5f1;
  color: var(--coral-pressed);
}

/* ---------- lists: cities, areas, PG cards ---------- */

.stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 26px;
  max-width: 680px;
}

.stats div {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 18px;
  padding: 14px 16px;
}

.stats b {
  display: block;
  font-size: 24px;
  letter-spacing: -0.02em;
}

.stats small {
  color: var(--text-secondary);
  font-size: 13.5px;
}

.pg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 18px;
  margin-top: 26px;
}

.pg-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: 22px;
  overflow: hidden;
  color: var(--navy);
  text-decoration: none;
  transition: transform 0.25s var(--ease), box-shadow 0.25s var(--ease);
}

.pg-card:hover {
  text-decoration: none;
  transform: translateY(-3px);
  box-shadow: var(--shadow-md);
}

.pg-card-img {
  position: relative;
  aspect-ratio: 3 / 2;
  background: var(--surface-alt);
}

.pg-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.pg-card-img .noimg {
  display: grid;
  place-items: center;
  height: 100%;
  font-size: 54px;
  font-weight: 700;
  color: var(--coral-border);
}

.pg-card-img .tag {
  position: absolute;
  left: 12px;
  top: 12px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--navy);
}

.pg-card-body {
  padding: 14px 16px 16px;
}

.pg-card-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: baseline;
}

.pg-card h3 {
  margin: 0;
  font-size: 17.5px;
  line-height: 1.3;
}

.pg-card .where {
  margin: 2px 0 10px;
  color: var(--text-secondary);
  font-size: 14.5px;
}

.pg-card-foot {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  font-size: 14.5px;
}

.city-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 16px;
  margin-top: 28px;
}

.city-card {
  padding: 26px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px solid var(--border);
  color: var(--navy);
  box-shadow: var(--shadow-md);
}

.city-card:hover {
  text-decoration: none;
  border-color: var(--coral-border);
}

.city-card h3 {
  margin: 0 0 4px;
  font-size: 22px;
}

.city-card p {
  margin: 0;
  color: var(--text-secondary);
}

.area-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.area-chip {
  display: inline-flex;
  flex-direction: column;
  padding: 10px 16px;
  border: 1.5px solid var(--border);
  border-radius: 16px;
  background: #fff;
  color: var(--navy);
  line-height: 1.35;
}

.area-chip:hover {
  border-color: var(--coral);
  text-decoration: none;
}

.area-chip small {
  color: var(--text-secondary);
  font-size: 13px;
}

.empty {
  margin-top: 30px;
  padding: 30px;
  border-radius: 24px;
  background: var(--surface);
  border: 1px dashed var(--coral-border);
  max-width: 640px;
}

.empty h2 {
  margin: 0 0 8px;
}

.empty p {
  margin: 0 0 8px;
  color: var(--text-secondary);
}

.faq details {
  border-top: 1px solid var(--divider);
  padding: 14px 0;
  max-width: 760px;
}

.faq details:last-child {
  border-bottom: 1px solid var(--divider);
}

.faq summary {
  cursor: pointer;
  font-weight: 600;
}

.faq p {
  margin: 8px 0 0;
  color: var(--text-body);
}

@media (max-width: 860px) {
  .pg-cols {
    grid-template-columns: minmax(0, 1fr);
    gap: 0;
  }

  .pg-cols aside {
    position: static;
  }

  .gallery {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 220px 120px;
  }

  .gallery img:first-child {
    grid-column: span 2;
    grid-row: auto;
  }

  .gallery img:nth-child(n + 4) {
    display: none;
  }

  .gallery.one {
    grid-template-rows: 240px;
  }

  .gallery.one img:first-child {
    grid-column: auto;
  }

  .stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .stats b {
    font-size: 19px;
  }

  .pg-shell > .get-app {
    padding: 24px;
  }
}

/* Call / WhatsApp the owner (0069): shown only when the owner switched it on.
   The buttons go through /c/<code>/<kind>; the number is never in this page. */
.contact-owner {
  margin: 0 0 18px;
  padding: 22px;
  border: 1px solid var(--border);
  border-radius: 22px;
  background: var(--surface);
}
.contact-owner h2 {
  margin: 0 0 4px;
  font-size: 20px;
}
.contact-owner p {
  margin: 0;
  color: var(--text-secondary);
  font-size: 15px;
}
.contact-owner .small {
  margin-top: 10px;
  font-size: 13.5px;
}
.contact-btns {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-top: 14px;
}
.contact-btns .btn {
  justify-content: center;
  gap: 8px;
}
.contact-btns .btn svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.9;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.contact-btns .btn.wa {
  background: #1e9e62;
}
.contact-btns .btn.wa:hover {
  background: #17844f;
}
