/* Fixes layered on top of the design stylesheets.
   public/assets/styles.css and landing.css are the client's design files and are kept
   byte-identical to https://github.com/HassaanBM/tandoorilounge, so corrections live here. */

/* Mobile horizontal overflow.
   .btn sets white-space:nowrap, and grid children default to min-width:auto. A full-width
   button labelled with an email address ("Email tandooriloungetx@gmail.com", 26 unbreakable
   characters) therefore reports a min-content width wider than a phone viewport, which
   inflates the grid track and pushes the surrounding card past the right edge of the screen.
   Affects the parties, catering, reserve and order pages. */
.btn--block{min-width:0;white-space:normal;overflow-wrap:anywhere;line-height:1.25}
.fgrid>*,.fcard,.fside,.done,.done>*{min-width:0}
@media (max-width:520px){.btn--block{padding-inline:14px}}

/* Each location page shows its own map under the address. The brand page has none: addresses
   and maps belong to the location that owns them. */
.map--loc{border-radius:var(--r);overflow:hidden;background:#1a1f25;min-height:300px}
.map--loc iframe{display:block;width:100%;height:100%;min-height:300px;border:0}
/* Desktop: contact details on the left, a wider map filling the right column. The map stretches
   to the full height of the row so it reads as a panel rather than a thumbnail. */
@media (min-width:900px){
  .visit--loc{grid-template-columns:minmax(0,0.85fr) minmax(0,1.15fr);align-items:stretch}
  .visit--loc .map--loc{height:100%;min-height:460px}
  .visit--loc .map--loc iframe{min-height:460px}
}
#newsletter{margin-top:34px}

/* Location picker on a phone.
   landing.css already makes the dialog its own scroller (max-height + overflow:auto), but a touch
   never reached it: Lenis preventDefaults touchmove while it is stopped, and landing.js stopped it
   for the whole time the dialog was open. Lenis no longer runs on touch devices and the dialog
   carries data-lenis-prevent, so the remaining job here is to keep that scroll contained and to
   give the cards room on a small screen, since the two cards are taller than a phone viewport. */
.loc{overscroll-behavior:contain;-webkit-overflow-scrolling:touch}
html.lock{overflow:hidden} /* styles.css has this; landing.css does not, and the dialog needs it */
@media (max-width:520px){
  .loc{max-width:calc(100vw - 16px);max-height:calc(100dvh - 16px)}
  .loc__box{padding:24px 18px 22px;gap:12px}
  .loc__card{padding:18px 16px 16px;gap:10px}
  .loc__info{padding-top:12px;gap:8px}
}
