/* Rosa dei Venti: compass, apartment cards, contacts and request dialog.
   Colors and fonts come from the theme tokens, with fallbacks. */
.rdv-compass, .rdv-grid, .rdv-modal, .rdv-contacts {
  --rdv-navy: var(--rv-navy, #12243a);
  --rdv-navy2: var(--rv-navy2, #1b3350);
  --rdv-brass: var(--rv-brass, #c79a4b);
  --rdv-brass-l: var(--rv-brass-l, #e6c98f);
  --rdv-brass-d: var(--rv-brass-d, #8a6522);
  --rdv-paper: var(--rv-paper, #fbf8f2);
  --rdv-soft: var(--rv-soft, #efe8da);
  --rdv-line: var(--rv-line, #d9d2c4);
  --rdv-ink: var(--rv-ink, #142233);
  --rdv-head: var(--rv-head, 'Marcellus', serif);
  --rdv-body: var(--rv-body, 'Manrope', sans-serif);
}

/* ------------------------------------------------------------ Buttons */
.rdv-btn, a.rdv-btn, .rdv-card-actions a.rdv-btn, .rdv-dialog button.rdv-btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px;
  background: var(--rdv-navy); color: #fff; text-decoration: none; border: 1px solid var(--rdv-navy);
  padding: 13px 24px; border-radius: 999px; font: 700 13px/1.2 var(--rdv-body); letter-spacing: .08em; text-transform: uppercase; cursor: pointer;
  transition: background .2s, color .2s;
}
.rdv-btn:hover, a.rdv-btn:hover, .rdv-card-actions a.rdv-btn:hover, .rdv-card-actions a.rdv-btn:focus, .rdv-dialog button.rdv-btn:hover, .rdv-dialog button.rdv-btn:focus { background: var(--rdv-navy2); color: #fff; }
.rdv-btn:focus-visible { outline: 3px solid var(--rdv-brass); outline-offset: 2px; }
.rdv-btn--line, a.rdv-btn--line, .rdv-card-actions a.rdv-btn--line { background: transparent; color: var(--rdv-navy); }
.rdv-btn--line:hover, a.rdv-btn--line:hover, .rdv-card-actions a.rdv-btn--line:hover, .rdv-card-actions a.rdv-btn--line:focus { background: var(--rdv-soft); color: var(--rdv-navy); }
.rdv-dialog button.rdv-btn:disabled { opacity: .45; cursor: not-allowed; }
.rdv-dialog button.rdv-btn--wide { width: 100%; }

/* ------------------------------------------------------------ Card */
.rdv-card { background: var(--rdv-paper); color: var(--rdv-ink); border-radius: 18px; overflow: hidden; display: flex; flex-direction: column; height: 100%; box-shadow: 0 24px 50px rgba(10, 20, 35, .18); }
.rdv-card-img { display: block; aspect-ratio: 16 / 10; overflow: hidden; background: var(--rdv-soft); }
.rdv-card-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s; }
.rdv-card:hover .rdv-card-img img { transform: scale(1.03); }
.rdv-card-body { padding: 26px 28px 30px; display: flex; flex-direction: column; flex: 1; }
.rdv-card-meta { margin: 0; color: var(--rdv-brass-d); font: 700 12px/1.4 var(--rdv-body); letter-spacing: .14em; text-transform: uppercase; }
.rdv-card-title { font: 400 38px/1.1 var(--rdv-head); margin: 6px 0 0; color: var(--rdv-ink); }
.rdv-card .rdv-card-title a { color: inherit; text-decoration: none; }
.rdv-chips { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-wrap: wrap; gap: 8px; }
.rdv-chips li { background: var(--rdv-soft); border-radius: 999px; padding: 5px 14px; font: 500 14px/1.4 var(--rdv-body); }
.rdv-card-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: auto; padding-top: 24px; }

.rdv-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 24px; }
.rdv-grid .rdv-card { box-shadow: 0 10px 30px rgba(10, 20, 35, .08); border: 1px solid var(--rdv-line); }
.rdv-grid .rdv-card-title { font-size: 32px; }

/* ------------------------------------------------------------ Compass */
.rdv-compass { display: grid; grid-template-columns: 1fr 1fr; gap: 70px; align-items: center; }
.rdv-dial { position: relative; aspect-ratio: 1; width: 100%; max-width: 520px; margin: 0 auto; }
.rdv-dial-bg { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--rdv-brass); }
.rdv-compass button.rdv-pt, .rdv-compass .rdv-pt {
  position: absolute; transform: translate(-50%, -50%); z-index: 2;
  background: var(--rdv-navy2); color: #fff; border: 1px solid rgba(199, 154, 75, .55); border-radius: 999px;
  padding: 9px 16px; font: 400 17px/1.15 var(--rdv-head); letter-spacing: 0; text-transform: none; cursor: pointer; white-space: nowrap; text-align: center; transition: background .25s, color .25s, border-color .25s;
}
.rdv-compass .rdv-pt small { display: block; font: 700 10px/1.2 var(--rdv-body); letter-spacing: .2em; color: var(--rdv-brass); }
.rdv-compass button.rdv-pt:hover, .rdv-compass button.rdv-pt:focus, .rdv-compass button.rdv-pt[aria-selected="true"] { background: var(--rdv-brass); color: var(--rdv-navy); border-color: var(--rdv-brass); }
.rdv-compass button.rdv-pt:hover small, .rdv-compass button.rdv-pt[aria-selected="true"] small { color: var(--rdv-navy); }
.rdv-compass button.rdv-pt:focus-visible { outline: 3px solid #fff; outline-offset: 3px; }
.rdv-compass .rdv-pt--void { opacity: .4; cursor: default; font-style: italic; }
.rdv-compass .rdv-pt--void:hover { background: var(--rdv-navy2); color: #fff; border-color: rgba(199, 154, 75, .55); }
.rdv-compass .rdv-pt--void:hover small { color: var(--rdv-brass); }
.rdv-needle { position: absolute; left: 50%; top: 50%; width: 14px; height: 38%; margin-left: -7px; transform-origin: 50% 100%; transform: translateY(-100%); transition: transform .7s cubic-bezier(.6, 0, .2, 1.3); }
.rdv-needle::before { content: ''; position: absolute; inset: 0; background: linear-gradient(var(--rdv-brass), transparent); clip-path: polygon(50% 0, 100% 100%, 0 100%); }
.rdv-panel[hidden] { display: none; }
.rdv-panel { animation: rdv-in .35s ease; }
@keyframes rdv-in { from { opacity: 0; transform: translateY(8px); } }

/* ------------------------------------------------------------ Contacts */
.rdv-contacts { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; }
.rdv-contacts li a { color: inherit; }
.rdv-codes { opacity: .75; font-size: .9em; }

/* ------------------------------------------------------------ Dialog */
html.rdv-lock { overflow: hidden; }
.rdv-modal { position: fixed; inset: 0; z-index: 99990; background: rgba(8, 16, 28, .6); display: grid; place-items: center; padding: 16px; backdrop-filter: blur(3px); }
.rdv-modal[hidden] { display: none; }
.rdv-dialog { position: relative; width: min(640px, 100%); max-height: calc(100vh - 32px); max-height: calc(100dvh - 32px); overflow: auto; background: var(--rdv-paper); color: var(--rdv-ink); border-radius: 18px; padding: 34px; box-shadow: 0 30px 80px rgba(0, 0, 0, .35); font: 400 16px/1.6 var(--rdv-body); box-sizing: border-box; }
.rdv-dialog *, .rdv-dialog *::before, .rdv-dialog *::after { box-sizing: border-box; }
.rdv-dialog button.rdv-x { position: absolute; top: 12px; right: 14px; width: 40px; height: 40px; border: 0; background: none; font-size: 30px; line-height: 1; cursor: pointer; color: var(--rdv-ink); border-radius: 50%; padding: 0; display: grid; place-items: center; }
.rdv-dialog button.rdv-x:hover, .rdv-dialog button.rdv-x:focus { background: var(--rdv-soft); }
.rdv-kicker { margin: 0; color: var(--rdv-brass-d); font: 700 12px/1.4 var(--rdv-body); letter-spacing: .16em; text-transform: uppercase; }
.rdv-title { font: 400 32px/1.15 var(--rdv-head); margin: 6px 0 10px; color: var(--rdv-ink); padding-right: 30px; }
.rdv-lead { margin: 0 0 20px; }
.rdv-field { display: flex; flex-direction: column; gap: 6px; font: 700 13px/1.3 var(--rdv-body); margin: 0 0 14px; flex: 1; min-width: 0; }
.rdv-field small { font-weight: 400; opacity: .75; }
.rdv-dialog .rdv-field input, .rdv-dialog .rdv-field select, .rdv-dialog .rdv-field textarea {
  font: 400 16px/1.4 var(--rdv-body); padding: 12px 13px; border: 1px solid var(--rdv-line); border-radius: 10px; background: #fff; color: var(--rdv-ink); width: 100%; margin: 0; min-height: 48px;
}
.rdv-field textarea { resize: vertical; min-height: 140px; }
.rdv-dialog .rdv-field input:focus, .rdv-dialog .rdv-field select:focus, .rdv-dialog .rdv-field textarea:focus { outline: 2px solid var(--rdv-navy); outline-offset: 1px; border-color: var(--rdv-navy); }
.rdv-row { display: flex; gap: 14px; }
.rdv-sum { padding: 12px 14px; background: var(--rdv-soft); border-radius: 10px; margin: 4px 0 18px; }
.rdv-dates { font-weight: 700; margin: 0 0 18px; color: var(--rdv-brass-d); }
.rdv-check { display: flex; gap: 10px; align-items: flex-start; font-size: 14px; margin: 4px 0 16px; flex-wrap: wrap; }
.rdv-check input { width: 20px; height: 20px; margin: 1px 0 0; accent-color: var(--rdv-navy); flex: none; }
.rdv-check span { flex: 1; }
.rdv-check a { color: inherit; }
.rdv-hp { position: absolute !important; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.rdv-dialog .rdv-invalid { border-color: #b3261e !important; }
.rdv-field-msg { display: block; width: 100%; color: #b3261e; font: 600 13px/1.4 var(--rdv-body); }
.rdv-error { background: #fbe9e7; color: #8c1d18; border-radius: 10px; padding: 10px 14px; font-weight: 600; margin: 0 0 14px; }
.rdv-error[hidden] { display: none; }
.rdv-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.rdv-dialog button.rdv-back { border: 0; background: none; font: 700 14px var(--rdv-body); color: var(--rdv-ink); cursor: pointer; padding: 8px 0; border-radius: 0; }
.rdv-dialog button.rdv-back:hover, .rdv-dialog button.rdv-back:focus { background: none; color: var(--rdv-navy); text-decoration: underline; }
.rdv-note { font-size: 13px; opacity: .75; margin: 16px 0 0; }
.rdv-step[hidden] { display: none; }

@media (max-width: 1024px) {
  .rdv-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 900px) {
  .rdv-compass { grid-template-columns: 1fr; gap: 40px; }
  .rdv-compass button.rdv-pt, .rdv-compass .rdv-pt { font-size: 14px; padding: 6px 11px; }
}
@media (max-width: 640px) {
  .rdv-grid { grid-template-columns: 1fr; }
  .rdv-dialog { padding: 26px 18px; }
  .rdv-row { flex-direction: column; gap: 0; }
  .rdv-card-body { padding: 22px 20px 24px; }
  .rdv-card-title { font-size: 32px; }
}
@media (max-width: 420px) {
  .rdv-compass button.rdv-pt, .rdv-compass .rdv-pt { font-size: 12.5px; padding: 5px 9px; }
  .rdv-compass .rdv-pt small { display: none; }
}
@media (prefers-reduced-motion: reduce) {
  .rdv-needle, .rdv-card-img img, .rdv-panel { transition: none; animation: none; }
}
