/* ===== Stayable shared UI: mobile menu + date search (site-ui.css) ===== */
.nav-toggle {
  display: none;
  width: 44px; height: 44px; border-radius: 50%;
  border: 1px solid rgba(31,42,53,0.12);
  background: rgba(251,248,242,0.92);
  color: #1F2A35;
  align-items: center; justify-content: center;
  cursor: pointer; padding: 0; position: relative; z-index: 102;
  -webkit-tap-highlight-color: transparent;
}
.nav-toggle span, .nav-toggle span::before, .nav-toggle span::after {
  display: block; width: 18px; height: 1.5px; background: currentColor; border-radius: 2px;
  position: relative; transition: transform .25s ease, background .2s ease;
}
.nav-toggle span::before, .nav-toggle span::after { content: ""; position: absolute; left: 0; }
.nav-toggle span::before { top: -6px; }
.nav-toggle span::after { top: 6px; }
body.nav-open .nav-toggle span { background: transparent; }
body.nav-open .nav-toggle span::before { transform: translateY(6px) rotate(45deg); }
body.nav-open .nav-toggle span::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 900px) {
  .nav-toggle { display: inline-flex; }
  body.nav-open { overflow: hidden; }
  body.nav-open .nav { background: rgba(251,248,242,0.98) !important; border-bottom-color: #E6DFD2 !important; }
  /* backdrop-filter would make the nav the containing block for the fixed menu panel */
  body.nav-open .nav { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
  .nav-toggle { flex-shrink: 0; margin-left: 12px; }
  body.nav-open .nav .nav-links {
    display: flex !important; flex-direction: column; align-items: stretch; gap: 0;
    position: fixed; left: 0; right: 0; bottom: 0; top: var(--nav-h, 88px);
    margin: 0; padding: 12px 24px 40px; list-style: none;
    background: #FBF8F2; overflow-y: auto; z-index: 101;
    -webkit-overflow-scrolling: touch;
  }
  body.nav-open .nav .nav-links li { border-bottom: 1px solid #E6DFD2; }
  body.nav-open .nav .nav-links li:last-child { border-bottom: 0; padding-top: 24px; }
  body.nav-open .nav .nav-links a {
    display: block; padding: 18px 2px; color: #1F2A35 !important;
    font-family: 'Fraunces', Georgia, serif; font-size: 24px; font-weight: 300; opacity: 1;
  }
  body.nav-open .nav .nav-links a.nav-cta {
    display: inline-block; font-family: 'Inter', system-ui, sans-serif; font-size: 15px; font-weight: 500;
    padding: 12px 22px; border: 1px solid #1F2A35; border-radius: 100px; background: transparent;
  }
}

@media (max-width: 560px) {
  .nav .nav-logo, .nav .nav-logo img { height: 56px !important; }
}

/* ===== Date + guests search bar ===== */
.stay-search {
  display: grid; grid-template-columns: 1fr 1fr 0.8fr auto; gap: 0;
  background: #fff; border: 1px solid #E6DFD2; border-radius: 18px;
  box-shadow: 0 14px 40px rgba(31,42,53,0.14);
  max-width: 820px; overflow: hidden; color: #1F2A35; text-align: left;
}
.stay-search .ss-field {
  display: flex; flex-direction: column; justify-content: center; gap: 2px;
  padding: 12px 18px; border-right: 1px solid #E6DFD2; min-width: 0; position: relative;
}
.stay-search label {
  font-size: 11px; font-weight: 600; letter-spacing: 0.12em; text-transform: uppercase; color: #5B6671;
}
.stay-search input, .stay-search select {
  font: 500 16px/1.3 'Inter', system-ui, -apple-system, sans-serif; color: #1F2A35;
  border: 0; background: transparent; padding: 2px 0; width: 100%; min-width: 0;
  -webkit-appearance: none; appearance: none; outline: none; min-height: 26px;
}
.stay-search input[type="date"]::-webkit-date-and-time-value { text-align: left; }
.stay-search input:invalid, .stay-search input.ss-empty { color: #9AA3AB; }
.stay-search select { background-image: linear-gradient(45deg, transparent 50%, #5B6671 50%), linear-gradient(135deg, #5B6671 50%, transparent 50%);
  background-position: calc(100% - 10px) 55%, calc(100% - 5px) 55%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 18px; }
.stay-search .ss-submit {
  margin: 8px; border: 0; border-radius: 12px; background: #1F2A35; color: #fff; cursor: pointer;
  font: 500 15px/1 'Inter', system-ui, sans-serif; letter-spacing: 0.02em; padding: 0 26px; min-height: 52px;
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
}
.stay-search .ss-submit:hover { background: #8E7244; }
.stay-search .ss-error { grid-column: 1 / -1; color: #9B3B2F; font-size: 13px; padding: 0 18px 12px; display: none; }
.stay-search.has-error .ss-error { display: block; }

@media (max-width: 720px) {
  .stay-search { grid-template-columns: 1fr 1fr; border-radius: 16px; }
  .stay-search .ss-field { padding: 11px 14px; border-bottom: 1px solid #E6DFD2; }
  .stay-search .ss-field:nth-child(2) { border-right: 0; }
  .stay-search .ss-guests { grid-column: 1 / -1; border-right: 0; }
  .stay-search .ss-submit { grid-column: 1 / -1; margin: 10px; min-height: 50px; font-size: 16px; }
}
