/* ==============================================
   HOTEL BAIA BLU — Modern Design System 2024
   ============================================== */

:root {
  /* Brand palette */
  --primary:        #0f2f6b;
  --primary-mid:    #1e4199;
  --primary-light:  #2563eb;
  --accent:         #0ea5e9;
  --accent-light:   #38bdf8;
  --accent-glow:    rgba(14, 165, 233, 0.22);

  /* Neutrals */
  --surface:        #f0f7ff;
  --dark:           #0f172a;
  --dark-mid:       #1e293b;
  --text:           #1e293b;
  --text-muted:     #64748b;
  --white:          #ffffff;
  --border:         #cbd5e1;
  --border-light:   #e2e8f0;

  /* Semantic */
  --success:        #10b981;
  --warning:        #f59e0b;
  --danger:         #ef4444;
  --info:           #06b6d4;

  /* Tokens */
  --radius-sm:      0.375rem;
  --radius:         0.625rem;
  --radius-lg:      1rem;
  --radius-xl:      1.5rem;
  --shadow-sm:      0 1px 3px rgba(0,0,0,0.08);
  --shadow:         0 4px 12px rgba(0,0,0,0.08);
  --shadow-md:      0 8px 20px rgba(0,0,0,0.10);
  --shadow-lg:      0 20px 40px rgba(0,0,0,0.12);
  --transition:     all 0.28s cubic-bezier(0.4, 0, 0.2, 1);

  /* Legacy compat – keep old variable names so PHP-generated HTML still works */
  --bg-color:        #0f2f6b;
  --second-bg-color: #0ea5e9;
  --text-color:      #fff;
  --main-color:      #e0f2fe;
  --nav-bar:         transparent;
}

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

html { overflow-x: hidden; }

body {
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif;
  background: var(--surface);
  color: var(--text);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Playfair Display', Georgia, serif;
  font-weight: 700;
  color: var(--dark-mid);
}

a { color: var(--accent); transition: color 0.2s; }
a:hover { color: var(--primary); }
img { max-width: 100%; }

/* ===================== SCROLLBAR ===================== */
::-webkit-scrollbar { width: 7px; }
::-webkit-scrollbar-track { background: var(--surface); }
::-webkit-scrollbar-thumb { background: var(--accent); border-radius: 4px; }
::-webkit-scrollbar-thumb:hover { background: var(--primary-mid); }

/* ===================== NAVBAR ===================== */
.site-navbar {
  background: rgba(10, 20, 50, 0.94) !important;
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  border-bottom: 1px solid rgba(255,255,255,0.07);
  padding: 0.6rem 0;
  transition: background 0.35s ease, box-shadow 0.35s ease;
}

.site-navbar.scrolled {
  background: rgba(8, 16, 42, 0.98) !important;
  box-shadow: 0 4px 20px rgba(0,0,0,0.28);
}

.site-navbar .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.55rem;
  text-decoration: none;
}

.site-navbar .navbar-brand img { height: 46px; width: auto; }

.brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: 0.02em;
  line-height: 1.2;
}

.brand-sub {
  font-family: 'Inter', sans-serif;
  font-size: 0.67rem;
  color: var(--accent-light);
  display: block;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.site-navbar .navbar-toggler {
  border: 1px solid rgba(255,255,255,0.22);
  padding: 0.3rem 0.55rem;
  border-radius: var(--radius-sm);
}
.site-navbar .navbar-toggler:focus { box-shadow: none; }
.site-navbar .navbar-toggler-icon {
  background-image: url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 30 30'%3e%3cpath stroke='rgba%28255,255,255,0.85%29' stroke-linecap='round' stroke-miterlimit='10' stroke-width='2' d='M4 7h22M4 15h22M4 23h22'/%3e%3c/svg%3e");
}

.site-navbar .nav-link {
  color: rgba(255,255,255,0.80) !important;
  font-weight: 500;
  font-size: 0.84rem;
  letter-spacing: 0.05em;
  padding: 0.42rem 0.8rem !important;
  border-radius: var(--radius-sm);
  transition: var(--transition);
  text-transform: uppercase;
  border-bottom: 2px solid transparent;
}

.site-navbar .nav-link:hover,
.site-navbar .nav-link.active {
  color: #fff !important;
  background: rgba(14,165,233,0.16);
}

.site-navbar .nav-link.active {
  border-bottom-color: var(--accent);
}

/* User pill button */
.btn-nav-user {
  background: rgba(14,165,233,0.14);
  border: 1px solid rgba(14,165,233,0.42);
  color: #fff !important;
  border-radius: 50px;
  padding: 0.38rem 1rem;
  font-size: 0.82rem;
  font-weight: 500;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.btn-nav-user:hover {
  background: var(--accent);
  border-color: var(--accent);
  box-shadow: 0 0 14px var(--accent-glow);
}

.btn-nav-user .profile-pic {
  width: 22px; height: 22px;
  border-radius: 50%;
  object-fit: cover;
  border: 1px solid rgba(255,255,255,0.4);
}

/* Navbar dropdown */
.site-navbar .dropdown-menu {
  background: #18284e;
  border: 1px solid rgba(255,255,255,0.1);
  border-radius: var(--radius);
  box-shadow: var(--shadow-lg);
  padding: 0.4rem;
  margin-top: 0.5rem;
  min-width: 160px;
}

.site-navbar .dropdown-item {
  color: rgba(255,255,255,0.78);
  border-radius: var(--radius-sm);
  padding: 0.48rem 0.85rem;
  font-size: 0.875rem;
  transition: var(--transition);
}

.site-navbar .dropdown-item:hover {
  background: rgba(14,165,233,0.2);
  color: #fff;
}

/* ===================== MODALS ===================== */
.modal-content {
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg);
}

.modal-header {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
  color: #fff;
  border-bottom: none;
  padding: 1.1rem 1.5rem;
}

.modal-header .modal-title { color: #fff; font-size: 1.05rem; }
.modal-header .btn-close { filter: invert(1) brightness(2); opacity: 0.8; }
.modal-header .btn-close:hover { opacity: 1; }

.modal-body { padding: 1.5rem; }

.modal .form-control,
.modal .form-select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
}

.modal .form-control:focus,
.modal .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

/* ===================== BUTTONS ===================== */
.btnpers {
  background: transparent;
  border: 2px solid var(--accent);
  color: var(--accent);
  border-radius: var(--radius);
  padding: 0.48rem 1.25rem;
  font-weight: 600;
  font-size: 0.875rem;
  letter-spacing: 0.03em;
  transition: var(--transition);
  cursor: pointer;
}

.btnpers:hover {
  background: var(--accent);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px var(--accent-glow);
}

.custom-bg {
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-mid) 100%);
  border: none;
  color: #fff;
  border-radius: var(--radius-sm);
  font-weight: 500;
  transition: var(--transition);
}

.custom-bg:hover {
  background: linear-gradient(135deg, var(--primary-mid) 0%, var(--primary-light) 100%);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(30,65,153,0.32);
}

/* ===================== FORMS ===================== */
.form-control, .form-select {
  border: 1.5px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  transition: var(--transition);
}

.form-control:focus, .form-select:focus {
  border-color: var(--accent);
  box-shadow: 0 0 0 3px var(--accent-glow);
}

.form-label {
  font-weight: 500;
  font-size: 0.83rem;
  color: var(--text-muted);
  margin-bottom: 0.3rem;
  letter-spacing: 0.02em;
}

/* ===================== SECTION HEADINGS ===================== */
/* Override the old id="intest" blue box style */
#intest {
  background-color: transparent !important;
  color: var(--dark-mid) !important;
  font-family: 'Playfair Display', serif !important;
  font-size: 2rem !important;
  font-weight: 700 !important;
  padding: 0 !important;
}

.linea-tratteggiata {
  width: 50px;
  height: 3px;
  background: linear-gradient(90deg, var(--accent), var(--primary-mid));
  border-radius: 2px;
  margin: 0.4rem auto 2.5rem;
  border: none;
}

/* ===================== AVAILABILITY FORM ===================== */
.availability-card {
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-lg);
  padding: 1.75rem 2rem;
  border: none;
  position: relative;
  z-index: 10;
  margin-top: -60px;
}

@media (max-width: 575px) {
  .availability-card {
    margin-top: 1rem;
    padding: 1.25rem;
    border-radius: var(--radius-lg);
  }
}

/* ===================== HERO ===================== */
.swiper-hero .swiper-slide img {
  width: 100%;
  height: 78vh;
  min-height: 460px;
  object-fit: cover;
  display: block;
}

@media (max-width: 767px) {
  .swiper-hero .swiper-slide img {
    height: 56vw;
    min-height: 260px;
  }
}

.swiper-hero {
  position: relative;
  overflow: hidden;
}

.swiper-hero::after {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(10,20,48,0.72) 0%, rgba(0,0,0,0.1) 55%, transparent 100%);
  z-index: 2;
  pointer-events: none;
}

.hero-overlay {
  position: absolute;
  bottom: 100px;
  left: 0; right: 0;
  text-align: center;
  z-index: 5;
  pointer-events: none;
}

.hero-eyebrow {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: var(--accent-light);
}

.hero-title {
  font-family: 'Playfair Display', serif;
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 700;
  color: #fff;
  text-shadow: 0 2px 24px rgba(0,0,0,0.45);
  margin: 0.3rem 0 0;
  line-height: 1.2;
}

/* ===================== ROOM CARDS ===================== */
.room-card {
  border: none;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: var(--transition);
  background: #fff;
  height: 100%;
}

.room-card:hover {
  transform: translateY(-7px);
  box-shadow: var(--shadow-lg);
}

.room-card-img-wrapper {
  overflow: hidden;
  height: 215px;
}

.room-card-img-wrapper img {
  width: 100%; height: 100%;
  object-fit: cover;
  transition: transform 0.55s ease;
}

.room-card:hover .room-card-img-wrapper img {
  transform: scale(1.06);
}

.room-card .card-body { padding: 1.25rem; }

.room-card .room-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--dark-mid);
  margin-bottom: 0.35rem;
}

.room-card .room-price {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--primary);
}

.room-card .room-price .price-unit {
  font-size: 0.78rem;
  font-weight: 400;
  color: var(--text-muted);
}

.badge-feature {
  background: #eff6ff;
  color: var(--primary-mid);
  border: 1px solid #bfdbfe;
  border-radius: 50px;
  padding: 0.18rem 0.6rem;
  font-size: 0.74rem;
  font-weight: 500;
  display: inline-block;
  margin: 2px;
}

.badge-facility {
  background: #f0fdf4;
  color: #15803d;
  border: 1px solid #bbf7d0;
  border-radius: 50px;
  padding: 0.18rem 0.6rem;
  font-size: 0.74rem;
  font-weight: 500;
  display: inline-block;
  margin: 2px;
}

/* ===================== FACILITY CARDS ===================== */
.facility-card {
  background: #fff;
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow);
  padding: 2rem 1.25rem;
  text-align: center;
  transition: var(--transition);
  border: 2px solid transparent;
  height: 100%;
}

.facility-card:hover {
  border-color: var(--accent);
  transform: translateY(-5px);
  box-shadow: var(--shadow-md);
}

.facility-card img {
  width: 52px; height: 52px;
  object-fit: contain;
  margin-bottom: 0.85rem;
}

.facility-card h5 {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--dark-mid);
  margin: 0;
}

/* ===================== TESTIMONIALS ===================== */
.testimonial-card {
  background: #fff;
  border-radius: var(--radius-lg);
  padding: 1.75rem;
  box-shadow: var(--shadow);
  border-left: 4px solid var(--accent);
}

.testimonial-card .reviewer-name {
  font-weight: 600;
  color: var(--dark-mid);
  font-size: 0.88rem;
}

.testimonial-card .review-text {
  color: var(--text-muted);
  font-size: 0.9rem;
  line-height: 1.7;
}

/* ===================== VIEW-ALL LINK ===================== */
.view-all-link {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  padding: 0.5rem 1.35rem;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  letter-spacing: 0.03em;
  transition: var(--transition);
}

.view-all-link:hover {
  background: var(--primary);
  color: #fff;
  transform: translateY(-1px);
  box-shadow: 0 4px 14px rgba(15,47,107,0.22);
}

/* Override old arrow-box to use new style */
.arrow-box a {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  color: var(--primary);
  font-weight: 600;
  font-size: 0.88rem;
  text-decoration: none;
  padding: 0.5rem 1.35rem;
  border: 2px solid var(--primary);
  border-radius: var(--radius);
  clip-path: none;
  background: transparent;
  transition: var(--transition);
  height: auto; width: auto;
}

.arrow-box a:hover {
  background: var(--primary);
  color: #fff;
}

/* ===================== FLOATING CONTACT BUTTONS ===================== */
.floating-contacts {
  position: fixed;
  right: 18px;
  bottom: 28px;
  z-index: 9990;
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.floating-btn {
  width: 48px; height: 48px;
  border-radius: 50%;
  display: flex; align-items: center; justify-content: center;
  color: #fff;
  font-size: 1.22rem;
  text-decoration: none;
  box-shadow: 0 4px 14px rgba(0,0,0,0.2);
  transition: var(--transition);
  border: none;
}

.floating-btn:hover {
  transform: scale(1.15) translateY(-2px);
  box-shadow: 0 6px 20px rgba(0,0,0,0.28);
  color: #fff;
}

.floating-btn-email    { background: var(--primary-mid); }
.floating-btn-whatsapp { background: #25D366; }
.floating-btn-phone    { background: var(--accent); }

/* ===================== MAP ===================== */
.map-container {
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-md);
}

/* ===================== FOOTER ===================== */
.site-footer {
  background: linear-gradient(160deg, #0d1f45 0%, #0f172a 65%, #070e22 100%);
  color: rgba(255,255,255,0.72);
  margin-top: 5rem;
}

.site-footer .footer-top {
  padding: 4rem 0 2.5rem;
  border-bottom: 1px solid rgba(255,255,255,0.07);
}

.site-footer .footer-logo { height: 50px; }

.site-footer .footer-brand-name {
  font-family: 'Playfair Display', serif;
  font-size: 1.2rem;
  color: #fff;
  font-weight: 700;
  margin-top: 0.75rem;
  margin-bottom: 0.25rem;
}

.site-footer .footer-about {
  font-size: 0.86rem;
  line-height: 1.7;
  color: rgba(255,255,255,0.55);
}

.site-footer .footer-col-title {
  font-family: 'Inter', sans-serif;
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.13em;
  text-transform: uppercase;
  color: var(--accent-light);
  margin-bottom: 1rem;
}

.site-footer .footer-nav-link {
  color: rgba(255,255,255,0.6);
  font-size: 0.875rem;
  text-decoration: none;
  display: block;
  padding: 0.22rem 0;
  transition: var(--transition);
}

.site-footer .footer-nav-link:hover {
  color: #fff;
  padding-left: 5px;
}

.site-footer .footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.875rem;
  color: rgba(255,255,255,0.6);
  margin-bottom: 0.65rem;
}

.site-footer .footer-contact-item i {
  color: var(--accent);
  font-size: 1rem;
  margin-top: 2px;
  flex-shrink: 0;
}

.site-footer .social-links {
  display: flex;
  gap: 0.6rem;
  margin-top: 0.5rem;
}

.site-footer .social-link {
  width: 38px; height: 38px;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,0.18);
  display: flex; align-items: center; justify-content: center;
  color: rgba(255,255,255,0.65);
  font-size: 1rem;
  text-decoration: none;
  transition: var(--transition);
}

.site-footer .social-link:hover {
  background: var(--accent);
  border-color: var(--accent);
  color: #fff;
  transform: translateY(-2px);
}

.site-footer .footer-bottom {
  padding: 1.2rem 0;
  font-size: 0.8rem;
  color: rgba(255,255,255,0.4);
}

.site-footer .footer-bottom a {
  color: rgba(255,255,255,0.55);
  text-decoration: none;
  transition: color 0.2s;
}

.site-footer .footer-bottom a:hover { color: #fff; }

/* ===================== ALERTS ===================== */
.custom-alert {
  position: fixed;
  top: 72px;
  right: 20px;
  z-index: 99999;
  min-width: 280px;
}