/*
Theme Name: SunVillaFlorida V208 Guest Phone Layout Fix
Theme URI: https://sunvillaflorida.com/
Author: SunVilla Florida
Description: Custom vacation rental landing page theme for SunVilla Florida.
Version: 1.17.4
Requires at least: 6.0
Text Domain: sunvilla-florida
*/

:root {
  --ink: #1e2a32;
  --muted: #64727d;
  --line: #dbe5e8;
  --blue: #1f6f8b;
  --aqua: #27a6a6;
  --sun: #f5a623;
  --sand: #f7f2ea;
  --white: #ffffff;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  color: var(--ink);
  background: var(--sand);
  line-height: 1.55;
}

a { color: inherit; text-decoration: none; }

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 16px clamp(18px, 5vw, 72px);
  background: rgba(255,255,255,.96);
  border-bottom: 1px solid var(--line);
}

.brand img {
  display: block;
  width: 180px;
  height: auto;
}

.main-nav,
.header-contact {
  display: flex;
  gap: 14px;
  align-items: center;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.main-nav .nav-book-direct {
  border-radius: 6px;
  padding: 7px 11px;
  background: var(--sun);
  color: #16384a;
}

.main-nav .nav-book-direct:hover {
  background: #f8bd4d;
}

.main-nav .nav-direct-rate {
  border-radius: 6px;
  padding: 7px 9px;
  background: var(--blue);
  color: #fff;
  white-space: nowrap;
  line-height: 1.2;
}

.main-nav .nav-direct-rate:hover {
  background: #2b819f;
}

.header-right {
  display: grid;
  gap: 8px;
  justify-items: end;
}

.button {
  display: inline-flex;
  justify-content: center;
  align-items: center;
  min-height: 42px;
  border-radius: 6px;
  padding: 10px 16px;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
}

.button.secondary {
  background: #fff;
  color: var(--blue);
  border: 1px solid var(--line);
}

.hero {
  min-height: 82vh;
  display: grid;
  align-items: end;
  padding: clamp(40px, 7vw, 96px) clamp(18px, 5vw, 72px);
  color: #fff;
  background:
    linear-gradient(90deg, rgba(7, 32, 43, .78), rgba(7, 32, 43, .34)),
    var(--home-hero-image, url("assets/lanai/20260430_192627.jpg")) center/cover;
}

.hero-inner { max-width: 760px; }

.eyebrow {
  margin: 0 0 12px;
  color: #ffe1a6;
  font-size: 14px;
  font-weight: 900;
  text-transform: uppercase;
}

h1 {
  margin: 0;
  font-size: clamp(44px, 7vw, 78px);
  line-height: 1.02;
  letter-spacing: 0;
}

.hero p {
  max-width: 650px;
  margin: 20px 0 0;
  color: #f3fbfc;
  font-size: 20px;
}

.hero-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.section {
  padding: 58px clamp(18px, 5vw, 72px);
  background: #fff;
}

.section.alt { background: var(--sand); }

.section-head {
  max-width: 780px;
  margin-bottom: 28px;
}

h2 {
  margin: 0;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.1;
}

.section-head p {
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 18px;
}

.feature {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 28px;
  align-items: center;
}

.feature img,
.room img,
.area-card img {
  width: 100%;
  display: block;
  object-fit: cover;
  border-radius: 8px;
}

.card-image {
  display: block;
}

.feature img { min-height: 380px; }

.room-grid,
.area-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.room,
.area-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.room img,
.area-card img { height: 190px; }

.area-card img {
  height: 235px;
  object-position: center center;
}

.card-content {
  padding: 18px;
  display: flex;
  flex: 1;
  flex-direction: column;
}

.card-content h3 {
  margin: 0;
  font-size: 21px;
}

.card-content p {
  margin: 10px 0 0;
  color: var(--muted);
}

.card-link {
  display: inline-flex;
  margin-top: auto;
  padding-top: 14px;
  color: var(--blue);
  font-weight: 900;
}

.quick-strip {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.quick-strip a {
  border-left: 4px solid var(--sun);
  background: #fff;
  padding: 16px;
  font-weight: 900;
  color: var(--blue);
}

.seo-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.seo-grid a {
  display: grid;
  gap: 8px;
  min-height: 138px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.seo-grid strong {
  color: var(--blue);
  font-size: 18px;
  line-height: 1.2;
}

.seo-grid span {
  color: var(--muted);
}

.contact-band {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  padding: 34px;
  border-radius: 8px;
  background: #16384a;
  color: #fff;
}

.contact-band p { color: #dbecef; margin: 10px 0 0; }

.booking-band {
  display: grid;
  grid-template-columns: minmax(0, .8fr) minmax(320px, 1.2fr);
  gap: 28px;
  align-items: start;
  padding: 34px;
  border-radius: 8px;
  background: #16384a;
  color: #fff;
}

.booking-band p {
  color: #dbecef;
  margin: 10px 0 0;
}

.booking-savings {
  color: #fff;
}

.booking-savings strong {
  color: #ffe1a6;
  font-weight: 950;
}

.booking-direct {
  font-size: 1.08rem;
  font-weight: 800;
}

.booking-trust {
  display: grid;
  gap: 8px;
  margin: 16px 0 0;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, .22);
  border-radius: 8px;
  background: rgba(255, 255, 255, .08);
  font-size: .92rem;
  line-height: 1.35;
}

.booking-trust h3 {
  margin: 0;
  color: #fff;
  font-size: 1rem;
  line-height: 1.2;
}

.booking-trust ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.booking-trust li {
  position: relative;
  padding-left: 18px;
  color: #f4fbfc;
  font-weight: 700;
}

.booking-trust li::before {
  content: "";
  position: absolute;
  left: 0;
  top: .45em;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--sun);
}

.booking-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.booking-form label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

.guest-details label {
  display: grid;
  gap: 6px;
  font-weight: 800;
}

.booking-form input,
.booking-form select,
.booking-form textarea,
.guest-details input,
.guest-details select,
.guest-details textarea {
  width: 100%;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 6px;
  padding: 11px 12px;
  color: #16384a;
  font: inherit;
}

.booking-form .field-help,
.guest-details .field-help {
  color: #dbecef;
  font-size: .78rem;
  font-weight: 650;
  line-height: 1.25;
}

.booking-form textarea {
  min-height: 92px;
  resize: vertical;
}

.booking-form .wide,
.guest-details .wide,
.booking-form .booking-status {
  grid-column: 1 / -1;
}

.date-request {
  padding: 18px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 8px;
  background: rgba(255,255,255,.1);
}

.date-request h3 {
  margin: 0;
  color: #ffe1a6;
  font-size: 22px;
  line-height: 1.2;
}

.date-request p {
  margin: 8px 0 14px;
  color: #e7f2f4;
}

.booking-calendar-layout {
  display: block;
}

.booking-calendar-column {
  min-width: 0;
}

.date-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.date-price-calendar {
  position: relative;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 28px;
  margin-top: 18px;
  padding: 20px;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
}

.calendar-nav {
  position: absolute;
  inset: 18px 18px auto 18px;
  display: flex;
  justify-content: space-between;
  pointer-events: none;
}

.calendar-nav-button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: var(--blue);
  font-size: 32px;
  line-height: 1;
  cursor: pointer;
  pointer-events: auto;
}

.calendar-nav-button:disabled {
  color: #a9b7bd;
  cursor: not-allowed;
  opacity: .45;
}

.calendar-nav-bottom {
  display: none;
}

.calendar-month h4 {
  margin: 0 0 18px;
  font-size: 26px;
  font-weight: 500;
  line-height: 1.15;
  text-align: center;
}

.calendar-weekdays,
.calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.calendar-weekdays {
  margin-bottom: 10px;
  color: #111;
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.calendar-day {
  min-height: 54px;
  border: 0;
  border-radius: 3px;
  padding: 7px 4px 5px;
  background: #f7f7f7;
  color: #53606a;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.calendar-day.is-empty {
  background: transparent;
  cursor: default;
}

.calendar-day.is-past {
  background: #eef2f3;
  color: #a8b2b8;
  cursor: not-allowed;
  opacity: .72;
}

.calendar-day.is-in-range {
  background: #0f487a;
  color: #fff;
}

.calendar-day.is-selected {
  background: #0f487a;
  color: #fff;
}

.calendar-date,
.calendar-price {
  display: block;
}

.calendar-date {
  font-size: 14px;
  line-height: 1.1;
}

.calendar-price {
  margin-top: 5px;
  font-size: 11px;
  font-weight: 800;
}

.selected-date-summary {
  margin-top: 14px;
  color: #ffe1a6;
  font-weight: 900;
}

.guest-details {
  padding: 14px;
  border: 1px solid rgba(255,255,255,.3);
  border-radius: 8px;
  background: rgba(255,255,255,.08);
}

.guest-details h3 {
  margin: 0 0 10px;
  color: #ffe1a6;
  font-size: 20px;
  line-height: 1.2;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 8px;
  align-items: start;
}

.detail-name {
  grid-column: span 3;
}

.guest-count {
  grid-column: span 4;
}

.detail-country {
  grid-column: 7 / span 3;
}

.detail-phone {
  grid-column: span 3;
  max-width: 250px;
}

.detail-email {
  grid-column: span 6;
}

.booking-verification {
  display: grid;
  grid-template-columns: minmax(10ch, max-content) auto auto;
  gap: 12px;
  align-items: end;
  margin-top: 12px;
  margin-bottom: 14px;
  padding: 16px;
  border: 2px solid #ffe1a6;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 12px 24px rgba(0,0,0,.18);
}

.booking-verification[hidden] {
  display: none;
}

.booking-verification p {
  grid-column: 1 / -1;
  margin: 0;
  color: #b91c1c;
  font-size: .95rem;
  font-weight: 800;
  line-height: 1.35;
}

.booking-verification label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-weight: 850;
}

.booking-verification input {
  width: 10ch;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 11px 12px;
  color: var(--ink);
  font: inherit;
}

.booking-options {
  grid-column: 1 / -1;
}

.guest-count,
.booking-options {
  display: grid;
  gap: 6px;
  margin: 0;
  border: 0;
  padding: 0;
}

.guest-count {
  grid-template-columns: repeat(2, minmax(82px, 1fr));
  align-items: start;
  justify-content: start;
  align-self: start;
  column-gap: 8px;
  row-gap: 4px;
}

.guest-count legend,
.booking-options legend {
  grid-column: 1 / -1;
  color: #ffe1a6;
  font-weight: 900;
  font-size: .92rem;
}

.guest-count legend {
  margin: 0;
  line-height: 1.2;
}

.guest-count label {
  display: flex;
  gap: 5px;
  align-items: center;
  font-size: .86rem;
  font-weight: 800;
}

.guest-count input {
  width: 48px;
  flex: 0 0 48px;
  padding: 5px 6px;
  text-align: center;
}

.guest-count input::-webkit-outer-spin-button,
.guest-count input::-webkit-inner-spin-button {
  margin: 0;
  -webkit-appearance: none;
}

.guest-details label {
  gap: 5px;
  font-size: .9rem;
}

.guest-details input,
.guest-details select {
  height: 34px;
  min-height: 34px;
  padding: 6px 9px;
}

.phone-entry {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: stretch;
  max-width: 235px;
}

.phone-prefix {
  display: flex;
  align-items: center;
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid rgba(255,255,255,.45);
  border-right: 0;
  border-radius: 6px 0 0 6px;
  background: rgba(255,255,255,.15);
  color: #ffe1a6;
  font-weight: 900;
}

.phone-entry input {
  border-radius: 0 6px 6px 0;
  min-width: 0;
}

.detail-phone .field-help {
  max-width: 235px;
}

.booking-options {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.booking-options label {
  display: flex;
  gap: 6px;
  align-items: center;
  min-height: 34px;
  border: 1px solid rgba(255,255,255,.28);
  border-radius: 6px;
  padding: 6px 8px;
  font-size: .86rem;
  font-weight: 700;
}

.booking-options input[type="checkbox"] {
  width: 16px;
  height: 16px;
  flex: 0 0 auto;
}

.booking-options-note {
  grid-column: 1 / -1;
  margin: 0;
  color: #ffe1a6;
  font-size: 13px;
  font-weight: 800;
}

.booking-side-panel[hidden],
.guest-details[hidden] {
  display: none;
}

.booking-side-panel {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 12px 14px;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  box-shadow: 0 10px 22px rgba(0,0,0,.14);
}

.booking-side-panel h2 {
  margin: 0;
  font-size: clamp(20px, 2.3vw, 26px);
  line-height: 1.12;
}

.booking-side-panel p {
  margin: 0;
  color: var(--muted);
  font-size: .95rem;
  font-weight: 750;
  line-height: 1.35;
}

.booking-estimate-total {
  display: block;
  color: var(--ink);
  font-size: 1rem;
  font-weight: 850;
}

.booking-estimate-note {
  display: block;
  margin-top: 4px;
  font-size: .78rem;
  font-weight: 650;
  line-height: 1.25;
}

.booking-side-panel.is-warning {
  border-left: 6px solid #d85a32;
  background: #fff8f1;
}

.booking-side-panel.is-warning h2 {
  color: #8f2d16;
}

.booking-side-panel.is-warning #continueBookingButton {
  display: none !important;
}

.booking-side-panel.is-checking {
  justify-items: center;
  text-align: center;
}

.booking-side-panel.is-checking h2,
.booking-side-panel.is-checking p {
  color: var(--ink);
}

.availability-spinner {
  display: block;
  width: 180px;
  max-width: 100%;
  height: auto;
  margin: 2px auto 0;
}

.booking-form .hidden-field {
  position: absolute;
  left: -9999px;
}

.booking-form button {
  width: fit-content;
  border: 0;
  min-height: 46px;
  position: relative;
  z-index: 2;
  touch-action: manipulation;
  -webkit-tap-highlight-color: rgba(245, 166, 35, .28);
}

.booking-status {
  min-height: 22px;
  color: #ffe1a6;
  font-weight: 800;
}

.subhero {
  min-height: 56vh;
  display: grid;
  align-items: end;
  padding: clamp(48px, 8vw, 104px) clamp(18px, 5vw, 72px);
  color: #fff;
  background: linear-gradient(90deg, rgba(7, 32, 43, .78), rgba(7, 32, 43, .28)), var(--hero-image) center/cover;
}

.subhero-inner { max-width: 820px; }

.subhero p {
  max-width: 680px;
  margin: 18px 0 0;
  color: #f3fbfc;
  font-size: 20px;
}

.content-wrap {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 34px;
  align-items: start;
}

.copy p,
.info-list li {
  color: var(--muted);
  font-size: 18px;
}

.copy p { margin: 0 0 18px; }

.info-box {
  border-left: 4px solid var(--sun);
  background: var(--sand);
  padding: 22px;
}

.info-box h3 {
  margin: 0 0 12px;
  font-size: 22px;
}

.info-list {
  margin: 0;
  padding-left: 20px;
}

.gallery {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.gallery-beaches {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.gallery figure {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.gallery img {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  height: 340px;
  object-fit: cover;
  object-position: center center;
}

.gallery figcaption {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.gallery-beaches img {
  height: 190px;
}

.gallery-beaches figcaption {
  padding: 10px 12px;
}

.gallery-beaches figure:nth-child(5) img {
  object-fit: contain;
  background: #eef6f4;
}

.gallery-parks-nature figure:nth-child(2) img,
.gallery-parks-nature figure:nth-child(4) img {
  object-fit: contain;
  background: #eef6f4;
}

.editable-content {
  max-width: 1100px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.editable-content > :not(.wp-block-image) {
  grid-column: 1 / -1;
}

.editable-content > *:first-child {
  margin-top: 0;
}

.editable-content > *:last-child {
  margin-bottom: 0;
}

.editable-content p {
  max-width: 780px;
  color: var(--muted);
  font-size: 18px;
}

.editable-content img {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
}

.editable-content .wp-block-image {
  margin: 0;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.editable-content .wp-block-image figcaption {
  padding: 12px 14px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
}

.home-editable h3 {
  margin-top: 42px;
}

.home-editable .wp-block-image img {
  width: 100%;
  max-height: 420px;
  object-fit: cover;
}

.home-editable .wp-block-button__link {
  border-radius: 6px;
  background: var(--blue);
  color: #fff;
  font-weight: 900;
}

.sunvilla-anchor {
  display: block;
  scroll-margin-top: 110px;
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px clamp(18px, 5vw, 72px);
  background: #fff;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 14px;
}

.footer-brand,
.footer-seo-links {
  display: flex;
  gap: 12px;
  align-items: center;
  flex-wrap: wrap;
}

.footer-seo-links {
  justify-content: flex-end;
}

.footer-seo-links a {
  color: var(--blue);
  font-weight: 800;
}

@media (max-width: 880px) {
  .topbar,
  .site-footer,
  .contact-band {
    align-items: flex-start;
    flex-direction: column;
  }

  .main-nav,
  .header-contact {
    flex-wrap: wrap;
  }

  .header-right {
    justify-items: start;
  }

  .feature,
  .room-grid,
  .area-grid,
  .quick-strip,
  .seo-grid,
  .content-wrap,
  .gallery,
  .editable-content,
  .booking-band,
  .booking-form {
    grid-template-columns: 1fr;
  }

  .booking-band {
    gap: 18px;
    padding: 24px 18px;
  }

  .booking-savings {
    font-size: 1.25rem;
    line-height: 1.15;
  }

  .booking-direct,
  .booking-band p {
    font-size: .95rem;
    line-height: 1.35;
  }

  .booking-trust {
    gap: 6px;
    margin-top: 12px;
    padding: 12px;
    font-size: .84rem;
    line-height: 1.3;
  }

  .booking-trust h3 {
    font-size: .92rem;
  }

  .booking-trust ul {
    gap: 5px;
  }

  .booking-side-panel {
    gap: 6px;
    margin-top: 10px;
    padding: 10px 12px;
  }

  .booking-side-panel h2 {
    font-size: 1.12rem;
    line-height: 1.15;
  }

  .booking-side-panel p {
    font-size: .84rem;
    line-height: 1.3;
  }

  .booking-estimate-total {
    font-size: .92rem;
  }

  .booking-estimate-note {
    font-size: .72rem;
    line-height: 1.22;
  }

  .gallery img {
    height: 285px;
  }

  .gallery-beaches {
    grid-template-columns: 1fr;
  }

  .date-grid {
    grid-template-columns: 1fr;
  }

  .date-price-calendar {
    grid-template-columns: 1fr;
    gap: 18px;
    padding: 16px;
  }

  .calendar-nav-top {
    position: static;
    display: flex;
    grid-column: 1 / -1;
    justify-content: space-between;
    margin: -4px 0 -2px;
    pointer-events: none;
  }

  .calendar-nav-top .calendar-nav-button {
    background: #eef7f8;
  }

  .calendar-nav-bottom {
    position: static;
    display: flex;
    grid-column: 1 / -1;
    justify-content: space-between;
    margin-top: 0;
    pointer-events: none;
  }

  .calendar-nav-bottom .calendar-nav-button {
    background: #eef7f8;
  }

  .calendar-month h4 {
    font-size: 22px;
  }

  .calendar-weekdays,
  .calendar-days {
    gap: 5px;
  }

  .calendar-day {
    min-height: 50px;
    padding: 6px 3px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-name,
  .detail-country,
  .detail-phone,
  .detail-email,
  .booking-verification,
  .guest-count,
  .booking-options {
    grid-column: 1 / -1;
  }

  .booking-verification {
    grid-template-columns: 1fr;
    padding: 14px;
  }

  .guest-count {
    justify-content: start;
  }

  .booking-options {
    grid-template-columns: 1fr;
  }

  #bookingSubmitButton {
    width: 100%;
    justify-content: center;
  }
}
