@import url("./base.css");

/* Small visual variation while keeping the same content and structure */
:root {
  --red: #0f7f8e;
  --red-dark: #0a5f6a;
}

.site-header {
  background: rgba(255, 255, 255, .88);
  backdrop-filter: blur(10px);
}

.header-logo img {
  width: 178px;
  height: auto;
  aspect-ratio: auto;
  object-fit: contain;
  display: block;
}

.header-phone {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.header-phone .whatsapp-icon {
  width: 22px;
  height: 22px;
  flex-basis: 22px;
}

.language-switch {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-width: 48px;
  min-height: 38px;
  padding: 5px 9px;
  border: 1px solid rgba(24, 50, 75, .18);
  border-radius: 999px;
  color: #18324b;
  font-size: 13px;
  letter-spacing: .08em;
  text-decoration: none;
  background: rgba(255, 255, 255, .7);
  transition: background-color .2s ease, border-color .2s ease, transform .2s ease;
}

.language-switch span {
  font-size: 19px;
  line-height: 1;
}

.language-switch .italy-flag {
  display: block;
  width: 25px;
  height: 17px;
  object-fit: cover;
  border-radius: 2px;
}

.language-switch:hover,
.language-switch:focus-visible {
  background: #fff;
  border-color: rgba(15, 127, 142, .55);
  transform: translateY(-1px);
}

.hero {
  background:
    linear-gradient(rgba(11, 29, 40, .18), rgba(11, 29, 40, .18)),
    #dfeaf0;
}

.hero-content h1 {
  text-shadow: 0 3px 20px rgba(0, 0, 0, .22);
}

.hero-intro {
  padding: 42px 0 8px;
}

.hero-intro-inner {
  max-width: 860px;
  margin: 0 auto;
  padding: 28px 28px 24px;
  border-radius: 28px;
  background: rgba(255, 255, 255, .74);
  border: 1px solid rgba(24, 50, 75, .08);
  box-shadow: 0 18px 48px rgba(24, 50, 75, .08);
  text-align: center;
}

.hero-intro-inner h2 {
  margin-bottom: 12px;
  font-size: clamp(28px, 3.4vw, 44px);
  font-family: inherit;
  font-weight: 700;
  letter-spacing: -.025em;
  line-height: 1.12;
  color: #18324b;
}

.intro-copy h2,
.location-copy h2,
.explore-copy h2,
.reassurance-layout h2,
.final-cta-layout h2,
.section-heading {
  font-family: inherit;
  font-weight: 800;
  letter-spacing: -.035em;
}

.availability-title {
  padding-left: 24px;
}

.availability-title .pin {
  display: none;
}

.blue-flag-panel {
  padding: 24px 28px;
  min-height: 150px;
  align-items: center;
}

.blue-flag-panel span + span {
  margin-top: 8px;
}

.final-booking-slot {
  margin: 28px 0 24px;
}

.final-cta-layout {
  max-width: 1140px;
}

.final-booking-slot .availability-box {
  margin: 0;
  width: 100%;
  box-shadow: var(--shadow-card);
}

.final-whatsapp-link {
  color: var(--red-dark) !important;
  font-weight: 800;
  text-shadow: none;
}

.final-whatsapp-link .whatsapp-icon {
  width: 32px;
  height: 32px;
}

.footer-brand img {
  display: block;
  width: 160px;
  height: auto;
  margin-bottom: 14px;
  filter: none;
}

.footer-grid h3 {
  margin: 0 0 12px;
  color: #fff;
  font-size: 13px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.footer-legal {
  margin-top: 28px;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, .2);
  color: rgba(255, 255, 255, .75);
  font-size: 12px;
  line-height: 1.55;
}

.footer-legal p {
  margin: 6px 0;
}

.footer-legal a {
  color: #fff;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.hero-intro-inner p {
  margin: 0;
  color: rgba(24, 50, 75, .64);
  line-height: 1.7;
  font-size: 16px;
}

.hero-intro-inner .eyebrow {
  font-size: 34px;
  margin-bottom: 12px;
  letter-spacing: .04em;
  font-weight: 700;
  line-height: 1.35;
  color: #18324b;
  text-transform: none;
  opacity: .78;
}

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

.review-card {
  position: relative;
  padding: 22px 20px;
}

.review-card::before {
  content: "";
  display: block;
  width: 34px;
  height: 34px;
  margin-bottom: 14px;
  background: url("./google-g.svg") center/contain no-repeat;
}

.review-head {
  margin-bottom: 12px;
}

.reviews-note {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin: -6px 0 18px;
  color: rgba(24, 50, 75, .74);
}

.google-badge {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 1px solid rgba(24, 50, 75, .14);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(24, 50, 75, .08);
  color: var(--ink);
  font-weight: 700;
}

.google-badge img {
  width: 28px;
  height: 28px;
  flex: 0 0 auto;
}

.availability-item input.lsb-arrival,
.availability-item input.lsb-departure {
  width: 100%;
  margin-top: 6px;
  padding: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.availability-item input::placeholder {
  color: var(--ink);
  opacity: 1;
}

.availability-item select.lsb-guests {
  width: 100%;
  margin-top: 6px;
  padding: 0 20px 0 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--ink);
  font: inherit;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

.lsb-guests-wrap {
  display: flex;
  gap: 8px;
  margin-top: 6px;
}

.lsb-guests-wrap label {
  display: flex;
  flex: 1;
  flex-direction: column;
  gap: 3px;
  color: #5c7282;
  font-size: 9px;
  font-weight: 700;
  text-transform: uppercase;
  white-space: nowrap;
}

.lsb-guests-wrap select {
  min-width: 0;
  padding: 5px 3px;
  border: 0;
  border-radius: 4px;
  background: rgba(255, 255, 255, .72);
  color: var(--ink);
  font: inherit;
  font-size: 12px;
  font-weight: 700;
}

.availability-box {
  grid-template-columns: 1.35fr 1fr 1fr 1fr auto;
}

@media (max-width: 1100px) and (min-width: 881px) {
  .availability-box {
    grid-template-columns: 1.2fr 1fr 1fr;
  }

  .availability-box .lsb-submit {
    grid-column: span 3;
    justify-self: stretch;
  }
}

.availability-item:focus-within {
  background: rgba(255, 255, 255, .2);
}

.stars {
  color: #f6b400;
  letter-spacing: .08em;
  font-weight: 800;
}

.reassurance-sub {
  font-size: 14px;
  color: #7a7669;
}

.reassurance-airbnb {
  display: inline-flex;
  align-items: center;
  gap: 14px;
  padding: 18px 26px;
  border: 1px solid rgba(24, 50, 75, .14);
  border-radius: 999px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(24, 50, 75, .12);
}

.reassurance-airbnb img {
  width: 72px;
  height: auto;
  flex: 0 0 auto;
}

.airbnb-copy {
  display: grid;
  gap: 2px;
  text-align: left;
}

.airbnb-copy strong {
  font-size: 15px;
  letter-spacing: .08em;
  text-transform: uppercase;
}

.airbnb-copy small {
  font-size: 13px;
  color: rgba(24, 50, 75, .72);
}

.reassurance-airbnb:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(24, 50, 75, .16);
}

@media (max-width: 880px) {
  .hero-intro {
    padding-top: 24px;
  }

  .hero-intro-inner {
    padding: 22px 18px 20px;
  }

  .hero-intro-inner h2 {
    font-size: clamp(24px, 7vw, 29px);
    line-height: 1.12;
  }

  .hero-intro-inner .eyebrow {
    font-size: clamp(18px, 5vw, 28px);
  }

  .header-logo img {
    width: 158px;
  }

  .language-switch {
    min-width: 44px;
    min-height: 36px;
    padding-inline: 7px;
  }

  .reviews-grid {
    grid-template-columns: 1fr;
  }

  .reviews-note {
    align-items: flex-start;
  }

  .reassurance-airbnb {
    width: 100%;
    justify-content: center;
    border-radius: 24px;
  }

  .site-footer {
    padding-bottom: 104px;
  }

  .mobile-cta-bar {
    display: flex;
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 90;
    gap: 10px;
    padding: 10px 14px;
    background: rgba(255, 255, 255, .96);
    border-top: 1px solid rgba(24, 50, 75, .12);
    box-shadow: 0 -8px 24px rgba(24, 50, 75, .12);
    backdrop-filter: blur(10px);
  }

  .mobile-cta-bar a {
    flex: 1;
    min-width: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    min-height: 48px;
    padding: 0 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
  }

  .mobile-cta-book {
    background: var(--red);
    color: #fff;
    box-shadow: 0 10px 22px rgba(15, 127, 142, .28);
  }

  .mobile-cta-call {
    background: #fff;
    color: var(--red);
    border: 1px solid rgba(15, 127, 142, .28);
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
  }
}

.whatsapp-icon {
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  display: inline-block;
  vertical-align: middle;
}

.final-whatsapp-link {
  color: #ffffff;
  font-weight: 800;
  text-shadow: 0 1px 2px rgba(0, 0, 0, .28);
}

.final-whatsapp-link .whatsapp-icon {
  width: 30px;
  height: 30px;
  flex-basis: 30px;
}

.reassurance-sub {
  font-size: 22px;
}

.reassurance-airbnb img {
  width: 124px;
  height: auto;
  object-fit: contain;
}

.airbnb-apartment-links {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: min(100%, 640px);
  margin-top: 18px;
}

.airbnb-apartment-links a {
  padding: 12px 14px;
  border: 1px solid rgba(24, 50, 75, .16);
  border-radius: 999px;
  color: var(--ink);
  background: #fff;
  font-size: 13px;
  font-weight: 700;
  text-align: center;
  transition: background .2s ease, border-color .2s ease, transform .2s ease;
}

.airbnb-apartment-card {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(24, 50, 75, .16);
  border-radius: 18px;
  background: #fff;
}

.airbnb-apartment-card strong {
  color: var(--ink);
  font-size: 14px;
  text-align: center;
}

.airbnb-apartment-card a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  padding: 8px 10px;
  border: 0;
  border-radius: 999px;
  color: #ff5a5f;
  background: #fff5f5;
  font-size: 12px;
}

.airbnb-apartment-card a img {
  width: 20px;
  height: 20px;
  object-fit: contain;
}

.airbnb-apartment-links a:hover {
  border-color: var(--red);
  background: rgba(15, 127, 142, .06);
  transform: translateY(-2px);
}

@media (max-width: 880px) {
  .airbnb-apartment-links {
    grid-template-columns: 1fr 1fr;
  }
}

.whatsapp-link,
.footer-whatsapp-link,
.mobile-cta-call {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.mobile-cta-call .whatsapp-icon {
  width: 22px;
  height: 22px;
  flex-basis: 22px;
}

.mobile-cta-bar {
  display: none;
}

/* Keep Flatpickr readable and inside the viewport on iPhone Safari and
   mobile Chromium, whose automatic text sizing can otherwise enlarge it. */
html,
body {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
}

@media (max-width: 620px) {
  /* iOS Safari zooms the whole page when a focused form control is below
     16px. Keep every availability control at the native anti-zoom size. */
  .availability-box input.lsb-arrivo,
  .availability-box input.lsb-partenza,
  .availability-box select,
  .flatpickr-calendar input {
    font-size: 16px !important;
  }

  .flatpickr-calendar,
  .flatpickr-calendar.open {
    left: 16px !important;
    right: 16px !important;
    width: 307.875px !important;
    max-width: calc(100vw - 32px) !important;
    font-size: 14px !important;
    transform: none !important;
  }

  .flatpickr-days,
  .dayContainer {
    width: 307.875px !important;
    min-width: 307.875px !important;
    max-width: 307.875px !important;
  }

  .flatpickr-day {
    height: 36px;
    line-height: 36px;
  }
}
