/* ==========================================================================
   Sloppy Canteen: location detail (/locations/<slug>/)
   Builds on the template's .section_location / .location_* / .locations-list_* classes.
   ========================================================================== */

.page-location .section_location { min-height: 0; }

/* ---------- Hero: map left, details right ---------- */
.page-location .location_component {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 4.5rem;
  place-items: center stretch;
}

.location_map { position: relative; width: 100%; }
.location_map .location_img-wrap {
  background-color: var(--ink);
  border: 2px solid var(--ink);
  border-radius: 2rem;
  box-shadow: 0.5rem 0.5rem 0 var(--ink);
  transform: rotate(-1.5deg);
}
/* the whole map opens Google Maps */
.location_map-link { position: absolute; inset: 0; z-index: 1; border-radius: inherit; }
.location_map-link:focus-visible { outline: 3px solid var(--brand); outline-offset: -0.5rem; }
/* Map attribution, always readable (the copy baked into the image gets cropped by object-fit / the scroll zoom). */
.location_map-credit {
  position: absolute; right: 0; bottom: 0; z-index: 2;
  padding: 0.4rem 1.1rem 0.4rem 0.75rem;
  border-top-left-radius: 0.75rem;
  background-color: var(--ink);
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.6875rem; line-height: 1.2; letter-spacing: 0;
}
.location_map-credit:hover { color: #fff; text-decoration: underline; }
.location_sparkle {
  position: absolute; top: -2.25rem; right: -2.5rem; z-index: 3;
  width: 4.25rem; height: auto;
  transform: rotate(14deg);
  pointer-events: none;
}

.page-location .location_content { width: 100%; }
.page-location .location_content > .label_text { margin-bottom: 0.35rem; }
.page-location .location_content > h1 { max-width: 100%; overflow-wrap: break-word; }

/* chips */
.location_tags,
.location_services { display: flex; flex-wrap: wrap; gap: 0.5rem; margin: 0; padding: 0; list-style: none; }
.location_tags { margin: 1.1rem 0 1.25rem; }
.location_tag,
.location_service {
  display: inline-flex; align-items: center;
  margin: 0; padding: 0.3rem 0.85rem;
  border: 2px solid var(--ink); border-radius: 9rem;
  background-color: #fff; color: var(--ink);
  font-size: 0.875rem; font-weight: 600; line-height: 1.25; letter-spacing: 0; white-space: nowrap;
}
.location_tag.is-new { background-color: var(--brand); }

.location_intro { max-width: 30rem; }

.page-location .locations-list_infos { gap: 0.4rem; }
.page-location .locations-list_info { gap: 0.5rem; }
.page-location .locations-list_info .icon-height-small { flex: none; width: 2rem; }
.location_phone { text-decoration: underline; text-decoration-thickness: 2px; text-underline-offset: 0.2em; text-decoration-color: var(--brand); }
.location_phone:hover { color: var(--brand-deep); }

/* opening hours */
.location_hours { width: 100%; margin-top: 2rem; }
.location_hours-title {
  font-family: var(--_typography---font-family--primary);
  font-size: 1.75rem; line-height: 1; letter-spacing: 0; text-transform: uppercase;
  margin: 0 0 0.6rem;
  filter: none;
}
.location_hours-table { width: 100%; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.location_hours-table th,
.location_hours-table td {
  padding: 0.7rem 0;
  font-size: 1.0625rem; line-height: 1.3; text-align: left; vertical-align: baseline;
}
.location_hours-table tr + tr th,
.location_hours-table tr + tr td { border-top: 1.5px dashed rgba(22, 21, 21, 0.28); }
.location_hours-table th { font-weight: 500; padding-right: 1rem; }
.location_hours-table td { font-weight: 700; text-align: right; white-space: nowrap; font-variant-numeric: tabular-nums; letter-spacing: 0; }
.location_hours-table .is-closed td { font-weight: 600; color: #5d5b57; }

/* buttons */
.location_actions,
.location_actions-group { display: flex; flex-wrap: wrap; gap: 1rem 0.9rem; }
.location_actions { margin-top: 2.25rem; padding-right: 6px; }
.location_actions .button { white-space: nowrap; font-size: 1.5rem; padding: 0.9rem 1.6rem 0.65rem; }
/* the hover "bite" scaled to fit inside the button's right padding (bite width - 12px offset < padding), so it nibbles the corner without covering the end of the label */
.location_actions .button_bite-1 { width: 1.5rem; }
.location_actions .button_bite-2 { width: 2.25rem; }

/* ---------- "Τι θα βρεις εδώ": chalkboard card ---------- */
.location_perks {
  position: relative;
  display: grid; grid-template-columns: minmax(0, 5fr) minmax(0, 6fr); gap: 2.5rem 4.5rem; align-items: start;
  margin-top: 6.5rem; padding: 3.75rem 4rem 0;
  background-color: var(--ink); color: #fff;
  border: 2px solid var(--ink); border-radius: 2rem;
  box-shadow: 0.5rem 0.5rem 0 var(--brand);
  overflow: clip;
}
.location_perks .label_text { color: var(--brand); margin-bottom: 0.5rem; }
.location_perks h2 { color: #fff; font-size: 5.5rem; line-height: 0.85; max-width: 4.2em; text-wrap: balance; }
.location_services { margin-top: 1.75rem; }
.location_service { background-color: transparent; border-color: rgba(255, 255, 255, 0.55); color: #fff; font-size: 0.9375rem; padding: 0.4rem 1rem; }

.location_checklist { margin: 0; padding: 0; list-style: none; }
.location_checklist li {
  display: grid; grid-template-columns: 1.75rem minmax(0, 1fr); gap: 1rem; align-items: start;
  margin: 0; padding: 0.95rem 0;
  font-size: 1.125rem; font-weight: 500; line-height: 1.4;
}
.location_checklist li + li { border-top: 1.5px dashed rgba(255, 255, 255, 0.24); }
.location_checklist li:first-child { padding-top: 0.25rem; }
.location_check {
  display: grid; place-items: center;
  width: 1.75rem; height: 1.75rem; margin-top: -0.1rem;
  border-radius: 50%; background-color: var(--brand); color: var(--ink);
}
.location_check svg { width: 1.05rem; height: 1.05rem; }

.location_perks-strip {
  grid-column: 1 / -1;
  width: auto; height: 10rem; margin: 0 -4rem;
  background-size: auto 10.5rem; background-position: 50% 0;
}

/* ---------- Other shops ---------- */
.location-more_component { display: grid; grid-template-columns: 1fr auto; gap: 2.75rem 2rem; align-items: end; }
.location-more_head .label_text { margin-bottom: 0.35rem; }
.location-more_head h2 { text-wrap: balance; }
.location-more_list { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 2rem; margin: 0; padding: 0; list-style: none; }
.location-more_item { margin: 0; display: flex; }
.location-more_all { grid-column: 2; grid-row: 1; padding: 0 6px 6px 0; }

.location-more_card {
  display: flex; flex-direction: column; align-items: flex-start; width: 100%;
  padding: 1.5rem 1.6rem 1.4rem;
  background-color: #fff; color: var(--ink);
  border: 2px solid var(--ink); border-radius: 1.75rem;
  box-shadow: 0.35rem 0.35rem 0 var(--ink);
  transition: transform 0.2s, box-shadow 0.2s;
}
.location-more_top { display: flex; align-items: center; justify-content: space-between; width: 100%; margin-bottom: 1.5rem; }
.location-more_pin { width: 2.5rem; height: 2.5rem; margin-left: -0.35rem; }
.location-more_name {
  font-family: var(--_typography---font-family--primary);
  font-size: 3rem; line-height: 0.9; letter-spacing: 0; text-transform: uppercase; font-weight: 400;
  margin: 0 0 0.6rem;
}
.location-more_address { font-size: 1.0625rem; font-weight: 500; line-height: 1.4; }
.location-more_cta {
  display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; width: 100%;
  margin-top: auto; padding-top: 1.1rem;
  font-family: var(--_typography---font-family--detail); font-weight: 700; font-size: 1.0625rem; letter-spacing: -0.01em; color: var(--brand-deep);
}
.location-more_card .location-more_address { padding-bottom: 1.25rem; }
.location-more_arrow {
  display: grid; place-items: center; flex: none;
  width: 2.25rem; height: 2.25rem;
  border: 2px solid var(--ink); border-radius: 50%;
  background-color: var(--paper); color: var(--ink);
  transition: background-color 0.2s, transform 0.2s;
}
.location-more_arrow svg { width: 1.1rem; height: 1.1rem; }

@media (hover: hover) and (min-width: 992px) {
  .location-more_card:hover { transform: translate(3px, 3px) rotate(0deg); box-shadow: 2px 2px 0 var(--ink); }
  .location-more_card:hover .location-more_arrow { background-color: var(--brand); transform: translateX(2px); }
}
.location-more_card:focus-visible { outline: 3px solid var(--brand-deep); outline-offset: 4px; }

@media screen and (min-width: 992px) {
  .location-more_item:nth-child(1) .location-more_card { transform: rotate(-1.2deg); }
  .location-more_item:nth-child(2) .location-more_card { transform: rotate(0.8deg); }
  .location-more_item:nth-child(3) .location-more_card { transform: rotate(-0.6deg); }
  .location-more_item .location-more_card:hover { transform: translate(3px, 3px) rotate(0deg); }
}

/* Narrow desktop + tablet: the text column is much taller than the map, so the map sticks while you read. */
@media screen and (min-width: 768px) and (max-width: 1239px) {
  .page-location .location_component { align-items: start; }
  .location_map { position: sticky; top: 2rem; }
}

/* ---------- Tablet ---------- */
@media screen and (max-width: 991px) {
  .page-location .location_component { gap: 2.5rem; }
  .location_map .location_img-wrap { border-radius: 1.5rem; box-shadow: 0.35rem 0.35rem 0 var(--ink); }
  .location_sparkle { width: 3.25rem; top: -1.75rem; right: -1.25rem; }
  .location_actions, .location_actions-group { gap: 0.8rem 0.7rem; }
  .location_actions .button { box-shadow: 4px 4px 0 var(--ink); font-size: 1.35rem; padding: 0.8rem 1.35rem 0.55rem; }
  .location_actions .button_bite-1 { width: 1.3rem; }
  .location_actions .button_bite-2 { width: 2rem; }
  .location_perks { gap: 2rem 2.5rem; margin-top: 5rem; padding: 2.75rem 2.5rem 0; }
  .location_perks h2 { font-size: 4rem; }
  .location_perks-strip { margin: 0 -2.5rem; height: 8rem; background-size: auto 8.5rem; }
  .location-more_list { gap: 1.25rem; }
  .location-more_card { padding: 1.25rem 1.25rem 1.1rem; border-radius: 1.5rem; }
  .location-more_name { font-size: 2.25rem; }
  .location-more_all .button { box-shadow: 4px 4px 0 var(--ink); }
}

/* ---------- Mobile ---------- */
@media screen and (max-width: 767px) {
  .page-location .location_component { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; }
  .location_map .location_img-wrap { aspect-ratio: 4 / 3; transform: rotate(-1deg); border-radius: 1.25rem; box-shadow: 0.3rem 0.3rem 0 var(--ink); }
  .location_sparkle { width: 2.75rem; top: -1.5rem; right: -0.5rem; }
  .page-location .location_content > h1 { font-size: 4.25rem; line-height: 0.85; }
  .location_tags { margin: 0.9rem 0 1rem; }
  .location_intro { max-width: none; }
  .page-location .locations-list_info { align-items: flex-start; }
  .page-location .locations-list_info p { padding-top: 0.3rem; }
  .location_hours { margin-top: 1.75rem; }
  .location_hours-title { font-size: 1.6rem; }
  .location_hours-table th, .location_hours-table td { font-size: 1rem; padding: 0.65rem 0; }
  .location_actions { margin-top: 1.75rem; padding-right: 4px; }
  .location_actions-group { flex: 1 1 100%; }
  .location_actions .button { flex: 1 1 auto; text-align: center; font-size: 1.4rem; padding: 0.8rem 1.25rem 0.55rem; }

  .location_perks { grid-template-columns: minmax(0, 1fr); gap: 1.5rem; margin-top: 3.75rem; padding: 2rem 1.5rem 0; border-radius: 1.5rem; box-shadow: 0.3rem 0.3rem 0 var(--brand); }
  .location_perks h2 { font-size: 3.25rem; max-width: none; }
  .location_services { margin-top: 1.25rem; gap: 0.4rem; }
  .location_service { font-size: 0.875rem; padding: 0.35rem 0.8rem; }
  .location_checklist li { font-size: 1rem; gap: 0.8rem; padding: 0.8rem 0; }
  .location_perks-strip { margin: 0 -1.5rem; height: 6.5rem; background-size: auto 7rem; background-position: -0.5rem 0; }

  .location-more_component { grid-template-columns: minmax(0, 1fr); gap: 1.75rem; }
  .location-more_head h2 { font-size: 3rem; }
  .location-more_list { grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
  .location-more_all { grid-column: 1; grid-row: auto; padding: 0 4px 4px 0; }
  .location-more_all .button { display: block; text-align: center; font-size: 1.4rem; padding: 0.8rem 1.25rem 0.55rem; }
  .location-more_top { margin-bottom: 1rem; }
  .location-more_name { font-size: 2.5rem; }
  .location-more_card .location-more_address { padding-bottom: 1rem; }
  .location-more_cta { padding-top: 0.9rem; }
}

/* landscape phones: a wide, short map so the shop name stays near the top */
@media screen and (min-width: 480px) and (max-width: 767px) {
  .location_map .location_img-wrap { aspect-ratio: 2 / 1; }
  .location-more_list { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .location-more_item:last-child:nth-child(odd) { grid-column: 1 / -1; }
}

@media (prefers-reduced-motion: reduce) {
  .location-more_card, .location-more_arrow { transition: none; }
}
