/* ==========================================================================
   visits page styles (owned by the visits module)
   .vs-*  screen: list, form, detail          .vd-*  print deck (16:9 slides)
   ========================================================================== */

/* ------------------------------------------------------------------ shared bits */
.vs-stars { display: inline-flex; align-items: center; gap: 2px; color: #D8D3C3; }
.vs-star { display: inline-flex; }
.vs-star .icon { width: 18px; height: 18px; }
.vs-star.is-on { color: #D09B2C; }
.vs-star.is-on .icon { fill: currentColor; }
.vs-stars.is-sm .icon { width: 14px; height: 14px; }
.vs-sub { font-size: var(--fs-sm); font-weight: 600; color: var(--c-muted-strong); }
.vs-empty-line { display: flex; align-items: center; gap: 8px; color: var(--c-muted-strong); font-size: var(--fs-sm); padding: 4px 2px; }
.vs-empty-line .icon { width: 18px; height: 18px; color: var(--c-green); }

/* ------------------------------------------------------------------ list */
.vs-toolbar .field { flex: 1 1 170px; }
.vs-toolbar-end { display: flex; align-items: flex-end; min-height: 44px; }
.vs-list { display: flex; flex-direction: column; gap: 24px; }
.vs-month { display: flex; flex-direction: column; gap: 12px; }
.vs-month-head { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; }
.vs-cards { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); }
.vs-card {
  display: flex; flex-direction: column; min-width: 0;
  background: var(--c-white); border: 1px solid var(--c-line-soft); border-radius: var(--radius);
  overflow: hidden; color: inherit; box-shadow: var(--shadow-sm);
  transition: box-shadow .15s, transform .15s, border-color .15s;
}
a.vs-card:hover { text-decoration: none; box-shadow: var(--shadow); border-color: var(--c-mint); transform: translateY(-2px); }
a.vs-card:focus-visible { outline: none; box-shadow: var(--ring); }
.vs-card-media { position: relative; aspect-ratio: 16 / 9; background: var(--c-tint); overflow: hidden; }
.vs-card-media img { width: 100%; height: 100%; object-fit: cover; transition: transform .3s; }
a.vs-card:hover .vs-card-media img { transform: scale(1.03); }
.vs-card-media.skel { height: auto; border-radius: 0; }
.vs-card-noimg { height: 100%; display: grid; place-content: center; justify-items: center; gap: 6px; color: var(--c-green); font-size: var(--fs-sm); background: var(--c-tint) var(--motif) no-repeat left bottom / 120px; }
.vs-card-noimg .icon { width: 34px; height: 34px; }
.vs-card-zone {
  position: absolute; top: 10px; inset-inline-start: 10px; max-width: calc(100% - 20px);
  padding: 3px 10px; border-radius: var(--radius-pill); background: rgba(255, 255, 255, .92);
  color: var(--c-forest); font-size: 11.5px; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.vs-card-count {
  position: absolute; bottom: 10px; inset-inline-end: 10px; display: inline-flex; align-items: center; gap: 5px;
  padding: 2px 9px; border-radius: var(--radius-pill); background: rgba(0, 0, 0, .55); color: #fff; font-size: 12px; font-weight: 600;
}
.vs-card-count .icon { width: 14px; height: 14px; }
.vs-card-body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1 1 auto; }
.vs-card-body .skel { height: 12px; }
.vs-card-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; }
.vs-card-park { font-size: var(--fs-md); font-weight: 700; line-height: 1.4; }
.vs-card-top .vs-stars { margin-top: 5px; flex: none; }
.vs-card-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: var(--fs-sm); color: var(--c-muted-strong); }
.vs-card-meta > span { display: inline-flex; align-items: center; gap: 5px; }
.vs-card-meta .icon { width: 15px; height: 15px; color: var(--c-green); }
.vs-card-stats {
  display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px;
  margin-top: auto; padding-top: 10px; border-top: 1px dashed var(--c-line-soft);
}
.vs-mini { display: flex; flex-direction: column; min-width: 0; }
.vs-mini b { font-size: 19px; line-height: 1.3; color: var(--c-ink); }
.vs-mini span { font-size: 11.5px; color: var(--c-muted-strong); line-height: 1.4; }
.vs-mini.is-open b { color: #9C7A32; }
.vs-mini.is-overdue b, .vs-mini.is-overdue span { color: var(--c-orange-700); }

/* ------------------------------------------------------------------ form */
.vs-form { display: flex; flex-direction: column; gap: 16px; width: 100%; max-width: 1000px; }
.vs-basics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vs-rating { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; min-height: 44px; }
.vs-rating-stars { display: inline-flex; gap: 2px; }
.vs-rating-star {
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 10px; background: transparent;
  display: grid; place-items: center; color: #D5D0C0; -webkit-tap-highlight-color: transparent;
}
.vs-rating-star .icon { width: 30px; height: 30px; stroke-width: 1.6; }
.vs-rating-star.is-on { color: #D09B2C; }
.vs-rating-star.is-on .icon { fill: currentColor; }
.vs-rating-star:focus-visible { outline: none; box-shadow: var(--ring); }
@media (hover: hover) {
  .vs-rating-stars:hover .vs-rating-star { color: #D09B2C; }
  .vs-rating-stars:hover .vs-rating-star .icon { fill: currentColor; }
  .vs-rating-stars .vs-rating-star:hover ~ .vs-rating-star { color: #D5D0C0; }
  .vs-rating-stars .vs-rating-star:hover ~ .vs-rating-star .icon { fill: none; }
}
.vs-rating-label { font-size: var(--fs-sm); color: var(--c-muted-strong); }

.vs-att-summary { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; align-items: start; }
.vs-att-total {
  display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 28px;
  min-height: 48px; padding: 8px 16px; border-radius: 12px; background: var(--c-tint); color: var(--c-forest); font-weight: 600;
}
.vs-att-total b { font-size: 26px; line-height: 1; }
.vs-ind-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.vs-ind-grid .input { min-height: 52px; font-size: 20px; font-weight: 700; text-align: center; }
.vs-prefill-info:empty { display: none; }

.vs-recs-edit { display: flex; flex-direction: column; gap: 12px; }
.vs-rec-edit {
  display: flex; flex-direction: column; gap: 10px;
  padding: 12px 14px 14px; border: 1px solid var(--c-line-soft); border-inline-start: 4px solid #F15922;
  border-radius: 12px; background: #FDFDF9;
}
.vs-rec-edit.is-locked { border-inline-start-color: var(--c-teal); background: #F7F8F3; }
.vs-rec-edit-head { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.vs-rec-num { font-weight: 700; color: #C9441A; font-size: var(--fs-sm); }
.vs-rec-grid { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.vs-rec-locked-title { font-weight: 700; }
.vs-rec-locked-detail { color: #444; font-size: var(--fs-sm); line-height: 1.7; }
.vs-rec-locked-note { display: flex; align-items: center; gap: 6px; font-size: var(--fs-xs); color: var(--c-muted-strong); }
.vs-rec-locked-note .icon { width: 14px; height: 14px; }
.vs-add-row { display: flex; justify-content: center; }

.vs-actions-edit { display: flex; flex-direction: column; gap: 8px; }
.vs-actions-edit:empty { display: none; }
.vs-action-row { display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; align-items: center; gap: 8px; }
.vs-action-num {
  width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c-tint); color: var(--c-green-700); font-size: 12px; font-weight: 700;
}
.vs-form-actions { align-items: center; }
.vs-save-status:empty { display: none; }

/* ------------------------------------------------------------------ detail */
.vs-detail-grid { align-items: start; }
.vs-kpis .kpi-value { font-size: 26px; }
.vs-role-tiles { display: grid; gap: 10px; grid-template-columns: repeat(3, minmax(0, 1fr)); }
[data-page="visits"] .vs-steppers { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 900px) { [data-page="visits"] .vs-steppers { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.vs-role-tile {
  position: relative; display: flex; flex-direction: column; gap: 2px; min-width: 0;
  padding: 12px 14px; border-radius: 14px;
  background: color-mix(in srgb, var(--c) 9%, white); border: 1px solid color-mix(in srgb, var(--c) 28%, white);
}
.vs-role-tile b { font-size: 30px; line-height: 1.15; color: var(--c); }
.vs-role-tile.is-dark b { color: color-mix(in srgb, var(--c) 62%, black); }
.vs-role-tile.is-zero b { color: #A8A8A0; }
.vs-role-label { font-size: var(--fs-sm); font-weight: 600; color: #444; }
.vs-role-icon { position: absolute; top: 10px; inset-inline-end: 10px; color: var(--c); opacity: .75; display: flex; }
.vs-role-tile.is-dark .vs-role-icon { color: color-mix(in srgb, var(--c) 62%, black); }
.vs-role-icon .icon { width: 18px; height: 18px; }
.vs-att-sentence { padding: 10px 14px; border-radius: 10px; background: var(--c-tint); color: var(--c-forest); font-weight: 600; line-height: 1.7; }
.vs-nolog {
  display: flex; align-items: center; gap: 8px; padding: 12px 14px; border-radius: var(--radius);
  border: 1px dashed var(--c-line); background: var(--c-white); color: var(--c-muted-strong); font-size: var(--fs-sm);
}
.vs-nolog .icon { width: 18px; height: 18px; color: var(--c-teal); }
.vs-diff { font-weight: 700; font-variant-numeric: tabular-nums; unicode-bidi: isolate; }
.vs-diff.is-less { color: var(--c-orange-700); }
.vs-diff.is-more { color: var(--c-teal); }
.vs-diff.is-same { display: inline-flex; align-items: center; gap: 4px; color: var(--c-green-700); font-weight: 600; }
.vs-diff.is-same .icon { width: 14px; height: 14px; }
[data-page="visits"] .vs-cmp-label { white-space: nowrap; }
@media (max-width: 600px) {
  [data-page="visits"] .vs-diff.is-same span { display: none; }
  [data-page="visits"] .vs-cmp-label { white-space: normal; min-width: 96px; }
}
.table tr.vs-row-sep td { border-top: 2px solid var(--c-line); }

.vs-recs { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 10px; }
.vs-rec {
  display: grid; grid-template-columns: 28px minmax(0, 1fr) auto; gap: 12px; align-items: start;
  padding: 12px 14px; border: 1px solid var(--c-line-soft); border-radius: 12px; background: var(--c-white);
}
.vs-rec.is-overdue { border-color: #F7CDBC; background: #FFF9F6; }
.vs-rec.is-closed .vs-rec-title { color: var(--c-muted-strong); }
.vs-rec-n {
  width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center;
  background: var(--c-orange-tint); color: var(--c-orange-700); font-weight: 700; font-size: var(--fs-sm);
}
.vs-rec.is-closed .vs-rec-n { background: var(--c-tint); color: var(--c-green-700); }
.vs-rec-main { min-width: 0; }
.vs-rec-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 6px 10px; }
.vs-rec-title { font-weight: 700; line-height: 1.5; }
.vs-rec-badges { display: inline-flex; flex-wrap: wrap; gap: 6px; }
.vs-rec-detail { margin-top: 4px; font-size: 14px; line-height: 1.7; color: #444; }
.vs-rec-meta { display: flex; flex-wrap: wrap; gap: 4px 14px; margin-top: 6px; font-size: var(--fs-xs); color: var(--c-muted-strong); }
.vs-rec-meta:empty { display: none; }
.vs-rec-meta > span { display: inline-flex; align-items: center; gap: 4px; }
.vs-rec-meta .icon { width: 14px; height: 14px; }
.vs-rec-closure { margin-top: 8px; padding: 6px 10px; border-radius: 8px; background: var(--c-tint); font-size: var(--fs-sm); line-height: 1.7; }
.vs-rec-link { width: 32px; height: 32px; border-radius: 8px; display: grid; place-items: center; color: var(--c-muted-strong); }
.vs-rec-link:hover { background: var(--c-tint); color: var(--c-green); }
.vs-actions { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.vs-actions li { display: flex; align-items: flex-start; gap: 10px; padding: 10px 12px; border-radius: 10px; background: #F3F8EE; line-height: 1.7; }
.vs-action-check { flex: none; width: 24px; height: 24px; margin-top: 2px; border-radius: 50%; display: grid; place-items: center; background: var(--c-green); color: #fff; }
.vs-action-check .icon { width: 14px; height: 14px; stroke-width: 2.6; }
.vs-notes { white-space: pre-wrap; line-height: 1.8; overflow-wrap: anywhere; }

.vs-choice { display: flex; align-items: flex-start; gap: 10px; padding: 12px 14px; border: 1px solid var(--c-line); border-radius: 12px; cursor: pointer; transition: border-color .15s, background-color .15s; }
.vs-choice:has(input:checked) { border-color: var(--c-green); background: var(--c-tint); }
.vs-choice input { flex: none; width: 18px; height: 18px; margin: 4px 0 0; accent-color: var(--c-green); }
.vs-choice-box { display: flex; flex-direction: column; gap: 2px; }
.vs-choice-box span { font-size: var(--fs-sm); color: var(--c-muted-strong); line-height: 1.6; }
.vs-delete-modal { max-width: 520px; }

/* ------------------------------------------------------------------ responsive (screen) */
@media (max-width: 900px) {
  .vs-cards { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
}
@media (max-width: 600px) {
  .vs-toolbar .field { flex: 1 1 calc(50% - 6px); }
  .vs-toolbar-end { flex: 1 1 100%; min-height: 0; }
  .vs-toolbar-end .btn { width: 100%; }
  .vs-cards { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .vs-basics, .vs-rec-grid, .vs-att-summary { grid-template-columns: minmax(0, 1fr); }
  .vs-att-total { margin-top: 0; }
  .vs-ind-grid { gap: 8px; }
  .vs-ind-grid .field-label { font-size: var(--fs-xs); }
  .vs-role-tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .vs-rec { grid-template-columns: 28px minmax(0, 1fr); }
  .vs-rec-link { display: none; }
  .vs-rec-top { flex-direction: column; align-items: flex-start; }
}

/* ==========================================================================
   print deck (#/print/visits/...) · 1280x720 slides in the owner's template
   ========================================================================== */
.vd-screen-card { width: min(640px, 100%); }
.vd-screen-note { width: min(1280px, 100%); }

/* content slide frame: grey rounded panel with the bottom-left notch and diagonal lines */
.slide.vd-slide {
  background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='1280' height='720' viewBox='0 0 1280 720'%3E%3Cpath d='M68 33H1200a52 52 0 0 1 52 52V677a10 10 0 0 1-10 10H352c-34 0-60-11-84-35l-30 25H28V73a40 40 0 0 1 40-40z' fill='%23F2F2F2'/%3E%3Cpath d='M198 710L287 632' stroke='%2376BC21' stroke-width='1.3' stroke-linecap='round'/%3E%3Cpath d='M228 693L266 659' stroke='%23035859' stroke-width='1.1' stroke-linecap='round'/%3E%3C/svg%3E") no-repeat 0 0 / 1280px 720px;
}
.vd-emblem { position: absolute; top: 48px; left: 48px; width: 58px; height: 58px; }
.vd-slide .slide-footer { left: 26px; bottom: 16px; font-size: 13px; letter-spacing: .1px; }
.vd-slide .slide-num { right: 40px; bottom: 9px; font-size: 13px; color: #999; }

.vd-head { position: absolute; top: 56px; right: 148px; left: 136px; display: flex; align-items: center; gap: 24px; min-height: 64px; }
/* operator logo top-right, opposite the NCVC emblem (top-left) */
.vd-slide::before {
  content: ""; position: absolute; top: 50px; right: 52px; width: 80px; height: 68px;
  background: url("/assets/operator-logo.png") no-repeat right center / contain;
}
.vd-head-title {
  max-width: 860px; padding: 12px 28px; border-radius: 18px; background: #EAF3E4;
  font-size: 25px; font-weight: 700; line-height: 1.4; color: #2B2B2B;
}
.vd-head-side { margin-inline-start: auto; display: flex; flex-direction: column; align-items: flex-end; text-align: left; gap: 2px; flex: none; }
.vd-head-side b { font-size: 21px; font-weight: 700; color: #2C5F2D; font-variant-numeric: tabular-nums; }
.vd-head-side span { font-size: 15px; color: #777; }
.vd-body { position: absolute; top: 152px; bottom: 72px; right: 70px; left: 70px; display: flex; flex-direction: column; gap: 18px; min-height: 0; }

/* cover */
.vd-cover::before {
  content: ""; position: absolute; top: 122px; right: 31px; bottom: 59px; width: 720px; pointer-events: none;
  border-bottom-right-radius: 38px;
  background: linear-gradient(to left, rgba(2, 62, 58, .55) 0%, rgba(2, 62, 58, .32) 55%, rgba(2, 62, 58, 0) 100%);
}
.vd-cover-text { position: absolute; top: 250px; right: 100px; width: 640px; color: #fff; text-shadow: 0 2px 18px rgba(0, 40, 36, .45); }
.vd-cover-kicker { font-size: 19px; font-weight: 600; color: #DDF2C8; }
.vd-cover-title { font-size: 58px; font-weight: 700; line-height: 1.2; margin-top: 8px; }
.vd-cover-rule { width: 330px; height: 2px; margin: 18px 0 14px; background: rgba(255, 255, 255, .8); }
.vd-cover-sub { font-size: 23px; line-height: 1.6; font-weight: 500; }
.vd-cover-meta { display: flex; flex-direction: column; gap: 8px; margin-top: 20px; font-size: 19px; }
.vd-cover-meta > span { display: inline-flex; align-items: center; gap: 10px; }
.vd-cover-meta .icon { width: 22px; height: 22px; color: #BFE59A; }

/* overview */
.vd-overview { flex-direction: row; gap: 34px; }
.vd-ov-text { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.vd-ov-title { font-size: 25px; font-weight: 700; line-height: 1.45; color: #2C5F2D; }
.vd-ov-p { font-size: 17px; line-height: 1.85; color: #333; text-align: justify; }
.vd-facts { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 2px; }
.vd-fact { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 10px 14px; border-radius: 12px; background: #fff; }
.vd-fact-k { padding: 1px 12px; border-radius: 6px; background: #9CDE88; color: #1E3F1F; font-size: 14px; font-weight: 700; }
.vd-fact-v { font-size: 19px; color: #2B2B2B; }
.vd-meters { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.vd-meter { padding: 10px 14px; border-radius: 12px; background: #fff; display: flex; flex-direction: column; gap: 6px; }
.vd-meter-head { display: flex; align-items: baseline; justify-content: space-between; gap: 8px; font-size: 15px; color: #444; font-weight: 600; }
.vd-meter-head b { font-size: 22px; color: #119853; }
.vd-meter + .vd-meter .vd-meter-head b { color: #035859; }
.vd-meter-track { height: 10px; border-radius: 6px; background: #E4EEDB; overflow: hidden; }
.vd-meter-track span { display: block; height: 100%; border-radius: 6px; background: #119853; }
.vd-meter + .vd-meter .vd-meter-track { background: #DDEBEB; }
.vd-meter + .vd-meter .vd-meter-track span { background: #035859; }
.vd-meter-sub { font-size: 13px; color: #777; }
.vd-ov-photos { flex: 0 0 440px; display: grid; gap: 12px; grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: minmax(0, 1fr); }
.vd-ov-photos.n-1 { grid-template-columns: minmax(0, 1fr); }
.vd-ov-photos.n-3 > :first-child, .vd-ov-photos.n-5 > :first-child { grid-column: 1 / -1; }
.vd-ov-photo { margin: 0; min-height: 0; border-radius: 16px; overflow: hidden; background: #E6E6E0; }
.vd-ov-photo img { width: 100%; height: 100%; object-fit: cover; }
.vd-ov-parks { flex: 0 0 360px; display: flex; flex-wrap: wrap; align-content: center; gap: 10px; }

/* zone section */
.slide.vd-zone { background: #fff var(--zone-bg) no-repeat center / cover; }
.vd-zone-text { position: absolute; top: 250px; right: 104px; width: 640px; color: #fff; text-shadow: 0 2px 16px rgba(0, 50, 20, .35); }
.vd-zone-kicker {
  display: inline-block; padding: 4px 16px; border-radius: 999px; font-size: 17px; font-weight: 600;
  background: rgba(255, 255, 255, .16); border: 1px solid rgba(255, 255, 255, .45); text-shadow: none;
}
.vd-zone-title { font-size: 52px; font-weight: 700; line-height: 1.25; margin-top: 14px; }
.vd-zone-rule { width: 311px; height: 2px; margin: 14px 0; background: rgba(255, 255, 255, .85); }
.vd-zone-parks { font-size: 23px; line-height: 1.6; font-weight: 500; }
.vd-zone-current {
  display: inline-flex; align-items: center; gap: 10px; margin-top: 20px; padding: 9px 18px; border-radius: 14px;
  background: rgba(0, 58, 30, .42); font-size: 19px; font-weight: 600; text-shadow: none;
}
.vd-zone-current .icon { width: 22px; height: 22px; color: #BFE59A; }

/* attendance */
.vd-att { justify-content: center; gap: 30px; }
.vd-roles { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 18px; }
.vd-role {
  display: flex; flex-direction: column; align-items: center; gap: 12px; padding: 20px 14px 18px;
  border-radius: 22px; background: var(--c); color: #fff; box-shadow: 0 8px 22px rgba(0, 0, 0, .08);
}
.vd-role.is-dark { color: #2B2B2B; }
.vd-role-box { width: 100%; height: 118px; display: grid; place-items: center; border-radius: 16px; background: #fff; }
.vd-role-num { font-size: 64px; font-weight: 700; line-height: 1; color: var(--c); }
.vd-role.is-dark .vd-role-num { color: color-mix(in srgb, var(--c) 70%, black); }
.vd-role-icon { display: flex; opacity: .9; }
.vd-role-icon .icon { width: 28px; height: 28px; }
.vd-role-label { min-height: 56px; display: grid; place-items: center; text-align: center; font-size: 19px; font-weight: 700; line-height: 1.4; }
.vd-att-total { padding: 14px 24px; border-radius: 14px; background: #fff; border-inline-start: 6px solid #76BC21; }
.vd-att-total p { font-size: 23px; font-weight: 700; color: #3A3A3A; }
.vd-att-total .vd-att-note { font-size: 17px; font-weight: 500; color: #777; margin-top: 2px; }

/* indicators */
.vd-ind-body { justify-content: center; align-items: center; gap: 28px; }
.vd-ind-grid { display: grid; grid-template-columns: repeat(3, 300px); gap: 70px; justify-content: center; }
.vd-ind { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; }
.vd-ind-circle {
  width: 168px; height: 168px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 14px;
  background: var(--bg); color: var(--fg); box-shadow: 0 0 0 10px #fff, 0 10px 28px rgba(0, 0, 0, .08);
}
.vd-ind-circle .icon { width: 74px; height: 74px; stroke-width: 1.5; }
.vd-ind-label { font-size: 22px; font-weight: 600; color: #2B2B2B; }
.vd-ind-value { font-size: 68px; font-weight: 700; line-height: 1.1; color: var(--val); }
.vd-ind-rule { width: 104px; height: 3px; border-radius: 2px; background: var(--val); opacity: .55; }
.vd-rating { display: flex; align-items: center; gap: 12px; padding: 8px 24px; border-radius: 999px; background: #fff; font-size: 18px; color: #444; }
.vd-rating b { color: #2C5F2D; }
.vd-rating .vs-star .icon { width: 22px; height: 22px; }

/* recommendations */
.vd-recs { justify-content: center; }
.vd-rec-grid { display: grid; gap: 30px; justify-content: center; }
.vd-rec-grid.n-1 { grid-template-columns: 440px; }
.vd-rec-grid.n-2 { grid-template-columns: repeat(2, 400px); }
.vd-rec-grid.n-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vd-rec-grid.n-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 18px; }
.vd-rec {
  display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 0; height: 420px;
  border: 1px solid #DADADA; border-radius: 18px; background: #fff; overflow: hidden; box-shadow: 0 6px 18px rgba(0, 0, 0, .05);
}
.vd-rec-head { width: 100%; padding: 12px; background: #F15922; color: #fff; font-size: 21px; font-weight: 700; }
.vd-rec-icon { width: 84px; height: 84px; margin-top: 22px; border-radius: 50%; display: grid; place-items: center; background: #FDEDE6; color: #F15922; flex: none; }
.vd-rec-icon .icon { width: 40px; height: 40px; stroke-width: 1.6; }
.vd-rec-title { margin: 16px 20px 6px; font-size: 23px; font-weight: 700; line-height: 1.4; color: #E0501C; }
.vd-rec-detail {
  margin: 0 22px; font-size: 18px; line-height: 1.7; color: #2B2B2B;
  display: -webkit-box; -webkit-line-clamp: 5; -webkit-box-orient: vertical; overflow: hidden;
}
.vd-rec-grid.n-4 .vd-rec-title { font-size: 20px; margin-inline: 14px; }
.vd-rec-grid.n-4 .vd-rec-detail { font-size: 16px; margin-inline: 14px; }
.vd-rec-tags { margin-top: auto; padding: 12px 14px 18px; display: flex; flex-wrap: wrap; justify-content: center; gap: 6px; }
.vd-rec-tags span { padding: 3px 12px; border-radius: 999px; background: #F3F3EE; color: #555; font-size: 13.5px; font-weight: 600; }
.vd-rec-tags .vd-rec-status.is-open { background: #F5EFE1; color: #7E6127; }
.vd-rec-tags .vd-rec-status.is-in_progress { background: #E3EFEF; color: #035859; }
.vd-rec-tags .vd-rec-status.is-done { background: #EAF3E4; color: #0B6E3C; }
.vd-rec-tags .vd-rec-status.is-cancelled { background: #F1F1EC; color: #7A7A7A; }
.vd-recs-empty { align-items: center; justify-content: center; gap: 16px; }
.vd-recs-empty p { font-size: 24px; color: #555; font-weight: 600; }
.vd-empty-mark { width: 110px; height: 110px; border-radius: 50%; display: grid; place-items: center; background: #EAF3E4; color: #119853; }
.vd-empty-mark .icon { width: 56px; height: 56px; }

/* actions («تقرير الزيارة») */
.vd-actions { gap: 16px; }
.vd-action-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 14px; }
.vd-action { display: flex; align-items: center; gap: 16px; min-height: 56px; padding: 8px 18px 8px 22px; border-radius: 14px; background: rgba(186, 217, 161, .45); }
.vd-action-icon { flex: none; width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #76BC21; color: #fff; }
.vd-action-icon .icon { width: 22px; height: 22px; stroke-width: 2.6; }
.vd-action-text { flex: 1 1 auto; font-size: 21px; line-height: 1.5; color: #2B2B2B; }
.vd-actions.is-few { justify-content: center; }
.vd-actions.is-few .vd-action-list { gap: 20px; }
.vd-actions.is-few .vd-action { min-height: 84px; padding: 14px 22px 14px 28px; }
.vd-actions.is-few .vd-action-text { font-size: 25px; }
.vd-action-n { flex: none; font-size: 16px; font-weight: 700; color: #4E8A12; }
.vd-notes { margin-top: auto; padding: 14px 22px; border-radius: 14px; background: #fff; border-inline-start: 6px solid #C2B69C; }
.vd-notes-title { display: flex; align-items: center; gap: 8px; font-size: 17px; font-weight: 700; color: #7A6D52; margin-bottom: 4px; }
.vd-notes-title .icon { width: 20px; height: 20px; }
.vd-notes p { font-size: 19px; line-height: 1.7; color: #333; white-space: pre-wrap; display: -webkit-box; -webkit-line-clamp: 4; -webkit-box-orient: vertical; overflow: hidden; }
.vd-actions > .vd-notes:only-child { margin-top: 0; }

/* photos (max 9 per slide) */
.vd-photos-body { gap: 0; }
.vd-photos { flex: 1 1 auto; min-height: 0; display: grid; gap: 12px; grid-auto-rows: minmax(0, 1fr); }
.vd-photos.n-1 { grid-template-columns: minmax(0, 1fr); }
.vd-photos.n-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vd-photos.n-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vd-photos.n-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.vd-photos.n-5, .vd-photos.n-6 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vd-photos.n-7, .vd-photos.n-8 { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.vd-photos.n-9 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.vd-photos.n-5 > :first-child, .vd-photos.n-7 > :first-child { grid-row: span 2; }
.vd-photo { position: relative; margin: 0; min-height: 0; border-radius: 14px; overflow: hidden; background: #E6E6E0; }
.vd-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vd-photo.is-lowres { display: grid; place-items: center; background: #F4F4EE; }
.vd-photo.is-lowres img { width: auto; height: auto; max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 10px; }
.vd-photo figcaption { position: absolute; inset-inline: 0; bottom: 0; padding: 20px 12px 8px; color: #fff; font-size: 14px; background: linear-gradient(to top, rgba(0, 0, 0, .6), transparent); }
.vd-photo .photo-kind { font-size: 13px; top: 10px; inset-inline-start: 10px; }
