/* Import Google Fonts */
@import url('https://fonts.googleapis.com/css2?family=Plus+Jakarta+Sans:wght@300;400;500;600;700;800&family=Outfit:wght@400;500;600;700;800;900&display=swap');

/* Reset & Variables */
:root {
  /* HSL Color System */
  --primary-hue: 154;
  --primary-sat: 40%;
  --primary-lightness: 16%;
  
  --color-primary: hsl(var(--primary-hue), var(--primary-sat), var(--primary-lightness)); /* #182e23 */
  --color-primary-light: hsl(var(--primary-hue), var(--primary-sat), 26%);
  
  --accent-hue: 150;
  --accent-sat: 65%;
  --accent-lightness: 42%;
  --color-accent: hsl(var(--accent-hue), var(--accent-sat), var(--accent-lightness)); /* #26b170 */
  --color-accent-glow: hsla(var(--accent-hue), var(--accent-sat), var(--accent-lightness), 0.15);
  
  --color-secondary: hsl(210, 38%, 15%); /* Deep Blue Slate (Ski / Winter theme) */
  --color-bg: hsl(154, 20%, 97%); /* Warm, soft nature off-white */
  --color-bg-dark: hsl(154, 24%, 10%); /* Very dark green/black for footer */
  --color-card-bg: hsl(0, 0%, 100%);
  --color-text: hsl(210, 24%, 12%);
  --color-text-muted: hsl(210, 12%, 46%);
  
  /* Category Colors */
  --color-cat-eating: hsl(142, 60%, 45%);
  --color-cat-lodging: hsl(217, 75%, 50%);
  --color-cat-sport: hsl(12, 85%, 53%);
  --color-cat-services: hsl(262, 65%, 55%);
  --color-cat-culture: hsl(38, 85%, 48%);
  
  /* Fonts */
  --font-sans: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  --font-title: 'Outfit', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  
  /* Layout Constants */
  --radius-sm: 8px;
  --radius-md: 16px;
  --radius-lg: 24px;
  --radius-full: 9999px;
  --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  --shadow-sm: 0 2px 8px rgba(24, 46, 35, 0.04);
  --shadow-md: 0 8px 24px rgba(24, 46, 35, 0.08);
  --shadow-lg: 0 16px 40px rgba(24, 46, 35, 0.12);
  --max-width: 1280px;
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

body {
  font-family: var(--font-sans);
  background-color: var(--color-bg);
  color: var(--color-text);
  line-height: 1.6;
}

h1, h2, h3, h4, h5, h6 {
  font-family: var(--font-title);
  font-weight: 700;
  line-height: 1.25;
}

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

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

/* Base Layout & Utilities */
.container {
  width: 100%;
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* Glassmorphism Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: #ffffff;
  border-bottom: 1px solid rgba(24, 46, 35, 0.08);
  padding: 16px 0;
  transition: var(--transition);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-title);
  font-size: 1.4rem;
  font-weight: 800;
  color: var(--color-primary);
}

.logo span {
  color: var(--color-accent);
}

.header-right {
  display: flex;
  align-items: center;
  gap: 16px;
}

.lang-selector-wrapper {
  position: relative;
}

.lang-select {
  padding: 8px 12px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(24, 46, 35, 0.12);
  background-color: rgba(255, 255, 255, 0.8);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.85rem;
  color: var(--color-text);
  cursor: pointer;
  outline: none;
  transition: var(--transition);
  backdrop-filter: blur(4px);
}

.lang-select:focus {
  border-color: var(--color-accent);
  box-shadow: 0 0 0 3px var(--color-accent-glow);
}

.whatsapp-community-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  background-color: #25d366;
  color: white;
  padding: 10px 18px;
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.9rem;
  box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.whatsapp-community-btn:hover {
  background-color: #20ba5a;
  transform: translateY(-2px);
  box-shadow: 0 6px 16px rgba(37, 211, 102, 0.4);
}

/* Hero Section */
.hero {
  position: relative;
  background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.2)), url('assets/viola_landscape.jpg') no-repeat center center;
  background-size: cover;
  padding: 120px 0 100px 0;
  color: white;
  text-align: center;
  overflow: hidden;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  height: 60px;
  background: linear-gradient(to top, var(--color-bg), transparent);
  pointer-events: none;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
  position: relative;
  z-index: 2;
}

.hero-tag {
  background-color: var(--color-accent);
  color: white;
  padding: 6px 16px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  display: inline-block;
  margin-bottom: 20px;
  box-shadow: 0 4px 10px rgba(38, 177, 112, 0.3);
}

.hero h1 {
  font-size: 3rem;
  font-weight: 900;
  margin-bottom: 16px;
  letter-spacing: -0.02em;
  text-shadow: 0 4px 12px rgba(0,0,0,0.25);
}

.hero-featured-wrapper {
  margin: 24px auto 30px auto;
  max-width: 680px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: var(--shadow-lg), 0 20px 50px rgba(24, 46, 35, 0.25);
  border: 4px solid rgba(255, 255, 255, 0.25);
  transition: var(--transition);
}

.hero-featured-wrapper:hover {
  transform: translateY(-4px) scale(1.01);
  box-shadow: var(--shadow-lg), 0 24px 60px rgba(24, 46, 35, 0.35);
  border-color: rgba(255, 255, 255, 0.4);
}

.hero-featured-image {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
}

.hero p {
  font-size: 1.15rem;
  opacity: 0.9;
  margin-bottom: 36px;
  max-width: 600px;
  margin-left: auto;
  margin-right: auto;
}

/* Prevent horizontal grid/flex item stretching and overflow */
.dashboard-grid > *,
.main-content-panel,
.search-wrapper,
.filter-pills-wrapper,
.cards-grid,
.card {
  min-width: 0;
  max-width: 100%;
}

/* Main Dashboard Layout */
.dashboard-grid {
  display: grid;
  grid-template-columns: 1fr 320px;
  gap: 32px;
  margin-top: -40px;
  margin-bottom: 80px;
  position: relative;
  z-index: 10;
}

/* Interactive Controls & Cards Area */
.main-content-panel {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Search Bar Wrapper */
.search-wrapper {
  position: sticky;
  top: 73px;
  z-index: 90;
  background: white;
  padding: 16px;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-md);
  display: flex;
  flex-direction: column;
  gap: 16px;
  border: 1px solid rgba(24, 46, 35, 0.06);
}

.search-input-container {
  position: relative;
  display: flex;
  align-items: center;
}

.search-input-container svg {
  position: absolute;
  left: 20px;
  color: var(--color-text-muted);
  width: 20px;
  height: 20px;
}

.search-input {
  width: 100%;
  padding: 18px 20px 18px 54px;
  border: 2px solid hsl(154, 20%, 90%);
  border-radius: var(--radius-md);
  font-family: var(--font-sans);
  font-size: 1.05rem;
  font-weight: 500;
  color: var(--color-text);
  outline: none;
  transition: var(--transition);
  background-color: hsl(154, 20%, 98%);
}

.search-input:focus {
  border-color: var(--color-accent);
  background-color: white;
  box-shadow: 0 0 0 4px var(--color-accent-glow);
}

/* Filter Tags (Pills) Scrollbar & Wrapper shadows */
.filter-pills-wrapper {
  position: relative;
  width: 100%;
  overflow: hidden;
}

.filter-pills-wrapper::before,
.filter-pills-wrapper::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 24px;
  pointer-events: none;
  z-index: 5;
  transition: opacity 0.2s ease;
  opacity: 0;
}

.filter-pills-wrapper::before {
  left: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

.filter-pills-wrapper::after {
  right: 0;
  background: linear-gradient(to left, rgba(255, 255, 255, 1), rgba(255, 255, 255, 0));
}

.filter-pills-wrapper.can-scroll-left::before {
  opacity: 1;
}

.filter-pills-wrapper.can-scroll-right::after {
  opacity: 1;
}

.filter-pills {
  display: flex;
  gap: 10px;
  max-width: 100%;
  overflow-x: auto;
  padding-bottom: 4px;
  scrollbar-width: none; /* Hide standard Firefox scrollbar */
}

.filter-pills::-webkit-scrollbar {
  display: none; /* Hide Chrome scrollbar */
}

.filter-btn {
  background-color: hsl(154, 20%, 93%);
  border: none;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-family: var(--font-sans);
  font-weight: 600;
  font-size: 0.9rem;
  color: var(--color-text);
  cursor: pointer;
  white-space: nowrap;
  transition: var(--transition);
}

.filter-btn:hover {
  background-color: hsl(154, 20%, 88%);
}

.filter-btn.active {
  background-color: var(--color-primary);
  color: white;
}

/* Directory Cards Grid */
.cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 24px;
}

/* Directory Card Styles */
.card {
  background-color: var(--color-card-bg);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(24, 46, 35, 0.05);
  display: flex;
  flex-direction: column;
  height: 100%;
  overflow: hidden;
  position: relative;
  transition: var(--transition);
}

.card:hover {
  transform: translateY(-6px);
  box-shadow: var(--shadow-lg);
  border-color: rgba(24, 46, 35, 0.12);
}

.card-header {
  padding: 20px 20px 10px 20px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
}

.card-category-badge {
  font-size: 0.75rem;
  font-weight: 800;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  background-color: var(--color-bg);
  color: var(--color-text);
}

/* Specific Category Badges Colors */
.card-category-badge.eating { background-color: hsla(142, 60%, 45%, 0.12); color: var(--color-cat-eating); }
.card-category-badge.lodging { background-color: hsla(217, 75%, 50%, 0.12); color: var(--color-cat-lodging); }
.card-category-badge.sport { background-color: hsla(12, 85%, 53%, 0.12); color: var(--color-cat-sport); }
.card-category-badge.services { background-color: hsla(262, 65%, 55%, 0.12); color: var(--color-cat-services); }
.card-category-badge.culture { background-color: hsla(38, 85%, 48%, 0.12); color: var(--color-cat-culture); }

.card-accent-bar {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background-color: transparent;
}
.card.eating .card-accent-bar { background-color: var(--color-cat-eating); }
.card.lodging .card-accent-bar { background-color: var(--color-cat-lodging); }
.card.sport .card-accent-bar { background-color: var(--color-cat-sport); }
.card.services .card-accent-bar { background-color: var(--color-cat-services); }
.card.culture .card-accent-bar { background-color: var(--color-cat-culture); }

.card-body {
  padding: 0 20px 20px 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.card-title {
  font-size: 1.25rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.card-description {
  font-size: 0.9rem;
  color: var(--color-text-muted);
  margin-bottom: 16px;
  font-weight: 500;
  flex-grow: 1;
}

.card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 16px;
}

.card-tag {
  background-color: hsl(154, 15%, 94%);
  color: var(--color-primary-light);
  font-size: 0.75rem;
  font-weight: 600;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
}

.card-info-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-bottom: 20px;
  font-size: 0.85rem;
}

.card-info-item {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  color: var(--color-text);
  font-weight: 500;
}

.card-info-item svg {
  flex-shrink: 0;
  color: var(--color-text-muted);
  width: 16px;
  height: 16px;
  margin-top: 3px;
}

/* Card Actions Panel */
.card-actions {
  display: flex;
  gap: 8px;
  margin-top: auto;
}

.action-btn {
  flex: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 10px;
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  border: 1px solid transparent;
}

.action-btn.call {
  background-color: hsl(154, 20%, 95%);
  color: var(--color-primary);
}

.action-btn.call:hover {
  background-color: hsl(154, 20%, 90%);
}

.action-btn.whatsapp {
  background-color: #25d366;
  color: white;
}

.action-btn.whatsapp:hover {
  background-color: #20ba5a;
}

.action-btn.web {
  background-color: var(--color-primary);
  color: white;
}

.action-btn.web:hover {
  background-color: var(--color-primary-light);
}

.action-btn.map {
  background-color: #f1f3f5;
  color: #495057;
  max-width: 42px;
}
.action-btn.map:hover {
  background-color: #e9ecef;
}

/* Sidebar Area */
.sidebar {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Sticky Wrapper for Sidebar */
.sticky-sidebar-element {
  position: sticky;
  top: 100px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}

/* Market Timetable Widget */
.widget {
  background-color: white;
  border-radius: var(--radius-md);
  padding: 24px;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(24, 46, 35, 0.05);
}

.widget-title {
  font-size: 1.15rem;
  font-weight: 800;
  color: var(--color-primary);
  margin-bottom: 16px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.widget-title svg {
  color: var(--color-accent);
}

.market-list {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.market-item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  background-color: hsl(154, 15%, 97%);
  font-size: 0.85rem;
  font-weight: 600;
  border: 1px solid transparent;
  transition: var(--transition);
}

.market-item.active {
  background-color: hsla(var(--accent-hue), var(--accent-sat), var(--accent-lightness), 0.08);
  border-color: var(--color-accent);
  color: var(--color-primary);
}

.market-day {
  color: var(--color-primary-light);
}

.market-item.active .market-day {
  color: var(--color-accent);
  font-weight: 800;
}

.market-location {
  text-align: right;
  color: var(--color-text);
  font-weight: 700;
}

/* EV Stations List in Widget */
.ev-list {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ev-item {
  font-size: 0.8rem;
  padding: 12px;
  border-radius: var(--radius-sm);
  background-color: hsl(154, 15%, 97%);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.ev-name {
  font-weight: 700;
  color: var(--color-primary);
}

.ev-details {
  color: var(--color-text-muted);
  font-weight: 500;
  display: flex;
  justify-content: space-between;
}

.ev-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  background-color: hsl(154, 20%, 93%);
  color: var(--color-primary);
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 700;
  font-size: 0.8rem;
  margin-top: 12px;
  transition: var(--transition);
  text-decoration: none;
  min-height: 44px; /* Tap target accessibility */
  border: 1px solid rgba(24, 46, 35, 0.06);
  width: 100%; /* Spans full card width on mobile for easy tapping */
}

.ev-link:hover {
  background-color: hsl(154, 20%, 88%);
  color: var(--color-primary-light);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
  text-decoration: none;
}

/* Whatsapp Callout Banner */
.whatsapp-banner {
  background: linear-gradient(135deg, #128c7e, #25d366);
  color: white;
  border-radius: var(--radius-md);
  padding: 24px;
  position: relative;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(37, 211, 102, 0.2);
}

.whatsapp-banner::before {
  content: '';
  position: absolute;
  right: -20px;
  bottom: -20px;
  width: 120px;
  height: 120px;
  background-color: rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  pointer-events: none;
}

.whatsapp-banner h3 {
  font-size: 1.25rem;
  font-weight: 800;
  margin-bottom: 8px;
  position: relative;
  z-index: 2;
}

.whatsapp-banner p {
  font-size: 0.85rem;
  line-height: 1.5;
  margin-bottom: 16px;
  opacity: 0.9;
  position: relative;
  z-index: 2;
}

.whatsapp-banner-btn {
  background-color: white;
  color: #128c7e;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 20px;
  border-radius: var(--radius-full);
  font-weight: 700;
  font-size: 0.85rem;
  box-shadow: 0 4px 10px rgba(0,0,0,0.1);
  position: relative;
  z-index: 2;
  transition: var(--transition);
}

.whatsapp-banner-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 6px 14px rgba(0,0,0,0.15);
}

/* Empty State Styles */
.empty-state {
  grid-column: 1 / -1;
  background-color: white;
  border-radius: var(--radius-md);
  padding: 48px;
  text-align: center;
  box-shadow: var(--shadow-sm);
  border: 1px solid rgba(24, 46, 35, 0.05);
}

.empty-state svg {
  color: var(--color-text-muted);
  width: 48px;
  height: 48px;
  margin-bottom: 16px;
}

.empty-state h3 {
  font-size: 1.3rem;
  color: var(--color-primary);
  margin-bottom: 8px;
}

.empty-state p {
  color: var(--color-text-muted);
  font-size: 0.9rem;
}

/* Footer styling */
footer {
  background-color: var(--color-bg-dark);
  color: white;
  padding: 60px 0 30px 0;
  border-top: 1px solid rgba(255,255,255,0.08);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 40px;
  margin-bottom: 40px;
}

.footer-brand h3 {
  font-size: 1.4rem;
  margin-bottom: 12px;
}

.footer-brand p {
  font-size: 0.9rem;
  opacity: 0.7;
  max-width: 400px;
}

.footer-links h4 {
  font-size: 1rem;
  margin-bottom: 16px;
  color: var(--color-accent);
}

.footer-links ul {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.footer-links a {
  font-size: 0.85rem;
  opacity: 0.8;
}

.footer-links a:hover {
  opacity: 1;
  color: var(--color-accent);
  padding-left: 4px;
}

.footer-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding-top: 24px;
  border-top: 1px solid rgba(255,255,255,0.05);
  font-size: 0.8rem;
  opacity: 0.6;
}

/* Responsive Breakpoints */
@media (max-width: 992px) {
  .dashboard-grid {
    grid-template-columns: 1fr;
    gap: 24px;
  }
  .sidebar,
  .sticky-sidebar-element {
    display: contents;
  }
  .market-widget {
    order: 1;
  }
  .main-content-panel {
    order: 2;
  }
  .ev-widget {
    order: 3;
  }
  .whatsapp-banner {
    order: 4;
  }
}

@media (max-width: 768px) {
  .container {
    padding: 0 16px;
  }
  .hero {
    padding: 60px 0 50px 0;
  }
  .hero h1 {
    font-size: 2.2rem;
  }
  .hero p {
    font-size: 0.95rem;
    margin-bottom: 24px;
    padding: 0 8px;
  }
  .hero-tag {
    margin-bottom: 12px;
    font-size: 0.75rem;
    padding: 4px 12px;
  }
  .dashboard-grid {
    gap: 20px;
  }
  .widget {
    padding: 12px;
  }
  .widget-title {
    font-size: 0.95rem;
    margin-bottom: 12px;
  }
  .market-item {
    padding: 6px 8px;
    font-size: 0.75rem;
  }
  .ev-item {
    padding: 8px;
    font-size: 0.75rem;
  }
  .whatsapp-banner {
    padding: 16px;
  }
  .footer-grid {
    grid-template-columns: 1fr;
    gap: 30px;
  }
  .footer-bottom {
    flex-direction: column;
    gap: 12px;
    text-align: center;
  }
  /* Force single column for directory cards on mobile */
  .cards-grid {
    grid-template-columns: 1fr;
  }
  .search-wrapper {
    padding: 12px;
  }
  .search-input {
    padding: 14px 16px 14px 44px;
    font-size: 0.95rem;
  }
  .search-input-container svg {
    left: 14px;
  }
  .action-btn {
    padding: 8px 6px;
    font-size: 0.75rem;
    gap: 4px;
  }
}

@media (max-width: 576px) {
  header {
    padding: 10px 0;
  }
  .header-content {
    flex-direction: row;
    justify-content: space-between;
    align-items: center;
  }
  .header-right {
    width: auto;
    display: flex;
    align-items: center;
    gap: 8px;
  }
  .logo {
    font-size: 1.15rem;
    gap: 6px;
  }
  #btn-text-whatsapp {
    display: none;
  }
  .whatsapp-community-btn {
    width: 38px;
    height: 38px;
    padding: 0;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 3px 8px rgba(37, 211, 102, 0.2);
  }
  .whatsapp-community-btn svg {
    margin: 0;
    width: 20px;
    height: 20px;
  }
  .lang-select {
    padding: 6px 8px;
    font-size: 0.8rem;
  }
  .search-wrapper {
    top: 58px;
    padding: 10px;
    gap: 8px;
    border-radius: 0 0 var(--radius-md) var(--radius-md);
  }
  .dashboard-grid {
    gap: 16px;
  }
  .widget {
    padding: 16px;
  }
  .market-item {
    padding: 8px 12px;
    font-size: 0.8rem;
  }
  .ev-item {
    padding: 10px;
    font-size: 0.8rem;
  }
  .cards-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}


/* RTL (Right to Left) Styling support for Arabic */
[dir="rtl"] {
  text-align: right;
}

[dir="rtl"] .header-content,
[dir="rtl"] .header-right,
[dir="rtl"] .card-actions,
[dir="rtl"] .footer-bottom {
  flex-direction: row-reverse;
}

[dir="rtl"] .logo {
  gap: 10px;
}

[dir="rtl"] .search-input-container svg {
  left: auto;
  right: 20px;
}

[dir="rtl"] .search-input {
  padding: 18px 54px 18px 20px;
}

[dir="rtl"] .card-accent-bar {
  left: auto;
  right: 0;
}

[dir="rtl"] .card-info-item svg,
[dir="rtl"] .widget-title svg {
  margin-left: 8px;
  margin-right: 0;
}

[dir="rtl"] .whatsapp-banner::before {
  right: auto;
  left: -20px;
}

[dir="rtl"] .market-location {
  text-align: left;
}

[dir="rtl"] .footer-links ul {
  padding-right: 0;
}

@media (max-width: 768px) {
  [dir="rtl"] .search-input-container svg {
    left: auto;
    right: 14px;
  }
  [dir="rtl"] .search-input {
    padding: 14px 44px 14px 16px;
  }
}


/* Cookie Consent Banner */
.cookie-banner {
  position: fixed;
  bottom: 24px;
  left: 24px;
  right: 24px;
  max-width: 500px;
  background: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border: 1px solid rgba(24, 46, 35, 0.08);
  border-radius: var(--radius-md);
  padding: 20px;
  box-shadow: 0 10px 30px rgba(24, 46, 35, 0.15);
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 16px;
  transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1), opacity 0.4s ease;
  transform: translateY(100px);
  opacity: 0;
}

.cookie-banner.show {
  transform: translateY(0);
  opacity: 1;
}

.cookie-banner.hidden {
  display: none !important;
}

.cookie-content p {
  color: var(--color-text);
  font-size: 0.85rem;
  line-height: 1.5;
  font-weight: 500;
}

.cookie-buttons {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
}

.cookie-btn {
  padding: 10px 18px;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.8rem;
  font-weight: 700;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  min-height: 44px; /* Accessible touch target */
  display: inline-flex;
  align-items: center;
  justify-content: center;
  text-decoration: none;
}

.cookie-btn.info {
  background-color: hsl(154, 20%, 93%);
  color: var(--color-primary);
}

.cookie-btn.info:hover {
  background-color: hsl(154, 20%, 88%);
}

.cookie-btn.accept {
  background-color: var(--color-accent);
  color: white;
}

.cookie-btn.accept:hover {
  background-color: #20ba5a;
}

/* Privacy Modal Styles */
.modal {
  display: none;
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  background-color: rgba(24, 46, 35, 0.5);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 3000;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.modal.show {
  display: flex;
}

.modal-content {
  background-color: white;
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-lg);
  border: 1px solid rgba(24, 46, 35, 0.08);
  width: 100%;
  max-width: 600px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  position: relative;
  animation: modalFadeIn 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

@keyframes modalFadeIn {
  from { transform: scale(0.95); opacity: 0; }
  to { transform: scale(1); opacity: 1; }
}

.close-modal {
  position: absolute;
  top: 16px;
  right: 20px;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--color-text-muted);
  cursor: pointer;
  transition: var(--transition);
  z-index: 10;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.close-modal:hover {
  color: var(--color-text);
}

#privacy-modal-title {
  padding: 24px 24px 16px 24px;
  border-bottom: 1px solid rgba(24, 46, 35, 0.06);
  font-size: 1.3rem;
  color: var(--color-primary);
}

.modal-body {
  padding: 24px;
  overflow-y: auto;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--color-text);
}

.modal-body h3 {
  font-size: 1rem;
  color: var(--color-primary);
  margin-top: 20px;
  margin-bottom: 8px;
}

.modal-body p {
  margin-bottom: 12px;
}

.modal-body ul {
  margin-bottom: 16px;
  padding-left: 20px;
}

.modal-body li {
  margin-bottom: 6px;
}

/* Mobile responsive adjustments */
@media (max-width: 576px) {
  .cookie-banner {
    bottom: 12px;
    left: 12px;
    right: 12px;
    padding: 16px;
    gap: 12px;
  }
  .cookie-buttons {
    width: 100%;
  }
  .cookie-btn {
    flex: 1;
  }
  .modal-content {
    max-height: 90vh;
  }
  .modal-body {
    padding: 16px;
  }
}



