/*
 * Cunhal Stays — refinamento da apresentação existente.
 * Carregar depois de style.css e readability.css.
 * As galerias e os modais conservam os seus estilos e comportamento.
 */

:root {
  --ink: #23463c;
  --paper: #fbf4ea;
  --brand-gold: #af8e60;
  --muted: #46544b;
  --line: #d9d9cb;
  --header-height: 86px;
}

html {
  scroll-padding-top: calc(var(--header-height) + 16px);
}

body {
  font-size: 16px;
  line-height: 1.7;
}

/* Aviso breve e navegação proporcional à marca. */
.preview {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 30px;
  padding: 4px 12px;
  border-bottom: 0;
  font-size: 12px;
  line-height: 1.5;
  letter-spacing: .15px;
  white-space: nowrap;
}

.preview span {
  display: inline;
  font-size: inherit;
  letter-spacing: inherit;
  opacity: 1;
}

header {
  height: var(--header-height);
  padding: 0 5%;
  gap: 24px;
  border-bottom: 1px solid var(--line);
}

header > .brand {
  min-width: 0;
}

header .brand-logo {
  width: 286px;
  max-width: 100%;
}

nav {
  align-items: center;
  gap: 24px;
  font-size: 14px;
  line-height: 1.5;
}

nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
}

nav a:hover {
  color: #356151;
  opacity: 1;
}

.btn,
.btn.small,
.search .btn,
.text-btn,
.arrival-strip .text-btn {
  min-height: 44px;
  font-size: 14px;
  line-height: 1.5;
}

.btn {
  padding: 13px 20px;
  gap: 20px;
}

.btn.small {
  padding: 11px 16px;
}

/* Fotografia de abertura com leitura à direita, sem painel sobreposto. */
.hero {
  height: auto;
  min-height: 620px;
  padding: 44px 0 68px;
  display: flex;
  align-items: center;
  background: var(--ink);
}

.hero-img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 50%;
}

.hero::after {
  display: block;
  background: linear-gradient(
    90deg,
    rgba(14, 37, 31, 0) 30%,
    rgba(14, 37, 31, .18) 48%,
    rgba(14, 37, 31, .72) 73%,
    rgba(14, 37, 31, .8) 100%
  );
  pointer-events: none;
}

.hero-content {
  width: 375px;
  max-width: 42%;
  margin: 0 7% 0 auto;
  padding: 0;
  background: none;
  border: 0;
  box-shadow: none;
}

.hero-content .eyebrow,
.hero-content .eyebrow.light {
  margin-bottom: 16px;
  color: var(--paper);
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 1px;
  text-shadow: none;
}

.hero-content h1 {
  margin: 16px 0 22px;
  font-size: 72px;
  line-height: 1.02;
  letter-spacing: -1px;
  text-shadow: none;
}

.hero-content h1 em {
  color: #f5e6cb;
}

.hero-content > p:not(.eyebrow) {
  max-width: 360px;
  margin-bottom: 0;
  color: var(--paper);
  font-size: 16px;
  line-height: 1.65;
  text-shadow: none;
}

.hero-link {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  width: auto;
  max-width: 100%;
  min-height: 44px;
  margin-top: 22px;
  padding: 8px 0;
  gap: 24px;
  color: var(--paper);
  border-bottom: 1px solid #fbf4ea99;
  font-size: 15px;
  line-height: 1.5;
  text-shadow: none;
}

.hero-link:hover {
  border-bottom-color: var(--paper);
}

/* Pesquisa: campos legíveis, condições consultáveis sem outra caixa. */
.search-wrap {
  margin-top: -30px;
  scroll-margin-top: calc(var(--header-height) + 16px);
}

.search {
  gap: 16px;
  padding: 22px 24px;
  border-color: var(--line);
  box-shadow: none;
}

.search > * {
  min-width: 0;
}

.search label {
  gap: 6px;
  padding-left: 16px;
  font-size: 12px;
  letter-spacing: .5px;
}

.search input,
.search select {
  min-height: 44px;
  font-size: 16px;
}

.search .btn {
  justify-content: space-between;
  padding: 12px 16px;
  white-space: normal;
}

.search-note {
  max-width: 78ch;
  margin: 12px auto 0;
  padding: 0;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.65;
  text-align: center;
}

.search-conditions {
  max-width: 78ch;
  margin: 4px auto 0;
  border-bottom: 1px solid var(--line);
}

.search-conditions summary {
  min-height: 44px;
  padding: 12px 30px 12px 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.6;
}

.search-conditions summary::after {
  top: 10px;
}

.search-conditions p {
  margin-bottom: 16px;
  padding-right: 20px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

/* Ritmo editorial: títulos intermédios, texto corrente de 16 px. */
h2 {
  margin-bottom: 20px;
  font-size: 46px;
  line-height: 1.08;
  letter-spacing: -.6px;
}

.eyebrow,
.eyebrow:not(.light) {
  margin-bottom: 14px;
  font-size: 12px;
  line-height: 1.6;
  letter-spacing: 1px;
}

.intro {
  padding-top: 72px;
  padding-bottom: 30px;
  gap: 8%;
}

.intro > p {
  max-width: 42ch;
  margin-bottom: 0;
  padding-bottom: 0;
  font-size: 16px;
  line-height: 1.7;
}

.properties {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 32px;
  padding-bottom: 48px;
}

.property {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.property-art.photo {
  flex-shrink: 0;
  height: 340px;
}

.property-art.photo > img {
  transition: none;
}

.property-art.photo:hover > img {
  transform: none;
}

.photo-tag {
  top: 16px;
  left: 16px;
  max-width: calc(100% - 32px);
  font-size: 12px;
  letter-spacing: .5px;
}

.photo-bottom {
  bottom: 18px;
  left: 20px;
  right: 20px;
  gap: 16px;
  font-size: 15px;
}

.property-meta {
  display: flex;
  flex-direction: row;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 15px;
  margin: 20px 0 10px;
  font-size: 12px;
  letter-spacing: .3px;
}

.property h3 {
  margin: 0 0 8px;
  gap: 16px;
  font-size: 34px;
  line-height: 1.15;
  letter-spacing: -.25px;
}

.property-meta h3 {
  margin-bottom: 0;
  color: var(--ink);
}

.property-meta p {
  margin-bottom: 0;
  font-size: 16px;
  letter-spacing: 0;
}

.property p {
  max-width: none;
  font-size: 16px;
  line-height: 1.7;
}

.property .amenities {
  margin: 18px 0;
  padding-top: 0;
  gap: 8px 0;
}

.amenities span {
  padding: 0 10px;
  font-size: 14px;
  line-height: 1.7;
  letter-spacing: 0;
}

.property-description p,
.property-laundry p {
  margin-bottom: 12px;
}

.property-laundry p {
  color: var(--ink);
}

.property-beds p,
p.property-beds {
  margin-bottom: 12px;
  font-size: 15px;
  line-height: 1.7;
}

.property-card-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 10px;
  margin-top: auto;
  padding-top: 16px;
}

.property-card-actions .btn,
.property-card-actions .text-btn {
  justify-content: space-between;
  width: 100%;
  min-width: 0;
  min-height: 48px;
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  text-align: left;
  white-space: normal;
}

.property-card-actions .btn {
  padding: 12px 16px;
  gap: 12px;
}

.property-card-actions .text-btn {
  align-items: center;
  padding: 10px 0;
  gap: 12px;
  border-bottom-color: var(--brand-gold);
}

.property-note {
  margin: 0;
  max-width: 82ch;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.7;
}

/* Lazer, localização e anfitriões: a mesma identidade, menos intervalo. */
.care {
  padding: 40px 0 52px;
}

.leisure-heading {
  margin-bottom: 30px;
  gap: 8%;
}

.leisure-heading h2 {
  font-size: 46px;
  line-height: 1.08;
}

.leisure-heading > p,
.care p,
.destination-copy p:not(.eyebrow),
.local-list p,
.story p:not(.eyebrow),
.faq > div > p:not(.eyebrow) {
  font-size: 16px;
  line-height: 1.7;
}

.care-grid {
  gap: 36px;
}

.care h3 {
  font-size: 27px;
  line-height: 1.2;
}

.care p {
  margin-bottom: 0;
}

.destination {
  min-height: 490px;
}

.destination-copy {
  padding: 58px 11%;
}

.destination-copy h2 {
  font-size: 46px;
}

.local {
  padding: 72px 0;
  gap: 8%;
}

.local-list h3 {
  font-size: 28px;
  line-height: 1.2;
}

.local-list > a {
  gap: 18px;
  padding: 18px 0;
}

.local-list > a > span:last-child {
  flex-shrink: 0;
}

.story {
  padding: 48px 6%;
  gap: 8%;
  background: #f3efe5;
  border-color: var(--line);
}

.story h2 {
  font-size: 44px;
  line-height: 1.08;
}

.story p:not(.eyebrow) {
  max-width: 48ch;
}

.story .signature {
  margin-top: 22px;
}

.faq {
  padding: 72px 0 48px;
  gap: 9%;
}

.faq summary {
  min-height: 44px;
  padding: 17px 32px 17px 0;
  font-size: 16px;
  line-height: 1.65;
}

.faq summary::after {
  top: 14px;
}

.faq details p {
  font-size: 16px;
  line-height: 1.7;
}

/* Identificação visível, detalhes de envio recolhidos por defeito. */
.document-notice {
  margin-bottom: 28px;
  padding: 24px 28px;
  border: 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f3efe5;
  color: var(--ink);
}

.document-notice .eyebrow {
  margin-bottom: 10px;
}

.document-notice h2 {
  margin: 0 0 12px;
  font-size: 32px;
  line-height: 1.15;
  letter-spacing: -.25px;
}

.document-notice p,
.document-notice li {
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.document-notice > p {
  max-width: 80ch;
  margin-bottom: 10px;
}

.document-notice details {
  border-bottom: 0;
}

.document-notice summary {
  min-height: 44px;
  padding: 10px 32px 10px 0;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.65;
}

.document-notice summary::after {
  top: 7px;
}

.document-notice details p {
  max-width: 85ch;
  padding-right: 24px;
}

.document-notice li {
  margin-bottom: 6px;
}

.document-notice ul {
  margin: 12px 0;
}

.arrival-strip {
  margin-top: 0;
  margin-bottom: 48px;
  padding: 24px 0;
  gap: 24px;
}

.arrival-strip strong {
  font-size: 16px;
  line-height: 1.6;
}

.last-call {
  padding: 52px 20px;
}

.last-call h2 {
  font-size: 48px;
  line-height: 1.08;
}

/* Idiomas ainda indisponíveis ficam no rodapé, sem sugerir traduções. */
footer {
  padding: 40px 6% 28px;
}

.footer-top {
  padding-bottom: 28px;
}

.footer-top .brand-logo {
  width: 286px;
  max-width: 100%;
}

footer .language-bar {
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
  padding: 16px 0;
  background: transparent;
}

footer .language-bar button {
  min-height: 44px;
  padding: 9px 12px;
  color: var(--ink);
  font-size: 14px;
  line-height: 1.5;
}

footer .language-bar .language-current {
  background: var(--ink);
  color: var(--paper);
}

footer .language-bar button:disabled {
  color: #46544b;
  opacity: 1;
}

footer .language-bar button span {
  display: inline;
  font-size: 12px;
  line-height: 1.5;
}

.footer-bottom {
  gap: 16px 24px;
  padding-top: 18px;
  font-size: 13px;
  line-height: 1.7;
}

.footer-bottom > div {
  gap: 10px 24px;
}

.footer-bottom button {
  min-height: 44px;
}

/* Em cartões largos, os dois percursos podem partilhar uma linha. */
@media (min-width: 1201px) {
  .property-card-actions {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 18px;
    align-items: stretch;
  }
}

@media (min-width: 701px) and (max-width: 1100px) {
  .search {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .search label:first-of-type {
    padding-left: 0;
    border-left: 0;
  }

  .search .btn {
    grid-column: 1 / -1;
  }
}

@media (min-width: 701px) and (max-width: 1050px) {
  .hero-content {
    width: 340px;
    max-width: 44%;
    margin-right: 5%;
  }

  .hero-content h1 {
    font-size: 68px;
  }

  .property-art.photo {
    height: 300px;
  }

  .care-grid {
    gap: 24px;
  }

  .story h2 {
    font-size: 40px;
  }
}

@media (max-width: 900px) {
  header {
    gap: 18px;
  }

  header > .menu {
    width: 44px;
    height: 44px;
    flex: 0 0 44px;
    border-color: #aab7a5;
  }

  nav {
    top: 100%;
    padding: 16px 6%;
    border-bottom: 1px solid var(--line);
    box-shadow: none;
    font-size: 16px;
  }

  nav.open {
    align-items: stretch;
    gap: 4px;
  }

  nav a {
    padding: 8px 0;
  }
}

/* Mobile: imagem separada do texto; oferta e acção na primeira dobra. */
@media (max-width: 700px) {
  :root {
    --header-height: 78px;
  }

  .preview {
    min-height: 30px;
    padding: 4px 8px;
    font-size: 11px;
    letter-spacing: 0;
  }

  header {
    padding: 0 6%;
    gap: 18px;
  }

  header > .brand {
    flex: 1;
  }

  header .brand-logo {
    width: 230px;
  }

  .hero {
    display: block;
    height: auto;
    min-height: 0;
    padding: 0;
    overflow: visible;
  }

  .hero-img {
    position: relative;
    inset: auto;
    display: block;
    width: 100%;
    height: 210px;
    object-fit: cover;
    object-position: center 50%;
  }

  .hero::after {
    display: none;
  }

  .hero-content {
    width: auto;
    max-width: none;
    margin: 0;
    padding: 24px 6% 30px;
    background: var(--ink);
    color: var(--paper);
  }

  .hero-content .eyebrow,
  .hero-content .eyebrow.light {
    margin-bottom: 12px;
    font-size: 12px;
    line-height: 1.6;
    letter-spacing: .7px;
    text-shadow: none;
  }

  .hero-content h1 {
    margin: 12px 0 18px;
    font-size: clamp(44px, 12vw, 50px);
    line-height: 1.02;
    letter-spacing: -.5px;
  }

  .hero-content > p:not(.eyebrow) {
    max-width: 42ch;
    font-size: 16px;
    line-height: 1.6;
    text-shadow: none;
  }

  .hero-link {
    width: auto;
    min-height: 44px;
    margin-top: 16px;
    padding: 9px 0;
    gap: 20px;
    font-size: 15px;
  }

  .hero-caption {
    display: none;
  }

  .search-wrap {
    width: 90%;
    margin-top: 18px;
  }

  .search {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 16px 14px;
    padding: 20px 18px;
  }

  .search label {
    padding-left: 12px;
    font-size: 11px;
    letter-spacing: .35px;
  }

  .search label:nth-of-type(odd) {
    padding-left: 0;
    border-left: 0;
  }

  .search .btn {
    grid-column: 1 / -1;
    min-height: 48px;
    padding: 12px 14px;
  }

  .search-note {
    font-size: 14px;
    text-align: left;
  }

  .search-conditions {
    margin-top: 4px;
  }

  .section {
    width: 88%;
  }

  h2,
  .leisure-heading h2,
  .destination-copy h2,
  .story h2 {
    font-size: 40px;
    line-height: 1.08;
  }

  .intro {
    display: block;
    padding-top: 48px;
    padding-bottom: 26px;
  }

  .intro > p {
    max-width: none;
    margin: 18px 0 0;
  }

  .properties {
    grid-template-columns: minmax(0, 1fr);
    gap: 34px;
    padding-bottom: 36px;
  }

  .property-art.photo {
    height: 290px;
  }

  .property-meta {
    margin-top: 18px;
  }

  .property h3 {
    font-size: 32px;
  }

  .property .amenities {
    margin: 16px 0;
  }

  .amenities span {
    padding: 0 9px;
  }

  .property-card-actions {
    grid-template-columns: minmax(0, 1fr);
    gap: 8px;
    padding-top: 12px;
  }

  .property-note {
    margin: 0;
    font-size: 14px;
  }

  .care {
    padding: 32px 0 40px;
  }

  .leisure-heading {
    display: block;
    margin-bottom: 28px;
  }

  .leisure-heading > p {
    margin-top: 18px;
  }

  .care-grid {
    grid-template-columns: minmax(0, 1fr);
    gap: 24px;
  }

  .care-grid > div {
    padding-left: 40px;
  }

  .care h3 {
    font-size: 26px;
  }

  .destination {
    min-height: 0;
  }

  .destination-image {
    height: 280px;
  }

  .destination-copy {
    padding: 36px 6% 40px;
  }

  .local {
    display: block;
    padding: 48px 0;
  }

  .local-list {
    margin-top: 26px;
  }

  .local-list h3 {
    font-size: 27px;
  }

  .local-list p {
    font-size: 16px;
  }

  .story {
    grid-template-columns: minmax(0, 1fr);
    padding: 30px 6%;
    gap: 0;
  }

  .story-brand {
    max-width: 280px;
    margin-bottom: 26px;
  }

  .faq {
    grid-template-columns: minmax(0, 1fr);
    padding: 48px 0 34px;
    gap: 20px;
  }

  .document-notice {
    margin-bottom: 24px;
    padding: 22px 18px;
  }

  .document-notice h2 {
    font-size: 30px;
    line-height: 1.15;
  }

  .document-notice details p {
    padding-right: 8px;
  }

  .arrival-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0;
    margin-bottom: 36px;
    padding: 22px 0;
    gap: 22px 16px;
  }

  .arrival-strip > * {
    min-width: 0;
  }

  .last-call {
    padding: 42px 6%;
  }

  .last-call h2 {
    font-size: 44px;
  }

  footer {
    padding: 32px 6% 20px;
  }

  .footer-top {
    gap: 20px;
    padding-bottom: 22px;
  }

  .footer-top .brand-logo {
    width: 270px;
  }

  footer .language-bar {
    justify-content: flex-start;
    gap: 6px;
    padding: 14px 0 20px;
  }

  footer .language-bar button {
    padding: 9px 10px;
  }

  .footer-bottom {
    padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  }

  .mobile-book a {
    min-height: 48px;
    padding: 12px 16px;
    font-size: 15px;
    line-height: 1.5;
  }
}

@media (max-width: 360px) {
  .hero-img {
    height: 200px;
  }

  .hero-content {
    padding: 24px 20px 28px;
  }

  .hero-content h1 {
    font-size: 44px;
  }

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

  .search label {
    padding-left: 0;
    border-left: 0;
  }

  .property-art.photo {
    height: 260px;
  }

  .arrival-strip {
    grid-template-columns: minmax(0, 1fr);
  }
}

/* Respeitar a preferência existente, incluindo futuras adições à página. */
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
}

/* Preparação de lançamento: catálogo e custos confirmados pelo anfitrião. */
.property-status {
  margin: 8px 0 10px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.65;
  letter-spacing: .3px;
}

.property-status.coming-soon {
  color: #6d542e;
  border-left: 2px solid var(--brand-gold);
  padding-left: 10px;
}

.property-rate {
  margin: 12px 0 0;
  padding-top: 12px;
  border-top: 1px solid var(--line);
  font-size: 14px;
  line-height: 1.7;
}

.stay-charges {
  margin: 18px 0;
  padding: 14px 0;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.stay-charges p {
  margin: 0 0 10px;
  font-size: 16px;
  line-height: 1.7;
}

.stay-charges p:last-child {
  margin-bottom: 0;
}

/* Amenities use plain headings without decorative text symbols. */
.care-grid > div { padding-left: 0; }
