:root {
  --echoo-detail-bg: #10100f;
  --echoo-detail-paper: #f7f2e9;
  --echoo-detail-ink: #f8f5ef;
  --echoo-detail-muted: rgba(248, 245, 239, 0.62);
  --echoo-detail-line: rgba(248, 245, 239, 0.1);
  --echoo-detail-accent: #f3d1a1;
}

.echoo-place-detail {
  background: var(--echoo-detail-bg);
  color: var(--echoo-detail-ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  overflow: hidden;
}

.echoo-place-hero {
  position: relative;
  aspect-ratio: 16 / 11;
  min-height: 260px;
  overflow: hidden;
  background: #1a1917;
}

.echoo-place-hero-image {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  transition: opacity 180ms ease;
}

.echoo-place-hero-fallback {
  width: 100%;
  height: 100%;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.07), rgba(255, 255, 255, 0)),
    linear-gradient(180deg, #24211e 0%, #171513 100%);
}

.echoo-place-hero-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(8, 8, 7, 0.18), rgba(8, 8, 7, 0.05) 42%, rgba(8, 8, 7, 0.86));
  pointer-events: none;
}

.echoo-place-close {
  position: absolute;
  top: 14px;
  right: 14px;
  min-width: 56px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(12, 12, 11, 0.62);
  color: #fff;
  font: inherit;
  font-size: 12px;
  font-weight: 700;
  backdrop-filter: blur(12px);
}

.echoo-place-hero-copy {
  position: absolute;
  z-index: 1;
  right: 20px;
  bottom: 16px;
  left: 20px;
}

.echoo-place-hero-copy h1,
.echoo-place-unavailable h2 {
  margin: 0;
  color: #fff;
  font-size: 32px;
  font-weight: 780;
  line-height: 1.02;
  letter-spacing: 0;
  text-wrap: balance;
  overflow-wrap: anywhere;
}

.echoo-place-hero-address {
  margin: 8px 0 0;
  color: rgba(248, 245, 239, 0.78);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.echoo-place-preview-flag {
  margin: 0 0 6px;
  color: rgba(248, 245, 239, 0.86);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: uppercase;
}

.echoo-place-preview-banner {
  margin: 0;
  color: var(--echoo-detail-muted);
  font-size: 12px;
  line-height: 1.45;
}

.echoo-place-body {
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 18px 20px calc(28px + env(safe-area-inset-bottom));
}

.echoo-place-eyebrow {
  margin: 0;
  color: var(--echoo-detail-accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.13em;
  line-height: 1.2;
  text-transform: uppercase;
}

.echoo-place-location-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  color: rgba(248, 245, 239, 0.82);
  font-size: 13px;
  line-height: 1.45;
}

.echoo-place-open-status {
  color: var(--echoo-detail-accent);
  font-weight: 700;
}

.echoo-place-section {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.echoo-place-summary {
  margin: 0;
  color: rgba(248, 245, 239, 0.8);
  font-size: 15px;
  line-height: 1.52;
  overflow-wrap: anywhere;
}

.echoo-place-section-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.echoo-place-section-heading > span,
.echoo-place-photo-credit {
  margin: 0;
  color: var(--echoo-detail-muted);
  font-size: 11px;
}

.echoo-place-gallery {
  display: grid;
  grid-auto-columns: minmax(154px, 44vw);
  grid-auto-flow: column;
  gap: 9px;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  scroll-snap-type: inline mandatory;
  scrollbar-width: none;
}

.echoo-place-gallery::-webkit-scrollbar { display: none; }

.echoo-place-gallery-item {
  aspect-ratio: 4 / 3;
  padding: 0;
  overflow: hidden;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #22211f;
  cursor: pointer;
  scroll-snap-align: start;
}

.echoo-place-gallery-item.active { border-color: var(--echoo-detail-accent); }

.echoo-place-gallery-item img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.echoo-place-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  padding-top: 2px;
}

.echoo-place-fact {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding-top: 10px;
  border-top: 1px solid var(--echoo-detail-line);
}

.echoo-place-fact span {
  color: var(--echoo-detail-accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.12em;
  line-height: 1.2;
  text-transform: uppercase;
}

.echoo-place-fact strong {
  color: #fff;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

/* Setting display section: clean, high contrast text without labels */
.echoo-place-setting-section {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 2px;
}

.echoo-place-setting-values {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.echoo-place-setting-text {
  color: #ffffff;
  font-size: 15px;
  font-weight: 600;
  line-height: 1.4;
  letter-spacing: -0.01em;
  overflow-wrap: anywhere;
}

.echoo-place-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.echoo-place-tag-row span {
  padding: 7px 10px;
  border: 1px solid var(--echoo-detail-line);
  border-radius: 999px;
  color: rgba(248, 245, 239, 0.82);
  font-size: 12px;
  font-weight: 650;
}

.echoo-place-hours-list {
  display: grid;
  gap: 1px;
  overflow: hidden;
  border: 1px solid var(--echoo-detail-line);
  border-radius: 14px;
  background: var(--echoo-detail-line);
}

.echoo-place-hours-row {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 11px 12px;
  background: var(--echoo-detail-bg);
  color: var(--echoo-detail-muted);
  font-size: 13px;
  overflow-wrap: anywhere;
}

.echoo-place-hours-row strong { color: #fff; font-weight: 650; }
.echoo-place-hours-row.active { background: rgba(243, 209, 161, 0.09); color: var(--echoo-detail-accent); }
.echoo-place-hours-row.active strong { color: var(--echoo-detail-accent); }

.echoo-place-source-line {
  display: flex;
  flex-wrap: wrap;
  gap: 5px 10px;
  padding-top: 2px;
  color: var(--echoo-detail-muted);
  font-size: 11px;
}

.echoo-place-source-line span + span::before {
  content: "·";
  margin-right: 10px;
  color: rgba(248, 245, 239, 0.35);
}

.echoo-uber-card {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 13px 0;
  border-top: 1px solid var(--echoo-detail-line);
  border-bottom: 1px solid var(--echoo-detail-line);
}

.echoo-uber-card-copy {
  min-width: 0;
}

.echoo-uber-car {
  width: 28px;
  height: 28px;
  display: grid;
  flex: 0 0 auto;
  place-items: center;
  color: rgba(248, 245, 239, 0.74);
}

.echoo-uber-car svg {
  width: 19px;
  height: 19px;
  fill: currentColor;
}

.echoo-uber-card-copy p,
.echoo-uber-card-copy strong {
  display: block;
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.echoo-uber-card-copy p {
  color: rgba(248, 245, 239, 0.54);
  font-size: 10px;
  font-weight: 760;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.echoo-uber-card-copy strong {
  margin-top: 3px;
  color: #fff;
  font-size: 14px;
  font-weight: 680;
}

.echoo-uber-button {
  display: inline-flex;
  min-height: 30px;
  align-items: center;
  gap: 5px;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--echoo-detail-accent);
  font: inherit;
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
}

.echoo-uber-button svg {
  width: 14px;
  height: 14px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 1.6;
}

.echoo-uber-button:hover,
.echoo-uber-button:focus-visible { color: #fff; }

.echoo-uber-button:focus-visible,
.echoo-place-btn-primary:focus-visible,
.echoo-place-btn-secondary:focus-visible {
  outline: 1px solid var(--echoo-detail-accent);
  outline-offset: 3px;
}

.echoo-place-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  overflow: hidden;
  border-top: 1px solid var(--echoo-detail-line);
  border-bottom: 1px solid var(--echoo-detail-line);
}

.echoo-place-btn-primary,
.echoo-place-btn-secondary {
  min-height: 48px;
  padding: 0 1px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: rgba(248, 245, 239, 0.8);
  font: inherit;
  font-size: 12px;
  font-weight: 720;
  text-align: left;
  text-decoration: none;
  display: inline-flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.echoo-place-btn-primary {
  padding-right: 14px;
  border-right: 1px solid var(--echoo-detail-line);
}

.echoo-place-btn-secondary { padding-left: 14px; }

.echoo-place-btn-primary:hover,
.echoo-place-btn-secondary:hover { color: #fff; }

.echoo-place-stay-trigger {
  display: flex;
  width: 100%;
  min-height: 54px;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: -6px;
  padding: 0;
  border: 0;
  border-bottom: 1px solid var(--echoo-detail-line);
  background: transparent;
  color: #fff;
  font: inherit;
  text-align: left;
}

.echoo-place-stay-trigger > span:first-child {
  font-size: 13px;
  font-weight: 730;
}

.echoo-place-stay-trigger > span:last-child {
  color: var(--echoo-detail-muted);
  font-size: 11px;
  font-weight: 620;
  text-align: right;
}

.echoo-place-stay-trigger i {
  margin-left: 4px;
  color: var(--echoo-detail-accent);
  font-size: 14px;
  font-style: normal;
}

.echoo-place-stay-trigger:hover > span:first-child,
.echoo-place-stay-trigger:focus-visible > span:first-child { color: var(--echoo-detail-accent); }

.echoo-place-unavailable {
  min-height: 260px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
  gap: 12px;
  padding: 32px 24px calc(36px + env(safe-area-inset-bottom));
}

.echoo-place-unavailable-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(243, 209, 161, 0.35);
  border-radius: 50%;
  color: var(--echoo-detail-accent);
  font-size: 15px;
  font-weight: 800;
}

.echoo-place-unavailable h2 {
  font-size: 28px;
  line-height: 1.04;
  letter-spacing: 0;
}
.echoo-place-unavailable > p:not(.echoo-place-eyebrow) {
  margin: 0 0 8px;
  color: var(--echoo-detail-muted);
  font-size: 14px;
  line-height: 1.5;
  overflow-wrap: anywhere;
}
.echoo-place-unavailable .echoo-place-actions { width: 100%; margin-top: 8px; }

/* Native Quick Plan: a compact planner that sits above place detail, without
   taking the person into the companion chat. */
.echoo-quick-plan-modal {
  position: fixed;
  z-index: 110;
  inset: 0;
  display: flex;
  justify-content: center;
  align-items: flex-end;
  pointer-events: none;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.echoo-quick-plan-modal[aria-hidden="false"] { pointer-events: auto; }

.echoo-quick-plan-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(4, 4, 3, 0.65);
  opacity: 0;
  backdrop-filter: blur(8px);
  transition: opacity 180ms ease;
}

.echoo-quick-plan-modal[aria-hidden="false"] .echoo-quick-plan-backdrop { opacity: 1; }

.echoo-quick-plan-sheet {
  position: relative;
  width: min(100%, 430px);
  max-height: min(86dvh, 760px);
  overflow: auto;
  overscroll-behavior: contain;
  padding: 10px 20px calc(24px + env(safe-area-inset-bottom));
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-bottom: 0;
  border-radius: 26px 26px 0 0;
  background:
    radial-gradient(circle at 84% 0%, rgba(243, 209, 161, 0.17), transparent 32%),
    #151412;
  box-shadow: 0 -22px 50px rgba(0, 0, 0, 0.45);
  color: #f8f5ef;
  transform: translateY(104%);
  transition: transform 260ms cubic-bezier(.2, .9, .24, 1);
}

.echoo-quick-plan-modal[aria-hidden="false"] .echoo-quick-plan-sheet { transform: translateY(0); }

.echoo-quick-plan-handle {
  width: 38px;
  height: 4px;
  margin: 2px auto 16px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.23);
}

.echoo-quick-plan-topline,
.echoo-quick-plan-heading,
.echoo-quick-plan-route-meta,
.echoo-quick-plan-stop-head,
.echoo-quick-plan-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.echoo-quick-plan-kicker {
  margin: 0;
  color: var(--echoo-detail-accent);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: .13em;
  text-transform: uppercase;
}

.echoo-quick-plan-close {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 1px solid rgba(255,255,255,.13);
  border-radius: 50%;
  background: rgba(255,255,255,.06);
  color: #fff;
  font-size: 20px;
  line-height: 1;
}

.echoo-quick-plan-heading { align-items: flex-start; margin: 8px 0 15px; }
.echoo-quick-plan-heading h2 {
  max-width: 290px;
  margin: 0;
  color: #fff;
  font-size: 25px;
  line-height: 1.05;
  letter-spacing: -.035em;
}
.echoo-quick-plan-heading p {
  margin: 6px 0 0;
  color: rgba(248,245,239,.65);
  font-size: 13px;
  line-height: 1.4;
}

.echoo-quick-plan-controls {
  display: grid;
  gap: 9px;
  margin: 0 0 16px;
}

.echoo-quick-plan-control-row {
  display: flex;
  gap: 7px;
  overflow-x: auto;
  scrollbar-width: none;
}
.echoo-quick-plan-control-row::-webkit-scrollbar { display: none; }

.echoo-quick-plan-choice {
  flex: 0 0 auto;
  min-height: 35px;
  padding: 0 12px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 999px;
  background: rgba(255,255,255,.045);
  color: rgba(248,245,239,.75);
  font: inherit;
  font-size: 12px;
  font-weight: 730;
}
.echoo-quick-plan-choice[aria-pressed="true"] {
  border-color: rgba(243,209,161,.82);
  background: #f3d1a1;
  color: #211a14;
}

.echoo-quick-plan-stay-button {
  display: flex;
  width: 100%;
  min-height: 44px;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 0 13px;
  border: 1px solid rgba(243,209,161,.32);
  border-radius: 13px;
  background: rgba(243,209,161,.08);
  color: #f3d1a1;
  font: inherit;
  font-size: 12px;
  font-weight: 720;
  text-align: left;
}

.echoo-quick-plan-stay-button:hover,
.echoo-quick-plan-stay-button:focus-visible {
  border-color: rgba(243,209,161,.78);
  color: #fff;
}

.echoo-quick-plan-loading {
  display: grid;
  gap: 10px;
  padding: 13px 0 4px;
}
.echoo-quick-plan-loading-label { color: rgba(248,245,239,.7); font-size: 13px; }
.echoo-quick-plan-skeleton {
  height: 76px;
  border-radius: 16px;
  background: linear-gradient(100deg, rgba(255,255,255,.055) 16%, rgba(255,255,255,.13) 34%, rgba(255,255,255,.055) 56%);
  background-size: 220% 100%;
  animation: echooQuickPlanShimmer 1.15s linear infinite;
}
@keyframes echooQuickPlanShimmer { to { background-position: -220% 0; } }

.echoo-quick-plan-result { display: grid; gap: 10px; }
.echoo-quick-plan-route-meta {
  color: rgba(248,245,239,.57);
  font-size: 11px;
}
.echoo-quick-plan-route-meta strong { color: var(--echoo-detail-accent); font-weight: 750; }
.echoo-quick-plan-plan-meta { display:flex; justify-content:space-between; gap:10px; color:rgba(248,245,239,.72); font-size:11px; font-weight:700; letter-spacing:.02em; text-transform:capitalize; }
.echoo-quick-plan-plan-meta span:last-child { color:var(--echoo-detail-accent); }

.echoo-quick-plan-stops { display: grid; gap: 8px; }
.echoo-quick-plan-stop {
  width: 100%;
  display: grid;
  grid-template-columns: 29px 46px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 12px 11px;
  border: 1px solid rgba(255,255,255,.09);
  border-radius: 15px;
  background: rgba(255,255,255,.045);
  color: inherit;
  text-align: left;
}
.echoo-quick-plan-stop:first-child { border-color: rgba(243,209,161,.34); background: rgba(243,209,161,.08); }
.echoo-quick-plan-stop-number {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(255,255,255,.09);
  color: var(--echoo-detail-accent);
  font-size: 11px;
  font-weight: 850;
}
.echoo-quick-plan-stop-image,
.echoo-quick-plan-stop-cover {
  width: 46px;
  height: 46px;
  border-radius: 11px;
}
.echoo-quick-plan-stop-image {
  display: block;
  object-fit: cover;
  background: #191919;
}
.echoo-quick-plan-stop-cover {
  position: relative;
  display: grid;
  place-items: end start;
  overflow: hidden;
  padding: 6px;
  color: rgba(255,255,255,.78);
  background: radial-gradient(circle at 75% 18%, rgba(243,209,161,.37), transparent 35%), linear-gradient(145deg, #35231b, #11100f 72%);
}
.echoo-quick-plan-stop-cover::before {
  position: absolute;
  top: -11px;
  right: -9px;
  width: 31px;
  height: 31px;
  border: 1px solid rgba(255,255,255,.17);
  border-radius: 50%;
  background: rgba(255,255,255,.07);
  content: "";
}
.echoo-quick-plan-stop-cover span { position: relative; font-size: 7px; font-weight: 800; letter-spacing: .09em; text-transform: uppercase; }
.echoo-quick-plan-stop-copy { min-width: 0; display: grid; gap: 3px; }
.echoo-quick-plan-stop-copy strong { overflow: hidden; color: #fff; font-size: 14px; text-overflow: ellipsis; white-space: nowrap; }
.echoo-quick-plan-stop-copy span { color: rgba(248,245,239,.63); font-size: 11px; line-height: 1.25; }
.echoo-quick-plan-stop-time { color: var(--echoo-detail-accent); font-size: 11px; font-weight: 730; white-space: nowrap; }

.echoo-quick-plan-error {
  margin: 4px 0 0;
  padding: 13px;
  border: 1px solid rgba(243,209,161,.18);
  border-radius: 14px;
  color: rgba(248,245,239,.77);
  background: rgba(255,255,255,.035);
  font-size: 13px;
  line-height: 1.45;
}

.echoo-quick-plan-footer { margin-top: 15px; }
.echoo-quick-plan-note { margin: 0; color: rgba(248,245,239,.5); font-size: 10px; line-height: 1.35; }
.echoo-quick-plan-route-button {
  min-height: 38px;
  padding: 0 13px;
  border: 0;
  border-radius: 11px;
  background: #f7f2e9;
  color: #17130f;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
  white-space: nowrap;
}

@media (max-width: 360px) {
  .echoo-place-hero { min-height: 240px; }
  .echoo-place-body { padding-right: 16px; padding-left: 16px; }
  .echoo-place-hero-copy h1,
  .echoo-place-unavailable h2 { font-size: 28px; }
  .echoo-place-gallery { grid-auto-columns: minmax(148px, 58vw); }
  .echoo-place-facts { grid-template-columns: 1fr; }
}
