:root {
  --ink: #17211c;
  --muted: #607168;
  --paper: #fbfaf5;
  --soft: #eef5ef;
  --line: #dce5db;
  --green: #245d45;
  --green-2: #0f7f77;
  --sun: #e3b64b;
  --rose: #c98583;
  --white: #ffffff;
  --shadow: 0 20px 70px rgba(20, 37, 30, 0.18);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

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

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select {
  font: inherit;
}

.site-header {
  position: fixed;
  z-index: 30;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 14px clamp(18px, 4vw, 56px);
  background: rgba(251, 250, 245, 0.9);
  border-bottom: 1px solid rgba(220, 229, 219, 0.8);
  backdrop-filter: blur(14px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 210px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 50%;
  color: var(--white);
  background: linear-gradient(135deg, var(--green), var(--green-2));
  font-weight: 800;
}

.brand strong,
.brand small {
  display: block;
}

.brand small {
  color: var(--muted);
  font-size: 0.76rem;
}

.nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(10px, 2vw, 26px);
  color: #35473e;
  font-size: 0.94rem;
}

.nav-links a:hover,
.footer a:hover {
  color: var(--green-2);
}

.header-cta,
.primary-link,
.booking-card button,
.dashboard-head button,
.reservation-actions button {
  border: 0;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 800;
}

.header-cta,
.primary-link,
.booking-card button {
  color: var(--white);
  background: var(--green);
}

.header-cta {
  padding: 12px 18px;
}

.hero {
  position: relative;
  min-height: 94vh;
  display: grid;
  align-items: end;
  overflow: hidden;
  padding: 116px clamp(18px, 5vw, 70px) 54px;
}

.hero img,
.hero-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.hero img {
  object-fit: cover;
}

.hero-shade {
  background:
    linear-gradient(90deg, rgba(17, 23, 19, 0.78), rgba(17, 23, 19, 0.22) 54%, rgba(17, 23, 19, 0.58)),
    linear-gradient(0deg, rgba(17, 23, 19, 0.36), rgba(17, 23, 19, 0));
}

.hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 420px);
  align-items: end;
  gap: clamp(28px, 6vw, 80px);
  width: min(1180px, 100%);
  margin: 0 auto;
}

.hero-copy {
  color: var(--white);
  max-width: 720px;
  padding-bottom: 26px;
}

.eyebrow {
  margin: 0 0 12px;
  color: var(--green-2);
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

.hero .eyebrow {
  color: #ccefe3;
}

h1,
h2 {
  font-family: "Playfair Display", Georgia, serif;
  line-height: 1.02;
  margin: 0;
}

h1 {
  max-width: 780px;
  font-size: clamp(3rem, 8vw, 6.6rem);
}

h2 {
  font-size: clamp(2.1rem, 4vw, 4rem);
}

h3 {
  margin: 0;
  font-size: 1.08rem;
}

.hero-copy p:last-child {
  max-width: 660px;
  margin: 22px 0 0;
  color: rgba(255, 255, 255, 0.9);
  font-size: clamp(1rem, 2vw, 1.18rem);
  line-height: 1.7;
}

.booking-card {
  display: grid;
  gap: 12px;
  padding: 22px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  background: rgba(251, 250, 245, 0.94);
  box-shadow: var(--shadow);
}

.booking-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 16px;
  margin-bottom: 4px;
}

.booking-head span {
  color: var(--muted);
  font-size: 0.9rem;
}

.booking-head strong {
  color: var(--green);
}

label {
  display: grid;
  gap: 7px;
  color: #35473e;
  font-size: 0.82rem;
  font-weight: 800;
}

input,
select {
  min-height: 46px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  color: var(--ink);
  background: var(--white);
}

input:focus,
select:focus {
  outline: 3px solid rgba(15, 127, 119, 0.18);
  border-color: var(--green-2);
}

input[type="date"] {
  color: #6f7d73;
}

input.field-invalid {
  border-color: #b94d45;
  outline: 3px solid rgba(185, 77, 69, 0.16);
}

.booking-card button {
  min-height: 50px;
  margin-top: 4px;
  font-size: 1rem;
}

.form-message {
  min-height: 20px;
  margin: 0;
  color: #8a3a34;
  font-size: 0.88rem;
  line-height: 1.4;
}

.confirmation {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 36px));
  margin: 28px auto 0;
  padding: 28px;
  border-radius: 8px;
  background: var(--soft);
  border: 1px solid var(--line);
}

.confirmation.hidden {
  display: none;
}

.hidden {
  display: none !important;
}

.confirmation h2 {
  font-size: clamp(1.8rem, 3vw, 3rem);
}

.confirmation p:last-child {
  color: var(--muted);
  line-height: 1.6;
}

.primary-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  white-space: nowrap;
}

.section {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 96px 0;
}

.split {
  display: grid;
  grid-template-columns: 0.9fr 1.1fr;
  gap: clamp(28px, 7vw, 90px);
}

.prose {
  color: #42544b;
  font-size: 1.05rem;
  line-height: 1.8;
}

.prose p:first-child {
  margin-top: 0;
}

.feature-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 1px;
  background: var(--line);
  border-block: 1px solid var(--line);
}

.feature-band div {
  display: grid;
  gap: 8px;
  padding: clamp(28px, 5vw, 54px);
  background: #f6f4eb;
}

.feature-band strong {
  font-size: 1.15rem;
}

.feature-band span,
.cards p,
.timeline p {
  color: var(--muted);
  line-height: 1.65;
}

.section-title {
  max-width: 760px;
  margin-bottom: 34px;
}

.cards {
  display: grid;
  gap: 18px;
}

.cards.three {
  grid-template-columns: repeat(3, 1fr);
}

.cards.two {
  grid-template-columns: repeat(2, 1fr);
}

.cards article,
.manager-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.cards article {
  padding: 18px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr 1fr;
  grid-auto-rows: 240px;
  gap: 16px;
}

.gallery-grid figure {
  position: relative;
  overflow: hidden;
  margin: 0;
  border-radius: 8px;
  background: #e8ece5;
}

.gallery-grid img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.gallery-large {
  grid-row: span 2;
}

.gallery-grid figcaption {
  position: absolute;
  left: 12px;
  right: 12px;
  bottom: 12px;
  padding: 9px 10px;
  border-radius: 8px;
  color: var(--white);
  background: rgba(23, 33, 28, 0.72);
  font-size: 0.88rem;
  font-weight: 800;
}

.amenities-grid,
.testimonials-grid,
.rules-list {
  display: grid;
  gap: 18px;
}

.amenities-grid {
  grid-template-columns: repeat(3, 1fr);
}

.amenities-grid article,
.testimonials-grid article,
.rules-list article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.amenities-grid article {
  padding: 22px;
}

.amenities-grid span {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  margin-bottom: 18px;
  border-radius: 50%;
  color: var(--green);
  background: #dff0e7;
  font-weight: 800;
}

.placeholder {
  height: 190px;
  margin-bottom: 18px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(36, 93, 69, 0.2), rgba(227, 182, 75, 0.22)),
    repeating-linear-gradient(45deg, rgba(23, 33, 28, 0.08) 0 1px, transparent 1px 18px);
}

.soft {
  width: 100%;
  max-width: none;
  padding-inline: max(18px, calc((100vw - 1180px) / 2));
  background: var(--soft);
}

.timeline {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.timeline article {
  display: grid;
  align-content: start;
  gap: 12px;
  min-height: 245px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 32px rgba(23, 33, 28, 0.05);
}

.place-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.place-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  color: var(--green);
  background: #dff0e7;
  font-size: 1.35rem;
  font-weight: 900;
}

.place-distance {
  color: var(--rose);
  font-weight: 800;
  font-size: 1.08rem;
}

.timeline small {
  width: fit-content;
  padding: 6px 9px;
  border-radius: 999px;
  color: var(--green);
  background: #e9f6ef;
  font-size: 0.74rem;
  font-weight: 800;
  text-transform: uppercase;
}

.timeline h3 {
  margin-top: 4px;
}

.testimonials-grid {
  grid-template-columns: repeat(3, 1fr);
}

.testimonials-grid article {
  display: grid;
  align-content: space-between;
  gap: 22px;
  min-height: 255px;
  padding: 22px;
  box-shadow: 0 10px 34px rgba(23, 33, 28, 0.06);
}

.testimonials-grid p {
  margin: 0;
  color: #35473e;
  font-size: 1.02rem;
  line-height: 1.65;
}

.testimonial-author {
  display: grid;
  grid-template-columns: 44px auto;
  column-gap: 12px;
  align-items: center;
}

.testimonial-author .avatar {
  grid-row: span 2;
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  color: var(--white);
  background: var(--avatar-color, var(--green));
  font-weight: 800;
  font-size: 1.1rem;
}

.testimonial-author strong {
  color: var(--ink);
  line-height: 1.2;
}

.testimonial-author .country {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.2;
}

.faq-section {
  padding-block: 96px;
}

.faq-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 14px;
}

.faq-grid details {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.faq-grid summary {
  cursor: pointer;
  list-style: none;
  padding: 20px 46px 20px 20px;
  color: var(--ink);
  font-weight: 800;
  line-height: 1.4;
  position: relative;
}

.faq-grid summary::-webkit-details-marker {
  display: none;
}

.faq-grid summary::after {
  content: "+";
  position: absolute;
  top: 18px;
  right: 20px;
  color: var(--green-2);
  font-size: 1.35rem;
  line-height: 1;
}

.faq-grid details[open] summary::after {
  content: "-";
}

.faq-grid p {
  margin: 0;
  padding: 0 20px 20px;
  color: var(--muted);
  line-height: 1.65;
}

.rules-list {
  grid-template-columns: repeat(2, 1fr);
}

.rules-list article {
  display: grid;
  grid-template-columns: 48px 1fr;
  gap: 16px;
  padding: 22px;
}

.rules-list p,
.amenities-grid p {
  color: var(--muted);
  line-height: 1.65;
}

.rules-list h3 {
  margin-top: 2px;
}

.rule-icon {
  display: grid;
  place-items: center;
  width: 48px;
  height: 48px;
  border-radius: 8px;
  color: var(--green);
  background: #dff0e7;
  font-weight: 900;
  font-size: 1.25rem;
}

.final-booking {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 28px;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto 18px;
  padding: clamp(30px, 5vw, 56px);
  border-radius: 8px;
  color: var(--white);
  background:
    linear-gradient(135deg, rgba(36, 93, 69, 0.96), rgba(15, 127, 119, 0.9)),
    url("assets/gallery-fachada.png") center/cover;
  box-shadow: var(--shadow);
}

.final-booking .eyebrow {
  color: #ccefe3;
}

.final-booking h2 {
  max-width: 760px;
  font-size: clamp(2rem, 4vw, 4rem);
}

.final-booking > div > p:last-child {
  max-width: 690px;
  margin: 18px 0 0;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.7;
}

.quick-booking {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, 1fr));
  gap: 12px;
  width: min(100%, 470px);
  padding: 18px;
  border-radius: 8px;
  background: var(--white);
  box-shadow: 0 18px 48px rgba(23, 33, 28, 0.18);
}

.quick-booking label {
  color: var(--green);
}

.quick-booking label:nth-of-type(3),
.quick-booking label:nth-of-type(4),
.quick-booking label:nth-of-type(5),
.quick-booking button,
.quick-message {
  grid-column: 1 / -1;
}

.quick-booking button {
  min-height: 50px;
  border: 0;
  border-radius: 8px;
  color: var(--white);
  background: var(--green);
  cursor: pointer;
  font-weight: 800;
}

.quick-message {
  min-height: 20px;
  margin: 0;
  color: #8a3a34;
  font-size: 0.88rem;
  line-height: 1.4;
}

.contact-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto 86px;
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--white);
}

.contact-strip > div {
  display: flex;
  align-items: center;
  gap: 16px;
}

.contact-strip h2 {
  font-family: Inter, system-ui, sans-serif;
  font-size: clamp(1.3rem, 2vw, 1.8rem);
}

.contact-strip p {
  margin: 8px 0 0;
  color: var(--muted);
  line-height: 1.6;
}

.contact-icon {
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  color: var(--green);
  background: #dff0e7;
  font-weight: 900;
  font-size: 1.35rem;
}

.whatsapp-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 0 18px;
  border-radius: 8px;
  color: var(--white);
  background: #1f8f5f;
  font-weight: 800;
  white-space: nowrap;
}

.dashboard-section {
  padding-top: 36px;
}

.admin-page {
  min-height: 100vh;
  background:
    linear-gradient(rgba(251, 250, 245, 0.88), rgba(251, 250, 245, 0.88)),
    url("assets/hero-pousada.jpg") center/cover fixed;
}

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

.login-panel {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 36px 18px;
}

.admin-brand {
  position: fixed;
  top: 24px;
  left: 24px;
}

.login-card {
  display: grid;
  gap: 14px;
  width: min(100%, 430px);
  padding: 28px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: var(--shadow);
}

.login-card h1 {
  color: var(--ink);
  font-size: clamp(2.2rem, 5vw, 4rem);
}

.login-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.65;
}

.login-card button {
  min-height: 50px;
  margin-top: 4px;
  border: 0;
  border-radius: 8px;
  color: var(--white);
  background: var(--green);
  cursor: pointer;
  font-weight: 800;
}

.demo-note {
  color: var(--muted);
  line-height: 1.5;
}

.dashboard-page {
  width: min(1180px, calc(100% - 36px));
  margin: 0 auto;
  padding: 28px 0 70px;
}

.dashboard-topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 56px;
  padding: 16px 0;
}

.dashboard-actions {
  display: flex;
  align-items: center;
  gap: 12px;
}

.dashboard-actions a,
.dashboard-actions button {
  min-height: 42px;
  padding: 0 14px;
  border-radius: 8px;
  font-weight: 800;
}

.dashboard-actions a {
  display: inline-flex;
  align-items: center;
  color: var(--green);
  background: #dff0e7;
}

.dashboard-actions button {
  border: 0;
  color: #8a3a34;
  background: #f2d9d5;
  cursor: pointer;
}

.dashboard-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 22px;
  margin-bottom: 28px;
}

.dashboard-head button {
  min-height: 44px;
  padding: 0 16px;
  color: var(--green);
  background: #dff0e7;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.manager-panel {
  min-height: 320px;
  padding: 20px;
}

.manager-panel h3 {
  margin-bottom: 18px;
}

.reservation-list {
  display: grid;
  gap: 12px;
}

.reservation-item {
  display: grid;
  gap: 8px;
  padding: 14px;
  border-radius: 8px;
  background: #f6f7f2;
  border: 1px solid var(--line);
}

.reservation-item strong {
  font-size: 1rem;
}

.reservation-meta {
  color: var(--muted);
  font-size: 0.92rem;
  line-height: 1.55;
}

.reservation-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.reservation-actions button {
  min-height: 38px;
  padding: 0 12px;
}

.approve {
  color: var(--white);
  background: var(--green);
}

.reject {
  color: #8a3a34;
  background: #f2d9d5;
}

.empty {
  color: var(--muted);
  line-height: 1.6;
}

.footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  flex-wrap: wrap;
  padding: 34px 18px;
  color: #405149;
  border-top: 1px solid var(--line);
}

@media (max-width: 900px) {
  .site-header {
    position: absolute;
    align-items: start;
    flex-wrap: wrap;
  }

  .brand {
    min-width: 0;
  }

  .nav-links {
    order: 3;
    width: 100%;
    justify-content: start;
    overflow-x: auto;
    padding-bottom: 4px;
  }

  .hero {
    padding-top: 148px;
  }

  .hero-content,
  .split,
  .dashboard-grid {
    grid-template-columns: 1fr;
  }

  .hero-copy {
    padding-bottom: 0;
  }

  .cards.three,
  .cards.two,
  .feature-band,
  .timeline,
  .gallery-grid,
  .amenities-grid,
  .testimonials-grid,
  .faq-grid,
  .rules-list {
    grid-template-columns: 1fr;
  }

  .gallery-grid {
    grid-auto-rows: 260px;
  }

  .gallery-large {
    grid-row: span 1;
  }

  .confirmation,
  .dashboard-head,
  .dashboard-topbar,
  .final-booking,
  .contact-strip {
    align-items: stretch;
    flex-direction: column;
  }

  .contact-strip > div {
    align-items: flex-start;
  }

  .primary-link {
    width: 100%;
  }

  .final-booking .primary-link,
  .quick-booking,
  .whatsapp-button {
    width: 100%;
  }
}

@media (max-width: 560px) {
  .quick-booking {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 560px) {
  .header-cta {
    display: none;
  }

  .hero {
    min-height: auto;
    padding-inline: 14px;
  }

  .booking-card {
    padding: 16px;
  }

  .section {
    width: min(100% - 28px, 1180px);
    padding: 70px 0;
  }

  .confirmation {
    width: calc(100% - 28px);
    padding: 20px;
  }
}
