/* ═══ فرم «جزئیات امکانات» (پنل میزبان و ادمین) — js/amenity-details.js ═══ */
.adf {
  --adf-bg: var(--surface, var(--bg-card, #fff));
  --adf-soft: var(--bg, #f6f6f4);
  --adf-line: var(--border2, rgba(0,0,0,.12));
  --adf-muted: var(--muted, var(--text-muted, #6b7280));
  --adf-accent: var(--accent, #1a6b4a);
  display: flex; flex-direction: column; gap: 8px;
}
.adf button, .adf textarea, .adf input { font-family: inherit; }
.adf-host { border: 1.5px solid var(--adf-line); border-radius: 12px; padding: 12px; background: var(--adf-bg); }
.adf-host.on { border-color: var(--adf-accent); background: color-mix(in srgb, var(--adf-bg) 92%, var(--adf-accent)); }
.adf-host .adf-host-note { display: none; margin-top: 10px; }
.adf-host.on .adf-host-note { display: block; }
.adf-switch { display: flex; align-items: center; gap: 10px; cursor: pointer; font-size: .86rem; }
.adf-switch input { position: absolute; opacity: 0; pointer-events: none; }
.adf-slider { position: relative; width: 42px; height: 24px; border-radius: 99px; background: var(--adf-line); flex-shrink: 0; transition: background .2s; }
.adf-slider::after { content: ''; position: absolute; top: 3px; right: 3px; width: 18px; height: 18px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.25); transition: right .2s; }
.adf-switch input:checked + .adf-slider { background: var(--adf-accent); }
.adf-switch input:checked + .adf-slider::after { right: 21px; }
.adf-sec { border: 1.5px solid var(--adf-line); border-radius: 12px; background: var(--adf-bg); overflow: hidden; }
.adf-sec.has { border-color: color-mix(in srgb, var(--adf-accent) 55%, transparent); }
.adf-head { width: 100%; display: flex; align-items: center; gap: 8px; border: 0; background: transparent; color: inherit; padding: 12px; cursor: pointer; text-align: right; font-size: .86rem; }
.adf-head b { flex: 1; }
.adf-ic { font-size: 1.1rem; }
.adf-count { font-size: .7rem; color: var(--adf-accent); font-weight: 700; }
.adf-chev { font-style: normal; color: var(--adf-muted); transition: transform .2s; }
.adf-sec.open .adf-chev { transform: rotate(180deg); }
.adf-body { padding: 0 12px 12px; }
.adf-chips { display: flex; flex-wrap: wrap; gap: 6px; }
.adf-chip { border: 1.5px solid var(--adf-line); background: var(--adf-bg); color: inherit; border-radius: 99px; padding: 6px 12px; font-size: .76rem; cursor: pointer; }
.adf-chip.on { border-color: var(--adf-accent); background: var(--adf-accent); color: #fff; }
.adf-chip.on::before { content: '✓ '; }
.adf-add { display: flex; gap: 6px; margin-top: 8px; }
.adf-custom, .adf-note { flex: 1; width: 100%; box-sizing: border-box; border: 1.5px solid var(--adf-line); background: var(--adf-soft); color: inherit; border-radius: 10px; padding: 9px 11px; font-size: .8rem; }
.adf-note { resize: vertical; min-height: 54px; line-height: 1.8; }
.adf-add-btn { border: 1.5px solid var(--adf-line); background: var(--adf-bg); color: inherit; border-radius: 10px; padding: 0 12px; font-size: .76rem; cursor: pointer; white-space: nowrap; }
.adf-note-label { display: block; font-size: .74rem; font-weight: 700; color: var(--adf-muted); margin: 10px 0 4px; }

/* ═══ نمایش در صفحهٔ ویلا ═══ */
.amenity-details { display: flex; flex-direction: column; gap: 10px; margin-bottom: 8px; }
.ad-host { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border-radius: 14px; background: rgba(26,107,74,.08); border: 1px solid rgba(26,107,74,.25); }
.ad-host-ic { font-size: 1.5rem; line-height: 1; }
.ad-host b { font-size: .9rem; }
.ad-host p { margin: 4px 0 0; font-size: .8rem; color: var(--text-muted, #6b7280); line-height: 1.8; }
.ad-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 10px; }
.ad-card { border: 1px solid var(--border, rgba(0,0,0,.08)); border-radius: 14px; padding: 12px 14px; background: var(--bg-card, var(--surface, transparent)); }
.ad-head { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; font-size: .88rem; }
.ad-ic { font-size: 1.15rem; }
.ad-items { display: flex; flex-wrap: wrap; gap: 6px; }
.ad-items span { font-size: .74rem; padding: 4px 10px; border-radius: 99px; background: var(--border, rgba(0,0,0,.06)); }
.ad-note { margin: 8px 0 0; font-size: .78rem; line-height: 1.9; color: var(--text-muted, #6b7280); border-right: 3px solid var(--accent, #1a6b4a); padding-right: 8px; }
