/**
 * JetSetter Guide - Global Styles
 * Based on Next.js/Tailwind design
 */

/* CSS Variables - Modern Design System */
:root {
  /* Colors - OKLCH color space for modern browsers */
  --background: rgb(255, 255, 255);
  --foreground: rgb(23, 23, 23);
  --card: rgb(255, 255, 255);
  --card-foreground: rgb(23, 23, 23);
  --popover: rgb(255, 255, 255);
  --popover-foreground: rgb(23, 23, 23);
  --primary: rgb(33, 33, 33);
  --primary-foreground: rgb(251, 251, 251);
  --secondary: rgb(247, 247, 247);
  --secondary-foreground: rgb(33, 33, 33);
  --muted: rgb(247, 247, 247);
  --muted-foreground: rgb(107, 114, 128);
  --accent: rgb(247, 247, 247);
  --accent-foreground: rgb(33, 33, 33);
  --destructive: rgb(239, 68, 68);
  --destructive-foreground: rgb(255, 255, 255);
  --border: rgb(235, 235, 235);
  --input: rgb(235, 235, 235);
  --ring: rgb(180, 180, 180);

  /* Spacing & Sizing */
  --radius: 0.625rem;
  --radius-sm: 0.375rem;
  --radius-md: 0.5rem;
  --radius-lg: 0.625rem;
  --radius-xl: 0.875rem;

  /* Typography */
  --font-sans: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif;
  --font-serif: 'Playfair Display', Georgia, 'Times New Roman', serif;
}

/* Base Styles */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

html {
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.6;
  color: var(--foreground);
  background-color: var(--background);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  max-width: 100vw;
}

/* Typography */
h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-serif);
  font-weight: 400;
  letter-spacing: -0.02em;
  line-height: 1.2;
  margin-bottom: 1rem;
  color: var(--foreground);
}

h1 { font-size: 3rem; }
h2 { font-size: 2.25rem; }
h3 { font-size: 1.875rem; }
h4 { font-size: 1.5rem; }
h5 { font-size: 1.25rem; }
h6 { font-size: 1.125rem; }

p {
  margin-bottom: 1rem;
  line-height: 1.7;
}

a {
  color: var(--primary);
  text-decoration: none;
  transition: color 0.2s ease;
}

a:hover {
  color: var(--foreground);
}

/* Layout Components */
.container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

@media (min-width: 768px) {
  .container {
    padding: 0 2rem;
  }
}

/* Header Styles */
.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--border);
}

.site-header .header-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 64px;
  padding: 0 1rem;
}

/* Navigation */
.main-navigation {
  display: none;
}

@media (min-width: 1024px) {
  .main-navigation {
    display: flex;
    align-items: center;
    gap: 0.25rem;
  }
}

.main-navigation a {
  padding: 0.5rem 0.75rem;
  font-size: 0.875rem;
  font-weight: 500;
  color: var(--foreground);
  opacity: 0.8;
  transition: all 0.2s ease;
  border-radius: var(--radius-sm);
}

.main-navigation a:hover,
.main-navigation a.active {
  opacity: 1;
  background-color: var(--secondary);
}

/* Search Bar */
.search-container {
  position: relative;
  display: none;
}

@media (min-width: 768px) {
  .search-container {
    display: block;
  }
}

.search-input {
  width: 256px;
  padding: 0.5rem 0.75rem 0.5rem 2.5rem;
  font-size: 0.875rem;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  background-color: var(--background);
  transition: border-color 0.2s ease;
}

.search-input:focus {
  outline: none;
  border-color: var(--ring);
}

.search-icon {
  position: absolute;
  left: 0.75rem;
  top: 50%;
  transform: translateY(-50%);
  width: 1rem;
  height: 1rem;
  opacity: 0.5;
}

/* Hero Slider */
.hero-slider {
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(248, 250, 252, 0.8) 0%, rgba(241, 245, 249, 0.9) 100%);
}

.hero-slide {
  position: relative;
  min-height: 500px;
  display: flex;
  align-items: center;
}

.hero-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 3rem 1rem;
}

.hero-title {
  font-size: 3rem;
  font-family: var(--font-serif);
  margin-bottom: 1rem;
  color: var(--foreground);
}

.hero-description {
  font-size: 1.25rem;
  color: var(--muted-foreground);
  margin-bottom: 2rem;
  max-width: 600px;
}

/* Cards */
.card {
  background: var(--card);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
  transition: all 0.3s ease;
}

.card:hover {
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
  transform: translateY(-2px);
}

.card-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
}

.card-content {
  padding: 1.5rem;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--foreground);
}

.card-description {
  font-size: 0.875rem;
  color: var(--muted-foreground);
  line-height: 1.5;
}

/* Category Sections */
.category-section {
  padding: 4rem 0;
}

.category-header {
  text-align: center;
  margin-bottom: 3rem;
}

.category-title {
  font-size: 2.5rem;
  font-family: var(--font-serif);
  margin-bottom: 1rem;
}

.category-subtitle {
  font-size: 1.125rem;
  color: var(--muted-foreground);
}

/* Grid Layouts */
.grid {
  display: grid;
  gap: 2rem;
}

.grid-cols-1 { grid-template-columns: repeat(1, 1fr); }

@media (min-width: 768px) {
  .grid-cols-md-2 { grid-template-columns: repeat(2, 1fr); }
  .grid-cols-md-3 { grid-template-columns: repeat(3, 1fr); }
}

@media (min-width: 1024px) {
  .grid-cols-lg-3 { grid-template-columns: repeat(3, 1fr); }
  .grid-cols-lg-4 { grid-template-columns: repeat(4, 1fr); }
}

/* Buttons */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.5rem 1rem;
  font-size: 0.875rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: all 0.2s ease;
  cursor: pointer;
  border: 1px solid transparent;
}

.btn-primary {
  background-color: var(--primary);
  color: var(--primary-foreground);
}

.btn-primary:hover {
  opacity: 0.9;
}

.btn-secondary {
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  border-color: var(--border);
}

.btn-secondary:hover {
  background-color: var(--accent);
}

.btn-outline {
  background-color: transparent;
  color: var(--foreground);
  border-color: var(--border);
}

.btn-outline:hover {
  background-color: var(--secondary);
}

/* Badges & Chips */
.badge {
  display: inline-flex;
  align-items: center;
  padding: 0.25rem 0.75rem;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  border: 1px solid var(--border);
}

.chip {
  display: inline-flex;
  align-items: center;
  padding: 0.375rem 0.875rem;
  font-size: 0.8125rem;
  font-weight: 500;
  border-radius: 9999px;
  background-color: var(--secondary);
  color: var(--secondary-foreground);
  border: 1px solid var(--border);
  transition: all 0.2s ease;
}

.chip:hover {
  background-color: var(--accent);
  border-color: var(--accent);
}

/* Premium Design Elements */
.elevated-card {
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 8px 32px rgba(0, 0, 0, 0.08);
}

.premium-gradient {
  background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
}

/* Content Stream */
.content-stream {
  border-left: 2px solid var(--border);
  padding-left: 1.5rem;
}

/* Trending Rail */
.trending-rail {
  padding: 3rem 0;
  background-color: var(--secondary);
}

.trending-item {
  display: flex;
  gap: 1rem;
  padding: 1rem;
  border-radius: var(--radius);
  transition: background-color 0.2s ease;
}

.trending-item:hover {
  background-color: var(--background);
}

.trending-number {
  font-size: 2rem;
  font-weight: 700;
  color: var(--muted-foreground);
  opacity: 0.5;
}

/* Footer */
.site-footer {
  background-color: var(--foreground);
  color: var(--background);
  padding: 3rem 0 2rem;
  margin-top: 2rem;
}

/* Override inner footer margin - fixes double margin issue */
.site-footer .site-footer,
.site-footer.mt-16,
footer.site-footer.mt-16 {
  margin-top: 0 !important;
}

.footer-content {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Responsive Mobile Menu */
.mobile-menu-toggle {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 40px;
  height: 40px;
  background: transparent;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  cursor: pointer;
}

@media (min-width: 1024px) {
  .mobile-menu-toggle {
    display: none;
  }
}

.mobile-menu {
  display: none;
  position: fixed;
  top: 64px;
  left: 0;
  right: 0;
  bottom: 0;
  background-color: var(--background);
  z-index: 40;
  padding: 1rem;
}

.mobile-menu.open {
  display: block;
}

.mobile-menu a {
  display: block;
  padding: 1rem;
  font-size: 1rem;
  color: var(--foreground);
  border-bottom: 1px solid var(--border);
}

/* Utility Classes */
.text-center { text-align: center; }
.text-left { text-align: left; }
.text-right { text-align: right; }

.mt-1 { margin-top: 0.25rem; }
.mt-2 { margin-top: 0.5rem; }
.mt-3 { margin-top: 0.75rem; }
.mt-4 { margin-top: 1rem; }
.mt-6 { margin-top: 1.5rem; }
.mt-8 { margin-top: 2rem; }

.mb-1 { margin-bottom: 0.25rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }

.hidden { display: none; }
.block { display: block; }
.inline-block { display: inline-block; }
.flex { display: flex; }
.grid { display: grid; }

.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-center { justify-content: center; }

.gap-1 { gap: 0.25rem; }
.gap-2 { gap: 0.5rem; }
.gap-3 { gap: 0.75rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }

/* Animations */
@keyframes fadeIn {
  from { opacity: 0; }
  to { opacity: 1; }
}

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

.animate-fadeIn {
  animation: fadeIn 0.5s ease;
}

.animate-slideUp {
  animation: slideUp 0.5s ease;
}
/* Utility Classes for Homepage */
.sage-green { color: rgb(156, 163, 150); }
.bg-sage-green { background-color: rgb(156, 163, 150); }
.text-dark { color: rgb(33, 33, 33); }
.bg-gray-50 { background-color: rgb(249, 250, 251); }
.text-gray-200 { color: rgb(229, 231, 235); }
.text-gray-300 { color: rgb(209, 213, 219); }
.text-gray-500 { color: rgb(107, 114, 128); }
.text-gray-600 { color: rgb(75, 85, 99); }

.py-12 { padding-top: 3rem; padding-bottom: 3rem; }
.px-4 { padding-left: 1rem; padding-right: 1rem; }
.p-6 { padding: 1.5rem; }
.p-8 { padding: 2rem; }
.mb-2 { margin-bottom: 0.5rem; }
.mb-3 { margin-bottom: 0.75rem; }
.mb-4 { margin-bottom: 1rem; }
.mb-6 { margin-bottom: 1.5rem; }
.mb-8 { margin-bottom: 2rem; }
.mt-4 { margin-top: 1rem; }

.gap-2 { gap: 0.5rem; }
.gap-4 { gap: 1rem; }
.gap-6 { gap: 1.5rem; }
.gap-8 { gap: 2rem; }
.space-y-6 > * + * { margin-top: 1.5rem; }

.grid { display: grid; }
.grid-cols-1 { grid-template-columns: repeat(1, minmax(0, 1fr)); }
.flex { display: flex; }
.flex-col { flex-direction: column; }
.flex-wrap { flex-wrap: wrap; }
.flex-1 { flex: 1 1 0%; }
.flex-shrink-0 { flex-shrink: 0; }
.items-center { align-items: center; }
.justify-between { justify-content: space-between; }
.justify-end { justify-content: flex-end; }

.rounded-xl { border-radius: 0.875rem; }
.rounded-lg { border-radius: 0.5rem; }
.rounded-full { border-radius: 9999px; }
.overflow-hidden { overflow: hidden; }
.overflow-x-auto { overflow-x: auto; }

.relative { position: relative; }
.absolute { position: absolute; }
.inset-0 { top: 0; right: 0; bottom: 0; left: 0; }

.h-full { height: 100%; }
.h-32 { height: 8rem; }
.w-32 { width: 8rem; }
.w-4 { width: 1rem; }
.h-4 { height: 1rem; }

.shadow-md { box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); }
.shadow-xl { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
.hover\:shadow-xl:hover { box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04); }
.hover\:shadow-lg:hover { box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1), 0 4px 6px -2px rgba(0, 0, 0, 0.05); }

.transition-shadow { transition-property: box-shadow; }
.transition-transform { transition-property: transform; }
.transition-colors { transition-property: color, background-color, border-color; }
.duration-300 { transition-duration: 300ms; }

.group:hover .group-hover\:scale-105 { transform: scale(1.05); }
.group:hover .group-hover\:text-sage-green { color: rgb(156, 163, 150); }

.line-clamp-2 {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.line-clamp-3 {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.aspect-video {
  aspect-ratio: 16 / 9;
}

.text-xs { font-size: 0.75rem; line-height: 1rem; }
.text-sm { font-size: 0.875rem; line-height: 1.25rem; }
.text-base { font-size: 1rem; line-height: 1.5rem; }
.text-lg { font-size: 1.125rem; line-height: 1.75rem; }
.text-xl { font-size: 1.25rem; line-height: 1.75rem; }
.text-3xl { font-size: 1.875rem; line-height: 2.25rem; }
.text-4xl { font-size: 2.25rem; line-height: 2.5rem; }
.text-5xl { font-size: 3rem; line-height: 1; }

.font-medium { font-weight: 500; }
.font-bold { font-weight: 700; }
.font-serif { font-family: var(--font-serif); }

.inline-block { display: inline-block; }
.block { display: block; }

.bg-white { background-color: rgb(255, 255, 255); }

.hover\:text-primary:hover { color: var(--primary); }
.hover\:text-sage-green:hover { color: rgb(156, 163, 150); }
.hover\:underline:hover { text-decoration: underline; }

/* Gradient */
.bg-gradient-to-t { background-image: linear-gradient(to top, var(--tw-gradient-stops)); }
.from-black\/80 { --tw-gradient-from: rgba(0, 0, 0, 0.8); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to); }
.via-black\/40 { --tw-gradient-via: rgba(0, 0, 0, 0.4); --tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-via), var(--tw-gradient-to); }
.to-transparent { --tw-gradient-to: transparent; }

@media (min-width: 768px) {
  .md\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .md\:text-5xl { font-size: 3rem; line-height: 1; }
}

@media (min-width: 1024px) {
  .lg\:col-span-2 { grid-column: span 2 / span 2; }
  .lg\:grid-cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

/* Hero Card Special Height - controlled by template class h-[380px] */
/* Desktop height set via .h-[380px] class in mobile-hero-nuclear.css */

@media (max-width: 767px) {
  .hero-card {
    min-height: 350px;
  }
}

/* ========================================
   Image Layout Fixes
   ======================================== */

/* Hero card - full height background image */
/* Ensure all nested containers fill the hero card */
.hero-card .absolute.inset-0 {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  height: 100%;
}

.hero-card .absolute.inset-0 .field,
.hero-card .absolute.inset-0 .field__item {
  width: 100%;
  height: 100%;
  display: block;
}

.hero-card img {
  width: 100%;
  height: 100%;
  min-height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Card images - proper aspect ratio */
.article-card .aspect-video img,
.news-card .aspect-video img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Hero stacked thumbnail */
.hero-stacked-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Ensure aspect-video maintains 16:9 */
.aspect-video {
  position: relative;
  padding-bottom: 56.25%; /* 16:9 ratio */
  height: 0;
  overflow: hidden;
}

.aspect-video > * {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Grid responsive utilities - ensure they work */
@media (min-width: 768px) {
  .md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  
  .md\:grid-cols-2 {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

@media (min-width: 1024px) {
  .lg\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  
  .lg\:col-span-2 {
    grid-column: span 2 / span 2 !important;
  }
}

/* Fix Drupal field wrappers that might break layout */
.field--name-field-featured-image {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
}

.field--name-field-featured-image .field__item {
  margin: 0;
  padding: 0;
  width: 100%;
  height: 100%;
  display: block;
}

/* Ensure images fill their containers properly */
img {
  max-width: 100%;
  height: auto;
  display: block;
}

/* Specific fixes for card layouts */
.article-card .field--name-field-featured-image,
.news-card .field--name-field-featured-image {
  aspect-ratio: 16 / 9;
  overflow: hidden;
}

.hero-stacked-card .w-32.h-32 img {
  width: 8rem;
  height: 8rem;
  object-fit: cover;
}

/* ===== HOMEPAGE FIX STYLES ===== */

/* Header / Navigation Styling */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: white;
  border-bottom: 1px solid var(--border);
  padding: 1rem 0;
}

.site-header .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

/* Site branding */
.site-branding {
  font-size: 1.5rem;
  font-weight: bold;
  font-family: var(--font-serif);
}

.site-branding a {
  color: var(--foreground);
  text-decoration: none;
}

/* Main menu styling */
.region-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

nav.block-menu ul {
  display: flex;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

nav.block-menu li {
  margin: 0;
}

nav.block-menu a {
  color: var(--foreground);
  text-decoration: none;
  font-weight: 500;
  transition: color 0.2s;
}

nav.block-menu a:hover {
  color: rgb(59, 130, 246);
}

/* Hero Section Fixes */
.hero-card {
  position: relative !important;
}

.hero-card .text-white,
.hero-card .text-gray-200,
.hero-card .text-gray-300 {
  color: white !important;
}

.hero-card h2 a {
  color: white !important;
}

.hero-card h2 a:hover {
  color: rgb(168, 213, 184) !important;
}

/* Ensure hero background image covers properly */
.hero-card .absolute.inset-0 img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

/* Hero stacked cards - ensure images display */
.hero-stacked-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.hero-stacked-card .w-32 img {
  min-height: 128px;
}

/* Grid Layout Fixes - Ensure proper 3-column grid */
.grid.grid-cols-1.md\:grid-cols-3 {
  display: grid !important;
  grid-template-columns: 1fr !important;
}

@media (min-width: 768px) {
  .grid.grid-cols-1.md\:grid-cols-3 {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
}

/* Fix any flex issues that might interfere with grid */
.view-content .grid {
  display: grid !important;
}

/* Card Images - Ensure they display properly */
.news-card img,
.article-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

/* Aspect ratio fix for card images */
.news-card .aspect-\[16\/9\],
.article-card .aspect-video {
  position: relative;
  width: 100%;
  padding-bottom: 56.25%; /* 16:9 ratio */
  overflow: hidden;
}

.news-card .aspect-\[16\/9\] > *,
.article-card .aspect-video > * {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

.news-card .aspect-\[16\/9\] img,
.article-card .aspect-video img {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Trending Section - Full Width Slider */
.trending-section {
  width: 100%;
  max-width: none !important;
}

.trending-section .container {
  max-width: 1280px;
  margin: 0 auto;
}

.trending-section .overflow-x-auto {
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
}

.trending-section .view-content {
  display: flex;
  gap: 1.5rem;
  padding-bottom: 1rem;
}

.trending-section .news-card,
.trending-section .article-card {
  flex: 0 0 350px;
  max-width: 350px;
}

/* Fix Gear Section Grid */
.gear-section .grid {
  display: grid !important;
}

/* Image field wrappers - remove interfering styles */
.field--name-field-featured-image {
  margin: 0;
  padding: 0;
}

.field--name-field-featured-image > .field__items > .field__item {
  margin: 0;
  padding: 0;
  line-height: 0;
}

/* Ensure Drupal image elements don't break layout */
.field--name-field-featured-image img {
  display: block;
  width: 100%;
  height: 100%;
}

/* Fix for view rows */
.views-row {
  margin: 0;
  padding: 0;
}

/* Container fixes */
.container {
  max-width: 1280px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1rem;
  padding-right: 1rem;
}

/* Ensure sections have proper spacing */
section {
  width: 100%;
}

/* Fix block spacing */
.block {
  margin: 0;
}


/* ===== ADDITIONAL LAYOUT FIXES ===== */

/* Header improvements - better logo/menu layout */
.site-header {
  box-shadow: 0 1px 3px 0 rgb(0 0 0 / 0.1);
}

.region-header .block-system-branding-block {
  flex-shrink: 0;
}

.region-header .block-system-branding-block .site-name {
  font-size: 1.875rem;
  font-weight: 700;
  font-family: var(--font-serif);
  line-height: 1;
}

.region-header .block-system-branding-block a {
  text-decoration: none;
  color: var(--foreground);
}

/* Menu block positioning */
.region-header .block-menu {
  margin-left: auto;
}

nav.block-menu ul {
  align-items: center;
}

nav.block-menu li a {
  padding: 0.5rem 0;
  display: block;
  font-size: 0.9375rem;
}

/* Trending section - truly full width */
.trending-section {
  position: relative;
  width: 100vw;
  left: 50%;
  right: 50%;
  margin-left: -50vw;
  margin-right: -50vw;
  padding-left: 0;
  padding-right: 0;
}

.trending-section > div {
  width: 100%;
  max-width: none;
}

.trending-section .overflow-x-auto {
  padding-left: max(1rem, calc((100vw - 1280px) / 2));
  padding-right: max(1rem, calc((100vw - 1280px) / 2));
}

/* Fix trending cards */
.trending-section .flex {
  padding-bottom: 1rem;
}

.trending-section .flex-shrink-0 {
  flex-shrink: 0;
}

/* Ensure view wrappers don't interfere */
.views-element-container {
  width: 100%;
}

/* Remove any nested grid wrappers that might still exist */
/* REMOVED - This was breaking nested grids across the entire site */
/* .views-element-container .grid .grid {
  display: contents;
} */

/* Fix Flight Deals section specifically */
.flights-section .views-element-container {
  width: 100%;
}


/* ===== HEADER & MENU - DEMO SITE MATCH ===== */

/* Override previous header styles with clean demo-matching styles */
.site-header {
  position: sticky;
  top: 0;
  z-index: 1000;
  width: 100%;
  background: white;
  border-bottom: 1px solid #e5e5e5;
  box-shadow: none !important;
  padding: 0 !important;
}

/* Header container */
.site-header .container {
  max-width: 1280px;
  margin: 0 auto;
  padding: 0 1rem;
}

/* Header flex layout */
.site-header .flex {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 4rem; /* 64px */
}

/* Logo/Branding area */
.site-header .flex-shrink-0 {
  display: flex;
  align-items: center;
}

/* Region header should display blocks horizontally */
.region-header {
  display: flex !important;
  align-items: center;
  gap: 3rem;
  width: 100%;
}

/* Site branding block */
.region-header .block-system-branding-block {
  margin: 0;
  padding: 0;
}

.region-header .block-system-branding-block .site-name {
  margin: 0;
  font-size: 1.5rem;
  font-weight: 700;
  font-family: var(--font-serif);
  line-height: 1;
}

.region-header .block-system-branding-block .site-name a {
  color: #171717;
  text-decoration: none;
}

.region-header .block-system-branding-block .site-logo {
  margin: 0;
  padding: 0;
  display: flex;
  align-items: center;
}

.region-header .block-system-branding-block .site-logo img {
  height: 40px;
  width: auto;
}

/* Main menu block - positioned on right */
.region-header .block-menu {
  margin-left: auto;
  margin-right: 0;
  padding: 0;
}

/* Menu list styling - horizontal layout matching demo */
.region-header nav.block-menu ul {
  display: flex;
  align-items: center;
  gap: 2rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.region-header nav.block-menu li {
  margin: 0;
  padding: 0;
}

.region-header nav.block-menu a {
  color: #525252;
  text-decoration: none;
  font-size: 0.9375rem;
  font-weight: 500;
  padding: 0.5rem 0;
  display: block;
  transition: color 0.2s ease;
}

.region-header nav.block-menu a:hover,
.region-header nav.block-menu a:focus {
  color: #171717;
}

.region-header nav.block-menu a.is-active {
  color: #171717;
  font-weight: 600;
}

/* Remove any menu item wrapper styles */
.region-header nav.block-menu .menu-item {
  list-style: none;
  margin: 0;
  padding: 0;
}

/* Clean up any Drupal default menu styling */
.region-header .menu {
  margin: 0;
  padding: 0;
}

/* Ensure menu doesn't wrap on smaller screens */
@media (max-width: 1024px) {
  .region-header nav.block-menu ul {
    gap: 1.5rem;
  }
  
  .region-header nav.block-menu a {
    font-size: 0.875rem;
  }
}

/* Very small screens - hide menu or make mobile */
@media (max-width: 768px) {
  .region-header .block-menu {
    display: none; /* Will add mobile menu later if needed */
  }
}

/* Search Pages Layout */

/* View container */
.view-cruise-lines-search,
.view-cruise-ports-search,
.view-cruise-ships-search {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Filters section */
.view-filters {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

.view-filters .views-exposed-form {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr auto;
  gap: 1rem;
  align-items: end;
}

.view-filters .form-item {
  margin: 0;
}

.view-filters label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: #374151;
}

.view-filters input[type="text"],
.view-filters select {
  width: 100%;
  padding: 0.625rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.875rem;
}

.view-filters .form-actions {
  margin: 0;
}

.view-filters input[type="submit"],
.view-filters button {
  padding: 0.625rem 1.5rem;
  background: #0ea5e9;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  transition: background 0.2s;
}

.view-filters input[type="submit"]:hover,
.view-filters button:hover {
  background: #0284c7;
}

/* Grid layout for results - SCOPED to search pages only to avoid conflicts */
.search-view-with-facets .view-content,
.view-search-results .view-content {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 1.5rem;
  margin-bottom: 2rem;
}

/* Individual row items - SCOPED to search pages only */
.search-view-with-facets .view-content .views-row,
.view-search-results .view-content .views-row {
  display: contents;
}

/* Pagination */
.pager {
  display: flex;
  justify-content: center;
  gap: 0.5rem;
  margin-top: 2rem;
  padding: 1rem 0;
}

.pager__items {
  display: flex;
  gap: 0.5rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.pager__item {
  margin: 0;
}

.pager__link,
.pager__item--active span {
  display: block;
  padding: 0.5rem 1rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  text-decoration: none;
  color: #374151;
  transition: all 0.2s;
}

.pager__link:hover {
  background: #f3f4f6;
  border-color: #9ca3af;
}

.pager__item--active span {
  background: #0ea5e9;
  color: white;
  border-color: #0ea5e9;
}

/* No results message */
.no-results {
  text-align: center;
  padding: 3rem 1rem;
  color: #6b7280;
  font-size: 1.125rem;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .view-filters .views-exposed-form {
    grid-template-columns: 1fr;
  }

  .view-content {
    grid-template-columns: 1fr;
  }
}

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

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

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

/* Page header */
.view h1,
.view .view-header {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1.5rem;
  color: #111827;
}

/* Filter description text */
.form-item__description {
  font-size: 0.75rem;
  color: #6b7280;
  margin-top: 0.25rem;
}/* Enhanced Search Page Filters */

/* Filter form layout - stack vertically on search pages */
.view-cruise-lines-search .view-filters .views-exposed-form,
.view-cruise-ports-search .view-filters .views-exposed-form,
.view-cruise-ships-search .view-filters .views-exposed-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1rem;
}

/* Desktop: show filters in a grid */
@media (min-width: 768px) {
  .view-cruise-lines-search .view-filters .views-exposed-form,
  .view-cruise-ports-search .view-filters .views-exposed-form,
  .view-cruise-ships-search .view-filters .views-exposed-form {
    grid-template-columns: 2fr 1fr 1fr auto;
    align-items: end;
  }
}

/* Filter items should not use display: contents */
.view-filters .form-item-cruise-type,
.view-filters .form-item-departure-port,
.view-filters .form-item-region,
.view-filters .form-item-country,
.view-filters .form-item-cruise-line,
.view-filters .form-item-guest-capacity,
.view-filters .form-item-launch-year {
  display: block !important;
}

/* Multi-select styling */
.view-filters select[multiple] {
  min-height: 150px;
  padding: 0.5rem;
}

/* Show all exposed filters */
.views-exposed-form .form-item {
  display: block !important;
  visibility: visible !important;
}

/* Results header */
.view-header .result {
  font-size: 0.875rem;
  color: #6b7280;
  margin-bottom: 1rem;
}/* Facets Styling */

.block-facets {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 1.5rem;
}

.block-facets .block__title {
  font-size: 1rem;
  font-weight: 600;
  color: #111827;
  margin: 0 0 1rem 0;
  padding-bottom: 0.75rem;
  border-bottom: 2px solid #e5e7eb;
}

/* Checkbox facets */
.facets-widget-checkbox ul {
  list-style: none;
  margin: 0;
  padding: 0;
}

.facets-widget-checkbox .facet-item {
  margin: 0 0 0.5rem 0;
  padding: 0;
}

.facets-widget-checkbox .facet-item a {
  display: flex;
  align-items: center;
  padding: 0.5rem;
  text-decoration: none;
  color: #374151;
  border-radius: 4px;
  transition: background-color 0.2s;
}

.facets-widget-checkbox .facet-item a:hover {
  background-color: #f3f4f6;
}

.facets-widget-checkbox .facet-item.is-active a {
  background-color: #dbeafe;
  color: #1e40af;
  font-weight: 500;
}

.facets-widget-checkbox .facet-item__value {
  flex: 1;
}

.facets-widget-checkbox .facet-item__count {
  color: #6b7280;
  font-size: 0.875rem;
  margin-left: 0.5rem;
}

/* Dropdown facets */
.facets-widget-dropdown select {
  width: 100%;
  padding: 0.625rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.875rem;
  background-color: #fff;
  color: #374151;
  cursor: pointer;
}

.facets-widget-dropdown select:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Active facet items */
.facet-item.is-active::before {
  content: "✓ ";
  color: #10b981;
  font-weight: bold;
}

/* Facet summary (active filters) */
.facet-summary {
  background: #fef3c7;
  padding: 1rem;
  border-radius: 6px;
  margin-bottom: 1rem;
}

.facet-summary__item {
  display: inline-block;
  background: #fff;
  padding: 0.375rem 0.75rem;
  margin: 0.25rem;
  border-radius: 4px;
  font-size: 0.875rem;
}

.facet-summary__item a {
  color: #374151;
  text-decoration: none;
  margin-left: 0.5rem;
}

/* Responsive */
@media (max-width: 768px) {
  .block-facets {
    padding: 1rem;
  }
}/* Compact Horizontal Search Layout */

/* Main search container */
.view-cruise-lines-search .view-filters,
.view-cruise-ports-search .view-filters,
.view-cruise-ships-search .view-filters {
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
}

/* Arrange all filters horizontally */
.view-filters .views-exposed-form {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr auto;
  gap: 1rem;
  align-items: end;
}

/* Text search box - larger and prominent */
.view-filters .form-item-search {
  position: relative;
}

.view-filters .form-item-search input[type="text"] {
  width: 100%;
  padding: 0.75rem 1rem;
  padding-left: 2.5rem;
  border: 2px solid #d1d5db;
  border-radius: 8px;
  font-size: 1rem;
  transition: all 0.2s;
}

.view-filters .form-item-search input[type="text"]:focus {
  outline: none;
  border-color: #3b82f6;
  box-shadow: 0 0 0 3px rgba(59, 130, 246, 0.1);
}

/* Add search icon */
.view-filters .form-item-search::before {
  content: "\f002"; /* FontAwesome search icon */
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 0.875rem;
  bottom: 1rem;
  color: #9ca3af;
  font-size: 1rem;
}

/* Labels - keep visible but compact */
.view-filters label {
  display: block;
  font-weight: 500;
  margin-bottom: 0.5rem;
  font-size: 0.875rem;
  color: #374151;
}

/* Hide descriptions to save space */
.view-filters .form-item__description {
  display: none;
}

/* Sort and order dropdowns */
.view-filters select {
  width: 100%;
  padding: 0.75rem;
  border: 1px solid #d1d5db;
  border-radius: 6px;
  font-size: 0.875rem;
  background-color: #fff;
  cursor: pointer;
}

/* Submit button */
.view-filters input[type="submit"],
.view-filters button[type="submit"] {
  padding: 0.75rem 1.5rem;
  background: #0ea5e9;
  color: white;
  border: none;
  border-radius: 6px;
  cursor: pointer;
  font-weight: 500;
  font-size: 0.875rem;
  transition: background 0.2s;
  white-space: nowrap;
}

.view-filters input[type="submit"]:hover,
.view-filters button[type="submit"]:hover {
  background: #0284c7;
}

/* Facet blocks - make them inline */
.view-cruise-lines-search .region-content .block-facets,
.view-cruise-ports-search .region-content .block-facets,
.view-cruise-ships-search .region-content .block-facets {
  display: inline-block;
  vertical-align: top;
  width: auto;
  min-width: 200px;
  margin-right: 1rem;
  margin-bottom: 1rem;
}

/* Make facet blocks horizontal when inside search area */
.view-filters + .block-facets {
  display: inline-block;
  margin-right: 1rem;
}

/* Compact facet styling */
.block-facets .block__title {
  font-size: 0.875rem;
  margin-bottom: 0.75rem;
}

.facets-widget-checkbox .facet-item a {
  padding: 0.375rem 0.5rem;
  font-size: 0.875rem;
}

/* Place facets in a horizontal row */
.search-facets-container {
  display: flex;
  gap: 1rem;
  margin-bottom: 1.5rem;
  flex-wrap: wrap;
}

/* Responsive - stack on mobile */
@media (max-width: 1024px) {
  .view-filters .views-exposed-form {
    grid-template-columns: 1fr 1fr;
    gap: 0.75rem;
  }

  .view-filters .form-item-search {
    grid-column: 1 / -1;
  }

  .view-filters .form-actions {
    grid-column: 1 / -1;
  }
}

@media (max-width: 640px) {
  .view-filters .views-exposed-form {
    grid-template-columns: 1fr;
  }

  .block-facets {
    width: 100%;
    margin-right: 0;
  }
}

/* Better spacing for results */
.view-header {
  margin-bottom: 1rem;
  padding: 0.75rem;
  background: #f9fafb;
  border-radius: 6px;
}

.view-header .result {
  font-size: 0.875rem;
  color: #6b7280;
  margin: 0;
}/* Force facets to display horizontally in content region */

.view-cruise-lines-search + .block-facets,
.view-cruise-lines-search ~ .block-facets {
  display: inline-block !important;
  vertical-align: top;
  width: auto;
  max-width: 250px;
  margin: 0 1rem 1rem 0;
}

/* Create a horizontal facets bar */
.search-view-with-facets {
  position: relative;
}

/* Wrapper for all facet blocks */
.region-content .block-facets:first-of-type {
  margin-top: 0;
}

/* Make facets appear side by side */
.page-cruise-lines .region-content .block-facets,
.page-cruise-ports .region-content .block-facets,
.page-cruise-ships .region-content .block-facets {
  display: inline-block;
  vertical-align: top;
  width: calc(33.333% - 1rem);
  min-width: 250px;
  margin-right: 1rem;
  margin-bottom: 1rem;
}

/* Adjust view content to appear below facets */
.search-view-with-facets .view-content {
  clear: both;
  padding-top: 1rem;
}

/* Make facets more compact */
.block-facets {
  padding: 1rem;
}

.block-facets .block__title {
  font-size: 0.875rem;
  padding-bottom: 0.5rem;
  margin-bottom: 0.75rem;
}

.facets-widget-checkbox .facet-item {
  margin-bottom: 0.375rem;
}

.facets-widget-checkbox .facet-item a {
  padding: 0.375rem 0.5rem;
  font-size: 0.875rem;
}

/* Compact dropdown facets */
.facets-widget-dropdown {
  font-size: 0.875rem;
}

.facets-widget-dropdown .facet-item {
  margin: 0.25rem 0;
}

/* Limit height for port dropdown */
.block-facet-blockcruise-type .facets-widget-checkbox {
  max-height: 300px;
  overflow-y: auto;
}

.block-facet-blockcruise-type .facets-widget-checkbox::-webkit-scrollbar {
  width: 6px;
}

.block-facet-blockcruise-type .facets-widget-checkbox::-webkit-scrollbar-thumb {
  background: #d1d5db;
  border-radius: 3px;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .page-cruise-lines .region-content .block-facets,
  .page-cruise-ports .region-content .block-facets,
  .page-cruise-ships .region-content .block-facets {
    display: block;
    width: 100%;
    margin-right: 0;
  }
}/* Horizontal Facets and Search Layout */

/* Container for all search elements */
.view-cruise-lines-search,
.view-cruise-ports-search,
.view-cruise-ships-search {
  max-width: 1400px;
  margin: 0 auto;
  padding: 2rem 1rem;
}

/* Facet blocks container - make them side by side BEFORE the view */
#block-facet-cruise-type,
#block-facet-departure-port {
  display: inline-block !important;
  vertical-align: top;
  width: calc(50% - 0.75rem) !important;
  margin-right: 1.5rem !important;
  margin-bottom: 1.5rem !important;
}

#block-facet-departure-port {
  margin-right: 0 !important;
}

/* Clear float after facets */
#block-facet-departure-port::after {
  content: "";
  display: table;
  clear: both;
}

/* Make the views exposed form prominent */
.view-cruise-lines-search .view-filters,
.view-cruise-ports-search .view-filters,
.view-cruise-ships-search .view-filters {
  clear: both;
  background: #fff;
  padding: 1.5rem;
  border-radius: 8px;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
  margin-bottom: 2rem;
  border: 2px solid #e5e7eb;
}

/* Horizontal layout for search form */
.view-filters .views-exposed-form {
  display: grid !important;
  grid-template-columns: 3fr 1fr 1fr auto auto !important;
  gap: 1rem !important;
  align-items: end !important;
}

/* Make text search prominent */
.view-filters .form-item-search {
  position: relative;
}

.view-filters .form-item-search input[type="text"] {
  width: 100% !important;
  padding: 0.875rem 1rem !important;
  padding-left: 2.75rem !important;
  border: 2px solid #d1d5db !important;
  border-radius: 8px !important;
  font-size: 1rem !important;
  transition: all 0.2s !important;
}

.view-filters .form-item-search input[type="text"]:focus {
  outline: none !important;
  border-color: #0ea5e9 !important;
  box-shadow: 0 0 0 3px rgba(14, 165, 233, 0.1) !important;
}

/* Search icon for text box */
.view-filters .form-item-search::before {
  content: "\f002";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 1rem;
  bottom: 1.125rem;
  color: #9ca3af;
  font-size: 1.125rem;
  z-index: 1;
}

/* Hide duplicate filter descriptions */
.view-filters .form-item__description {
  display: none !important;
}

/* Make labels cleaner */
.view-filters label {
  font-size: 0.875rem !important;
  font-weight: 500 !important;
  color: #374151 !important;
  margin-bottom: 0.5rem !important;
}

/* Sort and order selects */
.view-filters select {
  width: 100% !important;
  padding: 0.75rem !important;
  border: 1px solid #d1d5db !important;
  border-radius: 6px !important;
  font-size: 0.875rem !important;
}

/* Buttons */
.view-filters input[type="submit"],
.view-filters button {
  padding: 0.875rem 1.5rem !important;
  background: #0ea5e9 !important;
  color: white !important;
  border: none !important;
  border-radius: 6px !important;
  font-weight: 500 !important;
  cursor: pointer !important;
  transition: background 0.2s !important;
  white-space: nowrap !important;
}

.view-filters input[type="submit"]:hover,
.view-filters button:hover {
  background: #0284c7 !important;
}

/* Responsive layout */
@media (max-width: 1024px) {
  #block-facet-cruise-type,
  #block-facet-departure-port {
    width: 100% !important;
    margin-right: 0 !important;
  }

  .view-filters .views-exposed-form {
    grid-template-columns: 1fr 1fr !important;
  }

  .view-filters .form-item-search {
    grid-column: 1 / -1 !important;
  }

  .view-filters .form-actions {
    grid-column: 1 / -1 !important;
  }
}

@media (max-width: 640px) {
  .view-filters .views-exposed-form {
    grid-template-columns: 1fr !important;
  }
}/* FORCE HORIZONTAL FACETS LAYOUT - HIGH SPECIFICITY */

/* Make facet blocks display side by side */
.region-content #block-facet-cruise-type,
.region-content #block-facet-departure-port,
.page-cruise-lines .region-content #block-facet-cruise-type,
.page-cruise-lines .region-content #block-facet-departure-port {
  display: inline-block !important;
  vertical-align: top !important;
  width: calc(50% - 0.75rem) !important;
  margin-right: 1.5rem !important;
  margin-bottom: 1.5rem !important;
  box-sizing: border-box !important;
}

.region-content #block-facet-departure-port,
.page-cruise-lines .region-content #block-facet-departure-port {
  margin-right: 0 !important;
}

/* Create a container wrapper effect */
.region-content #block-facet-cruise-type::after {
  content: "";
  display: table;
  clear: both;
}

/* Text search box - make it full width and prominent */
.page-cruise-lines .view-filters,
.page-cruise-ports .view-filters,
.page-cruise-ships .view-filters {
  clear: both !important;
  display: block !important;
  width: 100% !important;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  padding: 2rem !important;
  border-radius: 12px !important;
  margin-bottom: 2rem !important;
  box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1) !important;
}

/* Make the search form horizontal */
.page-cruise-lines .views-exposed-form,
.page-cruise-ports .views-exposed-form,
.page-cruise-ships .views-exposed-form {
  display: flex !important;
  gap: 1rem !important;
  align-items: flex-end !important;
  flex-wrap: wrap !important;
}

/* Text search takes up most of the space */
.view-filters .form-item-search {
  flex: 1 1 400px !important;
  min-width: 300px !important;
}

.view-filters .form-item-search label {
  color: white !important;
  font-weight: 600 !important;
  margin-bottom: 0.5rem !important;
}

.view-filters .form-item-search input {
  width: 100% !important;
  padding: 1rem 1.25rem !important;
  padding-left: 3rem !important;
  font-size: 1.125rem !important;
  border: none !important;
  border-radius: 8px !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

/* Search icon */
.view-filters .form-item-search {
  position: relative;
}

.view-filters .form-item-search::before {
  content: "\f002";
  font-family: "Font Awesome 6 Free";
  font-weight: 900;
  position: absolute;
  left: 1.125rem;
  bottom: 1.25rem;
  color: #6b7280;
  font-size: 1.25rem;
  z-index: 2;
}

/* Sort controls */
.view-filters .form-item-sort-by,
.view-filters .form-item-sort-order {
  flex: 0 0 auto !important;
  min-width: 120px !important;
}

.view-filters .form-item-sort-by label,
.view-filters .form-item-sort-order label {
  color: white !important;
  font-weight: 500 !important;
}

.view-filters select {
  padding: 0.875rem !important;
  border: none !important;
  border-radius: 6px !important;
  background: white !important;
}

/* Submit button */
.view-filters .form-actions {
  flex: 0 0 auto !important;
}

.view-filters input[type="submit"] {
  padding: 1rem 2rem !important;
  background: white !important;
  color: #667eea !important;
  border: none !important;
  border-radius: 8px !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
  cursor: pointer !important;
  transition: all 0.2s !important;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1) !important;
}

.view-filters input[type="submit"]:hover {
  background: #f3f4f6 !important;
  transform: translateY(-1px) !important;
  box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15) !important;
}

/* Hide descriptions */
.view-filters .description {
  display: none !important;
}

/* Results grid */
.view-content {
  clear: both !important;
  margin-top: 1.5rem !important;
}

/* Mobile responsive */
@media (max-width: 768px) {
  .region-content #block-facet-cruise-type,
  .region-content #block-facet-departure-port {
    display: block !important;
    width: 100% !important;
    margin-right: 0 !important;
  }

  .view-filters .views-exposed-form {
    flex-direction: column !important;
  }

  .view-filters .form-item-search,
  .view-filters .form-item-sort-by,
  .view-filters .form-item-sort-order {
    width: 100% !important;
    min-width: 100% !important;
  }
}/* DIRECT SELECTORS - NO BODY CLASS DEPENDENCY */

/* Force facet blocks horizontal - using only IDs */
#block-facet-cruise-type {
  display: inline-block !important;
  vertical-align: top !important;
  width: calc(50% - 0.75rem) !important;
  margin-right: 1.5rem !important;
  margin-bottom: 1.5rem !important;
  box-sizing: border-box !important;
  float: left !important;
}

#block-facet-departure-port {
  display: inline-block !important;
  vertical-align: top !important;
  width: calc(50% - 0.75rem) !important;
  margin-right: 0 !important;
  margin-bottom: 1.5rem !important;
  box-sizing: border-box !important;
  float: left !important;
}

/* Clear float after facets */
.view-cruise-lines-search {
  clear: both !important;
}

/* Make search filters section prominent */
.view-cruise-lines-search .view-filters {
  clear: both !important;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%) !important;
  padding: 2rem !important;
  border-radius: 12px !important;
  margin-bottom: 2rem !important;
}

/* Horizontal form layout */
.view-cruise-lines-search .views-exposed-form {
  display: flex !important;
  gap: 1rem !important;
  align-items: flex-end !important;
}

/* Large search box */
.view-cruise-lines-search .form-item-search {
  flex: 1 !important;
  position: relative !important;
}

.view-cruise-lines-search .form-item-search label {
  color: white !important;
  font-weight: 600 !important;
  font-size: 1rem !important;
}

.view-cruise-lines-search .form-item-search input {
  width: 100% !important;
  padding: 1rem 1.25rem 1rem 3rem !important;
  font-size: 1.125rem !important;
  border: none !important;
  border-radius: 8px !important;
}

/* Search icon */
.view-cruise-lines-search .form-item-search::before {
  content: "\f002" !important;
  font-family: "Font Awesome 6 Free" !important;
  font-weight: 900 !important;
  position: absolute !important;
  left: 1.125rem !important;
  bottom: 1.25rem !important;
  color: #6b7280 !important;
  font-size: 1.25rem !important;
  z-index: 2 !important;
}

/* Sort controls compact */
.view-cruise-lines-search .form-item-sort-by,
.view-cruise-lines-search .form-item-sort-order {
  min-width: 120px !important;
}

.view-cruise-lines-search .form-item-sort-by label,
.view-cruise-lines-search .form-item-sort-order label {
  color: white !important;
  font-weight: 500 !important;
}

.view-cruise-lines-search select {
  padding: 0.875rem !important;
  background: white !important;
  border: none !important;
  border-radius: 6px !important;
}

/* Search button */
.view-cruise-lines-search input[type="submit"] {
  padding: 1rem 2rem !important;
  background: white !important;
  color: #667eea !important;
  font-weight: 600 !important;
  border: none !important;
  border-radius: 8px !important;
  cursor: pointer !important;
}

.view-cruise-lines-search input[type="submit"]:hover {
  background: #f3f4f6 !important;
}