/*!
 * Don Geppi Restaurant - Pop/Overlay Styles
 * Copyright (c) 2025 Manolo De Angelis - Mdaweb
 * All rights reserved.
 */

/* Overlay comune */
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  display: none;
  place-items: center;
  z-index: 1000;
  padding: 20px;
  font-family: 'Julius', 'Julius Sans One', sans-serif;
}

.popup-overlay.show {
  display: grid; 
}

/* Box popup */
.popup-box {
  background: white;
  border-radius: 12px;
  padding: 40px;
  position: relative;
  text-align: center;
  max-width: 500px;
  width: 100%;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
  box-sizing: border-box;
}

/* Logo e testo */
.popup-logo {
  max-width: 150px;
}
.popup-text {
  font-size: 14px;
  margin-bottom: 20px;
  font-family: 'Julius', 'Julius Sans One', sans-serif;
}
.popup-btn {
  display: inline-block;
  padding: 12px 24px;
  background: #000000;
  color: #fff;
  font-weight: bold;
  text-transform: uppercase;
  border-radius: 8px;
  text-decoration: none;
  font-family: 'Julius', 'Julius Sans One', sans-serif;
}

/* X chiusura - ISOLATO dai controlli dinamici */
.popup-overlay .popup-close,
.popup-box .popup-close {
  position: absolute;
  top: 10px;
  right: 10px;
  background: transparent !important;
  border: none !important;
  font-size: 1.5rem;
  cursor: pointer;
  color: #000 !important; /* ← Colore nero sempre */
  z-index: 9999;
}
.popup-overlay .popup-close:hover,
.popup-box .popup-close:hover {
  color: #333 !important;
  background: transparent !important;
}
/* BOOKING iframe specifico */
#bookingPopup .popup-box {
  max-width: 768px;
  width: 100%;
  height: 90vh;
  padding: 0;
  overflow: hidden;
}
/* Popup con contenuto dinamico */
.popup-content {
  max-height: 70vh;
  overflow-y: auto;
  padding: 20px;
  text-align: left;
}

.popup-content h2 {
  margin-top: 0;
  margin-bottom: 20px;
}

/* Stile scrollbar personalizzata */
.popup-content::-webkit-scrollbar {
  width: 8px;
}

.popup-content::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 4px;
}

.popup-content::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 4px;
}

.popup-content::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Loading spinner */
.popup-loading {
  text-align: center;
  padding: 40px;
  color: #666;
}
/* --- Responsive --- */
@media (max-width: 768px) {
  .popup-box {
    max-width: 85%;
    font-size: 0.9rem;
  }
  #bookingPopup .popup-box {
    max-width: 100vw;
    height: 85vh;
    border-radius: 0;
  }
  .popup-logo {
    max-width: 150px;
  }
  .popup-text {
    font-size: 0.9rem;
  }
}
