/* ═══════════════════════════════════════════════════
   APPARTAMENTI — Front-end Stylesheet
   Stile: montagna elegante, tonalità alpine, tipografia raffinata
════════════════════════════════════════════════════ */

@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --appt-bg:         #f8f7f4;
  --appt-white:      #ffffff;
  --appt-ink:        #1a1a2e;
  --appt-ink-soft:   #4a4a5a;
  --appt-accent:     #2c5f6e;    /* teal montagna */
  --appt-accent-lt:  #e8f4f7;
  --appt-gold:       #c9a44e;
  --appt-border:     #e2ddd5;
  --appt-radius:     12px;
  --appt-shadow:     0 4px 24px rgba(0,0,0,.10);
  --appt-shadow-sm:  0 2px 8px  rgba(0,0,0,.07);
}

*, *::before, *::after { box-sizing: border-box; }

/* ── Reset wrapper ── */
.appt-wrapper {
  font-family: 'DM Sans', sans-serif;
  color: var(--appt-ink);
  background: var(--appt-bg);
  max-width: 1200px;
  margin: 0 auto;
  padding: 128px 20px 80px;
}

/* ══════════════════════════════════════
   HERO — galleria
══════════════════════════════════════ */

.appt-hero {
  margin-bottom: 40px;
}

.appt-hero__main {
  width: 100%;
  aspect-ratio: 16 / 7;
  border-radius: var(--appt-radius);
  overflow: hidden;
  background: #ddd;
  box-shadow: var(--appt-shadow);
}

.appt-hero__main-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity .3s ease;
}

.appt-hero__no-img {
  width: 100%;
  height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #999;
  background: #eee;
}

/* ── Strip miniature ── */
.appt-thumbs-strip {
  display: flex;
  gap: 8px;
  margin-top: 10px;
  overflow-x: auto;
  padding-bottom: 6px;
  scrollbar-width: thin;
  scrollbar-color: var(--appt-border) transparent;
}

.appt-thumb {
  flex: 0 0 110px;
  height: 74px;
  border-radius: 8px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: border-color .2s, transform .2s, opacity .2s;
  opacity: .75;
}

.appt-thumb:hover {
  opacity: 1;
  transform: translateY(-2px);
}

.appt-thumb--active,
.appt-thumb.is-active {
  border-color: var(--appt-accent);
  opacity: 1;
}

.appt-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  pointer-events: none;
}

/* ══════════════════════════════════════
   LAYOUT CONTENT — 2 colonne
══════════════════════════════════════ */
.appt-content {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 40px;
  align-items: start;
}

@media (max-width: 900px) {
  .appt-content { grid-template-columns: 1fr; }
  .appt-content__right { order: -1; }
}

/* ── Titolo ── */
.appt-title-block {
  margin-bottom: 20px;
}

.appt-badge-tipologia {
  display: inline-block;
  background: var(--appt-accent-lt);
  color: var(--appt-accent);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 20px;
  margin-bottom: 10px;
}

.appt-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: clamp(2rem, 5vw, 3.2rem);
  font-weight: 700;
  line-height: 1.15;
  color: var(--appt-ink);
  margin: 0 0 10px;
}

.appt-localita {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 14px;
  color: var(--appt-ink-soft);
  margin: 0;
}

.appt-localita svg {
  fill: var(--appt-accent);
  flex-shrink: 0;
}

/* ── Highlights pills ── */
.appt-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 20px 0 28px;
}

.appt-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  background: var(--appt-white);
  border: 1px solid var(--appt-border);
  border-radius: 50px;
  padding: 6px 14px;
  font-size: 13px;
  font-weight: 500;
  color: var(--appt-ink);
  box-shadow: var(--appt-shadow-sm);
  white-space: nowrap;
}

/* ── Section title ── */
.appt-section-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.5rem;
  font-weight: 600;
  color: var(--appt-ink);
  margin: 0 0 16px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--appt-border);
}

/* ── Descrizione ── */
.appt-description {
  margin-bottom: 36px;
}

.appt-description p {
  font-size: 15px;
  line-height: 1.75;
  color: var(--appt-ink-soft);
  margin: 0;
}

/* ── Dettagli griglia ── */
.appt-details-block {
  margin-bottom: 40px;
}

.appt-details-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 0;
  background: var(--appt-white);
  border: 1px solid var(--appt-border);
  border-radius: var(--appt-radius);
  overflow: hidden;
  box-shadow: var(--appt-shadow-sm);
}

.appt-detail-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--appt-border);
  border-right: 1px solid var(--appt-border);
  transition: background .15s;
}

.appt-detail-item:hover {
  background: var(--appt-accent-lt);
}

.appt-detail-icon {
  font-size: 18px;
  flex-shrink: 0;
  width: 26px;
  text-align: center;
}

.appt-detail-label {
  font-size: 12px;
  color: var(--appt-ink-soft);
  flex: 1;
  font-weight: 500;
}

.appt-detail-val {
  font-size: 13px;
  font-weight: 600;
  color: var(--appt-ink);
  text-align: right;
}

/* ══════════════════════════════════════
   SIDEBAR DESTRA
══════════════════════════════════════ */
.appt-content__right {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 20px;
}

/* ── Card prezzo ── */
.appt-price-card {
  background: var(--appt-white);
  border: 1px solid var(--appt-border);
  border-radius: var(--appt-radius);
  padding: 24px;
  box-shadow: var(--appt-shadow);
  text-align: center;
}

.appt-price-card__price {
  display: flex;
  align-items: baseline;
  justify-content: center;
  gap: 4px;
  margin-bottom: 6px;
}

.appt-price-card__amount {
  font-family: 'Cormorant Garamond', serif;
  font-size: 2.8rem;
  font-weight: 700;
  color: var(--appt-accent);
  line-height: 1;
}

.appt-price-card__per {
  font-size: 14px;
  color: var(--appt-ink-soft);
}

.appt-price-card__guests {
  font-size: 13px;
  color: var(--appt-ink-soft);
  margin: 0 0 18px;
}

.appt-btn-contact {
  display: block;
  width: 100%;
  background: var(--appt-accent);
  color: #fff;
  text-align: center;
  padding: 13px 20px;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  text-decoration: none;
  letter-spacing: .02em;
  transition: background .2s, transform .15s;
}

.appt-btn-contact:hover {
  background: #1f4a57;
  transform: translateY(-1px);
  color: #fff;
}

/* ── Mappa ── */
.appt-map-block {
  background: var(--appt-white);
  border: 1px solid var(--appt-border);
  border-radius: var(--appt-radius);
  overflow: hidden;
  box-shadow: var(--appt-shadow-sm);
}

.appt-map-title {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.1rem;
  font-weight: 600;
  margin: 0;
  padding: 14px 18px 12px;
  border-bottom: 1px solid var(--appt-border);
  color: var(--appt-ink);
}

.appt-map-img {
  width: 100%;
  display: block;
  max-height: 200px;
  object-fit: cover;
}

.appt-map-caption {
  font-size: 12px;
  color: var(--appt-ink-soft);
  padding: 10px 16px;
  margin: 0;
}

/* ══════════════════════════════════════
   RESPONSIVE
══════════════════════════════════════ */
@media (max-width: 600px) {
  .appt-wrapper { padding: 16px 14px 60px; }
  .appt-hero__main { aspect-ratio: 4/3; }
  .appt-details-grid { grid-template-columns: 1fr 1fr; }
}
