/* PICCOLOTEL — Ricerca disponibilita' + richiesta WhatsApp
   Colori sito: blu #3B4C77, azzurro #23FAF8, WhatsApp #25D366 */

/* --- FIX icone del sito (frecce galleria + loghi social) ---
   Il template Webnode carica FontAwesome da http://maxcdn.bootstrapcdn.com:
   su una pagina https il browser lo blocca (mixed content) e i glifi restano invisibili.
   Qui lo ricarichiamo dallo stesso font via HTTPS. */
@font-face {
  font-family: 'FontAwesome';
  src: url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/fonts/fontawesome-webfont.woff2?v=4.7.0") format("woff2"),
       url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/fonts/fontawesome-webfont.woff?v=4.7.0") format("woff"),
       url("https://cdnjs.cloudflare.com/ajax/libs/font-awesome/4.7.0/fonts/fontawesome-webfont.ttf?v=4.7.0") format("truetype");
  font-weight: normal;
  font-style: normal;
  font-display: swap;
}

.ptb-wrap, .ptb-modal { font-family: 'Nunito Sans', Arial, Helvetica, sans-serif; }

/* ---------- Pulsante WhatsApp nel blocco contatti (compatto, in linea col testo) ---------- */
.ptb-contact-btns { margin-top: 4px; }

.ptb-btn-wa-sm {
  display: inline-flex; align-items: center; gap: 6px;
  padding: 5px 12px; border: none; border-radius: 999px; cursor: pointer;
  font-family: inherit; font-size: 13px; font-weight: 700; line-height: 1.4;
  background: #25D366; color: #fff; text-decoration: none;
  box-shadow: 0 3px 10px rgba(37,211,102,.30);
  transition: all .2s ease;
}
.ptb-btn-wa-sm:hover { background: #1fb855; color: #fff; }

/* ---------- Pulsanti generici (dentro le modali) ---------- */
.ptb-btn {
  display: flex; align-items: center; justify-content: center; gap: 8px;
  padding: 11px 14px; border: none; border-radius: 10px; cursor: pointer;
  font-family: inherit; font-size: 14px; font-weight: 700; line-height: 1.2;
  text-decoration: none; transition: all .25s ease;
}
.ptb-btn-wa { background: #25D366; color: #fff; box-shadow: 0 8px 20px rgba(37,211,102,.35); }
.ptb-btn-wa:hover { background: #1fb855; color: #fff; transform: translateY(-1px); }

/* ---------- Bandiere lingua nella modale ---------- */
.ptb-head-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding-right: 28px; }
.ptb-flags { display: flex; gap: 5px; flex-wrap: wrap; }
.ptb-flag {
  padding: 0; border: 2px solid transparent; border-radius: 4px;
  background: none; cursor: pointer; line-height: 0; opacity: .5; transition: all .2s ease;
}
.ptb-flag img { width: 24px; height: auto; display: block; border-radius: 2px; }
.ptb-flag:hover { opacity: 1; }
.ptb-flag.ptb-act { opacity: 1; border-color: #23FAF8; }

/* ---------- Pulsante flottante ---------- */
.ptb-fab {
  position: fixed; right: 18px; bottom: 18px; z-index: 99990;
  display: inline-flex; align-items: center; gap: 8px;
  padding: 13px 18px; border: none; border-radius: 999px; cursor: pointer;
  font-family: 'Nunito Sans', Arial, sans-serif; font-size: 14px; font-weight: 700;
  background: #23FAF8; color: #17324f;
  box-shadow: 0 12px 30px rgba(23,50,79,.35);
  transition: all .25s ease;
}
.ptb-fab:hover { background: #0fe3e1; transform: translateY(-2px); box-shadow: 0 16px 36px rgba(23,50,79,.45); }
@media (max-width: 480px) { .ptb-fab { right: 12px; bottom: 12px; padding: 11px 15px; font-size: 13px; } }

/* ---------- Modale (condivisa) ---------- */
.ptb-modal {
  position: fixed; inset: 0; z-index: 99999; display: none;
  align-items: center; justify-content: center; padding: 18px;
}
.ptb-modal.ptb-on { display: flex; }
.ptb-overlay { position: absolute; inset: 0; background: rgba(20,26,42,.82); }

.ptb-card {
  position: relative; z-index: 1; width: 100%; max-width: 560px; max-height: 92vh; overflow-y: auto;
  padding: 26px; border-radius: 16px; background: #fff; color: #3B4C77;
  box-shadow: 0 26px 70px rgba(0,0,0,.5);
}
.ptb-card--sm { max-width: 400px; }

.ptb-close {
  position: absolute; top: 8px; right: 12px; border: none; background: none;
  font-size: 28px; line-height: 1; color: #9aa3b8; cursor: pointer; padding: 0;
}
.ptb-close:hover { color: #3B4C77; }

.ptb-head {
  font-size: 17px; font-weight: 800; color: #3B4C77;
  padding-right: 28px; margin-bottom: 4px; line-height: 1.3;
}
.ptb-sub { font-size: 12px; color: #6b7793; margin-bottom: 14px; }

/* ---------- Form ---------- */
.ptb-form { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ptb-field { display: flex; flex-direction: column; }
.ptb-lab { font-size: 11px; font-weight: 700; color: #6b7793; margin-bottom: 4px; }
.ptb-in {
  width: 100%; box-sizing: border-box; padding: 10px 11px; border-radius: 9px;
  border: 1px solid #d5dae6; background: #fff; color: #3B4C77;
  font-family: inherit; font-size: 14px; outline: none; transition: all .2s ease;
}
.ptb-in:focus { border-color: #3B4C77; box-shadow: 0 0 0 3px rgba(59,76,119,.15); }
.ptb-go {
  grid-column: 1 / -1; margin-top: 4px; padding: 13px; border: none; border-radius: 10px;
  cursor: pointer; font-family: inherit; font-size: 15px; font-weight: 800;
  background: #3B4C77; color: #fff; box-shadow: 0 8px 20px rgba(59,76,119,.35);
  transition: all .25s ease;
}
.ptb-go:hover { background: #2e3c60; transform: translateY(-1px); }
@media (max-width: 460px) { .ptb-form { grid-template-columns: 1fr; } }

/* ---------- Stato / risultati ---------- */
.ptb-results { margin-top: 18px; }
.ptb-status { display: flex; flex-direction: column; align-items: center; gap: 10px; padding: 26px 10px; text-align: center; color: #6b7793; font-size: 14px; }
.ptb-spin { width: 32px; height: 32px; border-radius: 50%; border: 3px solid rgba(59,76,119,.2); border-top-color: #3B4C77; animation: ptbspin .8s linear infinite; }
@keyframes ptbspin { to { transform: rotate(360deg); } }

.ptb-meta { font-size: 12px; color: #6b7793; margin-bottom: 12px; padding-bottom: 10px; border-bottom: 1px solid #e6e9f2; }

/* scelta disposizione */
.ptb-splits { margin-bottom: 14px; }
.ptb-splits-lab { font-size: 13px; font-weight: 700; color: #3B4C77; margin-bottom: 8px; }
.ptb-split-opts { display: flex; flex-wrap: wrap; gap: 8px; }
.ptb-split {
  padding: 9px 15px; border-radius: 999px; cursor: pointer; font-family: inherit;
  font-size: 14px; font-weight: 700; border: 1px solid #3B4C77;
  background: #fff; color: #3B4C77; transition: all .2s ease;
}
.ptb-split:hover { background: #eef1f8; }
.ptb-split.ptb-act { background: #3B4C77; color: #fff; }

/* scheda camera */
.ptb-rooms { display: grid; grid-template-columns: repeat(auto-fill, minmax(210px, 1fr)); gap: 12px; }
.ptb-room {
  position: relative; display: flex; flex-direction: column; gap: 8px;
  padding: 14px; border-radius: 12px; border: 1px solid #e0e4ef; background: #fff;
  box-shadow: 0 6px 18px rgba(59,76,119,.10);
}
.ptb-room--best { border: 2px solid #23FAF8; box-shadow: 0 8px 22px rgba(35,250,248,.35); }
.ptb-best {
  align-self: flex-start; padding: 4px 11px; border-radius: 999px;
  background: #23FAF8; color: #17324f; font-size: 11px; font-weight: 800;
  letter-spacing: .04em; text-transform: uppercase;
}
.ptb-room-name { font-size: 15px; font-weight: 800; color: #3B4C77; text-transform: capitalize; }
.ptb-occ { align-self: flex-start; font-size: 11px; color: #6b7793; background: #f0f2f8; border-radius: 999px; padding: 2px 9px; }
.ptb-lines { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: #6b7793; }
.ptb-line { display: flex; justify-content: space-between; gap: 10px; }
.ptb-line span:last-child { color: #3B4C77; font-weight: 600; }
.ptb-tot { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 4px; padding-top: 8px; border-top: 1px dashed #d5dae6; }
.ptb-tot-lab { font-size: 12px; color: #6b7793; }
.ptb-tot-amt { font-size: 21px; font-weight: 800; color: #3B4C77; line-height: 1; }

/* combinazione multi-camera */
.ptb-bundle { padding: 14px; border-radius: 14px; border: 1px solid #d9dfee; background: #f7f9fd; }
.ptb-bundle-tot { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; margin-top: 14px; padding-top: 12px; border-top: 1px dashed #b9c2da; font-size: 14px; font-weight: 700; color: #3B4C77; }
.ptb-bundle-tot .ptb-tot-amt { font-size: 26px; }

/* azioni */
.ptb-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 14px; }
.ptb-actions .ptb-btn { flex: 1; min-width: 150px; }
.ptb-btn-book { background: #3B4C77; color: #fff; box-shadow: 0 8px 20px rgba(59,76,119,.35); }
.ptb-btn-book:hover { background: #2e3c60; color: #fff; transform: translateY(-1px); }

.ptb-note { margin-top: 12px; font-size: 11px; color: #8b93a8; text-align: center; }

/* riepilogo nel popup WhatsApp */
.ptb-sum { display: flex; flex-direction: column; gap: 6px; padding: 12px 14px; border-radius: 12px; background: #f4f6fb; font-size: 12px; margin-bottom: 10px; }
.ptb-sum-row { display: flex; justify-content: space-between; gap: 10px; color: #6b7793; }
.ptb-sum-row span:last-child { color: #3B4C77; font-weight: 700; }
