/* =========================================================
   GGT HOTEL RESULTS PAGE
   =========================================================
   Layout a due colonne: sidebar sinistra + main destra
   Stile ispirato a Booking.com
   ========================================================= */

/* Font variables */
:root {
  --font-body:    'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  --font-display: 'DM Sans', 'Inter', sans-serif;
}

/* Root layout */
.ggt-results-page {
  display: flex;
  gap: 1.5rem;
  max-width: 1280px;
  margin: 2rem auto;
  padding: 0 1rem;
  align-items: flex-start;
  font-family: var(--font-body);
  color: #1a1a1a;
  font-size: 15px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* ─── SIDEBAR ─────────────────────────────────────────── */
.ggt-results-sidebar {
  width: 280px;
  flex-shrink: 0;
  position: sticky;
  top: 1.5rem;
  max-height: calc(100vh - 2rem);
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 0;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
}

/* Immagine città */
.ggt-sidebar-city-img {
  position: relative;
}
.ggt-sidebar-city-img img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  transition: opacity 0.4s ease;
}
.ggt-city-label {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 0.5rem 0.75rem;
  background: linear-gradient(transparent, rgba(0,0,0,0.65));
  color: #fff;
  font-size: 0.85rem;
  line-height: 1.4;
}
.ggt-city-label strong { font-size: 1rem; font-family: var(--font-display); font-weight: 700; }

/* Riepilogo */
.ggt-sidebar-summary {
  padding: 1rem;
  border-bottom: 1px solid #f0f0f0;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
.ggt-summary-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.88rem;
  color: #374151;
}
.ggt-summary-row svg { flex-shrink: 0; color: #6b7280; }
.ggt-btn-change {
  margin-top: 0.25rem;
  padding: 0.45rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  font-size: 0.85rem;
  cursor: pointer;
  color: #374151;
  transition: background 0.15s, border-color 0.15s;
  text-align: center;
}
.ggt-btn-change:hover { background: #f9fafb; border-color: #9ca3af; }

/* Sezione filtri */
.ggt-filter-section {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid #f0f0f0;
  background: #fff;
}
.ggt-filter-title {
  font-weight: 700;
  font-size: 0.88rem;
  color: #111827;
  margin-bottom: 0.6rem;
}
.ggt-filter-search-wrap {
  display: flex;
  align-items: center;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  padding: 0 0.6rem;
  gap: 0.4rem;
  background: #fff;
}
.ggt-filter-search-wrap input {
  flex: 1;
  border: none;
  outline: none;
  padding: 0.45rem 0;
  font-size: 0.85rem;
  background: transparent;
}
.ggt-filter-search-wrap svg { color: #9ca3af; flex-shrink: 0; }
.ggt-filter-checkbox {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.3rem 0;
  font-size: 0.85rem;
  cursor: pointer;
  color: #374151;
}
.ggt-filter-checkbox input { cursor: pointer; accent-color: #2563eb; }
.ggt-filter-count { margin-left: auto; color: #9ca3af; font-size: 0.8rem; }
.ggt-price-inputs {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  width: 100%;
  box-sizing: border-box;
}
.ggt-price-inputs input {
  flex: 1;
  min-width: 0;
  width: 0;
  padding: 0.4rem 0.5rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.85rem;
  outline: none;
  box-sizing: border-box;
}
.ggt-price-inputs input:focus { border-color: #2563eb; }
.ggt-price-inputs span { color: #9ca3af; }

/* ─── MAIN ────────────────────────────────────────────── */
.ggt-results-main {
  flex: 1;
  min-width: 0;
}

/* Header risultati */
.ggt-results-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}
.ggt-results-title {
  font-size: 1.3rem;
  font-weight: 700;
  color: #111827;
  margin: 0;
  line-height: 1.3;
  font-family: var(--font-display);
}
.ggt-results-subtitle {
  font-size: 0.88rem;
  color: #6b7280;
  margin: 0.2rem 0 0;
}
.ggt-results-sort-wrap {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  white-space: nowrap;
  flex-shrink: 0;
}
.ggt-results-sort-label { font-size: 0.85rem; color: #6b7280; }
.ggt-results-sort-select {
  border: 1px solid #d1d5db;
  border-radius: 6px;
  padding: 0.4rem 0.6rem;
  font-size: 0.85rem;
  background: #fff;
  cursor: pointer;
  outline: none;
}

/* ─── HOTEL CARD (ESTESO) ─────────────────────────────── */
.ggt-hotel-card {
  display: flex;
  gap: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
  transition: box-shadow 0.2s;
}
.ggt-hotel-card:hover { box-shadow: 0 4px 20px rgba(0,0,0,0.10); }

.ggt-hotel-img-wrap {
  width: 220px;
  min-height: 320px;
  flex-shrink: 0;
  overflow: hidden;
  background: #e2e8f0;
}
.ggt-hotel-img-wrap img.hotel-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
  transition: transform 0.3s ease;
}
.ggt-hotel-card:hover .ggt-hotel-img-wrap img.hotel-thumb {
  transform: scale(1.04);
}
/* Body card */
.ggt-hotel-body {
  flex: 1;
  padding: 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}
.ggt-hotel-name-row {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  flex-wrap: wrap;
}
.ggt-hotel-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: #111827;
  font-family: var(--font-display);
}
.ggt-hotel-stars { color: #f59e0b; font-size: 0.88rem; }
.ggt-hotel-location {
  font-size: 0.82rem;
  color: #6b7280;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ggt-free-cancel {
  font-size: 0.82rem;
  color: #059669;
  font-weight: 600;
}
.ggt-hotel-room {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.83rem;
  color: #374151;
}
.ggt-hotel-room svg { margin-top: 2px; flex-shrink: 0; color: #6b7280; }
.ggt-hotel-remark {
  font-size: 0.78rem;
  color: #9ca3af;
}

/* Colonna prezzo */
.ggt-hotel-price-col {
  padding: 1rem;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 0.3rem;
  min-width: 160px;
  border-left: 1px solid #f3f4f6;
  background: #fafafa;
}
.ggt-price-amount {
  font-size: 1.6rem;
  font-weight: 800;
  color: #111827;
  text-align: right;
  line-height: 1.1;
  font-family: var(--font-display);
  letter-spacing: -0.02em;
}
.ggt-price-na { font-size: 1rem; color: #9ca3af; }
.ggt-price-note {
  font-size: 0.75rem;
  color: #9ca3af;
  text-align: right;
}
.ggt-btn-options {
  margin-top: 0.5rem;
  padding: 0.6rem 1rem;
  background: #f59e0b;
  color: #fff;
  border: none;
  border-radius: 8px;
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.15s;
  white-space: nowrap;
}
.ggt-btn-options:hover { background: #d97706; }

/* ─── SKELETON ────────────────────────────────────────── */
.ggt-hotel-skeleton {
  display: flex;
  gap: 0;
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  margin-bottom: 1rem;
}
.skeleton-img {
  width: 220px;
  height: 180px;
  background: #f3f4f6;
}
.skeleton-body {
  flex: 1;
  padding: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
  justify-content: center;
}
.skeleton-price {
  padding: 1rem;
  min-width: 140px;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  align-items: flex-end;
  justify-content: flex-end;
}
.skeleton-line {
  height: 0.85rem;
  border-radius: 4px;
  background: linear-gradient(90deg, #f3f4f6 25%, #e9eaec 50%, #f3f4f6 75%);
  background-size: 200% 100%;
  animation: ggt-shimmer 1.4s infinite;
}
.w-20  { width: 5rem; }
.w-24  { width: 6rem; }
.w-32  { width: 8rem; }
.w-40  { width: 10rem; }
.w-60  { width: 15rem; }
.w-80  { width: 20rem; }
@keyframes ggt-shimmer {
  0%   { background-position: 200% 0; }
  100% { background-position: -200% 0; }
}

/* ─── EMPTY / ERROR ───────────────────────────────────── */
.ggt-no-results {
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 3rem 1rem;
  color: #6b7280;
  gap: 1rem;
}
.ggt-btn-reset-filters {
  padding: 0.5rem 1.25rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
  font-size: 0.9rem;
  color: #374151;
}
.ggt-results-error {
  padding: 2rem;
  border: 1px solid #fecaca;
  border-radius: 12px;
  background: #fef2f2;
  color: #991b1b;
  font-size: 0.95rem;
}

/* ─── RESPONSIVE ──────────────────────────────────────── */
@media (max-width: 768px) {
  .ggt-results-page { flex-direction: column; }
  .ggt-results-sidebar {
    width: 100%;
    position: static;
    max-height: none;
    overflow: visible;
  }
  .ggt-hotel-img-wrap { width: 140px; height: 140px; }
  .ggt-hotel-price-col { min-width: 110px; }
  .ggt-price-amount { font-size: 1.2rem; }
  .skeleton-img { width: 140px; }
}
@media (max-width: 480px) {
  .ggt-hotel-card { flex-direction: column; }
  .ggt-hotel-img-wrap { width: 100%; height: 180px; }
  .ggt-hotel-price-col { border-left: none; border-top: 1px solid #f3f4f6; flex-direction: row; justify-content: space-between; align-items: center; }
}
/* ─── NUOVI ELEMENTI ─────────────────────────────────────── */

/* Badge servizi speciali (Free WiFi ecc.) sull'immagine */
.ggt-special-wrap {
  position: absolute;
  bottom: 0.5rem;
  left: 0.5rem;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.ggt-hotel-img-wrap { position: relative; }
.ggt-special-badge {
  display: inline-block;
  padding: 0.2rem 0.5rem;
  background: rgba(37,99,235,0.90);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 600;
  border-radius: 4px;
  white-space: nowrap;
  backdrop-filter: blur(2px);
}

/* Location con link mappa */
.ggt-hotel-location {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.82rem;
  color: #6b7280;
  flex-wrap: wrap;
}
.ggt-hotel-location svg { flex-shrink: 0; }
.ggt-map-link {
  color: #2563eb;
  text-decoration: underline;
  font-size: 0.8rem;
  margin-left: 0.2rem;
  white-space: nowrap;
}
.ggt-map-link:hover { color: #1d4ed8; }

/* Info cancellazione */
.ggt-cxl-info {
  display: flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.8rem;
  color: #059669;
  margin: 0.2rem 0;
}
.ggt-cxl-info svg { flex-shrink: 0; }

/* Lista offerte/camere */
.ggt-offers-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: 0.5rem;
  border: 1px solid #f0f0f0;
  border-radius: 8px;
  overflow: hidden;
}
.ggt-offer-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  padding: 0.55rem 0.75rem;
  border-bottom: 1px solid #f5f5f5;
  background: #fafafa;
  transition: background 0.12s;
}
.ggt-offer-row:last-child { border-bottom: none; }
.ggt-offer-row:hover { background: #f0f4ff; }
.ggt-offer-info {
  display: flex;
  align-items: flex-start;
  gap: 0.4rem;
  font-size: 0.83rem;
  color: #374151;
  flex: 1;
  min-width: 0;
}
.ggt-offer-info svg { flex-shrink: 0; margin-top: 2px; color: #6b7280; }
.ggt-offer-basis { color: #6b7280; font-weight: 400; }
.ggt-offer-tags { margin-top: 0.2rem; display: flex; gap: 0.3rem; flex-wrap: wrap; }
.ggt-offer-tax {
  font-size: 0.75rem;
  color: #f97316;
  margin-top: 0.15rem;
}
.ggt-offer-price {
  font-size: 0.9rem;
  font-weight: 700;
  color: #1a1a1a;
  white-space: nowrap;
  flex-shrink: 0;
  padding-top: 1px;
}

/* Tag cancellazione / non rimborsabile */
.ggt-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.12rem 0.45rem;
  border-radius: 4px;
  font-size: 0.72rem;
  font-weight: 600;
  white-space: nowrap;
}
.ggt-tag--free { background: #d1fae5; color: #065f46; }
.ggt-tag--nonref { background: #fee2e2; color: #991b1b; }

/* "Altre N tipologie" */
.ggt-more-offers {
  font-size: 0.78rem;
  color: #2563eb;
  text-align: center;
  padding: 0.35rem 0;
  cursor: pointer;
  background: #eff6ff;
  border: 1px solid #dbeafe;
  border-radius: 0 0 8px 8px;
  margin-top: -1px;
}
.ggt-more-offers:hover { background: #dbeafe; }

/* Tassa locale sotto prezzo */
.ggt-price-label {
  font-size: 0.72rem;
  color: #9ca3af;
  text-align: right;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.ggt-price-currency { font-size: 1rem; font-weight: 600; }
.ggt-price-tax {
  font-size: 0.73rem;
  color: #f97316;
  text-align: right;
  margin-top: 0.15rem;
}

/* ─── DRAWER TIPOLOGIE DI CAMERA ──────────────────────── */
.ggt-offers-drawer {
  background: #f0f7ff;
  border: 1px solid #bfdbfe;
  border-top: none;
  border-radius: 0 0 10px 10px;
  margin-bottom: 0.75rem;
  overflow: hidden;
  max-height: 0;
  transition: max-height 0.35s ease;
}

.ggt-drawer-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 1.1rem;
  background: #dbeafe;
  border-bottom: 1px solid #bfdbfe;
  font-size: 0.88rem;
  color: #1e3a5f;
}

.ggt-drawer-close {
  background: none;
  border: none;
  cursor: pointer;
  color: #2563eb;
  font-size: 0.82rem;
  padding: 0.2rem 0.5rem;
  border-radius: 4px;
  transition: background 0.15s;
}
.ggt-drawer-close:hover { background: #bfdbfe; }

.ggt-drawer-body { display: flex; flex-direction: column; }

.ggt-drawer-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.75rem 1.1rem;
  border-bottom: 1px solid #e0eeff;
  transition: background 0.15s;
}
.ggt-drawer-row:last-child { border-bottom: none; }
.ggt-drawer-row:hover { background: #e8f2ff; }

.ggt-drawer-room {
  flex: 1;
  min-width: 0;
  font-size: 0.87rem;
  color: #1e293b;
}
.ggt-drawer-basis { color: #6b7280; font-size: 0.82rem; }
.ggt-drawer-tags { margin-top: 0.3rem; }
.ggt-drawer-tax { font-size: 0.75rem; color: #f97316; margin-top: 0.2rem; }

.ggt-drawer-price-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  flex-shrink: 0;
}

.ggt-drawer-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: #1e3a5f;
  white-space: nowrap;
}
.ggt-drawer-currency { font-size: 0.85rem; font-weight: 600; color: #64748b; }

.ggt-btn-select {
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 0.35rem 0.85rem;
  font-size: 0.82rem;
  font-weight: 600;
  cursor: pointer;
  transition: background 0.2s;
  white-space: nowrap;
}
.ggt-btn-select:hover { background: #1d4ed8; }

/* Pulsante "Vedi le opzioni" quando drawer è aperto */
.ggt-btn-options.is-open {
  background: #1d4ed8;
  color: #fff;
}
.ggt-more-offers.is-open {
  background: #dbeafe;
  color: #1d4ed8;
  font-weight: 700;
}

/* ─── MODAL HOTEL SINGOLO ──────────────────────────────── */
#ggt-modal-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.55);
  z-index: 99999;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem;
  overflow-y: auto;
  backdrop-filter: blur(3px);
}
#ggt-modal-overlay.is-open {
  display: flex;
}

.ggt-modal {
  background: #fff;
  border-radius: 14px;
  width: 100%;
  max-width: 800px;
  box-shadow: 0 20px 60px rgba(0,0,0,0.25);
  overflow: hidden;
  animation: ggtModalIn 0.25s ease;
}
@keyframes ggtModalIn {
  from { opacity: 0; transform: translateY(24px) scale(0.97); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

/* Hero immagine */
.ggt-modal-hero {
  position: relative;
  height: 240px;
  background: #e2e8f0;
  overflow: hidden;
}
.ggt-modal-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
#ggt-modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: none;
  background: rgba(0,0,0,0.5);
  color: #fff;
  font-size: 1.3rem;
  line-height: 1;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}
#ggt-modal-close:hover { background: rgba(0,0,0,0.75); }
.ggt-modal-badges {
  position: absolute;
  bottom: 0.6rem;
  left: 0.8rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

/* Contenuto */
.ggt-modal-content {
  padding: 1.4rem 1.6rem 1.8rem;
}
.ggt-modal-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 1.2rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #e5e7eb;
}
.ggt-modal-title {
  font-size: 1.35rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0 0 0.35rem;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}
.ggt-modal-meta {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  flex-wrap: wrap;
}
.ggt-modal-location {
  display: flex;
  align-items: center;
  gap: 0.25rem;
  font-size: 0.85rem;
  color: #6b7280;
}
.ggt-modal-section-title {
  font-size: 0.93rem;
  font-weight: 700;
  color: #374151;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 0.75rem;
}
.ggt-modal-rooms { display: flex; flex-direction: column; gap: 0; }

/* Riga camera */
.ggt-modal-room-row {
  display: flex;
  align-items: center;
  gap: 1rem;
  padding: 0.9rem 0;
  border-bottom: 1px solid #f3f4f6;
}
.ggt-modal-room-row:last-child { border-bottom: none; }
.ggt-modal-room-info { flex: 1; min-width: 0; }
.ggt-modal-room-name {
  font-size: 0.93rem;
  font-weight: 600;
  color: #1e293b;
  margin-bottom: 0.2rem;
}
.ggt-modal-room-basis { font-size: 0.82rem; color: #6b7280; margin-bottom: 0.3rem; }
.ggt-modal-room-tags { margin-bottom: 0.25rem; }
.ggt-modal-room-tax { font-size: 0.78rem; color: #f97316; }

.ggt-modal-room-price {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 0.4rem;
  flex-shrink: 0;
  min-width: 130px;
}
.ggt-modal-price-amount {
  font-size: 1.15rem;
  font-weight: 700;
  color: #0f172a;
  white-space: nowrap;
  font-family: var(--font-display);
  letter-spacing: -0.01em;
}
.ggt-modal-price-cur { font-size: 0.85rem; font-weight: 500; color: #64748b; }
.ggt-modal-btn-select {
  background: #f59e0b;
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 0.45rem 1rem;
  font-size: 0.85rem;
  font-weight: 700;
  cursor: pointer;
  white-space: nowrap;
  transition: background 0.2s;
}
.ggt-modal-btn-select:hover { background: #d97706; }

.ggt-modal-empty { padding: 1rem 0; color: #9ca3af; font-size: 0.9rem; }

/* Icone ospiti per camera */
.ggt-pax-row {
  display: flex;
  align-items: center;
  gap: 1px;
  margin: 0.25rem 0 0.3rem;
  color: #2563eb;
}
.ggt-pax-icon {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
}
.ggt-pax-label {
  font-size: 0.76rem;
  color: #6b7280;
  margin-left: 0.35rem;
  white-space: nowrap;
}
.ggt-pax-extra {
  font-size: 0.75rem;
  font-weight: 700;
  color: #2563eb;
  margin-left: 2px;
}

@media (max-width: 600px) {
  .ggt-modal-hero { height: 160px; }
  .ggt-modal-content { padding: 1rem; }
  .ggt-modal-room-row { flex-direction: column; align-items: flex-start; }
  .ggt-modal-room-price { align-items: flex-start; flex-direction: row; align-items: center; }
}
