/* ==========================================================================
   NoviTrip Hotels Landing Page Styles
   Matches Transport & Airport Transfers Landing Design System
   ========================================================================== */

:root {
  --ht-primary: #0f3952;
  --ht-accent: #0070f3;
  --ht-cyan: #38bdf8;
  --ht-text-main: #0f172a;
  --ht-text-muted: #64748b;
  --ht-bg: #f8fafc;
  --ht-surface: #ffffff;
  --ht-border: #e2e8f0;
  --ht-shadow-xl: 0 20px 45px -12px rgba(15, 23, 42, 0.22);
}

.hotels-landing-view {
  background: var(--ht-bg);
  color: var(--ht-text-main);
  overflow-x: hidden;
  display: block;
}

/* 1. HERO SECTION */
.hotels-hero-section {
  position: relative;
  min-height: 460px;
  background: #0f2331 url('/images/Moroccan Riad Sunset Over Marrakech Novitrip.png') no-repeat center center / cover;
  display: flex;
  align-items: center;
  padding: 64px 24px 120px;
  box-sizing: border-box;
}

.hotels-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg,
      rgba(10, 22, 40, 0.86) 0%,
      rgba(15, 35, 55, 0.62) 48%,
      rgba(15, 35, 55, 0.18) 100%);
  z-index: 1;
}

.hotels-hero-container {
  max-width: 1280px;
  width: 100%;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hotels-hero-copy {
  max-width: 660px;
}

.hotels-hero-title {
  font-size: clamp(2.3rem, 4.6vw, 3.5rem);
  font-weight: 800;
  line-height: 1.12;
  color: #ffffff;
  margin: 0 0 16px 0;
  letter-spacing: -0.025em;
  text-shadow: 0 2px 12px rgba(0, 0, 0, 0.38);
}

.hotels-hero-title .highlight-cyan {
  color: var(--ht-cyan);
  display: inline-block;
}

.hotels-hero-subtitle {
  font-size: clamp(1.02rem, 1.6vw, 1.25rem);
  color: #f1f5f9;
  line-height: 1.55;
  margin: 0;
  font-weight: 400;
  text-shadow: 0 1px 6px rgba(0, 0, 0, 0.4);
}

/* 2. FLOATING SEARCH BAR WRAPPER */
.hotels-search-wrapper {
  max-width: 1280px;
  margin: -62px auto 0;
  padding: 0 24px;
  position: relative;
  z-index: 25;
}

.hotels-search-wrapper #hotels-content {
  display: block !important;
  opacity: 1 !important;
  visibility: visible !important;
}

.hotels-search-wrapper .search-form-fields {
  background: #ffffff !important;
  border-radius: 22px !important;
  box-shadow: var(--ht-shadow-xl) !important;
  border: 1px solid rgba(226, 232, 240, 0.95) !important;
  padding: 12px 16px !important;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hotels-search-wrapper .form-group {
  position: relative !important;
  flex: 1;
  min-width: 160px;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  padding: 8px 12px;
  border-radius: 14px;
  transition: background-color 0.2s ease;
}

.hotels-search-wrapper .form-group:focus-within {
  background: #f8fafc;
}

.hotels-search-wrapper .hotel-destination-group {
  flex: 1.5;
}

.hotels-search-wrapper .input-icon {
  position: static !important;
  transform: none !important;
  font-size: 16px !important;
  color: var(--ht-accent) !important;
  margin-right: 12px !important;
  flex-shrink: 0 !important;
  pointer-events: none;
}

.hotels-search-wrapper .field-inner {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-width: 0;
}

.hotels-search-wrapper .field-label {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ht-text-muted);
  margin-bottom: 2px;
}

.hotels-search-wrapper input[type="text"],
.hotels-search-wrapper .rooms-guests-display {
  border: none;
  background: transparent;
  padding: 0;
  font-size: 0.96rem;
  font-weight: 600;
  color: var(--ht-text-main);
  outline: none;
  width: 100%;
  height: 24px;
  line-height: 24px;
}

.hotels-search-wrapper input::placeholder {
  color: #94a3b8;
  font-weight: 400;
}

.hotels-search-wrapper .field-separator {
  width: 1px;
  height: 38px;
  background: #e2e8f0;
  flex-shrink: 0;
}

.hotels-search-wrapper .rooms-guests-selector {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  cursor: pointer;
  width: 100%;
}

.hotels-search-wrapper .rooms-guests-selector i {
  font-size: 0.78rem;
  color: var(--ht-text-muted);
}

.hotels-search-wrapper .btn-search-main {
  background: linear-gradient(135deg, #0070f3 0%, #0284c7 100%);
  color: #ffffff;
  border: none;
  border-radius: 16px;
  padding: 15px 28px;
  font-size: 0.98rem;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  cursor: pointer;
  white-space: nowrap;
  box-shadow: 0 8px 20px -4px rgba(0, 112, 243, 0.45);
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.hotels-search-wrapper .btn-search-main:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 24px -4px rgba(0, 112, 243, 0.55);
}

/* Suggestions Dropdown & Rooms Dropdown */
.hotels-search-wrapper .suggestions-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 360px;
  width: max-content;
  max-width: 440px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  border: 1px solid #e2e8f0;
  z-index: 1200;
  max-height: 380px;
  overflow-y: auto;
  display: none;
  padding: 8px 0;
}

.hotels-search-wrapper .suggestions-dropdown.show {
  display: block;
}

.hotels-search-wrapper .rooms-guests-dropdown {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: 310px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.18);
  border: 1px solid #e2e8f0;
  padding: 18px;
  z-index: 1200;
  display: none;
}

.hotels-search-wrapper .rooms-guests-dropdown.show {
  display: block;
}

.hotels-search-wrapper .control-group {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 10px 0;
  border-bottom: 1px solid #f1f5f9;
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ht-text-main);
}

.hotels-search-wrapper .control-group:last-of-type {
  border-bottom: none;
}

.hotels-search-wrapper .counter-controls {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hotels-search-wrapper .counter-btn {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: var(--ht-primary);
  font-weight: 700;
  font-size: 1rem;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: all 0.15s ease;
}

.hotels-search-wrapper .counter-btn:hover {
  border-color: var(--ht-accent);
  color: var(--ht-accent);
  background: #eff6ff;
}

.hotels-search-wrapper .counter-value {
  min-width: 18px;
  text-align: center;
  font-weight: 700;
}

.hotels-search-wrapper .hotel-child-ages {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #f1f5f9;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 8px;
}

.hotels-search-wrapper .hotel-child-age-field {
  display: flex;
  flex-direction: column;
  gap: 4px;
  font-size: 0.78rem;
  color: var(--ht-text-muted);
}

.hotels-search-wrapper .hotel-child-age-field select {
  padding: 6px 8px;
  border-radius: 8px;
  border: 1px solid #cbd5e1;
  font-size: 0.85rem;
}

.hotels-search-wrapper .done-btn {
  width: 100%;
  margin-top: 12px;
  padding: 10px;
  border-radius: 10px;
  border: none;
  background: var(--ht-accent);
  color: #ffffff;
  font-weight: 600;
  cursor: pointer;
}

/* 3. 5-PILLAR TRUST RIBBON */
.hotels-trust-ribbon {
  max-width: 1280px;
  margin: 28px auto 0;
  padding: 0 24px;
}

.hotels-trust-grid {
  background: #ffffff;
  border-radius: 18px;
  border: 1px solid var(--ht-border);
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.04);
  padding: 20px 26px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 18px;
}

.hotels-trust-item {
  display: flex;
  align-items: center;
  gap: 12px;
}

.hotels-trust-icon {
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: #eff6ff;
  color: var(--ht-accent);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.05rem;
  flex-shrink: 0;
}

.hotels-trust-text {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
}

.hotels-trust-text strong {
  font-size: 0.86rem;
  font-weight: 700;
  color: var(--ht-text-main);
}

.hotels-trust-text span {
  font-size: 0.78rem;
  color: var(--ht-text-muted);
}

/* 4. POPULAR HOTEL DESTINATIONS SECTION */
.hotels-destinations-section {
  max-width: 1280px;
  margin: 44px auto 0;
  padding: 0 24px;
}

.hotels-section-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 22px;
}

.hotels-section-title {
  font-size: 1.75rem;
  font-weight: 800;
  color: var(--ht-text-main);
  margin: 0 0 4px 0;
  letter-spacing: -0.02em;
}

.hotels-section-subtitle {
  font-size: 0.95rem;
  color: var(--ht-text-muted);
  margin: 0;
}

.hotels-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 18px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: var(--ht-primary);
  font-size: 0.88rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.hotels-toggle-btn:hover {
  border-color: var(--ht-accent);
  color: var(--ht-accent);
  background: #eff6ff;
}

.hotels-region-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-bottom: 20px;
}

.hotel-filter-chip {
  padding: 8px 16px;
  border-radius: 999px;
  border: 1px solid #cbd5e1;
  background: #ffffff;
  color: #475569;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.18s ease;
}

.hotel-filter-chip.active,
.hotel-filter-chip:hover {
  background: var(--ht-primary);
  border-color: var(--ht-primary);
  color: #ffffff;
}

.hotels-destinations-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 18px;
}

.hotel-dest-card {
  background: #ffffff;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid var(--ht-border);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.05);
  cursor: pointer;
  text-decoration: none;
  color: inherit;
  display: flex;
  flex-direction: column;
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.hotel-dest-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 16px 32px rgba(15, 23, 42, 0.12);
}

.hotel-dest-img-wrap {
  position: relative;
  height: 165px;
  overflow: hidden;
  background: #0f172a;
}

.hotel-dest-img-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.hotel-dest-card:hover .hotel-dest-img-wrap img {
  transform: scale(1.06);
}

.hotel-dest-pill {
  position: absolute;
  bottom: 10px;
  left: 10px;
  background: rgba(15, 23, 42, 0.78);
  backdrop-filter: blur(6px);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 5px 10px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.hotel-dest-pill i {
  color: var(--ht-cyan);
}

.hotel-dest-body {
  padding: 14px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.hotel-dest-name {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ht-text-main);
  margin: 0 0 2px 0;
}

.hotel-dest-country {
  font-size: 0.8rem;
  color: var(--ht-text-muted);
}

.hotel-dest-cta {
  text-align: right;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
}

.hotel-dest-cta span {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ht-text-muted);
  font-weight: 600;
}

.hotel-dest-cta strong {
  font-size: 0.92rem;
  color: var(--ht-accent);
  font-weight: 700;
}

/* 5. PANORAMIC BOTTOM BANNER */
.hotels-panoramic-banner-wrap {
  max-width: 1280px;
  margin: 48px auto 0;
  padding: 0 24px;
}

.hotels-panoramic-banner {
  position: relative;
  min-height: 250px;
  border-radius: 22px;
  overflow: hidden;
  background: #0f2331 url('/images/morocco-banner-panoramic.webp') no-repeat center center / cover;
  display: flex;
  align-items: center;
  padding: 40px 44px;
  box-shadow: 0 18px 36px rgba(15, 23, 42, 0.14);
}

.hotels-panoramic-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, rgba(10, 22, 40, 0.88) 0%, rgba(15, 35, 55, 0.58) 55%, rgba(15, 35, 55, 0.18) 100%);
  z-index: 1;
}

.hotels-panoramic-content {
  position: relative;
  z-index: 2;
  max-width: 560px;
}

.hotels-panoramic-headline {
  font-size: clamp(1.6rem, 3vw, 2.25rem);
  font-weight: 800;
  color: #ffffff;
  line-height: 1.2;
  margin: 0 0 12px 0;
}

.hotels-panoramic-cta {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  background: #ffffff;
  color: var(--ht-primary);
  font-weight: 700;
  font-size: 0.95rem;
  padding: 13px 22px;
  border-radius: 12px;
  border: none;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.hotels-panoramic-cta:hover {
  transform: translateY(-2px);
  box-shadow: 0 10px 24px rgba(0, 0, 0, 0.28);
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .hotels-trust-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  .hotels-destinations-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 860px) {
  .hotels-search-wrapper .search-form-fields {
    flex-direction: column;
    align-items: stretch;
    padding: 14px !important;
  }
  .hotels-search-wrapper .field-separator {
    width: 100%;
    height: 1px;
  }
  .hotels-search-wrapper .btn-search-main {
    width: 100%;
  }
  .hotels-search-wrapper .suggestions-dropdown {
    min-width: 0;
    width: 100%;
    max-width: none;
  }
  .hotels-search-wrapper .rooms-guests-dropdown {
    width: 100%;
  }
}

@media (max-width: 640px) {
  .hotels-hero-section {
    min-height: 360px;
    padding: 44px 18px 90px;
  }
  .hotels-trust-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .hotels-destinations-grid {
    grid-template-columns: 1fr;
  }
  .hotels-section-header {
    flex-direction: column;
    align-items: flex-start;
  }
  .hotels-panoramic-banner {
    padding: 28px 22px;
  }
}
