/* Phone refinements. Desktop styles continue to come from style.css. */
@media (max-width: 768px) {
  html { -webkit-text-size-adjust: 100%; }
  body.nav-open { overflow: hidden; }
  main, section, form, fieldset, label, .booking-card, #bookingFormWrap,
  .date-control, .phone-input, .iti, .planner-controls, .planner-output {
    min-width: 0;
    min-inline-size: 0;
  }
  input:not([type="checkbox"]):not([type="hidden"]), select, textarea {
    box-sizing: border-box;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    min-inline-size: 0;
    font-size: 16px;
    line-height: 1.4;
  }
  input[type="date"], input[type="datetime-local"], input[type="time"] {
    -webkit-appearance: none;
    appearance: none;
    display: block;
    min-width: 0;
    min-inline-size: 0;
    width: 100%;
    max-width: 100%;
    min-height: 50px;
    text-align: left;
  }
  input::-webkit-date-and-time-value {
    min-height: 1.4em;
    text-align: left;
  }
  input::-webkit-datetime-edit { padding: 0; min-width: 0; }
  input:disabled {
    opacity: 1;
    color: #536b75;
    -webkit-text-fill-color: #536b75;
    background: #f1f5f5;
  }
  .site-header { padding-left: max(16px, env(safe-area-inset-left)); padding-right: max(16px, env(safe-area-inset-right)); }
  .brand { flex: 0 1 185px; }
  .main-nav { align-items: stretch; overscroll-behavior: contain; }
  .main-nav a, .main-nav .nav-check { font-size: 15px; min-height: 48px; }
  .nav-toggle[aria-expanded="true"] { background: #eaf3f4; }
  .nav-toggle span { transition: transform 160ms ease; }
  .nav-toggle[aria-expanded="true"] span:first-child { transform: translateY(3.5px) rotate(45deg); }
  .nav-toggle[aria-expanded="true"] span:last-child { transform: translateY(-3.5px) rotate(-45deg); }
  .hero { min-height: min(740px, calc(100svh - 68px)); }
  .hero-content { padding-top: 88px; margin-bottom: 24px; }
  .hero h1 { font-size: clamp(38px, 10.5vw, 52px); line-height: 1.03; }
  .hero-copy { font-size: 15px; }
  .hero-actions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hero-actions .btn { font-size: 12px; min-height: 48px; padding: 12px 10px; }
  .hero-facts span, .confidence-strip small { font-size: 12px; }
  .hero-facts strong { font-size: 22px; }
  .section h2, .location-copy h2, .stay-copy h2 { font-size: clamp(32px, 8.8vw, 44px); line-height: 1.12; text-wrap: balance; }
  .feature-row p, .amenity small { font-size: 12px; line-height: 1.6; }
  .amenity strong { font-size: 14px; line-height: 1.35; }
  .amenity { min-height: 142px; }
  .distance-list strong { font-size: 14px; }
  .distance-list small { font-size: 12px; }
  .booking-section { padding: 52px max(12px, env(safe-area-inset-left)) 56px max(12px, env(safe-area-inset-right)); gap: 28px; }
  .booking-intro { padding: 0 6px; }
  .booking-intro h2 { font-size: clamp(34px, 9.5vw, 46px); line-height: 1.1; }
  .booking-notes { margin-top: 22px; }
  .booking-notes small { font-size: 12px; color: #c0d6da; }
  .booking-notes > div > span { flex-shrink: 0; }
  .booking-card { padding: 24px 18px; border-radius: 22px; box-shadow: 0 16px 42px #001c3033; }
  #bookingFormWrap { scroll-margin-top: 108px; }
  .booking-card-head { display: block; margin-bottom: 18px; }
  .booking-card-head small { font-size: 12px; }
  .booking-card-head h3 { font-size: clamp(28px, 7.5vw, 34px); line-height: 1.12; margin-top: 4px; }
  .booking-card-head .live-dot { display: inline-flex; align-items: center; max-width: none; margin-top: 12px; padding: 6px 10px; font-size: 11px; line-height: 1.3; white-space: normal; }
  .booking-options.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  form label { margin: 9px 0; font-size: 13px; line-height: 1.45; }
  input, select, textarea { min-height: 50px; padding: 13px 12px; border-radius: 11px; }
  textarea { min-height: 112px; resize: vertical; }
  .date-control { position: relative; display: block; max-width: 100%; margin-top: 6px; }
  .date-control input { margin-top: 0; padding-right: 34px; }
  .date-placeholder { position: absolute; top: 50%; left: 12px; transform: translateY(-50%); color: #667b83; font-size: 16px; font-weight: 400; line-height: 1.4; pointer-events: none; }
  .date-control:not(.has-value) input { color: transparent; -webkit-text-fill-color: transparent; }
  .date-control.has-value .date-placeholder { display: none; }
  .date-icon { position: absolute; right: 11px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; opacity: .65; pointer-events: none; }
  .date-control input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; padding: 0; opacity: 0; cursor: pointer; }
  .stay-calendar { padding: 12px 9px; margin: 12px 0; border-radius: 15px; background: #f8fbfa; }
  .calendar-head { gap: 8px; margin-bottom: 12px; }
  .calendar-head strong { font-size: 15px; text-align: center; }
  .calendar-head button { flex: 0 0 42px; width: 42px; height: 42px; padding: 12px; }
  .calendar-head button:disabled { opacity: .65; }
  .calendar-week { font-size: 11px; color: #61767e; }
  .calendar-week, .calendar-days { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 3px; }
  .calendar-days button { min-width: 0; min-height: 42px; padding: 3px; font-size: 13px; border-radius: 9px; }
  .calendar-days button.day-available:disabled, .calendar-days button.day-pending:disabled { color: #91a09f; opacity: 1; }
  .calendar-legend { gap: 8px 12px; font-size: 11px; color: #586f77; line-height: 1.4; }
  .calendar-legend span { font-size: 11px; }
  .calendar-legend i { flex: 0 0 7px; }
  .calendar-legend small { width: 100%; font-size: 11px; margin-left: 0; }
  .availability-status { font-size: 12px; line-height: 1.55; padding: 12px; overflow-wrap: anywhere; }
  .field-help, .field-error { font-size: 12px !important; line-height: 1.5; }
  .field-help { color: #627b7e !important; font-weight: 400 !important; }
  .phone-input { display: block; }
  .phone-input .iti { max-width: 100%; }
  .phone-input .iti input { padding-left: 54px !important; }
  .iti__dropdown-content { max-height: 45dvh; max-width: calc(100vw - 64px); }
  .iti__country-list { max-height: 32dvh; }
  .iti__country { min-height: 44px; }
  .iti__country-name, .iti__dial-code { font-size: 13px; }
  .consent { font-size: 12px; gap: 10px; align-items: flex-start; }
  .consent > span { color: #536b75; font-size: 12px; }
  .consent input { flex: 0 0 20px; width: 20px; height: 20px; min-height: 20px; padding: 0; accent-color: #0b6172; }
  .quote-box span, .quote-box small { font-size: 12px; line-height: 1.5; }
  .btn-submit { min-height: 52px; padding: 14px 16px; font-size: 14px; }
  .form-foot { font-size: 11px; color: #617780; line-height: 1.6; }
  .nearby-dialog, .planner-dialog, .lookup-dialog { width: calc(100% - 24px); max-width: calc(100% - 24px); max-height: calc(100dvh - 32px); border-radius: 22px; overflow: hidden; }
  .nearby-shell, .planner-shell, .lookup-shell { padding: 22px 18px; max-height: calc(100dvh - 32px); overflow-x: hidden; overflow-y: auto; overscroll-behavior: contain; }
  .nearby-head, .planner-head { gap: 12px; }
  .nearby-head > div, .planner-head > div { min-width: 0; }
  .nearby-head h2, .planner-head h2, .lookup-shell h2 { font-size: clamp(27px, 7.5vw, 34px); line-height: 1.12; overflow-wrap: break-word; }
  .nearby-head p, .planner-head p, .lookup-shell > p { font-size: 13px; line-height: 1.6; }
  .dialog-close { flex: 0 0 44px; width: 44px; height: 44px; padding: 12px; }
  .lookup-shell { padding-top: 26px; }
  .lookup-shell .section-kicker, .lookup-shell h2 { margin-right: 42px; }
  .lookup-shell > p { margin-right: 0; }
  .lookup-shell .dialog-close { right: 12px; top: 12px; padding: 0; font-size: 24px; }
  .nearby-filters { gap: 8px; margin-left: -18px; margin-right: -18px; padding-left: 18px; padding-right: 18px; }
  .nearby-filters button { min-height: 44px; font-size: 12px; }
  .nearby-card p, .nearby-foot p, .planner-form-note, .planner-empty p { font-size: 12px; line-height: 1.6; }
  .nearby-foot { flex-wrap: wrap; }
  .planner-form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .planner-form-grid label { display: flex; flex-direction: column; justify-content: flex-end; }
  .planner-form-grid label > select { flex: 0 0 auto; }
  .planner-money input { padding-left: 30px; }
  .planner-money b { top: 20px; }
  .planner-controls, .planner-output { padding: 16px; }
  .planner-form-grid label > span { float: none; font-size: 11px; }
  .kids-toggle strong { font-size: 13px; }
  .kids-toggle small { font-size: 12px; line-height: 1.5; }
  .planner-item { grid-template-columns: 45px minmax(0, 1fr); column-gap: 12px; }
  .planner-item-icon { display: none; }
  .planner-time strong { font-size: 13px; }
  .planner-time small, .planner-item-meta span { font-size: 10px; }
  .planner-item-body h4 { font-size: 14px; line-height: 1.4; }
  .planner-item-body > p, .planner-why p, .planner-disclaimer, .planner-item-note { font-size: 12px !important; line-height: 1.6; }
  .planner-item-meta a { min-height: 36px; display: inline-flex; align-items: center; padding: 6px 12px; font-size: 12px; }
  .planner-weather > div { min-width: 0; }
  .planner-weather h3 { font-size: 14px; line-height: 1.4; }
  .planner-weather p, .planner-weather-stats span { font-size: 11px; }
  .planner-weather-stats span { overflow-wrap: anywhere; }
  .lightbox figure { max-height: calc(100dvh - 160px); }
  .lightbox figure img { max-height: calc(100dvh - 210px); }
  .lightbox figcaption { gap: 12px; font-size: 12px; }
  .lightbox figcaption span { min-width: 0; }
  .lightbox figcaption small { flex-shrink: 0; }
  .lb-close, .lb-prev, .lb-next { width: 48px; height: 48px; }
  .rules-grid p, .legal-page p, .legal-page li { font-size: 14px; line-height: 1.65; }
  .footer-links a { display: flex; align-items: center; min-height: 44px; font-size: 13px; }
  .site-footer > p { font-size: 11px; line-height: 1.6; }
  .reservation-details dl, .guest-action-card p, .guest-danger small { font-size: 13px; }
  .btn:hover, .feature-row article:hover, .amenity:hover { transform: none; }
}

@media (min-width: 360px) and (max-width: 768px) {
  .booking-dates.form-grid.two { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
}

@media (max-width: 359px) {
  .booking-card { padding: 22px 14px; }
  .hero-actions { grid-template-columns: 1fr; }
  .hero h1 { font-size: 36px; }
  .planner-form-grid { grid-template-columns: 1fr; }
  .nearby-shell, .planner-shell, .lookup-shell { padding-left: 14px; padding-right: 14px; }
  .calendar-days button { min-height: 40px; }
}

@media (prefers-reduced-motion: reduce) {
  .nav-toggle span { transition: none; }
}
