/**
 * Hostella Main Stylesheet - Comprehensive Mobile-First & Desktop Design System
 * Engineered for student accommodation discovery at FUOYE and university communities.
 */

/* ==========================================================================
   1. Design Tokens & Root Variables
   ========================================================================== */
:root {
  --hostella-navy: #0F172A;
  --hostella-navy-light: #1E293B;
  --hostella-navy-dark: #0A0F1D;
  --hostella-amber: #D97706;
  --hostella-amber-light: #F59E0B;
  --hostella-amber-soft: #FEF3C7;
  --hostella-emerald: #059669;
  --hostella-emerald-light: #10B981;
  --hostella-emerald-soft: #D1FAE5;
  --hostella-bg-body: #F8FAFC;
  --hostella-bg-alt: #F1F5F9;
  --hostella-surface: #FFFFFF;
  --hostella-border: #E2E8F0;
  --hostella-border-subtle: #F1F5F9;
  --hostella-text-main: #0F172A;
  --hostella-text-muted: #64748B;
  --hostella-text-subtle: #94A3B8;
  --hostella-radius-sm: 8px;
  --hostella-radius-md: 14px;
  --hostella-radius-lg: 20px;
  --hostella-radius-xl: 28px;
  --hostella-radius-pill: 9999px;
  --hostella-shadow-subtle: 0 1px 3px rgba(15, 23, 42, 0.05);
  --hostella-shadow-card: 0 4px 20px -2px rgba(15, 23, 42, 0.06);
  --hostella-shadow-dropdown: 0 18px 40px -10px rgba(15, 23, 42, 0.15), 0 0 1px 1px rgba(15, 23, 42, 0.06);
  --hostella-shadow-hover: 0 20px 35px -8px rgba(15, 23, 42, 0.12);
  --hostella-font-sans: 'Plus Jakarta Sans', system-ui, -apple-system, sans-serif;
  --hostella-font-editorial: 'Playfair Display', Georgia, serif;
  --hostella-transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
}

/* Global Reset & Box Sizing */
*, *::before, *::after {
  box-sizing: border-box;
}

html, body {
  margin: 0;
  padding: 0;
  font-family: var(--hostella-font-sans);
  background-color: var(--hostella-bg-body);
  color: var(--hostella-text-main);
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  width: 100%;
}

a {
  color: inherit;
  text-decoration: none;
  transition: var(--hostella-transition);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

button, input, select, textarea {
  font-family: inherit;
}

/* Containers */
.hostella-container {
  width: 100%;
  max-width: 1260px;
  margin-left: auto;
  margin-right: auto;
  padding-left: 1.25rem;
  padding-right: 1.25rem;
}

@media (max-width: 480px) {
  .hostella-container {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

/* Typography Helpers */
.brand-script {
  font-family: var(--hostella-font-editorial);
  font-style: italic;
  font-weight: 500;
  color: var(--hostella-amber);
  display: inline-block;
  padding-left: 0.15em;
}

.section-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--hostella-amber);
  margin-bottom: 0.6rem;
}

.section-eyebrow::before {
  content: '';
  display: inline-block;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background-color: var(--hostella-amber);
}

.section-title {
  font-size: clamp(1.85rem, 4vw, 2.75rem);
  font-weight: 800;
  color: var(--hostella-navy);
  letter-spacing: -0.025em;
  line-height: 1.2;
  margin-top: 0;
  margin-bottom: 0.85rem;
}

.section-subtitle {
  font-size: clamp(0.925rem, 1.8vw, 1.05rem);
  color: var(--hostella-text-muted);
  max-width: 640px;
  line-height: 1.6;
}

/* ==========================================================================
   2. Header & Dropdown Navigation Component
   ========================================================================== */
.hostella-header {
  position: sticky;
  top: 0;
  z-index: 999;
  background-color: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-bottom: 1px solid var(--hostella-border);
  transition: all 0.25s ease;
  width: 100%;
}

.hostella-header.scrolled {
  box-shadow: 0 4px 20px -2px rgba(15, 23, 42, 0.08);
}

.hostella-nav-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 74px;
  gap: 1.5rem;
}

/* Logo */
.hostella-logo {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  text-decoration: none;
  flex-shrink: 0;
}

.hostella-logo-mark {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  background: linear-gradient(135deg, #0F172A 0%, #1E293B 100%);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #F59E0B;
  box-shadow: 0 3px 8px rgba(15, 23, 42, 0.15);
}

.hostella-logo-text {
  display: flex;
  flex-direction: column;
}

.hostella-logo-title {
  font-size: 1.25rem;
  font-weight: 800;
  letter-spacing: -0.03em;
  color: var(--hostella-navy);
  line-height: 1.1;
}

.hostella-logo-tagline {
  font-size: 0.6rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--hostella-text-muted);
  margin-top: 1px;
}

/* Desktop Navigation Bar */
.hostella-nav-links {
  display: flex;
  align-items: center;
  gap: 1.85rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.hostella-nav-item {
  position: relative;
}

.hostella-nav-item > a,
.hostella-nav-item > button {
  font-size: 0.925rem;
  font-weight: 600;
  color: var(--hostella-text-muted);
  padding: 0.5rem 0;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: transparent;
  border: none;
  cursor: pointer;
  position: relative;
}

.hostella-nav-item > a:hover,
.hostella-nav-item > button:hover,
.hostella-nav-item > a.active {
  color: var(--hostella-navy);
}

.hostella-nav-item > a.active::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 2px;
  background-color: var(--hostella-amber);
  border-radius: 2px;
}

/* Dropdown Menu (Under Explore Hostels) */
.hostella-dropdown {
  position: absolute;
  top: 100%;
  left: -1rem;
  width: 250px;
  background: #FFFFFF;
  border: 1px solid var(--hostella-border);
  border-radius: 14px;
  padding: 0.65rem 0.5rem;
  box-shadow: var(--hostella-shadow-dropdown);
  display: none;
  flex-direction: column;
  gap: 0.25rem;
  z-index: 1000;
  animation: dropdownFade 0.2s ease forwards;
}

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

.hostella-nav-item:hover .hostella-dropdown,
.hostella-nav-item:focus-within .hostella-dropdown,
.hostella-dropdown.show {
  display: flex;
}

.hostella-dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.65rem 0.85rem;
  border-radius: 9px;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--hostella-navy);
  transition: all 0.15s ease;
}

.hostella-dropdown-item:hover {
  background-color: var(--hostella-bg-alt);
  color: var(--hostella-amber);
  transform: translateX(2px);
}

.hostella-dropdown-item .badge-phase {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.45rem;
  border-radius: 6px;
  background: #F1F5F9;
  color: var(--hostella-text-muted);
  margin-left: auto;
}

/* Close button - strictly hidden on desktop */
.mobile-drawer-close {
  display: none !important;
}

/* Header Actions */
.hostella-header-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  flex-shrink: 0;
}

.icon-btn {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  border: 1px solid var(--hostella-border);
  background: #FFFFFF;
  color: var(--hostella-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  position: relative;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.icon-btn:hover {
  background: var(--hostella-bg-alt);
  border-color: #CBD5E1;
}

.icon-btn .badge-count {
  position: absolute;
  top: -4px;
  right: -4px;
  background-color: var(--hostella-amber);
  color: #FFFFFF;
  font-size: 0.65rem;
  font-weight: 700;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
}

.btn-pill-dark {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background-color: var(--hostella-navy);
  color: #FFFFFF;
  font-size: 0.85rem;
  font-weight: 600;
  padding: 0.65rem 1.35rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  white-space: nowrap;
}

.btn-pill-dark:hover {
  background-color: #1E293B;
  transform: translateY(-1px);
}

.btn-pill-amber {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  background: linear-gradient(135deg, #F59E0B 0%, #D97706 100%);
  color: #FFFFFF;
  font-size: 0.875rem;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 9999px;
  border: none;
  cursor: pointer;
  transition: all 0.2s ease;
  box-shadow: 0 4px 12px rgba(217, 119, 6, 0.25);
  white-space: nowrap;
}

.btn-pill-amber:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.35);
}

.mobile-menu-toggle {
  display: none;
  background: transparent;
  border: 1px solid var(--hostella-border);
  border-radius: 10px;
  color: var(--hostella-navy);
  cursor: pointer;
  padding: 0.4rem;
  width: 40px;
  height: 40px;
  align-items: center;
  justify-content: center;
}

/* Mobile Drawer Overlay and Navigation */
@media (max-width: 900px) {
  .mobile-menu-toggle {
    display: flex;
  }
  .hostella-header-actions .btn-pill-dark {
    display: none;
  }
  
  .hostella-nav-links {
    position: fixed;
    top: 0;
    right: -100%;
    width: 82%;
    max-width: 320px;
    height: 100vh;
    background: #FFFFFF;
    flex-direction: column;
    align-items: flex-start;
    padding: 5rem 1.75rem 2.5rem;
    box-shadow: -10px 0 30px rgba(15, 23, 42, 0.15);
    transition: right 0.35s cubic-bezier(0.16, 1, 0.3, 1);
    z-index: 1001;
    overflow-y: auto;
    gap: 1rem;
  }

  .hostella-nav-links.mobile-open {
    right: 0;
  }

  .hostella-nav-item {
    width: 100%;
  }

  .hostella-nav-item > a,
  .hostella-nav-item > button {
    font-size: 1.05rem;
    font-weight: 700;
    color: var(--hostella-navy);
    width: 100%;
    padding: 0.5rem 0;
    border-bottom: 1px solid var(--hostella-border);
    justify-content: space-between;
  }

  .hostella-dropdown {
    position: static;
    box-shadow: none;
    border: none;
    padding: 0.25rem 0 0.5rem 0.75rem;
    width: 100%;
    display: flex;
    background: transparent;
  }

  .mobile-drawer-close {
    display: flex !important;
    position: absolute;
    top: 1.25rem;
    right: 1.25rem;
    background: #F1F5F9;
    border: none;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    font-size: 1rem;
    color: var(--hostella-navy);
  }

  .mobile-nav-backdrop {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100vw;
    height: 100vh;
    background: rgba(15, 23, 42, 0.55);
    backdrop-filter: blur(4px);
    z-index: 1000;
  }
  .mobile-nav-backdrop.active {
    display: block;
  }
}

/* ==========================================================================
   3. Hero Section (Mobile-First)
   ========================================================================== */
.hostella-hero-section {
  position: relative;
  padding-top: 2rem;
  padding-bottom: 3.5rem;
  background-color: var(--hostella-bg-body);
}

@media (min-width: 1024px) {
  .hostella-hero-section {
    padding-top: 3.5rem;
    padding-bottom: 5rem;
  }
}

.hostella-hero-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .hostella-hero-grid {
    grid-template-columns: 1.15fr 0.85fr;
    gap: 3.5rem;
  }
}

.hero-content {
  width: 100%;
}

.hero-headline {
  font-size: clamp(2rem, 5.5vw, 3.5rem);
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: -0.03em;
  color: var(--hostella-navy);
  margin-top: 0;
  margin-bottom: 1rem;
}

.hero-description {
  font-size: clamp(0.95rem, 2vw, 1.125rem);
  color: var(--hostella-text-muted);
  line-height: 1.65;
  margin-bottom: 1.75rem;
}

.hero-visual-wrapper {
  position: relative;
  width: 100%;
}

.hero-image-card {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px -5px rgba(15, 23, 42, 0.12);
  border: 3px solid #FFFFFF;
}

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

@media (min-width: 768px) {
  .hero-image-card img {
    height: 420px;
  }
}

.hero-floating-badge {
  position: absolute;
  bottom: 16px;
  left: 16px;
  right: 16px;
  background: rgba(15, 23, 42, 0.88);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  padding: 0.75rem 1rem;
  border-radius: 14px;
  display: flex;
  align-items: center;
  gap: 0.75rem;
  color: #FFFFFF;
}

@media (min-width: 768px) {
  .hero-floating-badge {
    right: auto;
    bottom: 24px;
    left: 24px;
    border-radius: 18px;
    padding: 0.875rem 1.25rem;
  }
}

.hero-floating-badge .badge-icon {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  background-color: var(--hostella-emerald);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.hero-floating-badge .badge-text-title {
  font-size: 0.85rem;
  font-weight: 700;
  line-height: 1.2;
}

.hero-floating-badge .badge-text-sub {
  font-size: 0.7rem;
  color: #94A3B8;
}

/* ==========================================================================
   4. Floating Search Bar Component
   ========================================================================== */
.hostella-search-wrapper {
  position: relative;
  z-index: 20;
  margin-top: 1.5rem;
  width: 100%;
}

.hostella-search-pill {
  background: #FFFFFF;
  border-radius: 18px;
  padding: 1rem;
  box-shadow: 0 15px 35px -5px rgba(15, 23, 42, 0.1), 0 0 0 1px rgba(15, 23, 42, 0.05);
  display: flex;
  flex-direction: column;
  gap: 1rem;
  width: 100%;
}

@media (min-width: 900px) {
  .hostella-search-pill {
    flex-direction: row;
    border-radius: 9999px;
    padding: 0.55rem 0.65rem 0.55rem 1.35rem;
    gap: 0.75rem;
    align-items: center;
  }
}

.search-field-group {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  position: relative;
  flex: 1;
}

@media (min-width: 900px) {
  .search-field-group + .search-field-group::before {
    content: '';
    position: absolute;
    left: -0.375rem;
    top: 50%;
    transform: translateY(-50%);
    height: 30px;
    width: 1px;
    background-color: var(--hostella-border);
  }
}

@media (max-width: 899px) {
  .search-field-group {
    padding-bottom: 0.65rem;
    border-bottom: 1px solid var(--hostella-border);
  }
}

.search-field-icon {
  color: var(--hostella-amber);
  flex-shrink: 0;
  display: flex;
  align-items: center;
}

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

.search-field-label {
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  color: var(--hostella-navy);
  margin-bottom: 2px;
}

.search-field-select {
  width: 100%;
  min-width: 130px;
  border: none;
  background: transparent;
  font-size: 0.85rem;
  font-weight: 600;
  color: var(--hostella-text-main);
  outline: none;
  padding: 2px 0;
  cursor: pointer;
}

.search-btn-submit {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  background-color: var(--hostella-navy);
  color: #FFFFFF;
  border: none;
  padding: 0.85rem 1.75rem;
  border-radius: 9999px;
  font-size: 0.9rem;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.2s ease;
  width: 100%;
}

@media (min-width: 900px) {
  .search-btn-submit {
    width: auto;
    flex-shrink: 0;
  }
}

.search-btn-submit:hover {
  background-color: #1E293B;
  transform: translateY(-1px);
}

/* ==========================================================================
   5. 4-Column Trust Bar (Responsive Grid)
   ========================================================================== */
.hostella-trust-bar {
  background-color: #FFFFFF;
  border-top: 1px solid var(--hostella-border);
  border-bottom: 1px solid var(--hostella-border);
  padding: 2rem 0;
}

.trust-bar-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 640px) {
  .trust-bar-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .trust-bar-grid {
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
  }
}

.trust-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.5rem 1rem;
  position: relative;
}

@media (min-width: 1024px) {
  .trust-item:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 15%;
    height: 70%;
    width: 1px;
    background-color: var(--hostella-border);
  }
}

.trust-icon-wrap {
  width: 48px;
  height: 48px;
  border-radius: 50%;
  background-color: var(--hostella-amber-soft);
  color: #B45309;
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 0.85rem;
}

.trust-item-title {
  font-size: 1rem;
  font-weight: 700;
  color: var(--hostella-navy);
  margin-bottom: 0.25rem;
}

.trust-item-desc {
  font-size: 0.825rem;
  color: var(--hostella-text-muted);
  line-height: 1.5;
  margin: 0;
}

/* ==========================================================================
   6. Accommodation Cards & Quick Filter Tabs
   ========================================================================== */
.hostella-featured-section {
  padding: 3rem 0 4rem;
  background-color: var(--hostella-bg-body);
}

@media (min-width: 1024px) {
  .hostella-featured-section {
    padding: 5rem 0;
  }
}

.featured-header-row {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.75rem;
}

@media (min-width: 768px) {
  .featured-header-row {
    flex-direction: row;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 2.25rem;
  }
}

/* Quick Campus Filter Pills */
.campus-pill-tabs {
  display: flex;
  gap: 0.5rem;
  overflow-x: auto;
  padding-bottom: 0.5rem;
  margin-bottom: 1.75rem;
  scrollbar-width: none;
}
.campus-pill-tabs::-webkit-scrollbar {
  display: none;
}

.campus-pill {
  padding: 0.45rem 1rem;
  border-radius: 9999px;
  background: #FFFFFF;
  border: 1px solid var(--hostella-border);
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--hostella-text-muted);
  white-space: nowrap;
  cursor: pointer;
  transition: all 0.2s ease;
}

.campus-pill:hover,
.campus-pill.active {
  background: var(--hostella-navy);
  color: #FFFFFF;
  border-color: var(--hostella-navy);
}

.hostels-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem;
}

@media (min-width: 680px) {
  .hostels-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 1.75rem;
  }
}

@media (min-width: 1080px) {
  .hostels-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
  }
}

/* Listing Card */
.hostella-listing-card {
  background: #FFFFFF;
  border: 1px solid var(--hostella-border);
  border-radius: 18px;
  overflow: hidden;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  display: flex;
  flex-direction: column;
  position: relative;
}

.hostella-listing-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--hostella-shadow-hover);
  border-color: #CBD5E1;
}

.card-image-box {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
  background-color: #E2E8F0;
}

@media (min-width: 480px) {
  .card-image-box {
    height: 220px;
  }
}

.card-image-box img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.4s ease;
}

.hostella-listing-card:hover .card-image-box img {
  transform: scale(1.04);
}

.card-badge-top-left {
  position: absolute;
  top: 12px;
  left: 12px;
  display: flex;
  gap: 6px;
  z-index: 2;
  flex-wrap: wrap;
}

.badge-pill-navy {
  background-color: var(--hostella-navy);
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
}

.badge-pill-emerald {
  background-color: var(--hostella-emerald);
  color: #FFFFFF;
  font-size: 0.7rem;
  font-weight: 700;
  padding: 0.25rem 0.65rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-wishlist-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 2;
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(6px);
  border: none;
  color: var(--hostella-navy);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s ease;
}

.card-wishlist-btn:hover,
.card-wishlist-btn.active {
  background: #FFFFFF;
  color: #EF4444;
}

.card-body {
  padding: 1.25rem;
  display: flex;
  flex-direction: column;
  flex: 1;
}

.card-title {
  font-size: 1.15rem;
  font-weight: 700;
  color: var(--hostella-navy);
  margin-top: 0;
  margin-bottom: 0.35rem;
  line-height: 1.3;
}

.card-title a:hover {
  color: var(--hostella-amber);
}

.card-location {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.825rem;
  color: var(--hostella-text-muted);
  margin-bottom: 0.85rem;
}

.card-agent-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.75rem;
  color: #059669;
  font-weight: 600;
  background-color: #ECFDF5;
  padding: 0.2rem 0.55rem;
  border-radius: 6px;
  margin-bottom: 0.85rem;
  width: fit-content;
}

.card-meta-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.75rem 0;
  border-top: 1px solid var(--hostella-border);
  border-bottom: 1px solid var(--hostella-border);
  margin-bottom: 1rem;
  gap: 0.5rem;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--hostella-text-muted);
  white-space: nowrap;
}

.card-footer-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: auto;
}

.card-price {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--hostella-navy);
}

.card-price .price-period {
  font-size: 0.75rem;
  font-weight: 500;
  color: var(--hostella-text-muted);
}

.card-action-arrow {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid var(--hostella-border);
  background: #FFFFFF;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--hostella-navy);
  cursor: pointer;
  transition: all 0.2s ease;
}

.hostella-listing-card:hover .card-action-arrow {
  background-color: var(--hostella-navy);
  color: #FFFFFF;
  border-color: var(--hostella-navy);
}

/* ==========================================================================
   7. Why Choose Hostella Split Section
   ========================================================================== */
.hostella-why-section {
  padding: 3.5rem 0;
  background-color: #FFFFFF;
}

@media (min-width: 1024px) {
  .hostella-why-section {
    padding: 5rem 0;
  }
}

.why-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  align-items: center;
}

@media (min-width: 1024px) {
  .why-grid {
    grid-template-columns: 1fr 1fr;
    gap: 4rem;
  }
}

.why-visual-box {
  position: relative;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 15px 35px -5px rgba(15, 23, 42, 0.1);
}

.why-visual-box img {
  width: 100%;
  height: 300px;
  object-fit: cover;
}

@media (min-width: 768px) {
  .why-visual-box img {
    height: 400px;
  }
}

.why-badge-overlay {
  position: absolute;
  top: 20px;
  left: 20px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  padding: 0.75rem 1.25rem;
  border-radius: 14px;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.why-badge-script {
  font-family: var(--hostella-font-editorial);
  font-style: italic;
  font-size: clamp(1.2rem, 3vw, 1.45rem);
  font-weight: 600;
  line-height: 1.2;
  color: var(--hostella-navy);
}

.why-badge-script span {
  color: var(--hostella-amber);
}

.why-stats-row {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 1.25rem;
  margin-top: 2rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--hostella-border);
}

@media (min-width: 768px) {
  .why-stats-row {
    grid-template-columns: repeat(4, 1fr);
  }
}

.stat-item {
  display: flex;
  flex-direction: column;
}

.stat-number {
  font-size: clamp(1.5rem, 3vw, 1.85rem);
  font-weight: 800;
  color: var(--hostella-navy);
  line-height: 1.1;
}

.stat-label {
  font-size: 0.775rem;
  color: var(--hostella-text-muted);
  font-weight: 500;
  margin-top: 0.25rem;
}

/* ==========================================================================
   8. CTA Banner (Responsive)
   ========================================================================== */
.hostella-cta-section {
  padding: 2.5rem 0 3.5rem;
  background-color: var(--hostella-bg-body);
}

.cta-banner-card {
  background: linear-gradient(135deg, #0A1224 0%, #152238 60%, #1E2D4A 100%);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 40px -10px rgba(10, 18, 36, 0.25);
  display: grid;
  grid-template-columns: 1fr;
}

@media (min-width: 900px) {
  .cta-banner-card {
    grid-template-columns: 1.2fr 0.8fr;
    border-radius: 28px;
  }
}

.cta-banner-content {
  padding: 2.25rem 1.5rem;
  color: #FFFFFF;
}

@media (min-width: 768px) {
  .cta-banner-content {
    padding: 3.5rem;
  }
}

.cta-eyebrow {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: #F59E0B;
  margin-bottom: 0.5rem;
  display: block;
}

.cta-headline {
  font-size: clamp(1.65rem, 4vw, 2.5rem);
  font-weight: 800;
  line-height: 1.18;
  letter-spacing: -0.025em;
  color: #FFFFFF;
  margin-top: 0;
  margin-bottom: 0.85rem;
}

.cta-description {
  font-size: 0.95rem;
  color: #94A3B8;
  line-height: 1.6;
  margin-bottom: 1.75rem;
}

.cta-banner-image {
  height: 200px;
}

@media (min-width: 900px) {
  .cta-banner-image {
    height: 100%;
  }
}

.cta-banner-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* ==========================================================================
   9. Footer (Responsive Multi-Column)
   ========================================================================== */
.hostella-footer {
  background-color: #FFFFFF;
  border-top: 1px solid var(--hostella-border);
  padding: 3.5rem 0 2rem;
}

.footer-top-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
  margin-bottom: 3rem;
}

@media (min-width: 640px) {
  .footer-top-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (min-width: 1024px) {
  .footer-top-grid {
    grid-template-columns: 1.4fr 1fr 1fr 1.2fr;
    gap: 3rem;
  }
}

.footer-desc {
  font-size: 0.875rem;
  color: var(--hostella-text-muted);
  line-height: 1.6;
  margin-top: 1rem;
}

.footer-heading {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--hostella-navy);
  margin-top: 0;
  margin-bottom: 1rem;
}

.footer-nav-list,
.footer-contact-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.footer-nav-list a {
  font-size: 0.85rem;
  color: var(--hostella-text-muted);
}

.footer-nav-list a:hover {
  color: var(--hostella-navy);
}

.footer-contact-item {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  font-size: 0.825rem;
  color: var(--hostella-text-muted);
  line-height: 1.5;
}

.footer-contact-item svg {
  color: var(--hostella-amber);
  flex-shrink: 0;
  margin-top: 2px;
}

.footer-social-row {
  display: flex;
  gap: 0.6rem;
  margin-top: 1rem;
}

.social-icon-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background-color: var(--hostella-bg-alt);
  color: var(--hostella-navy);
  display: flex;
  align-items: center;
  justify-content: center;
}

.footer-bottom-bar {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  padding-top: 1.75rem;
  border-top: 1px solid var(--hostella-border);
  font-size: 0.8rem;
  color: var(--hostella-text-subtle);
}

@media (min-width: 768px) {
  .footer-bottom-bar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
}

.footer-legal-links {
  display: flex;
  gap: 1.25rem;
  flex-wrap: wrap;
}

/* ==========================================================================
   10. Marketplace Archive Layout & Mobile Filter Drawer
   ========================================================================== */
.archive-layout-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding: 2rem 0 4rem;
}

@media (min-width: 960px) {
  .archive-layout-grid {
    grid-template-columns: 270px 1fr;
    gap: 2.5rem;
  }
}

.mobile-filter-trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #FFFFFF;
  border: 1px solid var(--hostella-border);
  border-radius: 12px;
  padding: 0.75rem 1rem;
  font-weight: 700;
  font-size: 0.875rem;
  color: var(--hostella-navy);
  cursor: pointer;
  margin-bottom: 1.25rem;
  width: 100%;
}

@media (min-width: 960px) {
  .mobile-filter-trigger {
    display: none;
  }
}

.filter-sidebar {
  background: #FFFFFF;
  border: 1px solid var(--hostella-border);
  border-radius: 16px;
  padding: 1.5rem;
  height: fit-content;
}

@media (max-width: 959px) {
  .filter-sidebar {
    position: fixed;
    top: 0;
    left: -100%;
    width: 85%;
    max-width: 320px;
    height: 100vh;
    z-index: 1002;
    overflow-y: auto;
    border-radius: 0;
    transition: left 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: 10px 0 30px rgba(15, 23, 42, 0.2);
  }
  .filter-sidebar.filter-open {
    left: 0;
  }
}

.filter-section-title {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--hostella-navy);
  margin-top: 0;
  margin-bottom: 1.25rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.filter-group {
  margin-bottom: 1.5rem;
  padding-bottom: 1.25rem;
  border-bottom: 1px solid var(--hostella-border);
}

.filter-label {
  font-size: 0.825rem;
  font-weight: 700;
  color: var(--hostella-navy);
  margin-bottom: 0.75rem;
  display: block;
}

.checkbox-list {
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.custom-checkbox-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.825rem;
  color: var(--hostella-text-muted);
  cursor: pointer;
}

.custom-checkbox-label input[type="checkbox"] {
  width: 17px;
  height: 17px;
  accent-color: var(--hostella-navy);
}

/* ==========================================================================
   11. Single Hostel Details Showcase
   ========================================================================== */
.single-hostel-container {
  padding: 2rem 0 5rem;
}

.hostel-header-top {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  margin-bottom: 1.5rem;
}

@media (min-width: 768px) {
  .hostel-header-top {
    flex-direction: row;
    align-items: flex-start;
    justify-content: space-between;
  }
}

.hostel-detail-title {
  font-size: clamp(1.65rem, 4vw, 2.5rem);
  font-weight: 800;
  color: var(--hostella-navy);
  margin-top: 0;
  margin-bottom: 0.4rem;
}

.hostel-gallery-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  border-radius: 18px;
  overflow: hidden;
  margin-bottom: 2.5rem;
}

@media (min-width: 768px) {
  .hostel-gallery-grid {
    grid-template-columns: 2fr 1fr 1fr;
    grid-template-rows: 210px 210px;
    border-radius: 24px;
    gap: 1rem;
  }
  .gallery-item-main {
    grid-column: 1 / 2;
    grid-row: 1 / 3;
  }
}

.gallery-thumbs-mobile {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 0.5rem;
}

@media (min-width: 768px) {
  .gallery-thumbs-mobile {
    display: contents;
  }
}

.gallery-item {
  position: relative;
  overflow: hidden;
  cursor: pointer;
  background-color: #E2E8F0;
  border-radius: 10px;
}

.gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.gallery-item-main img {
  height: 260px;
}

@media (min-width: 768px) {
  .gallery-item-main img {
    height: 100%;
  }
}

.gallery-thumbs-mobile .gallery-item img {
  height: 75px;
}

@media (min-width: 768px) {
  .gallery-thumbs-mobile .gallery-item img {
    height: 100%;
  }
}

.single-details-split {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2.5rem;
}

@media (min-width: 960px) {
  .single-details-split {
    grid-template-columns: 1fr 360px;
    gap: 3.5rem;
  }
}

.amenities-badges-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  margin: 1.25rem 0;
}

@media (min-width: 540px) {
  .amenities-badges-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.amenity-chip {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.75rem 0.875rem;
  background-color: #FFFFFF;
  border: 1px solid var(--hostella-border);
  border-radius: 12px;
  font-size: 0.825rem;
  font-weight: 600;
  color: var(--hostella-navy);
}

.amenity-chip svg {
  color: var(--hostella-amber);
  flex-shrink: 0;
}

.booking-sidebar-card {
  background: #FFFFFF;
  border: 1px solid var(--hostella-border);
  border-radius: 20px;
  padding: 1.75rem;
  box-shadow: 0 10px 30px -5px rgba(15, 23, 42, 0.06);
}

@media (min-width: 960px) {
  .booking-sidebar-card {
    position: sticky;
    top: 96px;
  }
}

/* Mobile Sticky Bottom Inquiry Bar */
.mobile-sticky-inquiry-bar {
  display: none;
  position: fixed;
  bottom: 0;
  left: 0;
  width: 100%;
  background: rgba(255, 255, 255, 0.98);
  backdrop-filter: blur(10px);
  border-top: 1px solid var(--hostella-border);
  padding: 0.75rem 1rem;
  z-index: 998;
  box-shadow: 0 -4px 16px rgba(15, 23, 42, 0.08);
}

@media (max-width: 959px) {
  .mobile-sticky-inquiry-bar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
  }
}
