/*
Theme Name: Porto Private Room
Theme URI: https://example.com/
Author: Codex
Author URI: https://example.com/
Description: A warm, minimal one-page WordPress theme for private room bookings in central Porto.
Version: 1.0.0
License: GNU General Public License v2 or later
License URI: https://www.gnu.org/licenses/gpl-2.0.html
Text Domain: porto-private-room
*/

:root {
  --ink: #241f1c;
  --muted: #6f6862;
  --line: #e8e2dc;
  --paper: #ffffff;
  --surface: #ffffff;
  --accent: #ff385c;
  --accent-dark: #d72145;
  --gold: #d79a4f;
  --sage: #73846f;
  --clay: #b96745;
  --shadow: 0 20px 60px rgba(36, 31, 28, 0.12);
  --soft-shadow: 0 10px 34px rgba(36, 31, 28, 0.08);
  --radius: 8px;
  --max: 1120px;
  color-scheme: light;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background: #fff;
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  line-height: 1.5;
}

a {
  color: inherit;
}

img {
  display: block;
  max-width: 100%;
}

.site-shell {
  min-height: 100vh;
}

.listing-top {
  max-width: var(--max);
  margin: 0 auto;
  padding: 36px 24px 18px;
}

.listing-top__bar {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin-bottom: 22px;
}

.listing-top h1 {
  max-width: 860px;
  margin: 0;
  font-size: clamp(40px, 6vw, 72px);
  line-height: 0.98;
}

.photo-grid {
  display: grid;
  position: relative;
  grid-template-columns: 2fr 1fr 1fr;
  grid-template-rows: repeat(2, 220px);
  gap: 8px;
  overflow: hidden;
  border-radius: var(--radius);
  box-shadow: var(--soft-shadow);
}

.photo-grid__item {
  display: block;
  min-height: 0;
  padding: 0;
  border: 0;
  background: #e8dace;
  cursor: pointer;
  overflow: hidden;
}

.photo-grid__item img {
  transition: transform 380ms ease, filter 220ms ease;
}

.photo-grid__item:hover img,
.photo-grid__item:focus-visible img {
  filter: brightness(0.92);
  transform: scale(1.025);
}

.photo-grid__item--main {
  grid-row: span 2;
}

.photo-grid img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.photo-grid__button {
  position: absolute;
  right: 18px;
  bottom: 18px;
  border: 1px solid var(--ink);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  padding: 10px 14px;
  font-size: 14px;
  font-weight: 760;
  text-decoration: none;
  box-shadow: 0 8px 22px rgba(36, 31, 28, 0.16);
  cursor: pointer;
}

.listing-facts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(560px, calc(100% - 48px));
  margin: -1px auto 0;
  margin-top: 20px;
  border: 1px solid rgba(36, 31, 28, 0.1);
  border-top: 0;
  border-radius:var(--radius);
  background: #fff;
  box-shadow: 0 16px 36px rgba(36, 31, 28, 0.08);
  padding: 10px;
}

.listing-fact {
  min-height: 80px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 14px 16px;
}

.listing-fact strong {
  display: block;
  color: var(--ink);
  font-size: 24px;
  line-height: 1.1;
}

.listing-fact span {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 650;
}

.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 1000;
  grid-template-columns: minmax(48px, 1fr) minmax(0, 1180px) minmax(48px, 1fr);
  align-items: center;
  background: rgba(16, 14, 13, 0.94);
  padding: 34px;
}

.lightbox.is-open {
  display: grid;
}

.has-lightbox {
  overflow: hidden;
}

.lightbox__figure {
  display: grid;
  grid-column: 2;
  gap: 14px;
  justify-items: center;
  margin: 0;
}

.lightbox__image {
  max-width: 100%;
  max-height: calc(100vh - 150px);
  border-radius: var(--radius);
  object-fit: contain;
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.34);
}

.lightbox__caption {
  color: rgba(255, 255, 255, 0.76);
  font-size: 14px;
  font-weight: 700;
}

.lightbox__close,
.lightbox__nav {
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  cursor: pointer;
  backdrop-filter: blur(10px);
}

.lightbox__close {
  position: absolute;
  top: 24px;
  right: 24px;
  width: 44px;
  height: 44px;
  font-size: 30px;
  line-height: 1;
}

.lightbox__nav {
  width: 52px;
  height: 52px;
  font-size: 38px;
}

.lightbox__nav--prev {
  grid-column: 1;
  justify-self: center;
}

.lightbox__nav--next {
  grid-column: 3;
  justify-self: center;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid rgba(232, 226, 220, 0.9);
  backdrop-filter: blur(16px);
}

.topbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  max-width: var(--max);
  min-height: 72px;
  margin: 0 auto;
  padding: 0 24px;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  font-weight: 760;
}

.brand__mark {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 50%;
  background: var(--accent);
  color: #fff;
}

.nav {
  display: flex;
  align-items: center;
  gap: 20px;
  color: var(--muted);
  font-size: 14px;
}

.nav a {
  text-decoration: none;
}

.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: var(--radius);
  background: var(--accent);
  color: #fff;
  font-weight: 730;
  text-decoration: none;
  cursor: pointer;
  transition: transform 160ms ease, background 160ms ease, border-color 160ms ease;
}

.button:hover,
.button:focus-visible {
  background: var(--accent-dark);
  transform: translateY(-1px);
}

.button--ghost {
  background: var(--surface);
  color: var(--ink);
  border-color: var(--line);
}

.button--ghost:hover,
.button--ghost:focus-visible {
  background: #fff3ec;
  border-color: #d8c9bf;
  color: var(--ink);
}

.eyebrow {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.booking-panel {
  border: 1px solid rgba(36, 31, 28, 0.09);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 22px;
}

.booking-panel h2 {
  margin: 0 0 3px;
  font-size: 24px;
}

.booking-panel__price {
  display: flex;
  align-items: baseline;
  gap: 5px;
  margin-bottom: 20px;
}

.booking-panel__price strong {
  font-size: 30px;
}

.booking-panel__price span {
  color: var(--muted);
}

.booking-panel__note {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.section {
  max-width: var(--max);
  margin: 0 auto;
  padding: 76px 24px;
}

.section--tight {
  padding-top: 52px;
}

.story-section {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.74fr);
  gap: 72px;
  align-items: start;
  padding-top: 72px;
}

.story-copy {
  max-width: 700px;
  color: var(--muted);
  font-size: 18px;
}

.story-copy p {
  margin: 0 0 18px;
}

.story-section,
.split-section {
  border-top: 1px solid rgba(36, 31, 28, 0.08);
}

.booking-panel--intro {
  margin-top: 6px;
}

.split-section {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 48px;
  align-items: start;
}

.expectation-section {
  max-width: var(--max);
  background: #fff;
  border-block: 1px solid var(--line);
}

.expectation-section .section__head {
  margin-right: 0;
  margin-left: 0;
}

.expectation-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
}

.expectation-card {
  min-height: 220px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 22px;
  box-shadow: var(--soft-shadow);
}

.expectation-card span {
  display: inline-grid;
  width: 44px;
  height: 44px;
  place-items: center;
  margin-bottom: 28px;
  border-radius: 50%;
  background: #f7f3ee;
  color: var(--clay);
  font-size: 20px;
}

.expectation-card h3 {
  margin: 0 0 9px;
  font-size: 18px;
}

.expectation-card p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.secure-section {
  padding-top: 48px;
}

.info-panel,
.location-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 26px;
}

.info-panel--accent {
  display: grid;
  grid-template-columns: minmax(260px, 0.7fr) minmax(0, 1fr);
  gap: 28px;
  align-items: center;
  background: #fff;
  box-shadow: var(--soft-shadow);
}

.info-panel h2 {
  margin: 0 0 18px;
  font-size: 28px;
}

.check-list {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  list-style: none;
  color: var(--muted);
}

.check-list li {
  position: relative;
  padding-left: 28px;
}

.check-list li::before {
  content: "";
  position: absolute;
  top: 0.62em;
  left: 0;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: var(--accent);
}

.location-section {
  max-width: var(--max);
  display: block;
  border-block: 1px solid var(--line);
  background: #fff;
}

.location-card p {
  margin: 0 0 12px;
  color: var(--muted);
  font-size: 17px;
}

.location-card p:last-child {
  margin-bottom: 0;
}

.location-card {
  margin-bottom: 18px;
}

.map-card {
  position: relative;
  overflow: hidden;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f6f6f6;
  box-shadow: var(--soft-shadow);
}

.map-card iframe {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  border: 0;
  filter: saturate(0.86) contrast(0.98);
}

.map-card__radius {
  position: absolute;
  top: 50%;
  left: 50%;
  width: min(32%, 270px);
  aspect-ratio: 1;
  border: 2px solid rgba(36, 31, 28, 0.34);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.38);
  box-shadow: 0 0 0 999px rgba(255, 255, 255, 0.02), 0 10px 40px rgba(36, 31, 28, 0.1);
  pointer-events: none;
  transform: translate(-50%, -50%);
}

.map-card__label {
  position: absolute;
  right: 14px;
  bottom: 14px;
  border: 1px solid rgba(36, 31, 28, 0.12);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.92);
  color: var(--ink);
  padding: 8px 11px;
  font-size: 13px;
  font-weight: 800;
  box-shadow: 0 8px 22px rgba(36, 31, 28, 0.12);
}

.faq-list {
  display: grid;
  gap: 10px;
  max-width: 820px;
}

.faq-list details {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 18px 20px;
}

.faq-list summary {
  cursor: pointer;
  font-size: 18px;
  font-weight: 800;
}

.faq-list p {
  margin: 12px 0 0;
  color: var(--muted);
}

.section__head {
  max-width: 720px;
  margin-bottom: 28px;
}

.section__head h2 {
  margin: 0 0 10px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
}

.section__head p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}

.features {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.feature {
  min-height: 174px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(36, 31, 28, 0.05);
}

.feature__icon {
  display: inline-grid;
  width: 38px;
  height: 38px;
  place-items: center;
  margin-bottom: 22px;
  border-radius: 50%;
  background: #fff1eb;
  color: var(--clay);
}

.feature h3 {
  margin: 0 0 7px;
  font-size: 17px;
}

.feature p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
}

.details-band {
  background: #ffffff;
  border-block: 1px solid var(--line);
}

.details {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: 48px;
  align-items: center;
}

.room-visual {
  overflow: hidden;
  border-radius: var(--radius);
  border: 1px solid var(--line);
  background: #e8dace;
}

.room-visual img {
  width: 100%;
  min-height: 420px;
  object-fit: cover;
}

.rules {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.rule {
  padding: 18px;
  border-left: 3px solid var(--sage);
  background: #f8f3ee;
}

.rule span {
  display: block;
  color: var(--muted);
  font-size: 13px;
}

.rule strong {
  display: block;
  margin-top: 3px;
  font-size: 18px;
}

.booking-section {
  display: grid;
  grid-template-columns: minmax(300px, 0.85fr) minmax(0, 1.15fr);
  gap: 28px;
  align-items: start;
}

.calendar {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  padding: 18px;
}

.calendar__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.calendar__month {
  font-weight: 800;
}

.calendar__nav {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  cursor: pointer;
}

.calendar__week,
.calendar__grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 6px;
}

.calendar__week {
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.calendar__day {
  display: inline-flex;
  position: relative;
  align-items: center;
  justify-content: center;
  aspect-ratio: 1;
  border: 1px solid transparent;
  border-radius: 50%;
  background: transparent;
  color: var(--ink);
  font: inherit;
  cursor: pointer;
}

.calendar__day:hover {
  border-color: var(--ink);
}

.calendar__day.is-outside {
  color: #beb3aa;
}

.calendar__day.is-disabled,
.calendar__day.is-booked {
  color: #c1b7ae;
  text-decoration: line-through;
  cursor: not-allowed;
}

.calendar__day.is-selected {
  background: var(--ink);
  color: #fff;
}

.calendar__day.is-range {
  background: #ffe4dc;
  color: var(--ink);
}

.calendar__legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 15px;
  color: var(--muted);
  font-size: 12px;
}

.legend-dot {
  display: inline-block;
  width: 10px;
  height: 10px;
  margin-right: 6px;
  border-radius: 50%;
  vertical-align: -1px;
}

.legend-dot--available {
  border: 1px solid var(--ink);
}

.legend-dot--selected {
  background: var(--ink);
}

.legend-dot--booked {
  background: #d7ccc2;
}

.form {
  display: grid;
  gap: 14px;
}

.form__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.field {
  display: grid;
  gap: 7px;
}

.field label {
  color: var(--ink);
  font-size: 13px;
  font-weight: 760;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid #d8cec5;
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font: inherit;
  padding: 11px 12px;
}

.field textarea {
  min-height: 104px;
  resize: vertical;
}

.field--full {
  grid-column: 1 / -1;
}

.summary-box {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff8f3;
  padding: 14px;
  color: var(--muted);
  font-size: 14px;
}

.summary-box strong {
  color: var(--ink);
}

.status-message {
  margin: 0 0 14px;
  border-radius: var(--radius);
  padding: 12px 14px;
  font-weight: 700;
}

.status-message--success {
  background: #eaf6eb;
  color: #2f6b36;
}

.status-message--error {
  background: #ffebe8;
  color: #a11c27;
}

.fine-print {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 12px;
}

.footer {
  border-top: 1px solid var(--line);
  padding: 30px 24px;
  color: var(--muted);
  text-align: center;
  font-size: 14px;
}

.footer a {
  color: var(--ink);
  font-weight: 700;
  text-decoration: none;
}

.footer a:hover,
.footer a:focus-visible {
  text-decoration: underline;
}

.contact-section {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-top: 1px solid var(--line);
}

.contact-section h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.05;
}

.contact-section a {
  display: inline-flex;
  min-height: 54px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  color: var(--ink);
  font-size: 18px;
  font-weight: 800;
  text-decoration: none;
  padding: 0 18px;
}

.contact-section a:hover,
.contact-section a:focus-visible {
  border-color: var(--ink);
}

@media (max-width: 980px) {
  .details,
  .booking-section,
  .story-section,
  .split-section,
  .location-section,
  .info-panel--accent {
    grid-template-columns: 1fr;
  }

  .features {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .expectation-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .photo-grid {
    grid-template-rows: repeat(2, 170px);
  }

  .listing-facts {
    width: calc(100% - 32px);
  }

  .map-card {
    min-height: 440px;
  }
}

@media (max-width: 720px) {
  .topbar__inner {
    padding: 0 16px;
  }

  .nav a:not(.button) {
    display: none;
  }

  .listing-top,
  .section {
    padding-inline: 16px;
  }

  .listing-top__bar {
    align-items: flex-start;
    flex-direction: column;
  }

  .photo-grid {
    grid-template-columns: 1fr 1fr;
    grid-template-rows: 260px 130px 130px;
  }

  .photo-grid__item--main {
    grid-column: 1 / -1;
    grid-row: span 1;
  }

  .listing-facts {
    grid-template-columns: 1fr;
    margin-top: 10px;
    border-top: 1px solid rgba(36, 31, 28, 0.1);
    border-radius: var(--radius);
  }

  .listing-fact {
    min-height: 72px;
  }

  .lightbox {
    grid-template-columns: 1fr 1fr;
    padding: 18px;
  }

  .lightbox__figure {
    grid-column: 1 / -1;
  }

  .lightbox__image {
    max-height: calc(100vh - 180px);
  }

  .lightbox__nav {
    width: 46px;
    height: 46px;
    margin-top: 14px;
  }

  .lightbox__nav--prev {
    grid-column: 1;
    grid-row: 2;
  }

  .lightbox__nav--next {
    grid-column: 2;
    grid-row: 2;
  }

  .listing-facts,
  .features,
  .rules,
  .form__grid,
  .expectation-grid {
    grid-template-columns: 1fr;
  }

  .booking-panel {
    padding: 18px;
  }

  .contact-section {
    align-items: flex-start;
    flex-direction: column;
  }

  .map-card {
    min-height: 340px;
  }

  .map-card__radius {
    width: min(48%, 210px);
  }
}
