/**
 * Solana Travel - Hotels Page Styles
 * Premium CSS with glassmorphism, gradients, and animations
 * Note: Design tokens, bg-animation, footer, and btn-primary are in style.css
 */

/* ========================================
   Base Styles
   ======================================== */
body.hotels-page {
  font-family: var(--font-sans);
  background: var(--site-bg);
  min-height: 100vh;
  margin: 0;
  padding: 0;
  overflow-x: hidden;
}

body[dir="rtl"] {
  font-family: var(--font-arabic);
}

/* ========================================
   Hero Section
   ======================================== */
.hero-section {
  padding: 60px var(--page-gutter) 40px;
  text-align: center;
  width: 100%;
  max-width: none;
  margin: 0;
}

.hero-content {
  animation: fadeInUp 0.8s ease-out;
}

@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(30px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.hero-title {
  font-size: clamp(2rem, 5vw, 3.5rem);
  font-weight: 800;
  color: var(--gray-900);
  margin-bottom: 16px;
  line-height: 1.2;
}

.hero-title-accent {
  display: block;
  background: linear-gradient(135deg, var(--primary-600) 0%, var(--primary-800) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.hero-subtitle {
  font-size: 1.25rem;
  color: var(--gray-600);
  max-width: 600px;
  margin: 0 auto 40px;
}

.hero-stats {
  display: flex;
  justify-content: center;
  gap: 40px;
  flex-wrap: wrap;
}

.stat {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 20px;
  background: var(--glass-bg);
  backdrop-filter: blur(10px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--glass-border);
  min-width: 120px;
  transition: var(--transition-base);
}

.stat:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.1);
}

.stat-number {
  font-size: 2rem;
  font-weight: 800;
  color: var(--primary-600);
}

.stat-label {
  font-size: 0.875rem;
  color: var(--gray-500);
  margin-top: 4px;
}

/* ========================================
   Compact Search Bar
   ======================================== */
.filters-section {
  width: 100%;
  max-width: none;
  margin: 28px 0 24px;
  padding: 0 var(--page-gutter);
}

.search-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 20px;
  background: rgba(255,255,255,.85);
  border-radius: var(--radius-xl);
  border: 1px solid var(--glass-border);
  box-shadow: 0 2px 12px rgba(0,0,0,.06);
}

.search-bar-field {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
  min-width: 0;
}

.search-bar-field .filter-icon {
  width: 18px;
  height: 18px;
  color: var(--gray-400);
  flex-shrink: 0;
}

.search-bar .search-input {
  border: none;
  background: transparent;
  padding: 8px 0;
  font-size: 0.95rem;
  width: 100%;
  min-width: 0;
}

.search-bar .search-input:focus {
  outline: none;
  box-shadow: none;
}

.search-bar-filters {
  display: contents;
}

.search-bar .area-select,
.search-bar .sort-select {
  padding: 8px 12px;
  border: 1px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: white;
  font-size: 0.85rem;
  font-weight: 500;
  color: var(--gray-700);
  cursor: pointer;
  flex-shrink: 0;
  width: auto;
}

.search-bar .area-select:focus,
.search-bar .sort-select:focus {
  outline: none;
  border-color: var(--primary-400);
}

.search-bar .results-count {
  font-size: 0.85rem;
  color: var(--gray-500);
  white-space: nowrap;
  flex-shrink: 0;
  margin: 0;
}

.search-bar .results-count span {
  font-weight: 700;
  color: var(--primary-600);
}

.filter-icon {
  width: 16px;
  height: 16px;
  color: var(--primary-500);
}

/* Keep shared input base styles for other pages */
.search-input,
.area-select,
.date-input {
  font-family: inherit;
  transition: var(--transition-base);
}

/* ========================================
   Results Info (standalone, used by honeymoon)
   ======================================== */
.results-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
  width: 100%;
  max-width: none;
  margin: 0 0 24px;
  padding: 0 var(--page-gutter);
}

#results-count {
  font-size: 1rem;
  color: var(--gray-600);
}

#results-count span {
  font-weight: 700;
  color: var(--primary-600);
}

.sort-container {
  display: flex;
  align-items: center;
  gap: 12px;
}

.sort-container label {
  font-size: 0.875rem;
  color: var(--gray-500);
}

.sort-select {
  padding: 8px 16px;
  border: 2px solid var(--gray-200);
  border-radius: var(--radius-md);
  background: white;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--gray-700);
  cursor: pointer;
  transition: var(--transition-base);
}

.sort-select:focus {
  outline: none;
  border-color: var(--primary-400);
}

/* ========================================
   Hotels Grid
   ======================================== */
.hotels-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(360px, 1fr));
  gap: 32px;
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 0 var(--page-gutter) 60px;
}

/* Loading Skeleton */
.loading-skeleton {
  display: contents;
}

.skeleton-card {
  height: 450px;
  background: var(--glass-bg);
  border-radius: var(--radius-xl);
  overflow: hidden;
  position: relative;
}

.skeleton-card::before {
  content: '';
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
      transparent 0%,
      rgba(255, 255, 255, 0.4) 50%,
      transparent 100%);
  animation: shimmer 1.5s infinite;
}

@keyframes shimmer {
  0% {
    transform: translateX(-100%);
  }

  100% {
    transform: translateX(100%);
  }
}

/* ========================================
   No Results
   ======================================== */
.no-results {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 60px var(--page-gutter);
}

.no-results-content {
  text-align: center;
  padding: 60px 40px;
  background: var(--glass-bg);
  backdrop-filter: blur(20px);
  border-radius: var(--radius-xl);
  border: 1px solid var(--glass-border);
}

.no-results-icon {
  font-size: 4rem;
  display: block;
  margin-bottom: 16px;
}

.no-results h3 {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--gray-800);
  margin-bottom: 8px;
}

.no-results p {
  color: var(--gray-500);
  margin-bottom: 24px;
}

/* ========================================
   Responsive Design
   ======================================== */
@media (max-width: 768px) {
  .hero-section {
    padding: 40px 16px 30px;
  }

  .hero-title {
    font-size: 1.75rem;
  }

  .hero-subtitle {
    font-size: 1rem;
  }

  .hero-stats {
    gap: 16px;
  }

  .stat {
    min-width: 100px;
    padding: 16px;
  }

  .stat-number {
    font-size: 1.5rem;
  }

  .search-bar {
    flex-wrap: wrap;
    gap: 0;
    padding: 0;
    overflow: hidden;
  }

  .search-bar-field {
    width: 100%;
    padding: 12px 16px;
    border-bottom: 1px solid var(--gray-200);
  }

  .search-bar-filters {
    display: flex;
    width: 100%;
  }

  .search-bar .area-select,
  .search-bar .sort-select {
    flex: 1;
    min-width: 0;
    border: none;
    border-radius: 0;
    padding: 10px 12px;
    font-size: 0.8rem;
    background: transparent;
  }

  .search-bar .area-select {
    border-inline-end: 1px solid var(--gray-200);
  }

  .search-bar .results-count {
    width: 100%;
    text-align: center;
    padding: 8px 16px;
    border-top: 1px solid var(--gray-200);
    margin: 0;
    font-size: 0.8rem;
  }

  .hotels-grid {
    grid-template-columns: 1fr;
    gap: 24px;
    padding: 0 16px 40px;
  }

  .results-info {
    flex-direction: column;
    align-items: flex-start;
  }

  .sort-container {
    width: 100%;
  }

  .sort-select {
    flex: 1;
  }
}

/* RTL Support */
[dir="rtl"] .footer-link {
  flex-direction: row-reverse;
}

[dir="rtl"] .hero-stats,
[dir="rtl"] .footer-links {
  direction: rtl;
}

[dir="rtl"] .search-bar {
  direction: rtl;
}
