@tailwind base;
@tailwind components;
@tailwind utilities;

/*

@layer components {
  .btn-primary {
    @apply py-2 px-4 bg-blue-200;
  }
}

*/
.p-1-rem {
  padding: 1rem;
}

.logo-image {
  height: 2rem;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.favorite-confetti-burst {
  position: fixed;
  z-index: 120;
  width: 0;
  height: 0;
  pointer-events: none;
}

.favorite-filled-button {
  color: #db2777 !important;
}

.favorite-confetti-piece {
  position: absolute;
  left: 0;
  top: 0;
  width: 7px;
  height: 10px;
  border-radius: 2px;
  background: var(--confetti-color);
  opacity: 0;
  animation: favorite-confetti-burst 820ms cubic-bezier(0.16, 0.7, 0.32, 1) var(--confetti-delay) both;
}

@keyframes favorite-confetti-burst {
  0% {
    opacity: 0;
    transform: translate(0, 0) rotate(0deg) scale(0.35);
  }
  12% {
    opacity: 1;
  }
  100% {
    opacity: 0;
    transform: translate(var(--confetti-x), var(--confetti-y)) rotate(var(--confetti-rotation)) scale(1);
  }
}

@media (prefers-reduced-motion: reduce) {
  .favorite-confetti-piece {
    animation: none;
  }
}
/* // https://codepen.io/danishlaeeq/pen/OJvGmaY */

.range-slider {
  margin: 20px 0;
  width: 100%;
}
.range-slider .slider {
  height: 5px;
  position: relative;
  background: #ddd;
  border-radius: 5px;
}
.range-slider .slider .progress {
  height: 100%;
  left: 0%;
  right: 0%;
  position: absolute;
  border-radius: 5px;
  background: #1cb817;
}
.range-slider .range-input {
  position: relative;
}
.range-slider .range-input input {
  position: absolute;
  width: 100%;
  height: 5px;
  top: -5px;
  background: none;
  pointer-events: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}
.range-slider input[type="range"]::-webkit-slider-thumb {
  height: 17px;
  width: 17px;
  border-radius: 50%;
  background: #1cb817;
  pointer-events: auto;
  -webkit-appearance: none;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.05);
}
.range-slider input[type="range"]::-moz-range-thumb {
  height: 17px;
  width: 17px;
  border: none;
  border-radius: 50%;
  background: #1cb817;
  pointer-events: auto;
  -moz-appearance: none;
  box-shadow: 0 0 6px rgba(0, 0, 0, 0.05);
}
.vendor-timebar { min-width: 0; max-width: 100%; position: relative; isolation: isolate; }
.vendor-timebar-scroller {
  padding-bottom: 0;
  scroll-behavior: auto;
  overscroll-behavior-x: contain;
}

.vendor-timebar-scroller::-webkit-scrollbar { height: 1.5rem; }

@supports not selector(::-webkit-scrollbar) {
  .vendor-timebar-scroller {
    scrollbar-width: auto;
    scrollbar-color: #a8a29e #f5f5f4;
  }
}
.vendor-timebar-scroller::-webkit-scrollbar-track { background: #f5f5f4; border-radius: 9999px; }
.vendor-timebar-scroller::-webkit-scrollbar-thumb {
  border: 0.1875rem solid #f5f5f4;
  border-radius: 9999px;
  background: #a8a29e;
}
.vendor-timebar-scroller::-webkit-scrollbar-thumb:hover { background: #78716c; }
.vendor-timebar-track { position: relative; }

.vendor-timebar-viewport {
  position: relative;
  margin-inline: -0.75rem;
}

.vendor-timebar-viewport::before,
.vendor-timebar-viewport::after {
  content: "";
  position: absolute;
  z-index: 5;
  top: 0;
  bottom: 1.5rem;
  width: 1.5rem;
  pointer-events: none;
  opacity: 0;
  transition: opacity 180ms ease;
}

.vendor-timebar-viewport::before { left: 0; background: linear-gradient(to right, white, transparent); }
.vendor-timebar-viewport::after { right: 0; background: linear-gradient(to left, white, transparent); }
.vendor-timebar-viewport[data-can-scroll-back="true"]::before,
.vendor-timebar-viewport[data-can-scroll-forward="true"]::after { opacity: 1; }

.vendor-timebar-track::before,
.vendor-timebar-track::after {
  content: "";
  position: absolute;
  left: 1.25rem;
  right: 1.25rem;
  bottom: 1.25rem;
  height: 2px;
  pointer-events: none;
}

.vendor-timebar-track::before { background: #e7e5e4; }
.vendor-timebar-track::after {
  right: auto;
  width: var(--timeline-progress, 0px);
  max-width: calc(100% - 2.5rem);
  background: #15803d;
  transition: width 450ms ease;
}

.vendor-timebar-stop { position: relative; padding-bottom: 0.25rem; }

.vendor-timebar-axis-node {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 1.5rem;
  height: 1.5rem;
  margin-left: 1.25rem;
  border: 2px solid #d6d3d1;
  border-radius: 9999px;
  background: white;
  color: #78716c;
  font-size: 0.625rem;
  font-weight: 700;
  transition: all 250ms ease;
}

.vendor-timebar-stop[data-state="decided"] .vendor-timebar-axis-node {
  border-color: #15803d;
  background: #15803d;
  color: white;
}

.vendor-timebar-stop[data-state="next"] .vendor-timebar-axis-node {
  border-color: #15803d;
  color: #15803d;
  animation: vendor-timebar-next 2.2s ease-in-out infinite;
}

.vendor-timebar-stop[data-state="decided"] [data-flag] { border-color: rgb(21 128 61 / 0.35); }
.vendor-timebar-stop[data-state="decided"] [data-card] { border: 4px solid #15803d; }
.vendor-timebar-stop[data-state="next"] [data-card] { box-shadow: 0 0 0 2px rgb(21 128 61 / 0.12), 0 8px 20px rgb(28 25 23 / 0.07); }

.vendor-timebar-stop [data-card],
.vendor-timebar-stop [data-flag] {
  transition: transform 450ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 450ms ease, border-color 200ms ease;
}

.vendor-timebar-stop[data-state="next"] [data-card],
.vendor-timebar-stop[data-state="next"] [data-flag] { transform: translateY(-2.0rem); }

/* The raised card and a decided card are the focus: size them to their content (up to a cap) and wrap vendor names rather than truncating them. */
.vendor-timebar-stop[data-state="next"] .vendor-category-card[data-card],
.vendor-timebar-stop[data-state="decided"] .vendor-category-card[data-card] {
  width: max-content;
  min-width: 16rem;
  max-width: 24rem;
}
.vendor-timebar-stop[data-state="next"] .vendor-timebar-vendor-name,
.vendor-timebar-stop[data-state="decided"] .vendor-timebar-vendor-name {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
  overflow-wrap: anywhere;
}

.vendor-timebar-stop [data-option] {
  max-height: 8rem;
  transition: max-height 350ms ease, margin-top 350ms ease, padding 350ms ease, border-width 350ms ease, opacity 250ms ease, visibility 0s;
}
.vendor-timebar-stop[data-state="decided"] [data-option][data-selected="false"] {
  max-height: 0;
  min-height: 0;
  margin-top: 0;
  padding: 0;
  border-width: 0;
  overflow: hidden;
  /* Keeps faded options from widening the card, since their names are hidden. */
  contain: inline-size;
  opacity: 0;
  visibility: hidden;
  transition: max-height 350ms ease, margin-top 350ms ease, padding 350ms ease, border-width 350ms ease, opacity 250ms ease, visibility 0s linear 350ms;
}

/* Confetti rain above decided stops. It lives inside the track so it scrolls with the timeline, and
   z-index -1 within the carousel's stacking context puts it behind the cards, timeline and axis. */
.vendor-timebar-rain {
  position: absolute;
  top: 0;
  bottom: 0;
  z-index: -1;
  overflow: hidden;
  pointer-events: none;
}
.vendor-timebar-rain-piece {
  position: absolute;
  top: -1rem;
  width: 0.4375rem;
  height: 0.6875rem;
  border-radius: 1px;
  background: var(--rain-color);
  opacity: 0;
  animation: vendor-timebar-rain-fall 7s linear infinite;
}
.vendor-timebar-rain-piece[hidden] { display: none; }

/* Burst from behind a newly decided card. The overlay covers the track, sits behind the cards, and clips
   pieces at the bottom of the carousel. Pieces are positioned and animated from script. */
.vendor-timebar-pop { position: absolute; inset: 0; z-index: -1; overflow: hidden; pointer-events: none; }
.vendor-timebar-pop-piece {
  position: absolute;
  width: 0.4375rem;
  height: 0.6875rem;
  margin: -0.34375rem 0 0 -0.21875rem;
  border-radius: 1px;
  background: var(--pop-color);
}

@keyframes vendor-timebar-rain-fall {
  0% { top: -1rem; opacity: 0; transform: translateX(0) rotate(0deg); }
  8% { opacity: 0.9; }
  30% { transform: translateX(var(--rain-sway)) rotate(calc(var(--rain-spin) * 0.3)); }
  60% { transform: translateX(calc(var(--rain-sway) * -0.7)) rotate(calc(var(--rain-spin) * 0.6)); }
  85% { opacity: 0.9; }
  100% { top: 100%; opacity: 0; transform: translateX(var(--rain-sway)) rotate(var(--rain-spin)); }
}

/* Confetti escaping the bottom of the timeline once the plan is complete (see confetti_escape.js). The layers sit in
   the venue page's stage, which has no stacking context of its own: the lasting layer's z-index -1 puts it above the
   page backdrop (-10) and behind all page content; right after completion the layer is in front of the content
   instead, below the site header (z-index 70), until a copy behind takes over. Each layer clips at its top edge, so
   pieces slide out from under the timeline. */
.vendor-timebar-escape {
  position: absolute;
  bottom: 0;
  overflow: hidden;
  pointer-events: none;
  transition: opacity 400ms ease;
}
.vendor-timebar-escape-behind { z-index: -1; }
.vendor-timebar-escape-front { z-index: 60; }
.vendor-timebar-escape[data-fading] { opacity: 0; }
.vendor-timebar-escape-front[data-fading="handoff"] { transition-duration: 2500ms; }

/* Same size, colours, pace and flutter as a rain piece. The fall and the flutter are separate animations, so the
   flutter keeps the rain's rhythm over the page's much longer fall. */
.vendor-timebar-escape-piece {
  position: absolute;
  top: -1rem;
  width: 0.4375rem;
  height: 0.6875rem;
  border-radius: 1px;
  background: var(--rain-color);
  opacity: 0;
  animation-name: vendor-timebar-escape-fall, vendor-timebar-escape-flutter;
  animation-timing-function: linear;
  animation-iteration-count: 1, infinite;
  animation-direction: normal, alternate;
}
.vendor-timebar-escape-piece[hidden] { display: none; }

@keyframes vendor-timebar-escape-fall {
  0% { top: -1rem; opacity: 0.9; }
  94% { opacity: 0.9; }
  100% { top: 100%; opacity: 0; }
}

/* The sway moves margin-left rather than translate, so the flutter runs on the main thread like the fall. As a
   compositor-only (translate and rotate) animation, every playback-rate change during the surge would make the browser
   restart it on the compositor, for every piece, which drops frames. */
@keyframes vendor-timebar-escape-flutter {
  0% { margin-left: 0; rotate: 0deg; }
  30% { margin-left: var(--rain-sway); rotate: calc(var(--rain-spin) * 0.3); }
  60% { margin-left: calc(var(--rain-sway) * -0.7); rotate: calc(var(--rain-spin) * 0.6); }
  100% { margin-left: var(--rain-sway); rotate: var(--rain-spin); }
}

.vendor-timebar-radio {
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  justify-content: center;
  width: 1.375rem;
  height: 1.375rem;
  padding: 0;
  border: 2px solid #d6d3d1;
  border-radius: 9999px;
  background: white;
  cursor: pointer;
  transition: border-color 150ms ease, background 150ms ease, box-shadow 150ms ease;
}

.vendor-timebar-radio:hover { border-color: #15803d; box-shadow: 0 0 0 3px rgb(21 128 61 / 0.08); }
.vendor-timebar-radio:focus-visible { outline: 2px solid #166534; outline-offset: 3px; }
.vendor-timebar-radio[aria-pressed="true"],
[aria-pressed="true"] .vendor-timebar-radio {
  border-color: #15803d;
  background: #15803d;
  box-shadow: inset 0 0 0 4px white;
}

.vendor-timebar-radio-small { width: 1rem; height: 1rem; }
.vendor-timebar-radio-small[aria-pressed="true"],
[aria-pressed="true"] .vendor-timebar-radio-small { box-shadow: inset 0 0 0 3px white; }

.vendor-timebar-option[data-selected="true"] { border-color: rgb(21 128 61 / 0.18); background: #f0fdf4; }
.vendor-timebar-option[data-selected="true"] .vendor-timebar-vendor-link { color: #166534; }
.vendor-timebar-vendor-link:focus-visible { outline: 2px solid #166534; outline-offset: 3px; border-radius: 2px; }

.vendor-timebar-flag { position: relative; }
.vendor-timebar-pennant {
  position: relative;
  background: #f5f5f4;
  color: #57534e;
  clip-path: polygon(0 0, 100% 0, 100% 100%, 50% 77%, 0 100%);
  transition: background 200ms ease, color 200ms ease;
}

.vendor-timebar-stop[data-state="decided"] .vendor-timebar-pennant { background: #dcfce7; color: #166534; }
.vendor-timebar-flag-pole { width: 2px; height: 2.25rem; margin-left: 1.9rem; background: #d6d3d1; }
.vendor-timebar-stop[data-state="decided"] .vendor-timebar-flag-pole { background: #86efac; }
.vendor-timebar-axis-end { margin-left: 0; border-color: #15803d; background: #15803d; color: white; }

/* The Event Day card is opaque (a green tint over white), so confetti passing behind it is hidden.
   Once every stop is decided, it is the raised card. */
.vendor-timebar-end-card {
  background: linear-gradient(rgb(22 101 52 / 0.04), rgb(22 101 52 / 0.04)), white;
  transition: transform 450ms cubic-bezier(0.22, 1, 0.36, 1), box-shadow 450ms ease;
}
.vendor-timebar-end[data-state="complete"] .vendor-timebar-end-card {
  transform: translateY(-2.0rem);
  box-shadow: 0 0 0 2px rgb(21 128 61 / 0.12), 0 8px 20px rgb(28 25 23 / 0.07);
}

.vendor-timebar-window-now { background: #dcfce7; color: #166534; }
.vendor-timebar-window-later { background: #f5f5f4; color: #57534e; }
.vendor-timebar-window-overdue { background: #fef3c7; color: #92400e; }

@keyframes vendor-timebar-next {
  0%, 100% { box-shadow: 0 0 0 0 rgb(21 128 61 / 0.2); }
  50% { box-shadow: 0 0 0 5px rgb(21 128 61 / 0); }
}

@media (max-width: 640px) {
  .vendor-timebar-track { gap: 1rem; }
  .vendor-timebar .vendor-category-card:not(.vendor-timebar-flag) { width: 15rem; }
}

@media (prefers-reduced-motion: reduce) {
  .vendor-timebar-scroller { scroll-behavior: auto; }
  .vendor-timebar-axis-node,
  .vendor-timebar-pennant,
  .vendor-timebar-radio { animation: none !important; transition: none !important; }
  .vendor-timebar-stop [data-card],
  .vendor-timebar-stop [data-flag],
  .vendor-timebar-end-card { transition: none !important; }
  .vendor-timebar-stop [data-option] { transition: none !important; }
  .vendor-timebar-rain,
  .vendor-timebar-pop,
  .vendor-timebar-escape { display: none; }
}
/* Distinct marker for the candidate venue on the admin review map. */
.candidate-marker {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #2563eb;
  border: 3px solid #fff;
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}
.videoWrapper {
  position: relative;
  padding-bottom: 56.25%;
  /* 16:9 */
  padding-top: 25px;
  width: 100%;
}

.videoWrapper iframe {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.vh-75 {
  height: 75vh;
}

.highlight-venue {
  background-color: yellow !important;
  border: 6px solid black !important;
}

.venue-link-block a {
  text-decoration: none;
}

.modal {
  display: flex;
  justify-content: center;
  align-items: center;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.5);
  z-index: 9999;
}

.modal-content {
  background-color: white;
  padding: 20px;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  max-width: 400px;
  width: 80%;
}

.close {
  position: absolute;
  top: 10px;
  right: 10px;
  cursor: pointer;
}



.backdrop {
  background-color: rgba(0,0,0,0.5);
}

.venue-map {
  width: 100% !important;
  height: 75vh;
}

.venue-show-map {
  height: 16rem;
}

.venue-show-map-wide {
  height: 22rem;
}

.venue-show-map-feature {
  height: 100%;
  min-height: 23rem;
}

@media (min-width: 1024px) {
  .venue-show-map-fill {
    height: 100%;
    display: flex;
    flex-direction: column;
  }
}

.venue-show-favorite form {
  margin: 0;
}

.venue-show-favorite a,
.venue-show-favorite input[type="submit"] {
  display: inline-flex;
  width: 2.5rem;
  height: 2.5rem;
  align-items: center;
  justify-content: center;
  border-radius: 9999px;
  font-size: 1.25rem;
  line-height: 1;
}

.venue-show-description p {
  margin-bottom: 1rem;
  color: rgb(87 83 78);
  font-size: inherit;
}

.venue-show-description p:last-child {
  margin-bottom: 0;
}

.venue-show-description ul,
.venue-show-description ol {
  margin: 0 0 1rem 1.25rem;
}

.venue-show-description ul {
  list-style: disc;
}

.venue-show-description ol {
  list-style: decimal;
}

.venue-map-fullscreen-fallback {
  position: fixed !important;
  inset: 0 !important;
  z-index: 100;
  width: 100vw !important;
  height: 100vh !important;
}

.venue-map-fullscreen-fallback .venue-map,
[data-geocode-address-target="mapContainer"]:fullscreen,
:fullscreen .venue-map {
  width: 100% !important;
  height: 100% !important;
  min-height: 0 !important;
}

.venue-map-controls {
  position: absolute;
  top: 0.75rem;
  right: 4rem;
  left: 0.75rem;
  z-index: 10;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  pointer-events: none;
}

.venue-map-controls > * {
  pointer-events: auto;
}

.venue-modal-container {
  width: 90vw;
  max-width: 500px;
}

@media (min-aspect-ratio: 1/1) {
  .venue-modal-container {
    width: calc(45vh * 16 / 9);
    max-width: 90vw;
  }
}

.venue-modal-inner {
  max-height: 85vh;
  overflow-y: auto;
}

.venue-modal-video {
  width: 100%;
}

.venue-modal-video .videoWrapper {
  padding-bottom: 56.25%;
  padding-top: 0;
}

.venue-modal-details {
  --venue-modal-brand: #146974;
  --venue-modal-brand-deep: #0e4d55;
  --venue-modal-brand-tint: #eaf4f5;
  --venue-modal-line: #e7e5e4;
  container: venue-modal-details / inline-size;
  padding: 1rem 1rem 1.125rem;
  text-align: center;
}

@media (min-width: 640px) {
  .venue-modal-details {
    padding: 1.25rem 1.5rem 1.375rem;
  }
}

.venue-modal-heading {
  --venue-modal-side: 3rem;
  --venue-modal-control-height: 2.75rem;
  display: grid;
  grid-template-columns: var(--venue-modal-side) minmax(0, 1fr) var(--venue-modal-side);
  align-items: center;
  column-gap: 0.5rem;
  min-height: var(--venue-modal-control-height);
}

.venue-modal-details-link,
.venue-modal-favorite button,
.venue-modal-favorite input[type="submit"],
.venue-modal-favorite a {
  border: 1px solid #d6d3d1;
  background: #fff;
  box-shadow: 0 1px 2px rgba(28, 25, 23, 0.06);
  transition: border-color 150ms ease, background-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}

/* Narrow modals: compact toolbar tiles (icon over label) leave the name room to breathe. */
.venue-modal-details-link {
  display: inline-flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.125rem;
  justify-self: start;
  box-sizing: border-box;
  width: var(--venue-modal-side);
  max-width: 100%;
  height: var(--venue-modal-control-height);
  padding: 0;
  overflow: hidden;
  border-radius: 0.75rem;
  color: #44403c;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1;
  white-space: nowrap;
}

.venue-modal-details-link:hover {
  border-color: var(--venue-modal-brand);
  color: var(--venue-modal-brand-deep);
  box-shadow: 0 2px 6px rgba(14, 77, 85, 0.14);
}

.venue-modal-details-link:focus-visible,
.venue-modal-title a:focus-visible,
.venue-modal-contact-link:focus-visible,
.venue-modal-favorite :focus-visible {
  outline: 2px solid var(--venue-modal-brand);
  outline-offset: 2px;
}

.venue-modal-details-icon {
  flex-shrink: 0;
  width: 1.125rem;
  height: 1.125rem;
  transition: transform 150ms ease;
}

.venue-modal-details-link:hover .venue-modal-details-icon {
  transform: scale(1.1);
}

.venue-modal-details-prefix {
  display: none;
}

.venue-modal-title {
  min-width: 0;
  margin: 0;
  color: var(--venue-modal-brand-deep);
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.015em;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-wrap: balance;
}

.venue-modal-title a {
  color: inherit;
  text-decoration-line: underline;
  text-decoration-color: transparent;
  text-decoration-thickness: 2px;
  text-underline-offset: 0.2em;
  transition: color 150ms ease, text-decoration-color 150ms ease;
}

.venue-modal-title a:hover {
  color: var(--venue-modal-brand);
  text-decoration-color: rgba(20, 105, 116, 0.35);
}

.venue-modal-title [aria-label="Verified Venue"] {
  margin-left: 0.3em;
  vertical-align: -0.1em;
}

.venue-modal-title [aria-label="Verified Venue"] svg {
  width: 0.9em;
  height: 0.9em;
}

.venue-modal-favorite {
  display: flex;
  justify-content: flex-end;
  justify-self: end;
}

.venue-modal-favorite .favorite-control-frame,
.venue-modal-favorite form {
  display: flex;
  margin: 0;
}

.venue-modal-favorite button,
.venue-modal-favorite input[type="submit"],
.venue-modal-favorite a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  box-sizing: border-box;
  width: var(--venue-modal-side);
  height: var(--venue-modal-control-height);
  margin: 0;
  padding: 0 0 0.0625rem;
  border-radius: 0.75rem;
  font-size: 1.375rem;
  line-height: 1;
}

.venue-modal-favorite button:hover,
.venue-modal-favorite input[type="submit"]:hover,
.venue-modal-favorite a:hover,
.venue-modal-favorite .favorite-filled-button {
  border-color: #f9a8d4;
  background: #fdf2f8;
  box-shadow: 0 2px 6px rgba(219, 39, 119, 0.14);
}

.venue-modal-contact {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.25rem 1rem;
  margin-top: 0.5rem;
  color: #57534e;
  font-size: 0.8125rem;
  line-height: 1.25rem;
}

.venue-modal-contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.375rem;
  min-width: 0;
  border-radius: 0.25rem;
  color: inherit;
  transition: color 150ms ease;
}

.venue-modal-contact-link svg {
  flex-shrink: 0;
  width: 0.9375rem;
  height: 0.9375rem;
  color: var(--venue-modal-brand);
}

.venue-modal-contact-link span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.venue-modal-contact-link:hover {
  color: var(--venue-modal-brand-deep);
}

.venue-modal-contact-link:hover span {
  text-decoration: underline;
  text-underline-offset: 0.2em;
}

.venue-modal-facts {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  margin: 0.75rem auto 0;
  overflow: hidden;
  border: 1px solid var(--venue-modal-line);
  border-radius: 0.75rem;
  background: #fafaf9;
}

.venue-modal-fact {
  padding: 0.375rem 0.75rem;
}

.venue-modal-fact + .venue-modal-fact {
  border-left: 1px solid var(--venue-modal-line);
}

.venue-modal-fact dd {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  margin: 0;
  color: #292524;
  font-size: 0.8125rem;
  font-weight: 600;
  line-height: 1.25rem;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.venue-modal-fact svg {
  flex-shrink: 0;
  width: 1rem;
  height: 1rem;
  color: var(--venue-modal-brand);
}

.venue-modal-features {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.375rem;
  max-width: 30rem;
  margin: 0.75rem auto 0;
  padding: 0;
  list-style: none;
}

.venue-modal-features > li {
  display: flex;
}

.venue-modal-feature {
  display: inline-block;
  padding: 0.1875rem 0.625rem;
  border: 1px solid transparent;
  border-radius: 9999px;
  background: var(--venue-modal-brand-tint);
  color: var(--venue-modal-brand-deep);
  font-size: 0.75rem;
  font-weight: 500;
  line-height: 1.125rem;
  transition: border-color 150ms ease, background-color 150ms ease;
}

[data-controller~="feature-tooltip"]:hover > .venue-modal-feature,
[data-controller~="feature-tooltip"]:focus-visible > .venue-modal-feature {
  border-color: var(--venue-modal-brand);
  background: #fff;
}

[data-controller~="feature-tooltip"]:focus-visible {
  outline: none;
}

.venue-modal-description {
  max-width: 34rem;
  margin: 0.75rem auto 0;
  color: #78716c;
  font-size: 0.8125rem;
  line-height: 1.375rem;
}

/* Medium modals: short "Details" pill. */
@container venue-modal-details (min-width: 26rem) {
  .venue-modal-heading {
    --venue-modal-side: 6.25rem;
    --venue-modal-control-height: 2.5rem;
    column-gap: 0.75rem;
  }

  .venue-modal-details-link {
    flex-direction: row;
    gap: 0.375rem;
    width: auto;
    padding: 0 0.875rem 0 0.75rem;
    border-radius: 9999px;
    font-size: 0.8125rem;
    letter-spacing: 0;
  }

  .venue-modal-details-icon {
    width: 1.0625rem;
    height: 1.0625rem;
  }

  .venue-modal-favorite button,
  .venue-modal-favorite input[type="submit"],
  .venue-modal-favorite a {
    width: var(--venue-modal-control-height);
    border-radius: 9999px;
  }

  .venue-modal-title {
    font-size: 1.3125rem;
  }

  .venue-modal-contact,
  .venue-modal-fact dd {
    font-size: 0.875rem;
  }

  .venue-modal-fact {
    padding: 0.4375rem 0.9375rem;
  }
}

@container venue-modal-details (min-width: 38rem) {
  .venue-modal-heading {
    --venue-modal-side: 8.5rem;
    column-gap: 1rem;
  }

  .venue-modal-details-link {
    font-size: 0.875rem;
  }

  .venue-modal-details-prefix {
    display: inline;
    white-space: pre;
  }

  .venue-modal-title {
    font-size: 1.5rem;
    line-height: 1.2;
  }
}

.venue-modal-map {
  height: 16rem;
}
/*
 * This is a manifest file that'll be compiled into application.css, which will include all the files
 * listed below.
 *
 * Any CSS (and SCSS, if configured) file within this directory, lib/assets/stylesheets, or any plugin's
 * vendor/assets/stylesheets directory can be referenced here using a relative path.
 *
 * You're free to add application-wide styles to this file and they'll appear at the bottom of the
 * compiled file so the styles you add here take precedence over styles defined in any other CSS
 * files in this directory. Styles in this file should be added after the last require_* statement.
 * It is generally better to create a new file per style scope.
 *


 */
