/* ================= Base Styles ================= */
body {
  font-family: "Inter", sans-serif;
  background-color: #f5f5f5;
}

/* ================= Hero Section ================= */
.hero-bg {
  background: linear-gradient(rgba(10, 28, 78, 0.9), rgba(0, 65, 229, 0.9)),
    url('https://images.unsplash.com/photo-1540959733332-eab4deabeeaf?ixlib=rb-1.2.1&auto=format&fit=crop&w=1920&q=80');
  background-size: cover;
  background-position: center;
}

/* ================= Map ================= */
gmp-map {
  height: 100%;
}

#place-picker-box {
  display: flex;
  justify-content: center;
  align-items: center;
}

#place-picker-container {
  text-align: left;
}

/* ================= Utilities ================= */
@layer utilities {
  /* Hide scrollbar across browsers */
  .no-scrollbar::-webkit-scrollbar,
  .scrollbar-hide::-webkit-scrollbar {
    display: none;
  }

  .no-scrollbar,
  .scrollbar-hide {
    -ms-overflow-style: none;
    scrollbar-width: none;
  }
}

/* ================= Lightbox ================= */
.lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  inset: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(0, 0, 0, 0.95);
  backdrop-filter: blur(5px);
}

.lightbox-content {
  position: relative;
  margin: auto;
  padding: 20px;
  width: 90%;
  max-width: 900px;
  height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.lightbox img {
  max-width: 100%;
  max-height: 80vh;
  object-fit: contain;
  border-radius: 12px;
  box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.5);
}

.close,
.prev,
.next {
  position: absolute;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  background: rgba(0, 0, 0, 0.5);
  border-radius: 50%;
  font-weight: bold;
  cursor: pointer;
  transition: all 0.3s ease;
  z-index: 10001;
}

.close {
  top: 20px;
  right: 30px;
  width: 50px;
  height: 50px;
  font-size: 35px;
}

.close:hover,
.prev:hover,
.next:hover {
  background: rgba(255, 255, 255, 0.2);
  transform: scale(1.1);
}

.prev,
.next {
  top: 50%;
  width: 50px;
  height: 50px;
  font-size: 20px;
  margin-top: -25px;
  border: none;
  user-select: none;
}

.prev { left: 30px; }
.next { right: 30px; }

.image-counter {
  position: absolute;
  bottom: 30px;
  left: 50%;
  transform: translateX(-50%);
  color: #fff;
  background: rgba(0, 0, 0, 0.7);
  padding: 10px 20px;
  border-radius: 25px;
  font-weight: 500;
  z-index: 10001;
}

@media (max-width: 768px) {
  .lightbox-content { padding: 10px; }

  .close {
    top: 10px;
    right: 15px;
    width: 40px;
    height: 40px;
    font-size: 25px;
  }

  .prev,
  .next {
    width: 40px;
    height: 40px;
    font-size: 16px;
  }

  .prev { left: 15px; }
  .next { right: 15px; }

  .image-counter {
    bottom: 20px;
    padding: 8px 16px;
    font-size: 14px;
  }
}

/* ================= Colors & Theming ================= */
.primary-main,
.text-primary-main { color: #3B82F6; }

.bg-primary-main { background-color: #3B82F6; }

.secondary-accent { color: #1F2937; }

.secondary-rating { background-color: #FEF3C7; }

.hover\:bg-primary-700:hover { background-color: #1D4ED8; }

/* ================= Cards ================= */
.description-card {
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  border-left: 4px solid #3B82F6;
}

.menu-card {
  background: linear-gradient(135deg, #fefefe 0%, #f9fafb 100%);
  border: 1px solid #e5e7eb;
}

.workspace-card {
  transition: all 0.3s ease;
}

.workspace-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1),
              0 10px 10px -5px rgba(0, 0, 0, 0.04);
}

/* ================= Badges ================= */
.badge {
  position: absolute;
  top: 12px;
  left: 12px;
  padding: 4px 12px;
  border-radius: 20px;
  font-size: 0.75rem;
  font-weight: 600;
  z-index: 10;
}

.badge-premium { background-color: #0a1c4e; color: #fff; }
.badge-new     { background-color: #3b8e29; color: #fff; }
.badge-popular { background-color: #f9d824; color: #0a1c4e; }

/* ================= Forms ================= */
.search-form-container,
.search-field {
  transition: all 0.3s ease;
}

.search-form-container:hover {
  box-shadow: 0 10px 25px -5px rgba(0, 65, 229, 0.1),
              0 10px 10px -5px rgba(0, 65, 229, 0.04);
}

.date-picker,
.time-picker {
  background-color: #fff !important;
}

/* Flatpickr */
.flatpickr-calendar {
  border-radius: 0.5rem;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
}

/* ================= Animations ================= */
@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to   { opacity: 1; transform: translateY(0); }
}

.fade-in,
.animate-fadeIn { animation: fadeIn 0.5s ease-out forwards; }

@keyframes spinner {
  0%   { transform: rotate(0deg); }
  100% { transform: rotate(360deg); }
}

.loader {
  border-top-color: #0041e5;
  animation: spinner 1.5s linear infinite;
}

/* ================= Range Slider ================= */
.ui-slider-horizontal {
  height: 0.5rem;
  background: #e0f2fe;
  border: none;
  border-radius: 0.25rem;
}

.ui-slider .ui-slider-handle {
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 50%;
  background: #0041e5;
  border: none;
  top: -0.4rem;
  cursor: pointer;
}

.ui-slider .ui-slider-range {
  background: #0041e5;
}

/* ================= Filters ================= */
.filter-section {
  border-bottom: 1px solid #e5e7eb;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
}

.filter-section:last-child { border-bottom: none; }

.custom-checkbox {
  display: flex;
  align-items: center;
  margin-bottom: 0.5rem;
  cursor: pointer;
}

.custom-checkbox input[type="checkbox"] {
  position: absolute;
  opacity: 0;
  height: 0;
  width: 0;
  cursor: pointer;
}

.checkmark {
  height: 18px;
  width: 18px;
  background-color: #fff;
  border: 1px solid #d1d5db;
  border-radius: 4px;
  margin-right: 0.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
}

.custom-checkbox:hover input ~ .checkmark { background-color: #f3f4f6; }

.custom-checkbox input:checked ~ .checkmark {
  background-color: #0041e5;
  border-color: #0041e5;
}

.checkmark:after {
  content: "";
  display: none;
}

.custom-checkbox input:checked ~ .checkmark:after {
  display: block;
  width: 5px;
  height: 10px;
  border: solid #fff;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
}

/* ================= Breadcrumb ================= */
.breadcrumb-item {
  display: flex;
  align-items: center;
  position: relative;
}

.breadcrumb-item:not(:first-child)::before {
  content: '';
  width: 6px;
  height: 6px;
  border-top: 1.5px solid #9ca3af;
  border-right: 1.5px solid #9ca3af;
  transform: rotate(45deg);
  margin: 0 0.75rem;
}

/* ================= Footer & Icons ================= */
.footer-link {
  position: relative;
  display: inline-block;
}

.footer-link::after {
  content: '';
  position: absolute;
  width: 0;
  height: 1px;
  bottom: -2px;
  left: 0;
  background-color: #0041e5;
  transition: width 0.3s ease;
}

.footer-link:hover::after { width: 100%; }

.social-icon {
  transition: transform 0.3s ease, color 0.3s ease;
}

.social-icon:hover {
  transform: translateY(-3px);
  color: #0041e5;
}

/* ================= Results ================= */
.results-count {
  background-color: #eef2ff;
  color: #0041e5;
  padding: 0.25rem 0.75rem;
  border-radius: 9999px;
  font-weight: 600;
}
