/* ============================================
   JELAJAH GROBOGAN - COMPLETE STYLES
   ============================================ */

/* Hero Section with Image */
.hero-section {
  position: relative;
  height: 600px;
  overflow: hidden;
  margin-left: calc(-50vw + 50%);
  margin-right: calc(-50vw + 50%);
  margin-bottom: 3rem;
  margin-top: -2rem;
}

.hero-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0.3) 0%,
    rgba(0, 0, 0, 0.7) 100%
  );
}

.hero-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 3rem;
  color: white;
  z-index: 2;
}

.hero-title {
  font-size: 3.5rem;
  font-weight: 700;
  margin-bottom: 1rem;
  line-height: 1.2;
  color: white;
}

.hero-subtitle {
  font-size: 1.25rem;
  opacity: 0.95;
  max-width: 600px;
  color: white;
}

/* Filter Section */
.filter-section {
  background: rgba(255, 255, 255, 0.8);
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 24px;
  padding: 2rem;
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
  margin-bottom: 3rem;
}

.filter-row {
  display: flex;
  gap: 1rem;
  align-items: center;
  flex-wrap: wrap;
}

.filter-item {
  flex: 1;
  min-width: 200px;
}

.filter-label {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: #5d596c;
  margin-bottom: 0.5rem;
}

.filter-select {
  width: 100%;
  padding: 14px 18px;
  border: 2px solid rgba(25, 135, 84, 0.2);
  border-radius: 16px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  cursor: pointer;
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  color: #5d596c;
}

.filter-select:focus {
  outline: none;
  border-color: #198754;
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 0 0 4px rgba(25, 135, 84, 0.1), 0 4px 12px rgba(0, 0, 0, 0.1);
}

.search-input-wrapper {
  position: relative;
  flex: 1;
  min-width: 200px;
}

.search-input {
  width: 100%;
  padding: 14px 18px 14px 46px;
  border: 2px solid rgba(25, 135, 84, 0.2);
  border-radius: 16px;
  font-size: 14px;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  transition: all 0.3s ease;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
  color: #5d596c;
}

.search-input::placeholder {
  color: #a8aaae;
}

.search-input:focus {
  outline: none;
  border-color: #198754;
  background: rgba(255, 255, 255, 1);
  box-shadow: 0 0 0 4px rgba(25, 135, 84, 0.1), 0 4px 12px rgba(0, 0, 0, 0.1);
}

.search-icon {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  color: #a8aaae;
  font-size: 1.2rem;
}

.filter-btn {
  padding: 14px 28px;
  background: linear-gradient(135deg, #198754 0%, #146c43 100%);
  color: white;
  border: none;
  border-radius: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s ease;
  white-space: nowrap;
  box-shadow: 0 4px 12px rgba(25, 135, 84, 0.3);
}

.filter-btn:hover {
  background: linear-gradient(135deg, #146c43 0%, #0f5132 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(25, 135, 84, 0.4);
}

/* Section Header */
.section-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.5rem;
}

.section-title {
  font-size: 1.75rem;
  font-weight: 700;
  color: #5d596c;
  margin: 0;
}

/* Destination Card - Full Image Style */
.destination-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  transition: all 0.3s ease;
  box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
  height: 100%;
  aspect-ratio: 1 / 1;
  cursor: pointer;
}

.destination-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 20px 40px rgba(0, 0, 0, 0.15);
}

.destination-card-image {
  width: 100%;
  height: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

.destination-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.destination-card:hover .destination-card-image img {
  transform: scale(1.1);
}

.destination-card-overlay {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background: linear-gradient(
    to bottom,
    rgba(0, 0, 0, 0) 0%,
    rgba(0, 0, 0, 0.8) 100%
  );
}

.destination-card-badges {
  position: absolute;
  top: 16px;
  left: 16px;
  right: 16px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  z-index: 3;
}

.destination-card-category {
  padding: 8px 16px;
  background: rgba(255, 255, 255, 0.25);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 24px;
  font-size: 12px;
  font-weight: 600;
  color: white;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.15);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.destination-card-distance {
  padding: 8px 16px;
  background: rgba(25, 135, 84, 0.3);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
  border: 1px solid rgba(255, 255, 255, 0.3);
  border-radius: 24px;
  font-size: 11px;
  font-weight: 600;
  color: white;
  display: none;
  box-shadow: 0 4px 16px rgba(25, 135, 84, 0.25);
  align-items: center;
  gap: 6px;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.1);
}

.destination-card-distance.visible {
  display: flex;
}

.destination-card-distance i {
  font-size: 14px;
}

.featured-badge-small {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 36px;
  height: 36px;
  background: rgba(255, 193, 7, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: 0 2px 8px rgba(255, 193, 7, 0.3);
  z-index: 3;
}

.featured-badge-small i {
  color: white;
  font-size: 18px;
}

.destination-card-content {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: 20px;
  z-index: 2;
  color: white;
}

.destination-card-location {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 0.875rem;
  margin-bottom: 8px;
  opacity: 0.9;
  color: white;
}

.destination-card-location i {
  font-size: 16px;
}

.destination-card-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin-bottom: 6px;
  line-height: 1.3;
  color: white;
}

.destination-card-meta {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 0.875rem;
  opacity: 0.9;
  color: white;
}

.destination-card-meta-item {
  display: flex;
  align-items: center;
  gap: 4px;
}

.destination-card-meta-item i {
  font-size: 16px;
}

.destination-card-arrow {
  position: absolute;
  top: 50%;
  right: 20px;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  background: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  opacity: 0;
  transition: all 0.3s ease;
  z-index: 2;
}

.destination-card:hover .destination-card-arrow {
  opacity: 1;
  right: 24px;
}

.destination-card-arrow i {
  color: white;
  font-size: 20px;
}

/* Empty State */
.empty-state {
  background: white;
  border-radius: 20px;
  padding: 4rem 2rem;
  text-align: center;
  border: 2px dashed #e7e7ff;
}

.empty-state-icon {
  font-size: 4rem;
  color: #d8d6de;
  margin-bottom: 1rem;
}

.empty-state-title {
  font-size: 1.5rem;
  font-weight: 700;
  color: #5d596c;
  margin-bottom: 0.5rem;
}

.empty-state-text {
  color: #a8aaae;
  margin-bottom: 1.5rem;
}

.view-all-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 10px 20px;
  background: white;
  color: #198754;
  border: 2px solid #198754;
  border-radius: 12px;
  font-weight: 600;
  font-size: 14px;
  text-decoration: none;
  transition: all 0.3s ease;
}

.view-all-btn:hover {
  background: #198754;
  color: white;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(25, 135, 84, 0.3);
}

/* Location Toast */
.location-toast {
  position: fixed;
  bottom: 24px;
  right: 24px;
  background: white;
  padding: 20px;
  border-radius: 16px;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
  z-index: 1000;
  display: none;
  max-width: 380px;
  border: 1px solid #e7e7ff;
}

.location-toast.show {
  display: block;
  animation: slideInRight 0.3s ease;
}

@keyframes slideInRight {
  from {
    transform: translateX(400px);
    opacity: 0;
  }
  to {
    transform: translateX(0);
    opacity: 1;
  }
}

.location-toast-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 8px;
}

.location-toast-icon {
  width: 40px;
  height: 40px;
  background: linear-gradient(135deg, #198754 0%, #146c43 100%);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.location-toast-icon i {
  color: white;
  font-size: 20px;
}

.location-toast-title {
  font-weight: 700;
  color: #5d596c;
  font-size: 1rem;
  margin: 0;
}

.location-toast-text {
  color: #a8aaae;
  font-size: 0.875rem;
  line-height: 1.5;
  margin: 0;
}

/* Utility Classes */
.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* ==================== DARK MODE ==================== */

[data-bs-theme="dark"] .filter-section {
  background: rgba(36, 41, 60, 0.8);
  border: 1px solid rgba(255, 255, 255, 0.1);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.4);
}

[data-bs-theme="dark"] .filter-label {
  color: #e7e7ff;
}

[data-bs-theme="dark"] .filter-select {
  background: rgba(36, 41, 60, 0.9);
  border-color: rgba(25, 135, 84, 0.3);
  color: #e7e7ff;
}

[data-bs-theme="dark"] .filter-select:focus {
  background: rgba(50, 51, 74, 1);
  border-color: #198754;
  box-shadow: 0 0 0 4px rgba(25, 135, 84, 0.2), 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] .search-input {
  background: rgba(36, 41, 60, 0.9);
  border-color: rgba(25, 135, 84, 0.3);
  color: #e7e7ff;
}

[data-bs-theme="dark"] .search-input::placeholder {
  color: #a5a5ba;
}

[data-bs-theme="dark"] .search-input:focus {
  background: rgba(50, 51, 74, 1);
  border-color: #198754;
  box-shadow: 0 0 0 4px rgba(25, 135, 84, 0.2), 0 4px 12px rgba(0, 0, 0, 0.3);
}

[data-bs-theme="dark"] .search-icon {
  color: #a5a5ba;
}

[data-bs-theme="dark"] .section-title {
  color: #e7e7ff;
}

[data-bs-theme="dark"] .empty-state {
  background: #24293c;
  border-color: #3a3b55;
}

[data-bs-theme="dark"] .empty-state-icon {
  color: #3a3b55;
}

[data-bs-theme="dark"] .empty-state-title {
  color: #e7e7ff;
}

[data-bs-theme="dark"] .empty-state-text {
  color: #a5a5ba;
}

[data-bs-theme="dark"] .view-all-btn {
  background: transparent;
  color: #20c997;
  border-color: #198754;
}

[data-bs-theme="dark"] .view-all-btn:hover {
  background: #198754;
  color: white;
}

[data-bs-theme="dark"] .location-toast {
  background: #24293c;
  border-color: #3a3b55;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.6);
}

[data-bs-theme="dark"] .location-toast-title {
  color: #e7e7ff;
}

[data-bs-theme="dark"] .location-toast-text {
  color: #a5a5ba;
}

/* ==================== RESPONSIVE ==================== */

@media (max-width: 768px) {
  .hero-section {
    height: 400px;
    margin-top: -1.5rem;
  }

  .hero-title {
    font-size: 2rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-content {
    padding: 2rem 1.5rem;
  }

  .filter-section {
    padding: 1.5rem;
  }

  .filter-row {
    flex-direction: column;
  }

  .filter-item,
  .search-input-wrapper {
    width: 100%;
    min-width: 100%;
  }

  .section-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 1rem;
  }

  .location-toast {
    left: 16px;
    right: 16px;
    bottom: 16px;
    max-width: none;
  }

  .destination-card-title {
    font-size: 1.1rem;
  }

  .destination-card-content {
    padding: 16px;
  }
}
