/* ==================== BASE / RESET ==================== */
*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

:root {
  --black: #0a0a0a;
  --dark: #141414;         /* superfícies (cards, secções alt) */
  --bg: #0a0a0a;           /* fundo da página (escuro) */
  --gold: #d4af37;
  --gold-soft: #e8cd7a;
  --text: #f4f1e9;
  --text-muted: #b9b3a4;
  --green: #009246;
  --red: #ce2b37;
  --max-width: 1200px;
}

html {
  scroll-behavior: smooth;
}

body {
  font-family: "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
  background-color: var(--bg);
  color: var(--text);
  line-height: 1.6;
}

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

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

/* ==================== HEADER ==================== */
.site-header {
  background-color: var(--bg);
  border-bottom: 2px solid var(--gold);
}

.site-header__brand {
  display: block;
}

.site-header__img {
  width: 100%;
  height: auto;
  object-fit: cover;
}

/* ==================== NAV ==================== */
.nav {
  background-color: var(--dark);
}

.nav__menu {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 0.75rem 1.25rem;
  padding: 0.75rem 1rem;
}

.nav__menu a {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.15rem;
  color: var(--text);
  font-weight: 600;
  font-size: 0.72rem;
  letter-spacing: 0.03em;
}

.nav__menu a:hover {
  color: var(--gold);
}

.nav__ico {
  width: 24px;
  height: 24px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

/* ==================== LANG SWITCH (combobox) ==================== */
.nav__lang {
  display: flex;
  align-items: center;
}

.lang {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.lang__flag {
  width: 26px;
  height: 18px;
  object-fit: cover;
  border-radius: 3px;
  flex: none;
}

.lang__select {
  background-color: var(--dark);
  color: var(--text);
  border: 1px solid rgba(212, 175, 55, 0.5);
  border-radius: 6px;
  padding: 0.35rem 0.5rem;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
}

.lang__select:hover {
  border-color: var(--gold);
}

.lang__select:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}

/* ==================== HERO ==================== */
.hero {
  padding: 5rem 1.25rem;
  text-align: center;
  /* Para usar uma foto real de Itália: descomentar o url e o overlay abaixo.
     background:
       linear-gradient(rgba(10,10,10,0.55), rgba(10,10,10,0.75)),
       url("../assets/images/hero.jpg") center / cover no-repeat; */
  background:
    radial-gradient(circle at 50% -10%, rgba(212, 175, 55, 0.16), transparent 55%),
    linear-gradient(180deg, var(--dark), var(--black));
}

.hero__content {
  max-width: 720px;
  margin: 0 auto;
}

.hero__content h1 {
  font-size: 2rem;
  line-height: 1.2;
  color: var(--gold);
  letter-spacing: 0.01em;
  margin-bottom: 1rem;
}

/* Traço dourado decorativo sob o título */
.hero__content h1::after {
  content: "";
  display: block;
  width: 64px;
  height: 3px;
  margin: 0.9rem auto 0;
  background: var(--gold);
  border-radius: 2px;
}

.hero__content p {
  color: var(--text-muted);
  font-size: 1.05rem;
  margin-bottom: 1.75rem;
}

/* Variante: hero com imagem limitada à largura do conteúdo */
.hero--image {
  padding: 0;
  background: none;
}

.hero__img {
  display: block;
  width: 100%;
  max-width: var(--max-width);
  height: auto;
  margin: 0 auto;
}

/* ==================== BUTTONS ==================== */
.btn {
  display: inline-block;
  padding: 0.75rem 1.5rem;
  font-weight: 700;
  letter-spacing: 0.03em;
  border-radius: 4px;
  transition: transform 0.2s ease, background-color 0.2s ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn--gold {
  background-color: var(--gold);
  color: var(--black);
}

.btn--outline {
  border: 1px solid var(--gold);
  color: var(--gold);
}

.btn--wa {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
}

.btn__ico {
  width: 20px;
  height: 20px;
  fill: var(--gold);
  flex: none;
}

.btn__ico--stroke {
  fill: none;
  stroke: var(--gold);
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn--ghost {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--text-muted);
  background: none;
  border: none;
  cursor: pointer;
  font: inherit;
  font-weight: 600;
  padding: 0.6rem 0.25rem;
}

.btn--ghost:hover {
  color: var(--gold);
}

/* Botão de disponibilidade: mesmo visual do "Book Now" (outline), mas é <button>. */
.card__cal {
  background: transparent;
  cursor: pointer;
  font: inherit;
  font-weight: 700;
  letter-spacing: 0.03em;
}

.card__cal:hover {
  background-color: rgba(212, 175, 55, 0.1);
}

.card__actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 1rem;
}

/* ==================== FEATURES ==================== */
.features {
  background-color: var(--dark);
  padding: 2rem 1.25rem;
}

.features__list {
  list-style: none;
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.features__list li {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: var(--text-muted);
  font-weight: 600;
}

.features__icon {
  font-size: 1.4rem;
}

/* ==================== SECTIONS ==================== */
.section {
  padding: 3rem 1.25rem;
  max-width: var(--max-width);
  margin: 0 auto;
}

.section--alt {
  background-color: var(--dark);
  max-width: none;
}

.section--alt .section__title,
.section--alt .section__text {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
}

.section__title {
  color: var(--gold);
  font-size: 1.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.section__text {
  color: var(--text-muted);
  text-align: center;
  max-width: 700px;
  margin: 0 auto 1.5rem;
}

/* ==================== CARDS ==================== */
.cards {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

.card {
  background-color: var(--dark);
  border: 1px solid rgba(212, 175, 55, 0.25);
  border-radius: 8px;
  overflow: hidden;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.35);
}

.card__media {
  aspect-ratio: 4 / 3;
  background: linear-gradient(135deg, #1f1f1f, #2c2c2c);
}

/* ==================== SLIDER (mídias do card) ==================== */
.slider {
  position: relative;
  overflow: hidden;
}

.slider__track {
  display: flex;
  height: 100%;
  transition: transform 0.35s ease;
}

.slider__slide {
  min-width: 100%;
  height: 100%;
}

.slider__slide img,
.slider__slide video {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}

.slider__slide img {
  cursor: zoom-in;
}

.slider__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 38px;
  height: 38px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  color: #fff;
  cursor: pointer;
  transition: background 0.2s ease;
  z-index: 2;
}

.slider__btn:hover {
  background: rgba(0, 0, 0, 0.75);
}

.slider__btn--prev { left: 8px; }
.slider__btn--next { right: 8px; }
.slider__btn--next .slider__chevron { transform: rotate(180deg); }

.slider__chevron {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.slider__counter {
  position: absolute;
  bottom: 8px;
  right: 8px;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 2;
}

.card__location {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
}

.card__location .ico {
  width: 18px;
  height: 18px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
  margin-top: 2px;
}

.card__body {
  padding: 1.25rem;
}

.card__body h3 {
  color: var(--gold-soft);
  margin-bottom: 0.5rem;
}

.card__specs {
  list-style: none;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem 1rem;
  margin-bottom: 0.9rem;
}

.card__specs li {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--text-muted);
  font-size: 0.9rem;
  font-weight: 600;
}

.card__specs .ico {
  width: 18px;
  height: 18px;
  stroke: var(--gold);
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: none;
}

.card__body p {
  color: var(--text-muted);
  margin-bottom: 1rem;
}

.card__price {
  color: var(--gold);
  font-weight: 700;
  font-size: 1.15rem;
}

.card__price small {
  color: var(--text-muted);
  font-weight: 500;
  font-size: 0.85rem;
}

/* ==================== FOOTER ==================== */
.site-footer__notice {
  max-width: 760px;
  margin: 0 auto 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 8px;
  background: rgba(212, 175, 55, 0.06);
  line-height: 1.6;
}

.site-footer__notice strong {
  display: block;
  margin-bottom: 0.4rem;
  color: var(--gold);
}

.site-footer {
  background-color: var(--bg);
  border-top: 2px solid var(--gold);
  padding: 1.5rem 1.25rem;
  text-align: center;
  color: var(--text-muted);
  font-size: 0.9rem;
}

/* ==================== DESKTOP (>= 769px) ==================== */
@media (min-width: 769px) {
  .site-header__inner {
    display: flex;
    align-items: center;
    justify-content: center;
    max-width: var(--max-width);
    margin: 0 auto;
    padding: 0 1.5rem;
  }

  .site-header__img {
    max-height: 120px;
    width: auto;
  }

  .hero--image {
    padding: 1.5rem 1.25rem;
  }

  .nav {
    background: none;
  }

  .nav__menu {
    gap: 1rem 2rem;
    background: none;
  }

  .nav__menu a {
    font-size: 0.8rem;
  }

  .nav__lang {
    padding-left: 0.5rem;
  }

  .hero__content h1 {
    font-size: 2.5rem;
  }

  .features__list {
    grid-template-columns: repeat(4, 1fr);
  }

  .features__list li {
    flex-direction: column;
    text-align: center;
  }

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

/* ==================== MODAL DISPONIBILIDADE ==================== */
.cal-modal[hidden] {
  display: none;
}

.cal-modal {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.cal-modal__overlay {
  position: absolute;
  inset: 0;
  background: rgba(0, 0, 0, 0.7);
}

.cal-modal__dialog {
  position: relative;
  width: 100%;
  max-width: 360px;
  background-color: var(--dark);
  border: 1px solid rgba(212, 175, 55, 0.35);
  border-radius: 10px;
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.6);
  padding: 1.25rem;
}

.cal-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.25rem;
}

.cal-modal__title {
  color: var(--gold);
  font-size: 1.15rem;
}

.cal-modal__close {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 1.6rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 0.25rem;
}

.cal-modal__close:hover {
  color: var(--gold);
}

.cal-modal__apto {
  color: var(--gold-soft);
  font-weight: 600;
  margin-bottom: 0.75rem;
}

.cal__nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.cal__month {
  color: var(--text);
  font-weight: 700;
  letter-spacing: 0.02em;
}

.cal__navbtn {
  background: none;
  border: 1px solid rgba(212, 175, 55, 0.4);
  border-radius: 6px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}

.cal__navbtn:hover:not(:disabled) {
  border-color: var(--gold);
}

.cal__navbtn:disabled {
  opacity: 0.3;
  cursor: not-allowed;
}

.cal__navbtn--next .cal__chevron {
  transform: rotate(180deg);
}

.cal__chevron {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: var(--gold);
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.cal__weekdays,
.cal__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.cal__weekdays {
  margin-bottom: 4px;
}

.cal__weekdays span {
  text-align: center;
  color: var(--text-muted);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  padding: 0.25rem 0;
}

.cal__cell {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 6px;
  font-size: 0.85rem;
  font-weight: 600;
}

.cal__cell--empty {
  background: none;
}

.cal__cell--free {
  background-color: rgba(0, 146, 70, 0.18);
  color: var(--text);
  border: 1px solid rgba(0, 146, 70, 0.5);
}

.cal__cell--busy {
  background-color: rgba(206, 43, 55, 0.22);
  color: var(--text-muted);
  border: 1px solid rgba(206, 43, 55, 0.55);
  text-decoration: line-through;
}

.cal__cell--past {
  color: var(--text-muted);
  opacity: 0.35;
}

.cal__cell--today {
  outline: 2px solid var(--gold);
  outline-offset: -2px;
}

.cal__legend {
  display: flex;
  justify-content: center;
  gap: 1.25rem;
  margin-top: 1rem;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.cal__legenditem {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.cal__dot {
  width: 12px;
  height: 12px;
  border-radius: 3px;
  display: inline-block;
}

.cal__dot--free {
  background-color: rgba(0, 146, 70, 0.5);
  border: 1px solid rgba(0, 146, 70, 0.7);
}

.cal__dot--busy {
  background-color: rgba(206, 43, 55, 0.5);
  border: 1px solid rgba(206, 43, 55, 0.7);
}

/* ==================== LIGHTBOX (foto em fullscreen) ==================== */
.lightbox[hidden] {
  display: none;
}

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 1100;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(0, 0, 0, 0.92);
  padding: 2.5rem;
}

.lightbox__stage {
  max-width: 100%;
  max-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox__stage img,
.lightbox__stage video {
  max-width: 100%;
  max-height: 88vh;
  object-fit: contain;
  display: block;
}

.lightbox__close {
  position: absolute;
  top: 1rem;
  right: 1.25rem;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.4rem;
  line-height: 1;
  cursor: pointer;
  z-index: 2;
}

.lightbox__close:hover {
  color: var(--gold);
}

.lightbox__btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 46px;
  height: 46px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  z-index: 2;
}

.lightbox__btn:hover {
  background: rgba(0, 0, 0, 0.8);
}

.lightbox__btn--prev { left: 1rem; }
.lightbox__btn--next { right: 1rem; }
.lightbox__btn--next .slider__chevron { transform: rotate(180deg); }

.lightbox__counter {
  position: absolute;
  bottom: 1rem;
  left: 50%;
  transform: translateX(-50%);
  padding: 0.2rem 0.7rem;
  border-radius: 999px;
  background: rgba(0, 0, 0, 0.55);
  color: #fff;
  font-size: 0.8rem;
  font-weight: 600;
}

/* ==================== MOBILE (<= 768px) ==================== */
@media (max-width: 768px) {
  /* Botões dos cards lado a lado, mais compactos. */
  .card__actions {
    flex-wrap: nowrap;
    gap: 0.5rem;
  }

  .card__actions .btn {
    flex: 1 1 0;
    min-width: 0;
    justify-content: center;
    padding: 0.55rem 0.4rem;
    font-size: 0.75rem;
    letter-spacing: 0;
    white-space: nowrap;
  }

  .card__actions .btn__ico {
    width: 16px;
    height: 16px;
  }

  /* Lightbox ocupa o ecrã inteiro. */
  .lightbox {
    padding: 0;
  }

  .lightbox__stage img,
  .lightbox__stage video {
    max-height: 100vh;
    width: 100%;
  }

  .lightbox__btn {
    width: 40px;
    height: 40px;
  }
}
