/* ===== GALLERY HERO ===== */
.gallery-hero {
  background: linear-gradient(135deg, #1e3a8a 0%, #0d9488 100%); /* Navy to teal - luxury gradient */
  color: white;
  padding: 4rem 2rem 3rem;
  text-align: center;
  margin-top: 60px;
}

.gallery-hero-content h1 {
  font-size: 2.5rem;
  font-weight: 700;
  margin: 0 0 1rem 0;
}

.gallery-hero-content p {
  font-size: 1.125rem;
  opacity: 0.95;
  max-width: 600px;
  margin: 0 auto;
}

/* ===== FILTERS BAR ===== */
.filters-bar {
  background: white;
  border-bottom: 1px solid #e5e7eb;
  padding: 1.5rem 2rem;
  position: sticky;
  top: 60px;
  z-index: 100;
}

.filters-container {
  max-width: 1400px;
  margin: 0 auto;
  display: flex;
  gap: 1rem;
  flex-wrap: wrap;
  align-items: flex-end;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  flex: 1;
  min-width: 180px;
}

.filter-group label {
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
}

.search-input,
.filter-select {
  padding: 0.625rem 0.875rem;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.9375rem;
  background: white;
  transition: all 0.2s;
}

.search-input {
  min-width: 280px;
}

.search-input:focus,
.filter-select:focus {
  outline: none;
  border-color: #0d9488;
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.1);
}

.filter-select {
  cursor: pointer;
}

.btn-clear-filters {
  padding: 0.625rem 1rem;
  background: #f3f4f6;
  border: 1px solid #d1d5db;
  border-radius: 8px;
  font-size: 0.875rem;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s;
  align-self: flex-end;
}

.btn-clear-filters:hover {
  background: #e5e7eb;
  color: #374151;
}

/* ===== GALLERY MAIN ===== */
.gallery-main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem;
}

.gallery-stats {
  margin-bottom: 1.5rem;
  color: #6b7280;
  font-size: 0.9375rem;
}

/* ===== GALLERY GRID ===== */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 3rem;
}

.gallery-card {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  overflow: hidden;
  transition: all 0.3s;
  cursor: pointer;
}

.gallery-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
  border-color: #0d9488;
}

.gallery-card-image {
  position: relative;
  width: 100%;
  padding-top: 66.67%; /* 3:2 aspect ratio */
  background: #f3f4f6;
  overflow: hidden;
}

.gallery-card-image img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.card-favorite {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 36px;
  height: 36px;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 10;
}

.card-favorite:hover {
  background: white;
  transform: scale(1.1);
}

.card-favorite.favorited {
  background: #dc2626;
}

.card-favorite.favorited .favorite-icon {
  fill: white;
  stroke: white;
}

.favorite-icon {
  color: #6b7280;
  transition: all 0.2s;
}

.card-favorite:hover .favorite-icon {
  color: #dc2626;
}

.card-badges {
  position: absolute;
  bottom: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
}

.badge {
  padding: 4px 10px;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.025em;
  backdrop-filter: blur(8px);
}

.badge-category {
  background: rgba(13, 148, 136, 0.9); /* Teal */
  color: white;
}

.badge-duration {
  background: rgba(255, 255, 255, 0.9);
  color: #374151;
}

/* ===== CARD CONTENT ===== */
.gallery-card-content {
  padding: 1.25rem;
}

.card-title {
  font-size: 1.125rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 0.75rem 0;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.card-destination {
  display: flex;
  align-items: center;
  gap: 6px;
  color: #6b7280;
  font-size: 0.9375rem;
  margin-bottom: 1rem;
}

.card-destination svg {
  flex-shrink: 0;
  color: #0d9488;
}

.card-meta {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1rem;
  padding-bottom: 1rem;
  border-bottom: 1px solid #f3f4f6;
}

.card-creator {
  display: flex;
  align-items: center;
  gap: 8px;
}

.creator-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: #e5e7eb;
}

.creator-name {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
}

.card-stats {
  display: flex;
  gap: 12px;
}

.stat {
  display: flex;
  align-items: center;
  gap: 4px;
  color: #9ca3af;
  font-size: 0.875rem;
}

.stat svg {
  flex-shrink: 0;
}

/* ===== CARD ACTIONS ===== */
.card-actions {
  display: flex;
  gap: 8px;
}

.btn-view,
.btn-clone {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0.625rem 1rem;
  border-radius: 8px;
  font-size: 0.9375rem;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
}

.btn-view {
  background: #0d9488;
  color: white;
}

.btn-view:hover {
  background: #0f766e;
}

.btn-clone {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
}

.btn-clone:hover {
  background: #e5e7eb;
}

/* ===== EMPTY STATE ===== */
.empty-state {
  text-align: center;
  padding: 4rem 2rem;
}

.empty-icon {
  color: #d1d5db;
  margin-bottom: 1.5rem;
}

.empty-state h3 {
  font-size: 1.5rem;
  font-weight: 600;
  color: #374151;
  margin: 0 0 0.5rem 0;
}

.empty-state p {
  color: #6b7280;
  margin: 0 0 1.5rem 0;
}

/* ===== LOADING STATE ===== */
.loading-state {
  text-align: center;
  padding: 4rem 2rem;
}

.spinner {
  width: 48px;
  height: 48px;
  border: 4px solid #f3f4f6;
  border-top-color: #0d9488;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
  margin: 0 auto 1rem;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.loading-state p {
  color: #6b7280;
  margin: 0;
}

/* ===== RESPONSIVE ===== */
@media (max-width: 768px) {
  .gallery-hero {
    padding: 3rem 1.5rem 2rem;
  }

  .gallery-hero-content h1 {
    font-size: 1.875rem;
  }

  .gallery-hero-content p {
    font-size: 1rem;
  }

  .filters-bar {
    top: 56px;
    padding: 1rem;
  }

  .filters-container {
    flex-direction: column;
    gap: 0.75rem;
  }

  .filter-group {
    min-width: 100%;
  }

  .search-input {
    min-width: 100%;
  }

  .gallery-main {
    padding: 1.5rem 1rem;
  }

  .gallery-grid {
    grid-template-columns: 1fr;
    gap: 1.25rem;
  }
}

@media (min-width: 769px) and (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1400px) {
  .gallery-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* ===== TRIP PREVIEW MODAL ===== */
.trip-preview-modal {
  position: fixed !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  z-index: 999999 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: center !important;
  padding: 20px !important;
  pointer-events: auto !important;
  visibility: visible !important;
  opacity: 1 !important;
}

.modal-overlay {
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  right: 0 !important;
  bottom: 0 !important;
  background: rgba(0, 0, 0, 0.75) !important;
  backdrop-filter: blur(4px) !important;
  -webkit-backdrop-filter: blur(4px) !important;
  z-index: 1 !important;
}

.modal-content {
  position: relative !important;
  background: white !important;
  border-radius: 16px;
  max-width: 600px;
  width: 100%;
  max-height: 90vh;
  overflow: hidden;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  animation: modalSlideUp 0.3s ease-out;
  z-index: 10 !important;
  pointer-events: auto !important;
  visibility: visible !important;
  opacity: 1 !important;
}

@keyframes modalSlideUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 40px;
  height: 40px;
  border: none;
  background: rgba(255, 255, 255, 0.95);
  border-radius: 50%;
  font-size: 24px;
  color: #64748B;
  cursor: pointer;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s;
}

.modal-close:hover {
  background: white;
  transform: scale(1.1);
}

.modal-image {
  width: 100%;
  height: 240px;
  object-fit: cover;
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  max-height: calc(90vh - 240px);
}

.modal-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 16px;
}

.modal-body h2 {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
  margin: 0 0 12px 0;
}

.modal-destination {
  color: #0d9488;
  font-weight: 500;
  margin-bottom: 16px;
}

.modal-description {
  color: #6b7280;
  line-height: 1.6;
  margin-bottom: 24px;
}

.modal-stats {
  display: flex;
  gap: 32px;
  padding: 20px;
  background: #f9fafb;
  border-radius: 12px;
  margin-bottom: 24px;
}

.modal-stats .stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
}

.stat-value {
  font-size: 1.5rem;
  font-weight: 700;
  color: #111827;
}

.stat-label {
  font-size: 0.875rem;
  color: #6b7280;
  font-weight: 500;
}

.modal-actions {
  display: flex;
  gap: 12px;
}

.modal-actions .btn {
  flex: 1;
  padding: 12px 24px;
  border-radius: 8px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  border: none;
  font-size: 1rem;
}

.modal-actions .btn-secondary {
  background: #f3f4f6;
  color: #374151;
}

.modal-actions .btn-secondary:hover {
  background: #e5e7eb;
}

.modal-actions .btn-primary {
  background: #0d9488;
  color: white;
}

.modal-actions .btn-primary:hover {
  background: #0f766e;
  transform: translateY(-1px);
  box-shadow: 0 4px 12px rgba(13, 148, 136, 0.3);
}

/* Mobile responsive */
@media (max-width: 640px) {
  .modal-content {
    max-height: 95vh;
    margin: 10px;
  }

  .modal-image {
    height: 180px;
  }

  .modal-body {
    padding: 20px;
    max-height: calc(95vh - 180px);
  }

  .modal-body h2 {
    font-size: 1.25rem;
  }

  .modal-stats {
    gap: 24px;
    padding: 16px;
  }

  .stat-value {
    font-size: 1.25rem;
  }
}
