/* public/css/landing.css */

:root {
  --primary: #7bc8b7;
  --secondary: #91bee6;
  --accent: #f6d89e;
  --lavender: #e6d4f0;
  --surface: #fffdf9;
  --outline: #d8d8d5;
  --divider: color-mix(in srgb, var(--outline) 55%, transparent);
  --muted: #767676;
  --brand-va: #4a82b5;
  --brand-skavi: #68b1a5;
  --text: #1d1d1f;
  --white: #ffffff;

  --space-1: 4px;
  --space-2: 8px;
  --space-3: 16px;
  --space-4: 24px;
  --space-5: 32px;
  --space-6: 40px;
  --space-7: 48px;

  --motion-duration-fast: 160ms;
  --motion-easing-standard: ease;

  --icon-size-lg: 40px;
  --outro-logo-width: 48px;
  --outro-divider-height: 32px;
  --control-height: 48px;
  --content-width-sm: 480px;

  --radius-card: 20px;
  --radius-button: 16px;
  --radius-map: calc(var(--radius-card) + var(--space-2));
--map-frame-width: var(--space-1);
--map-loader-size: clamp(
  calc(var(--space-7) * 2.75),
  32vw,
  calc(var(--space-7) * 4)
);
--map-loader-foot-size: clamp(
  var(--space-3),
  4vw,
  var(--space-4)
);
  --page-width: 1080px;
  --decoration-circle-size: clamp(
  calc(var(--space-7) * 2),
  22vw,
  calc(var(--space-7) * 4)
);
--decoration-circle-offset: calc(var(--decoration-circle-size) / -2);
--decoration-map-position: calc(
  var(--space-7) * 4 + var(--space-6)
);
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  background: var(--surface);
  color: var(--text);
  font-family: Inter, system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

button,
a {
  font: inherit;
}

.share-page {
  position: relative;
overflow: hidden;
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  flex-direction: column;
  background: var(--surface);
}

.share-decoration {
  z-index: 0;
  position: absolute;
  inset: 0;
  overflow: hidden;
  pointer-events: none;
}

.share-decoration__circle {
  position: absolute;
  display: block;
  border-radius: 50%;
}

.share-header,
.share-map,
.share-cta {
  z-index: 1;
}

.share-decoration__circle--blue {
  top: var(--space-4);
  right: var(--decoration-circle-offset);
  width: var(--decoration-circle-size);
  aspect-ratio: 1;
  background: color-mix(
  in srgb,
  var(--secondary) 18%,
  var(--surface)
);
}

.share-decoration__circle--accent-left {
  top: var(--decoration-map-position);
  left: var(--decoration-circle-offset);
  width: var(--decoration-circle-size);
  aspect-ratio: 1;
  background: color-mix(
  in srgb,
  var(--accent) 28%,
  var(--surface)
);
}

.share-decoration__circle--accent-right {
  top: var(--space-2);
  right: var(--decoration-circle-offset);
  width: var(--decoration-circle-size);
  aspect-ratio: 1;
  background: color-mix(
  in srgb,
  var(--accent) 28%,
  var(--surface)
);
}

.share-header {
  background: transparent;
}

.share-header__content {
  width: min(100% - 48px, var(--page-width));
  margin: 0 auto;
  padding: 32px 0 40px;
}

.share-brand {
  font-size: 28px;
  font-weight: 700;
  letter-spacing: -0.8px;
}

.share-brand__va {
  color: var(--brand-va);
}

.share-brand__skavi {
  color: var(--brand-skavi);
}

.share-intro {
  display: flex;
  max-width: none;
  margin-top: var(--space-6);
  align-items: center;
  justify-content: space-between;
  gap: var(--space-5);
}

.share-intro__content {
  max-width: var(--content-width-sm);
}

.share-intro__title {
  margin: 0;
  font-size: clamp(34px, 5vw, 56px);
  line-height: 1.08;
  letter-spacing: -1.4px;
}

.share-intro__description {
  margin: 20px 0 0;
  color: var(--muted);
  font-size: 20px;
  line-height: 1.55;
}

.share-open-app:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 3px;
}

.share-map {
  position: relative;
  z-index: 2;
  width: min(100% - (var(--space-4) * 2), var(--page-width));
  height: min(62vh, 680px);
  min-height: 460px;
  margin: 0 auto;
  overflow: hidden;
border: var(--map-frame-width) solid
  color-mix(in srgb, var(--primary) 28%, var(--surface));
border-radius: var(--radius-map);
  background: #eef1ed;
}

.share-map__canvas {
  width: 100%;
  height: 100%;
}

.share-map__canvas--locked {
  touch-action: pan-y;
}

.share-map-loader {
  position: absolute;
  inset: 0;
  z-index: 15;
  display: grid;
  place-items: center;
  background: var(--surface);
}

.share-map-loader__ring {
  position: relative;
  width: var(--map-loader-size);
  aspect-ratio: 1;
}

.share-map-loader__foot {
  position: absolute;
  width: var(--map-loader-foot-size);
  height: auto;
  opacity: 0;
  animation: share-map-loader-step 3s linear infinite;
}

.share-map-loader__foot--1 {
  top: 0;
  left: 50%;
  transform: translateX(-50%) rotate(80deg);
  animation-delay: 0s;
}

.share-map-loader__foot--2 {
  top: 20%;
  right: 0;
  transform: rotate(145deg);
  animation-delay: 0.5s;
}

.share-map-loader__foot--3 {
  right: 0;
  bottom: 20%;
  transform: rotate(195deg);
  animation-delay: 1s;
}

.share-map-loader__foot--4 {
  bottom: 0;
  left: 50%;
  transform: translateX(-50%) rotate(260deg);
  animation-delay: 1.5s;
}

.share-map-loader__foot--5 {
  bottom: 20%;
  left: 0;
  transform: rotate(325deg);
  animation-delay: 2s;
}

.share-map-loader__foot--6 {
  top: 20%;
  left: 0;
  transform: rotate(20deg);
  animation-delay: 2.5s;
}

.share-map-loader__text {
  position: absolute;
  z-index: 1;
  width: min(52%, var(--content-width-sm));
  margin: 0;
  font-size: clamp(14px, 3.5vw, 17px);
  font-weight: 600;
  line-height: 1.4;
  text-align: center;
}

@keyframes share-map-loader-step {
  0%,
  12% {
    opacity: 0;
  }

  20% {
    opacity: 1;
  }

  52% {
    opacity: 1;
  }

  72% {
    opacity: 0;
  }

  100% {
    opacity: 0;
  }
}
.share-cta {
  position: relative;
  width: min(100% - (var(--space-4) * 2), var(--page-width));
  margin: var(--space-2) auto var(--space-7);
}

.share-cta__content {
  position: relative;
z-index: 1;
  max-width: 560px;
  margin: 0 auto;
  padding: var(--space-5) var(--space-4);
  text-align: left;
}

.share-cta__title {
  margin: 0;
  font-size: 22px;
  font-weight: 700;
  line-height: 1.3;
}

.share-cta__description {
  max-width: 420px;
  margin: var(--space-2) 0 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.5;
}

.share-cta__button {
  display: inline-flex;
  min-height: var(--control-height);
  margin-top: var(--space-3);
  padding: 0 var(--space-4);
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-button);
  background: var(--primary);
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  text-decoration: none;
}

.share-cta__button:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 3px;
}

.location-preview {
  position: absolute;
  z-index: 10;
  width: min(240px, calc(100% - 48px));
}

.location-preview__card {
  display: block;
  width: 100%;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: var(--radius-card);
  background: var(--surface);
  box-shadow:
    0 2px 6px rgb(0 0 0 / 6%),
    0 1px 2px rgb(0 0 0 / 5%);
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.location-preview__card:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 3px;
}

.location-preview__image {
  display: block;
  width: 100%;
  aspect-ratio: 4 / 3;
  object-fit: cover;
}

.location-preview__content {
  padding: 6px 12px 10px;
}

.location-preview__title {
  display: block;
  overflow: hidden;
  font-size: 22px;
  font-weight: 600;
  line-height: 1.1;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.location-preview__meta-row {
  display: flex;
  min-height: 24px;
  margin-top: 10px;
  align-items: center;
  gap: 8px;
}

.location-preview__meta {
  min-width: 0;
  overflow: hidden;
  color: rgb(0 0 0 / 54%);
  font-size: 12px;
  line-height: 1.2;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.location-preview__chevron {
  margin-left: auto;
  color: rgb(118 118 118 / 60%);
  font-size: 24px;
  line-height: 18px;
}

.location-preview__close {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  width: 32px;
  height: 32px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgb(0 0 0 / 50%);
  color: var(--white);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.location-preview__close:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 2px;
}

.location-detail-backdrop {
  position: absolute;
  inset: 0;
  z-index: 20;
  background: rgb(0 0 0 / 24%);
}

.location-detail-sheet {
  position: absolute;
  right: 16px;
  bottom: 0px;
  left: 16px;
  z-index: 30;
  width: auto;
  max-width: 640px;
  max-height: calc(100% - 16px);
  margin-inline: auto;
  overflow-y: auto;
  border-radius: 24px 24px 0 0;
  background: var(--surface);
  box-shadow: 0 8px 32px rgb(0 0 0 / 18%);
}

.location-detail__hero {
  width: 100%;
  aspect-ratio: 16 / 9;
  overflow: hidden;
  background: var(--lavender);
  position: relative;
}

.location-detail__hero-track {
  display: flex;
  width: 100%;
  height: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scroll-snap-type: x mandatory;
  scrollbar-width: none;
  overscroll-behavior-x: contain;
  -webkit-overflow-scrolling: touch;
}

.location-detail__hero-track::-webkit-scrollbar {
  display: none;
}

.location-detail__hero-slide {
  width: 100%;
  height: 100%;
  flex: 0 0 100%;
  scroll-snap-align: start;
  scroll-snap-stop: always;
}

.location-detail__hero-indicator {
  position: absolute;
  right: 50%;
  bottom: 12px;
  display: flex;
  padding: 5px 8px;
  align-items: center;
  gap: 6px;
  border-radius: 999px;
  background: rgb(0 0 0 / 28%);
  transform: translateX(50%);
}

.location-detail__hero-dot {
  width: 6px;
  height: 6px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgb(255 255 255 / 55%);
}

.location-detail__hero-dot--active {
  width: 8px;
  height: 8px;
  background: rgb(255 255 255 / 95%);
}

.location-detail__hero-image {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.location-detail__hero--placeholder {
  background: linear-gradient(
    135deg,
    var(--lavender),
    var(--secondary),
    var(--primary)
  );
}

.location-detail__content {
  width: 100%;
}

.location-detail__address {
  display: flex;
  padding: 10px 16px 6px 24px;
  align-items: flex-start;
  gap: 8px;
  font-size: 14px;
  line-height: 1.4;
}

.location-detail__address-icon {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 20px;
  line-height: 1;
}

.location-detail__section {
  margin: 20px 16px 8px;
  padding: 8px 14px;
  border: 1px solid rgb(216 216 213 / 18%);
  border-radius: 12px;
  background: #f8f5f1;
}

.location-detail__section-title {
  margin: 0 0 8px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}

.location-detail__description {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
}

.location-detail__facilities {
  margin: 20px 16px 8px;
}

.location-detail__facilities-title {
  margin: 0 0 12px;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
}

.location-detail__facilities-list {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.location-detail__facility {
  display: flex;
  width: 64px;
  align-items: center;
  flex-direction: column;
  gap: 4px;
}

.location-detail__facility-icon-circle {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: rgb(145 190 230 / 15%);
}

.location-detail__facility-icon {
  color: rgb(0 0 0 / 87%);
}

.location-detail__facility-label {
  width: 100%;
  font-size: 12px;
  line-height: 1.3;
  text-align: center;
}

.location-detail__header {
  display: flex;
  padding: 16px 12px 12px;
  align-items: center;
  gap: 12px;
}

.location-detail__heading {
  min-width: 0;
  flex: 1;
}

.location-detail__title {
  min-width: 0;
  margin: 0;
  flex: 1;
  overflow: hidden;
  font-size: 28px;
  font-weight: 800;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.location-detail__subcategory {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 16px;
  font-weight: 500;
  line-height: 1.4;
}

.location-detail__close {
  display: grid;
  width: 32px;
  height: 32px;
  flex: 0 0 32px;
  padding: 0;
  place-items: center;
  border: 0;
  border-radius: 50%;
  background: rgb(0 0 0 / 50%);
  color: var(--white);
  cursor: pointer;
  font-size: 22px;
  line-height: 1;
}

.location-detail__close:focus-visible {
  outline: 3px solid var(--secondary);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

@media (max-width: 768px) {
  .share-header__content {
    width: min(100% - 32px, var(--page-width));
    padding: var(--space-4) 0 var(--space-3);
  }

  @media (prefers-reduced-motion: reduce) {
  .share-map-loader__ring {
    animation: none;
  }
}

  .share-cta__content {
    padding: var(--space-5) var(--space-4);
  }

  .share-brand {
    font-size: 24px;
  }

.share-intro {
  align-items: flex-start;
  margin-top: var(--space-3);
  gap: var(--space-2);
}

.share-intro__content {
  min-width: 0;
  flex: 1;
}

  .share-intro__title {
    font-size: 32px;
    letter-spacing: -0.8px;
  }

  .share-intro__description {
    margin-top: var(--space-3);
    font-size: 17px;
  }

  .share-map {
    height: 58vh;
    min-height: 420px;
  }

  .location-preview {
    width: min(240px, calc(100% - 32px));
  }
}
