/* ============================================================
   CANOPY — RESOURCE DETAIL (gallery + distinct site / Instagram)
   ============================================================ */

.res-detail {
  display: flex;
  flex-direction: column;
  gap: 0;
}

/* ---------- photo gallery (0–3) ---------- */
.res-gallery {
  position: relative;
  margin: 0 0 1.15rem;
  border-radius: 1.15rem;
  overflow: hidden;
  background: color-mix(in srgb, var(--miel, #f1c166) 28%, var(--surface, #fff8f2));
  isolation: isolate;
}
.res-gallery-track {
  display: flex;
  overflow: hidden;
  width: 100%;
  aspect-ratio: 16 / 10;
  outline: none;
  touch-action: pan-y;
}
.res-gallery-slide {
  flex: 0 0 100%;
  margin: 0;
  display: none;
  align-items: center;
  justify-content: center;
  background:
    radial-gradient(ellipse 80% 70% at 30% 20%, color-mix(in srgb, var(--ciel, #88b8ce) 35%, transparent), transparent 60%),
    radial-gradient(ellipse 70% 60% at 80% 80%, color-mix(in srgb, var(--miel, #f1c166) 40%, transparent), transparent 55%);
}
.res-gallery-slide.is-on { display: flex; }
.res-gallery-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.res-gallery-count {
  position: absolute;
  top: 0.65rem;
  right: 0.7rem;
  z-index: 2;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  background: color-mix(in srgb, var(--espresso, #542916) 72%, transparent);
  color: var(--milk, #fff8f2);
  font-family: 'Outfit', 'Familjen Grotesk', sans-serif;
  font-size: 0.72rem;
  font-weight: 650;
  letter-spacing: 0.04em;
  pointer-events: none;
}
.res-gallery-dots {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0.65rem;
  z-index: 2;
  display: flex;
  justify-content: center;
  gap: 0.35rem;
  pointer-events: none;
}
.res-gallery-dot {
  pointer-events: auto;
  width: 0.45rem;
  height: 0.45rem;
  padding: 0;
  border: none;
  border-radius: 50%;
  background: color-mix(in srgb, var(--milk, #fff8f2) 55%, transparent);
  cursor: pointer;
  transition: transform 0.2s var(--ease, ease), background 0.2s var(--ease, ease);
}
.res-gallery-dot.is-on {
  background: var(--milk, #fff8f2);
  transform: scale(1.25);
}

/* ---------- header ---------- */
.res-detail-head {
  margin-bottom: 0.35rem;
}
.res-detail-sub {
  margin: 0.45rem 0 0.15rem;
  font-family: 'Familjen Grotesk', 'Outfit', sans-serif;
  font-size: 0.92rem;
  font-weight: 500;
  font-style: italic;
  color: color-mix(in srgb, var(--espresso, #542916) 58%, transparent);
  text-transform: lowercase;
}
.res-detail-title,
.deck-detail-title.res-detail-title,
.res-detail h2.res-detail-title {
  margin: 0.15rem 0 0.45rem;
  font-family: 'Outfit', 'Familjen Grotesk', sans-serif;
  font-weight: 700;
  font-size: clamp(1.45rem, 5.2vw, 1.9rem);
  line-height: 1.15;
  color: var(--espresso, #542916);
  letter-spacing: -0.02em;
}
.res-detail .sheet-desc {
  margin: 0.2rem 0 0.85rem;
  color: color-mix(in srgb, var(--espresso, #542916) 68%, transparent);
  line-height: 1.55;
  font-size: 1.02rem;
}
.res-detail-badges {
  margin-bottom: 1.15rem !important;
}

/* ---------- actions: call vs channels vs more ---------- */
.res-actions {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin: 0 0 1.55rem;
}
.res-actions-primary,
.res-actions-channels,
.res-actions-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.res-actions .act {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  flex: 1 1 auto;
  min-width: min(100%, 9.5rem);
  padding: 0.85rem 1rem;
  border-radius: 999px;
  font-family: 'Outfit', 'Familjen Grotesk', sans-serif;
  font-weight: 700;
  font-size: 0.9rem;
  text-decoration: none;
  border: 1.5px solid transparent;
  box-sizing: border-box;
  cursor: pointer;
  transition: transform 0.18s var(--ease, ease), filter 0.18s var(--ease, ease),
              background 0.18s var(--ease, ease), color 0.18s var(--ease, ease);
  -webkit-tap-highlight-color: transparent;
}
.res-actions .act svg {
  width: 1.05rem;
  height: 1.05rem;
  flex: none;
}
.res-actions .act:hover {
  transform: translateY(-1px);
}

/* Primary contact — espresso solid */
.res-actions .act-call {
  background: var(--espresso, #542916);
  color: var(--milk, #fff8f2);
  border-color: var(--espresso, #542916);
}
.res-actions .act-sms {
  background: color-mix(in srgb, var(--espresso, #542916) 88%, var(--ciel, #88b8ce));
  color: var(--milk, #fff8f2);
  border-color: transparent;
}

/* Online presence — clearly two different doors */
.res-actions-channels {
  padding: 0.55rem;
  border-radius: 1.15rem;
  background: color-mix(in srgb, var(--surface, #fff8f2) 70%, var(--ground, #fdf0e8));
  border: 1.5px solid color-mix(in srgb, var(--espresso, #542916) 12%, transparent);
}
.res-actions .act-site {
  background: var(--milk, #fff8f2);
  color: var(--espresso, #542916);
  border-color: color-mix(in srgb, var(--espresso, #542916) 55%, transparent);
}
.res-actions .act-site:hover {
  background: color-mix(in srgb, var(--miel, #f1c166) 35%, var(--milk, #fff8f2));
}
.res-actions .act-ig {
  background: var(--terre, #a13a1e);
  color: var(--milk, #fff8f2);
  border-color: var(--terre, #a13a1e);
}
.res-actions .act-ig:hover {
  filter: brightness(1.06);
}

/* Secondary */
.res-actions .act-mail {
  background: transparent;
  color: var(--espresso, #542916);
  border-color: color-mix(in srgb, var(--espresso, #542916) 28%, transparent);
}
.res-actions .act-share {
  background: transparent;
  color: var(--terre, #a13a1e);
  border-color: color-mix(in srgb, var(--terre, #a13a1e) 45%, transparent);
}

/* Sheet chrome when using shared body */
.sheet .res-detail {
  padding-top: 0.15rem;
}
.sheet-head--res {
  display: flex;
  justify-content: flex-end;
  margin-bottom: 0.35rem;
}
.deck-detail-scroll .res-detail-title {
  margin-top: 0.1rem;
}

@media (max-width: 560px) {
  .res-gallery {
    margin-left: -0.15rem;
    margin-right: -0.15rem;
    border-radius: 1rem;
  }
  .res-actions .act {
    min-width: calc(50% - 0.3rem);
  }
  .res-actions-primary .act-call {
    min-width: 100%;
  }
}
