* {
  box-sizing: border-box;
}

:root {
  --orange: #f4510b;
  --orange-dark: #df3f00;
  --black: #171717;
  --gray: #6b7280;
  --line: #e5e7eb;
  --soft: #f7f7f7;
  --white: #ffffff;
  --danger: #d93025;
  --success: #16a34a;
}


body {
  margin: 0;
  font-family: Arial, Helvetica, sans-serif;
  background: #fafafa;
  color: var(--black);
}

.site-header {
  height: 115px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--white);
  border-bottom: 3px solid var(--orange);
}

.logo {
  width: 155px;
  height: 140px;
  object-fit: contain;
}

.app {
  display: grid;
  grid-template-columns: 430px 1fr;
  gap: 22px;
  max-width: 1280px;
  margin: 22px auto;
  padding: 0 16px;
}

.panel,
.map-card {
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
  overflow: hidden;
}

.panel {
  padding: 28px;
}

.title-block h1 {
  margin: 0;
  font-size: 33px;
  letter-spacing: -1px;
}

.title-block h1 span {
  color: var(--orange);
}

.title-block p {
  margin: 10px 0 24px;
  color: var(--gray);
  font-size: 17px;
}


.pickup-block {
  position: relative;
  margin-bottom: 14px;
}

.pickup-selected {
  width: 100%;
  border: 1px solid #d1d5db;
  background: #fff;
  border-radius: 12px;
  padding: 13px 14px;
  display: grid;
  grid-template-columns: 34px 1fr 24px;
  align-items: center;
  gap: 12px;
  text-align: left;
  cursor: pointer;
  transition: 0.2s ease;
}

.pickup-selected:hover {
  border-color: var(--orange);
  box-shadow: 0 8px 18px rgba(244, 81, 11, 0.10);
}

.pickup-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #fff3ed;
}

.pickup-selected b,
.pickup-option b {
  display: block;
  font-size: 15px;
  color: var(--black);
}

.pickup-selected small,
.pickup-option small {
  display: block;
  margin-top: 3px;
  color: var(--gray);
  font-size: 13px;
}

.pickup-arrow {
  color: var(--orange);
  font-size: 24px;
  line-height: 1;
  transition: 0.2s ease;
}

.pickup-block.open .pickup-arrow {
  transform: rotate(180deg);
}

.pickup-options {
  display: none;
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% + 8px);
  background: white;
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 14px 30px rgba(0,0,0,0.14);
  padding: 8px;
  z-index: 9999;

  max-height:320px;
  overflow-y:auto;
  overscroll-behavior:contain;
  -webkit-overflow-scrolling:touch;
}

.pickup-block.open .pickup-options {
  display: block;
}

.pickup-option {
  width: 100%;
  border: none;
  background: white;
  display: grid;
  grid-template-columns: 28px 1fr;
  gap: 10px;
  align-items: center;
  text-align: left;
  padding: 12px;
  border-radius: 9px;
  cursor: pointer;
}

.pickup-option:hover {
  background: #fff3ed;
}

.pickup-option.active {
  background: #fff3ed;
}

.pickup-option.active span {
  color: var(--orange);
  font-weight: 900;
}

.primary-btn {
  width: 100%;
  border: none;
  background: linear-gradient(135deg, var(--orange), #ff6b18);
  color: white;
  padding: 16px 18px;
  border-radius: 9px;
  font-size: 17px;
  font-weight: 800;
  cursor: pointer;
  transition: 0.2s ease;
  box-shadow: 0 8px 16px rgba(244, 81, 11, 0.22);
}

.primary-btn:hover {
  transform: translateY(-1px);
  background: linear-gradient(135deg, var(--orange-dark), var(--orange));
}

.primary-btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.divider {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  gap: 14px;
  align-items: center;
  margin: 24px 0;
  color: var(--gray);
}

.divider span {
  height: 1px;
  background: var(--line);
}

.input-wrap {
  position: relative;
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #d1d5db;
  border-radius: 9px;
  padding: 0 14px;
  height: 56px;
  margin-bottom: 14px;
}

.input-wrap input {
  border: none;
  outline: none;
  width: 100%;
  font-size: 16px;
}

.select-label {
  display: block;
  margin: 0 0 8px;
  font-weight: 800;
  color: var(--black);
}

.select-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  border: 1px solid #d1d5db;
  border-radius: 9px;
  padding: 0 14px;
  height: 56px;
  margin-bottom: 14px;
  background: white;
}

.select-wrap select {
  border: none;
  outline: none;
  width: 100%;
  font-size: 16px;
  background: transparent;
  cursor: pointer;
}



.suggestions {
  display: none;
  position: absolute;
  top: 60px;
  left: 0;
  right: 0;
  background: var(--white);
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
  max-height: 260px;
  overflow-y: auto;
  z-index: 9999;
}

.suggestions.active {
  display: block;
}

.suggestion-item {
  padding: 12px 14px;
  cursor: pointer;
  border-bottom: 1px solid var(--line);
  line-height: 1.35;
}

.suggestion-item:last-child {
  border-bottom: none;
}

.suggestion-item:hover {
  background: #fff4ed;
}

.suggestion-title {
  font-weight: 800;
  color: var(--black);
  font-size: 14px;
}

.suggestion-subtitle {
  color: var(--gray);
  font-size: 13px;
  margin-top: 3px;
}

.suggestion-distance {
  color: var(--orange);
  font-size: 12px;
  margin-top: 4px;
  font-weight: 700;
}

.notice {
  margin-top: 18px;
  display: flex;
  gap: 12px;
  background: #fff8e5;
  border: 1px solid #f4d68f;
  color: #442504;
  border-radius: 10px;
  padding: 14px 16px;
  line-height: 1.5;
}

.notice p {
  margin: 0;
}

.notice.error {
  background: #fff1f1;
  border-color: #ffc7c7;
  color: var(--danger);
}

.notice.success {
  background: #ecfdf3;
  border-color: #a7f3c2;
  color: #14532d;
}

.info-card,
.support-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 16px;
  margin-top: 18px;
}

.info-card h3 {
  margin: 0 0 14px;
  font-size: 17px;
}

.row {
  display: flex;
  justify-content: space-between;
  margin: 13px 0;
  color: var(--gray);
}

.row b {
  color: var(--black);
}

.support-card {
  display: grid;
  grid-template-columns: 42px 1fr 34px;
  align-items: center;
  gap: 12px;
}

.support-card div {
  font-size: 28px;
}

.support-card p {
  margin: 0;
  line-height: 1.4;
  color: var(--gray);
}

.support-card b {
  color: var(--black);
}

.map-card {
  display: flex;
  flex-direction: column;
}

#map {
  height: 430px;
  width: 100%;
  z-index: 1;
}

.results {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 20px;
  text-align: center;
}

.metric {
  border-right: 1px solid var(--line);
}

.metric:nth-child(3) {
  border-right: none;
}

.metric .icon {
  color: var(--orange);
  font-size: 30px;
  font-weight: 800;
}

.metric p {
  margin: 8px 0;
  font-weight: 800;
}

.metric h2 {
  margin: 0;
  font-size: 32px;
  color: var(--orange);
}

.results small {
  grid-column: 1 / -1;
  margin-top: 18px;
  color: var(--gray);
  font-size: 15px;
}

.privacy {
  text-align: center;
  color: var(--gray);
  margin: 0 16px 20px;
}

footer {
  background: var(--orange);
  color: white;
  text-align: center;
  padding: 17px;
  font-size: 15px;
}

.leaflet-popup-content-wrapper {
  border-radius: 8px;
}

@media (max-width: 900px) {
  .site-header {
    height: 95px;
  }

  .logo {
    width: 125px;
  }

  .app {
    grid-template-columns: 1fr;
    margin-top: 14px;
  }

  .panel {
    padding: 22px;
  }

  .title-block h1 {
    font-size: 28px;
    text-align: center;
  }

  .title-block p {
    text-align: center;
  }

  #map {
    height: 330px;
  }

  .results {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .metric {
    border-right: none;
    border-bottom: 1px solid var(--line);
    padding-bottom: 16px;
  }

  .metric:nth-child(3) {
    border-bottom: none;
  }
}


/* Header logo + clickable phone */
.site-header {
  height: auto;
  min-height: 96px;
  display: flex;
  justify-content: center;
  align-items: center;
  background: var(--white);
  border-bottom: 3px solid var(--orange);
  padding: 10px 16px;
}

.header-inner {
  width: 100%;
  max-width: 1280px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
}

.logo-link {
  display: flex;
  align-items: center;
  text-decoration: none;
  line-height: 0;
}

.logo {
  width: 145px;
  height: 82px;
  object-fit: contain;
  object-position: left center;
  display: block;
}

.phone-link {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  text-decoration: none;
  color: var(--black);
  background: #fff3ed;
  border: 1px solid #ffd1be;
  border-radius: 14px;
  padding: 11px 15px;
  transition: 0.2s ease;
  white-space: nowrap;
}

.phone-link:hover {
  border-color: var(--orange);
  box-shadow: 0 8px 18px rgba(244, 81, 11, 0.14);
  transform: translateY(-1px);
}

.phone-icon {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: var(--orange);
  color: white;
  border-radius: 50%;
  font-size: 18px;
}

.phone-link small {
  display: block;
  color: var(--gray);
  font-size: 12px;
  margin-bottom: 2px;
}

.phone-link b {
  display: block;
  font-size: 17px;
  color: var(--black);
  letter-spacing: 0.2px;
}

@media (max-width: 900px) {
  .site-header {
    min-height: 82px;
    padding: 8px 12px;
  }

  .logo {
    width: 112px;
    height: 64px;
  }

  .phone-link {
    padding: 9px 11px;
    gap: 8px;
    border-radius: 12px;
  }

  .phone-icon {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }

  .phone-link small {
    font-size: 11px;
  }

  .phone-link b {
    font-size: 14px;
  }
}

@media (max-width: 380px) {
  .logo {
    width: 96px;
  }

  .phone-link b {
    font-size: 13px;
  }
}


/* Home page */
.home-page,
.menu-page {
  min-height: calc(100vh - 170px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 34px 16px;
}

.home-hero,
.menu-placeholder {
  width: 100%;
  max-width: 760px;
  text-align: center;
}

.home-hero h1,
.menu-placeholder h1 {
  margin: 0;
  font-size: 42px;
  letter-spacing: -1px;
}

.home-hero p,
.menu-placeholder p {
  color: var(--gray);
  font-size: 18px;
  margin: 12px auto 28px;
  max-width: 560px;
  line-height: 1.5;
}

.home-cards {
  display: grid;
  gap: 16px;
  max-width: 560px;
  margin: 0 auto;
}

.home-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 22px;
  display: grid;
  grid-template-columns: 58px 1fr 32px;
  align-items: center;
  gap: 18px;
  text-align: left;
  text-decoration: none;
  color: var(--black);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
  transition: 0.2s ease;
}

.home-card:hover {
  transform: translateY(-2px);
  border-color: var(--orange);
  box-shadow: 0 14px 30px rgba(244, 81, 11, 0.16);
}

.home-card-icon {
  width: 58px;
  height: 58px;
  display: grid;
  place-items: center;
  background: #fff3ed;
  border-radius: 16px;
  font-size: 30px;
}

.home-card h2 {
  margin: 0;
  font-size: 24px;
}

.home-card p {
  margin: 6px 0 0;
  font-size: 15px;
}

.home-card > span {
  color: var(--orange);
  font-size: 26px;
  font-weight: 900;
}

.menu-empty-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 34px 22px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
}

.menu-empty-card span {
  font-size: 48px;
}

.menu-empty-card h2 {
  margin: 14px 0 8px;
}

/* Floating action button */
.fab-nav {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 99999;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: linear-gradient(135deg, var(--orange), #ff6b18);
  color: white;
  text-decoration: none;
  border-radius: 999px;
  padding: 15px 18px;
  box-shadow: 0 12px 28px rgba(244, 81, 11, 0.35);
  font-size: 16px;
  font-weight: 900;
  transition: 0.2s ease;
  animation: fabIn 0.35s ease both;
}

.fab-nav:hover {
  transform: translateY(-2px) scale(1.02);
  box-shadow: 0 16px 34px rgba(244, 81, 11, 0.42);
}

.fab-nav span {
  font-size: 22px;
}

.fab-nav b {
  letter-spacing: 0.2px;
}

.fab-nav em {
  font-style: normal;
  opacity: 0.9;
}

@keyframes fabIn {
  from {
    opacity: 0;
    transform: translateY(18px) scale(0.94);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 900px) {
  .home-page,
  .menu-page {
    min-height: calc(100vh - 150px);
    padding: 26px 16px;
  }

  .home-hero h1,
  .menu-placeholder h1 {
    font-size: 32px;
  }

  .home-card {
    grid-template-columns: 52px 1fr 24px;
    padding: 18px;
    border-radius: 16px;
  }

  .home-card-icon {
    width: 52px;
    height: 52px;
    font-size: 27px;
  }

  .home-card h2 {
    font-size: 20px;
  }

  .fab-nav {
    right: 14px;
    bottom: 14px;
    padding: 13px 16px;
    font-size: 14px;
  }
}


/* Restaurant menu cards */
.menu-list-section {
  width: 100%;
  max-width: 980px;
  text-align: center;
}

.menu-list-section h1 {
  margin: 0;
  font-size: 42px;
  letter-spacing: -1px;
}

.menu-list-section > p {
  color: var(--gray);
  font-size: 18px;
  margin: 12px auto 28px;
  max-width: 560px;
  line-height: 1.5;
}

.restaurant-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.restaurant-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 24px 18px;
  text-decoration: none;
  color: var(--black);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
  transition: 0.2s ease;
}

.restaurant-card:hover {
  transform: translateY(-3px);
  border-color: var(--orange);
  box-shadow: 0 14px 32px rgba(244, 81, 11, 0.16);
}

.restaurant-logo {
  width: 108px;
  height: 108px;
  margin: 0 auto 16px;
  border-radius: 24px;
  background: #fff3ed;
  border: 1px solid #ffd1be;
  display: grid;
  place-items: center;
  overflow: hidden;
}

.restaurant-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

.restaurant-logo.placeholder {
  font-size: 48px;
}

.restaurant-card h2 {
  margin: 0 0 8px;
  font-size: 22px;
}

.restaurant-card p {
  margin: 0 0 14px;
  color: var(--gray);
  font-weight: 700;
}

.restaurant-card span {
  display: inline-flex;
  color: var(--orange);
  font-weight: 900;
}

@media (max-width: 900px) {
  .menu-list-section h1 {
    font-size: 32px;
  }

  .restaurant-grid {
    grid-template-columns: 1fr;
    max-width: 420px;
    margin: 0 auto;
  }

  .restaurant-card {
    display: grid;
    grid-template-columns: 82px 1fr;
    text-align: left;
    gap: 14px;
    align-items: center;
    padding: 16px;
  }

  .restaurant-logo {
    width: 82px;
    height: 82px;
    margin: 0;
    border-radius: 18px;
  }

  .restaurant-logo.placeholder {
    font-size: 38px;
  }

  .restaurant-card h2 {
    font-size: 20px;
  }

  .restaurant-card span {
    grid-column: 2;
  }
}


/* Individual restaurant menu pages */
.restaurant-page {
  min-height: calc(100vh - 170px);
  padding: 28px 16px 90px;
}

.restaurant-menu-view {
  max-width: 900px;
  margin: 0 auto;
}

.back-link {
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:10px;
  min-height:46px;
  padding:0 22px;
  background:linear-gradient(135deg,var(--orange),#ff6b18);
  color:#fff;
  text-decoration:none;
  font-size:17px;
  font-weight:700;
  border-radius:999px;
  box-shadow:0 8px 18px rgba(244,81,11,.25);
  transition:all .2s ease;
  margin-bottom:20px;
}

.restaurant-page-head {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 20px;
  display: flex;
  gap: 18px;
  align-items: center;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
  margin-bottom: 18px;
}

.restaurant-page-logo {
  width: 96px;
  height: 96px;
  border-radius: 22px;
  background: #fff3ed;
  border: 1px solid #ffd1be;
  display: grid;
  place-items: center;
  overflow: hidden;
  flex: 0 0 auto;
}

.restaurant-page-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 10px;
}

.restaurant-page-logo.placeholder {
  font-size: 44px;
}

.restaurant-page-head h1 {
  margin: 0 0 8px;
  font-size: 32px;
  letter-spacing: -0.5px;
}

.restaurant-call {
  display: inline-flex;
  color: var(--orange);
  font-weight: 900;
  text-decoration: none;
  font-size: 17px;
}

.menu-image-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 12px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.07);
  overflow: hidden;
}

.menu-image-card img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: 14px;
}

.menu-image-card.missing-menu {
  min-height: 420px;
  display: grid;
  place-items: center;
  text-align: center;
  color: var(--gray);
  background: #fff8f4;
}

.menu-image-card.missing-menu span {
  font-size: 54px;
}

.menu-image-card.missing-menu h2 {
  color: var(--black);
  margin: 14px 0 8px;
}

.menu-image-card.missing-menu p {
  line-height: 1.5;
}

@media (max-width: 900px) {
  .restaurant-page {
    padding: 20px 14px 86px;
  }

  .restaurant-page-head {
    padding: 16px;
    border-radius: 18px;
  }

  .restaurant-page-logo {
    width: 78px;
    height: 78px;
    border-radius: 18px;
  }

  .restaurant-page-logo.placeholder {
    font-size: 36px;
  }

  .restaurant-page-head h1 {
    font-size: 24px;
  }

  .restaurant-call {
    font-size: 15px;
  }

  .menu-image-card {
    padding: 8px;
    border-radius: 18px;
  }

  .menu-image-card img {
    border-radius: 12px;
  }
  
    .restaurant-card {
    grid-template-columns: 82px 1fr;
  }

  .restaurant-card p {
    grid-column: 1;
    white-space: nowrap;
    font-size: 14px;
    margin: 0;
  }

  .restaurant-card > span {
    grid-column: 2;
    grid-row: 2;
    justify-self: end;
    white-space: nowrap;
    margin: 0;
  }
}

@media(max-width:900px){.pickup-options{max-height:50vh;}}




/* Temporary menu-under-construction page */
.maintenance-page {
  min-height: calc(100vh - 170px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 30px 16px;
}

.maintenance-card {
  width: 100%;
  max-width: 560px;
  text-align: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 22px;
  padding: 46px 24px;
  box-shadow: 0 10px 30px rgba(0,0,0,.08);
}

.maintenance-icon {
  font-size: 58px;
  margin-bottom: 14px;
}

.maintenance-card h1 {
  margin: 0;
  font-size: 38px;
  letter-spacing: -1px;
  color: var(--black);
}

.maintenance-card p {
  color: var(--gray);
  font-size: 18px;
  margin: 12px 0 26px;
}

.maintenance-home {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  padding: 0 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--orange), #ff6b18);
  color: #fff !important;
  text-decoration: none;
  font-weight: 800;
}

@media(max-width:900px){
  .maintenance-page {
    min-height: calc(100vh - 150px);
    padding: 24px 16px;
  }
  .maintenance-card {
    padding: 38px 18px;
  }
  .maintenance-card h1 {
    font-size: 30px;
  }
}
