/* ============================================
   URBANRAICES — Style Guide
   Diseño Mediterráneo Moderno
   ============================================ */

/* === Reset & Base === */
*, *::before, *::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

:root {
  /* Paleta Principal */
  --primary: #0A3D2A;
  --primary-light: #1B5E3F;
  --primary-dark: #062A1C;
  --secondary: #F9C74F;
  --secondary-dark: #E6B325;
  --accent: #2E8B57;
  --background: #F7F5F0;
  --background-white: #FFFFFF;
  --text: #2D3748;
  --text-light: #718096;
  --text-white: #FFFFFF;
  --border: #E2E8F0;
  --shadow: rgba(0, 0, 0, 0.08);
  --shadow-hover: rgba(0, 0, 0, 0.15);
  
  /* Espaciado */
  --space-xs: 0.25rem;
  --space-sm: 0.5rem;
  --space-md: 1rem;
  --space-lg: 1.5rem;
  --space-xl: 2rem;
  --space-2xl: 3rem;
  --space-3xl: 4rem;
  
  /* Bordes */
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 20px;
  --radius-full: 50px;
  
  /* Transiciones */
  --transition: all 0.3s ease;
}

/* === Language Selector === */
.lang-selector {
  position: relative;
  margin-left: 0.5rem;
  /* Chrome Android fix: isolate stacking context */
  isolation: isolate;
}

.lang-selector .lang-current {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0.5rem 1.2rem;
  background: rgba(255, 255, 255, 0.1);
  -webkit-backdrop-filter: blur(8px);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-full);
  cursor: pointer;
  transition: var(--transition);
  color: rgba(255, 255, 255, 0.85);
  font-family: 'Open Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  user-select: none;
  -webkit-user-select: none;
  white-space: nowrap;
  /* Chrome Android fix: ensure touch target */
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  /* Ensure children are aligned */
  line-height: 1.4;
}

.lang-selector .lang-current:hover,
.lang-selector .lang-current:active {
  background: rgba(255, 255, 255, 0.15);
  border-color: var(--secondary);
  color: var(--text-white);
}

.lang-selector .lang-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 30px;
  height: 22px;
  border-radius: 5px;
  font-family: 'Montserrat', sans-serif;
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.5px;
  color: #fff;
  background: rgba(255, 255, 255, 0.15);
}

.lang-selector .flag-icon {
  display: inline-block;
  width: 22px;
  height: 16px;
  border-radius: 3px;
  overflow: hidden;
  flex-shrink: 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  /* Chrome Android fix: ensure visibility */
  -webkit-print-color-adjust: exact;
  print-color-adjust: exact;
}

/* Inline SVG <img> flags (most reliable across Android browsers) */
.lang-selector .flag-icon-svg {
  display: inline-block;
  width: 22px;
  height: 16px;
  border-radius: 3px;
  flex-shrink: 0;
  vertical-align: middle;
  object-fit: cover;
}

/* Flag SVGs as data URIs - works on ALL browsers/OS */
.flag-icon.flag-ca { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 480'%3E%3Cpath fill='%23ce1126' d='M160 0h320v480H160z'/%3E%3Cpath fill='%23fff' d='M160 53h320v53H160zm0 106h320v53H160zm0 106h320v53H160zm0 106h320v53H160z'/%3E%3C/svg%3E"); }
.flag-icon.flag-es { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 480'%3E%3Cpath fill='%23aad11f' d='M160 0h320v480H160z'/%3E%3Cpath fill='%23dd1617' d='M160 0h360v96H160zm0 330h360v96H160z'/%3E%3Cpath fill='%23e5b40a' d='M160 87h360v273H160z'/%3E%3C/svg%3E"); }
.flag-icon.flag-pt { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 480'%3E%3Cpath fill='%23006600' d='M0 0h256v480H0z'/%3E%3Cpath fill='%23ff0000' d='M256 0h384v480H256z'/%3E%3Ccircle cx='256' cy='240' r='80' fill='%23ffd700' stroke='%23006600' stroke-width='2'/%3E%3C/svg%3E"); }
.flag-icon.flag-it { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 480'%3E%3Cpath fill='%23fff' d='M0 0h640v480H0z'/%3E%3Cpath fill='%23009246' d='M0 0h213v480H0z'/%3E%3Cpath fill='%23ce2b37' d='M427 0h213v480H427z'/%3E%3C/svg%3E"); }
.flag-icon.flag-de { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 480'%3E%3Cpath fill='%23000' d='M0 0h640v160H0z'/%3E%3Cpath fill='%23dd0000' d='M160 0h480v160H160z'/%3E%3Cpath fill='%23ff0d40' d='M320 0h480v160H320z'/%3E%3C/svg%3E"); }
.flag-icon.flag-en { background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 640 480'%3E%3Cpath fill='%23012169' d='M0 0h640v480H0z'/%3E%3Cpath fill='%23fff' d='M75 0l244 181L562 0h78v62L400 241l240 178v61h-80L320 301 81 480H0v-60l239-178L0 64V0z'/%3E%3Cpath fill='%23c8102e' d='M424 281 240 441v39L369 281z'/%3E%3Cpath fill='%23fff' d='M241 0v480h160V0zM0 160v160h640V160z'/%3E%3Cpath fill='%23c8102e' d='M0 193v96h640v-96zM273 0v480h96V0z'/%3E%3C/svg%3E"); }
.lang-selector .lang-current .arrow {
  font-size: 0.6rem;
  margin-left: 2px;
  transition: var(--transition);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
  vertical-align: middle;
  /* Chrome Android: fixed dimensions prevent misalignment */
  height: 16px;
  width: 12px;
}

.lang-selector.open .lang-current {
  background: rgba(255, 255, 255, 0.18);
  border-color: var(--secondary);
  color: var(--text-white);
}

.lang-selector.open .lang-current .arrow {
  transform: rotate(180deg);
}

/*
 * DROPDOWN — Chrome Android compatible
 * Uses display:none/block instead of opacity/visibility
 * because Chrome Android ignores opacity on elements inside
 * backdrop-filter containers (Samsung One UI, OPPO ColorOS).
 * max-height transition gives smooth open/close animation.
 */
.lang-selector .lang-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  min-width: 180px;
  background: var(--primary-dark);
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: var(--radius-md);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.4);
  z-index: 9999;

  /* Chrome Android fix: use display instead of opacity/visibility */
  display: none;
  opacity: 1;

  /* Smooth open animation */
  max-height: 0;
  overflow: hidden;
  transform: translateY(-4px);
  transition: max-height 0.25s ease, transform 0.25s ease, opacity 0.2s ease;
}

.lang-selector.open .lang-dropdown {
  display: block;
  max-height: 300px;
  transform: translateY(0);
  opacity: 1;
}

.lang-selector .lang-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 0.65rem 1rem;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
  color: rgba(255, 255, 255, 0.8);
  font-family: 'Open Sans', sans-serif;
  font-size: 0.85rem;
  font-weight: 500;
  user-select: none;
  -webkit-user-select: none;
  /* Chrome Android fix: ensure touch works */
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
  /* Ensure each option is on its own line */
  white-space: nowrap;
  flex-shrink: 0;
}

.lang-selector .lang-option:hover,
.lang-selector .lang-option:active {
  background: rgba(249, 199, 79, 0.12);
  color: var(--secondary);
}

.lang-selector .lang-option.active {
  background: rgba(249, 199, 79, 0.18);
  color: var(--secondary);
  border-left: 3px solid var(--secondary);
}

.lang-option .badge-ca { background: #F9C74F; color: #0A3D2A; }
.lang-option .badge-es { background: #C60B1E; }
.lang-option .badge-pt { background: #006600; }
.lang-option .badge-it { background: #009246; }
.lang-option .badge-de { background: #333333; }
.lang-option .badge-en { background: #00247D; }

.lang-selector .lang-option .lang-name {
  flex: 1;
}

html {
  scroll-behavior: smooth;
  font-size: 16px;
  background-color: #F7F5F0;
}

html, body, main.fira-detail {
  background-color: #F7F5F0 !important;
  background-color: var(--background, #F7F5F0) !important;
}

body {
  font-family: 'Open Sans', -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: var(--background);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
  min-height: 100vh;
}

h1, h2, h3, h4, h5, h6 {
  font-family: 'Montserrat', sans-serif;
  font-weight: 700;
  line-height: 1.2;
}

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

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

/* === Utility Classes === */
.container {
  width: 100%;
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 var(--space-lg);
}

.section {
  padding: var(--space-3xl) 0;
}

.section-title {
  font-size: 2rem;
  color: var(--primary);
  margin-bottom: var(--space-sm);
  text-align: center;
}

.section-subtitle {
  font-size: 1.1rem;
  color: var(--text-light);
  text-align: center;
  margin-bottom: var(--space-2xl);
  font-weight: 400;
}

/* === Header / Navbar === */
.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 1000;
  background: rgba(10, 61, 42, 0.95);
  backdrop-filter: blur(10px);
  padding: var(--space-md) 0;
  box-shadow: 0 2px 20px var(--shadow);
}

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

.logo {
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.logo-icon {
  width: 50px;
  height: 50px;
  background: var(--secondary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.4rem;
  box-shadow: 0 3px 12px rgba(249, 199, 79, 0.3);
  transition: var(--transition);
}

.logo-icon:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 18px rgba(249, 199, 79, 0.4);
}

.logo-text {
  font-family: 'Montserrat', sans-serif;
  font-size: 1.4rem;
  font-weight: 700;
  color: var(--text-white);
  letter-spacing: 1px;
}

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

.nav {
  display: flex;
  align-items: center;
  gap: var(--space-xl);
}

.nav a {
  color: rgba(255, 255, 255, 0.85);
  font-weight: 500;
  font-size: 0.95rem;
  position: relative;
  padding: var(--space-xs) 0;
}

.nav a::after {
  content: '';
  position: absolute;
  bottom: -2px;
  left: 0;
  width: 0;
  height: 2px;
  background: var(--secondary);
  transition: var(--transition);
}

.nav a:hover {
  color: var(--text-white);
}

.nav a:hover::after {
  width: 100%;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-sm);
  padding: var(--space-sm) var(--space-lg);
  border-radius: var(--radius-full);
  font-weight: 600;
  font-size: 0.95rem;
  cursor: pointer;
  border: none;
  transition: var(--transition);
  font-family: 'Open Sans', sans-serif;
}

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

.btn-primary:hover {
  background: var(--secondary-dark);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(249, 199, 79, 0.4);
}

.btn-secondary {
  background: transparent;
  color: var(--text-white);
  border: 2px solid rgba(255, 255, 255, 0.5);
}

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

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

.btn-accent:hover {
  background: var(--primary-light);
  transform: translateY(-2px);
  box-shadow: 0 4px 15px rgba(46, 139, 87, 0.3);
}

/* === Hero Section === */
.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--primary-dark) 0%, var(--primary) 50%, var(--primary-light) 100%);
  overflow: hidden;
  padding-top: 80px;
}

.hero::before {
  content: '';
  position: absolute;
  top: -50%;
  right: -20%;
  width: 80%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(249, 199, 79, 0.08) 0%, transparent 70%);
  pointer-events: none;
}

.hero::after {
  content: '';
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  height: 150px;
  background: linear-gradient(to top, var(--background), transparent);
  pointer-events: none;
}

.hero-content {
  position: relative;
  z-index: 2;
  text-align: center;
  max-width: 700px;
  padding: 0 var(--space-lg);
}

.hero-badge {
  display: inline-block;
  background: rgba(249, 199, 79, 0.15);
  color: var(--secondary);
  padding: var(--space-xs) var(--space-md);
  border-radius: var(--radius-full);
  font-size: 0.85rem;
  font-weight: 600;
  margin-bottom: var(--space-lg);
  border: 1px solid rgba(249, 199, 79, 0.3);
}

.hero h1 {
  font-size: 3.5rem;
  color: var(--text-white);
  margin-bottom: var(--space-lg);
  line-height: 1.1;
}

.hero h1 span {
  color: var(--secondary);
}

.hero p {
  font-size: 1.2rem;
  color: rgba(255, 255, 255, 0.8);
  margin-bottom: var(--space-2xl);
  line-height: 1.7;
}

/* === Search Bar === */
.search-container {
  position: relative;
  max-width: 600px;
  margin: 0 auto var(--space-xl);
}

.search-bar {
  width: 100%;
  padding: var(--space-lg) var(--space-xl);
  padding-left: 55px;
  border: 2px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
  color: var(--text-white);
  font-size: 1.05rem;
  font-family: 'Open Sans', sans-serif;
  transition: var(--transition);
  outline: none;
}

.search-bar::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

.search-bar:focus {
  border-color: var(--secondary);
  background: rgba(255, 255, 255, 0.15);
  box-shadow: 0 0 30px rgba(249, 199, 79, 0.15);
}

.search-icon {
  position: absolute;
  left: 20px;
  top: 50%;
  transform: translateY(-50%);
  color: rgba(255, 255, 255, 0.5);
  font-size: 1.2rem;
}

.search-btn {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  padding: var(--space-sm) var(--space-lg);
  background: var(--secondary);
  color: var(--primary-dark);
  border: none;
  border-radius: var(--radius-full);
  font-weight: 700;
  cursor: pointer;
  transition: var(--transition);
  font-size: 0.9rem;
}

.search-btn:hover {
  background: var(--secondary-dark);
  transform: translateY(-50%) scale(1.05);
}

/* Search Results Dropdown */
.search-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  background: var(--background-white);
  border-radius: var(--radius-md);
  box-shadow: 0 10px 40px rgba(0, 0, 0, 0.15);
  max-height: 400px;
  overflow-y: auto;
  display: none;
  z-index: 100;
  border: 1px solid var(--border);
}

.search-results.active {
  display: block;
}

.search-result-item {
  padding: var(--space-md) var(--space-lg);
  border-bottom: 1px solid var(--border);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  gap: var(--space-md);
}

.search-result-item:last-child {
  border-bottom: none;
}

.search-result-item:hover {
  background: var(--background);
}

.search-result-item .result-icon {
  width: 40px;
  height: 40px;
  border-radius: var(--radius-sm);
  background: linear-gradient(135deg, var(--primary), var(--accent));
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 1rem;
  flex-shrink: 0;
}

.search-result-item .result-info h4 {
  font-size: 0.95rem;
  color: var(--text);
  margin-bottom: 2px;
}

.search-result-item .result-info p {
  font-size: 0.8rem;
  color: var(--text-light);
  margin: 0;
}

/* === Category Pills === */
.categories {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1.5rem;
}

/* === Price Filter Row === */
.price-filter-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  justify-content: center;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.price-filter-label {
  color: var(--text-white);
  font-weight: 600;
  font-size: 0.95rem;
  letter-spacing: 0.3px;
}

.price-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.price-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.5rem 1rem;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  font-size: 0.85rem;
  font-weight: 600;
  cursor: pointer;
  transition: var(--transition);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.price-pill:hover {
  background: rgba(255, 255, 255, 0.2);
  border-color: var(--secondary);
  transform: translateY(-1px);
}

.price-pill.active {
  background: var(--secondary);
  color: var(--primary-dark);
  border-color: var(--secondary);
  box-shadow: 0 2px 8px rgba(249, 199, 79, 0.4);
}

.price-pill-free.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
  box-shadow: 0 2px 8px rgba(46, 139, 87, 0.4);
}

.price-pill-paid.active {
  background: var(--secondary);
  color: var(--primary-dark);
  border-color: var(--secondary);
  box-shadow: 0 2px 8px rgba(249, 199, 79, 0.4);
}

.price-pill-varies.active {
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  border-color: var(--secondary);
  box-shadow: 0 2px 8px rgba(249, 199, 79, 0.3);
}

/* === Sidebar Price Block (detail page) === */
.sidebar-info.price-block {
  background: var(--background);
  border-left: 3px solid var(--secondary);
  padding: 0.75rem 1rem;
  border-radius: var(--radius-sm);
}

.sidebar-info.price-block.paid {
  border-left-color: var(--secondary);
}

.sidebar-info.price-block.varies {
  border-left-color: var(--accent);
}

.sidebar-info.price-block.free {
  border-left-color: var(--accent);
}

.sidebar-info.price-block .price-label {
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--primary);
  margin-bottom: 0.25rem;
}

.sidebar-info.price-block .price-note {
  font-size: 0.85rem;
  color: var(--text-light);
  line-height: 1.4;
}

@media (max-width: 600px) {
  .price-filter-row {
    flex-direction: column;
    align-items: stretch;
  }
  .price-filter-label {
    text-align: center;
  }
  .price-pills {
    justify-content: center;
  }
}

.category-pill {
  padding: var(--space-sm) var(--space-md);
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius-full);
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
  transition: var(--transition);
}

.category-pill:hover,
.category-pill.active {
  background: var(--secondary);
  color: var(--primary-dark);
  border-color: var(--secondary);
}

/* === Featured Firas Section === */
.firas-section {
  background: var(--background);
}

.firas-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: var(--space-xl);
}

.fira-card {
  background: var(--background-white);
  border-radius: var(--radius-md);
  overflow: hidden;
  box-shadow: 0 4px 20px var(--shadow);
  transition: var(--transition);
  cursor: pointer;
}

.fira-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 40px var(--shadow-hover);
}

.fira-card-image {
  position: relative;
  height: 200px;
  overflow: hidden;
}

.fira-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: var(--transition);
}

.fira-card:hover .fira-card-image img {
  transform: scale(1.05);
}

.fira-card-badge {
  position: absolute;
  bottom: var(--space-md);
  left: var(--space-md);
  background: var(--secondary);
  color: var(--primary-dark);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: 0.75rem;
  font-weight: 700;
}

.fira-price-badge {
  position: absolute;
  top: var(--space-md);
  left: var(--space-md);
  padding: 6px 12px;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.4px;
  text-transform: uppercase;
  z-index: 2;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.25);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
}

.fira-price-badge.free {
  background: var(--accent);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.fira-price-badge.paid {
  background: var(--secondary);
  color: var(--primary-dark);
  border: 1px solid rgba(10, 61, 42, 0.15);
}

.fira-price-badge.varies {
  background: rgba(255, 255, 255, 0.95);
  color: var(--primary);
  border: 1px solid var(--secondary);
}

.fira-price-badge.detail {
  top: var(--space-lg);
  left: var(--space-lg);
  padding: 10px 18px;
  font-size: 0.85rem;
  letter-spacing: 0.6px;
}

.fira-card-date {
  position: absolute;
  top: var(--space-md);
  right: var(--space-md);
  background: rgba(10, 61, 42, 0.9);
  color: var(--text-white);
  padding: var(--space-xs) var(--space-sm);
  border-radius: var(--radius-sm);
  font-size: 0.8rem;
  font-weight: 600;
  text-align: center;
}

.fira-card-date .day {
  font-size: 1.2rem;
  display: block;
  line-height: 1;
}

.fira-card-date .month {
  font-size: 0.7rem;
  text-transform: uppercase;
}

.fira-card-content {
  padding: var(--space-lg);
}

.fira-card-content h3 {
  font-size: 1.15rem;
  color: var(--primary);
  margin-bottom: var(--space-xs);
}

.fira-card-location {
  display: flex;
  align-items: center;
  gap: var(--space-xs);
  color: var(--text-light);
  font-size: 0.85rem;
  margin-bottom: var(--space-sm);
}

.fira-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-xs);
  margin-bottom: var(--space-md);
}

.fira-tag {
  padding: 2px 10px;
  background: rgba(10, 61, 42, 0.08);
  border-radius: var(--radius-full);
  font-size: 0.75rem;
  color: var(--primary);
  font-weight: 500;
}

.fira-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding-top: var(--space-md);
  border-top: 1px solid var(--border);
}

.fira-card-footer .btn {
  font-size: 0.85rem;
  padding: var(--space-xs) var(--space-md);
}

.favorite-btn {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 2px solid var(--border);
  background: transparent;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: var(--transition);
  font-size: 1rem;
}

.favorite-btn:hover {
  border-color: #e53e3e;
  background: rgba(229, 62, 62, 0.05);
}

.favorite-btn.active {
  border-color: #e53e3e;
  background: #e53e3e;
  color: white;
}

/* === Calendar Section === */
.calendar-section {
  background: var(--primary);
  position: relative;
  overflow: hidden;
}

.calendar-section::before {
  content: '';
  position: absolute;
  top: -50%;
  left: -20%;
  width: 60%;
  height: 200%;
  background: radial-gradient(ellipse, rgba(249, 199, 79, 0.05) 0%, transparent 70%);
  pointer-events: none;
}

.calendar-section .section-title {
  color: var(--text-white);
}

.calendar-section .section-subtitle {
  color: rgba(255, 255, 255, 0.7);
}

.calendar-container {
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-lg);
  padding: var(--space-xl);
  border: 1px solid rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(10px);
}

.calendar-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: var(--space-xl);
}

.calendar-header h3 {
  color: var(--text-white);
  font-size: 1.3rem;
}

.calendar-nav {
  display: flex;
  gap: var(--space-sm);
}

.calendar-nav button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.2);
  background: transparent;
  color: var(--text-white);
  cursor: pointer;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1rem;
}

.calendar-nav button:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: var(--secondary);
}

.calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
  margin-bottom: var(--space-sm);
}

.calendar-weekdays span {
  text-align: center;
  font-size: 0.8rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.5);
  text-transform: uppercase;
  padding: var(--space-xs);
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 4px;
}

.calendar-day {
  aspect-ratio: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  border-radius: var(--radius-sm);
  font-size: 0.9rem;
  color: rgba(255, 255, 255, 0.8);
  cursor: pointer;
  transition: var(--transition);
  position: relative;
}

.calendar-day:hover {
  background: rgba(255, 255, 255, 0.1);
}

.calendar-day.today {
  border: 2px solid var(--secondary);
  color: var(--secondary);
  font-weight: 700;
}

.calendar-day.has-event::after {
  content: '';
  width: 6px;
  height: 6px;
  background: var(--secondary);
  border-radius: 50%;
  position: absolute;
  bottom: 4px;
}

.calendar-day.selected {
  background: var(--secondary);
  color: var(--primary-dark);
  font-weight: 700;
}

.calendar-day.empty {
  cursor: default;
}

.calendar-day.empty::after {
  display: none;
}

/* Calendar Events Panel */
.calendar-events {
  margin-top: var(--space-xl);
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.calendar-events h4 {
  color: var(--secondary);
  font-size: 1rem;
  margin-bottom: var(--space-md);
}

.calendar-event-item {
  display: flex;
  align-items: center;
  gap: var(--space-md);
  padding: var(--space-md);
  background: rgba(255, 255, 255, 0.05);
  border-radius: var(--radius-sm);
  margin-bottom: var(--space-sm);
  transition: var(--transition);
  cursor: pointer;
}

.calendar-event-item:hover {
  background: rgba(255, 255, 255, 0.1);
}

.calendar-event-dot {
  width: 10px;
  height: 10px;
  background: var(--secondary);
  border-radius: 50%;
  flex-shrink: 0;
}

.calendar-event-info h5 {
  color: var(--text-white);
  font-size: 0.9rem;
  margin-bottom: 2px;
}

.calendar-event-info p {
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.8rem;
  margin: 0;
}

/* === Submit Section === */
.submit-section {
  background: linear-gradient(135deg, var(--background) 0%, #EDE8E0 100%);
}

.submit-content {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-3xl);
  align-items: center;
}

.submit-text h2 {
  font-size: 2.2rem;
  color: var(--primary);
  margin-bottom: var(--space-md);
}

.submit-text p {
  color: var(--text-light);
  font-size: 1.05rem;
  margin-bottom: var(--space-xl);
  line-height: 1.7;
}

.submit-form {
  background: var(--background-white);
  padding: var(--space-2xl);
  border-radius: var(--radius-lg);
  box-shadow: 0 10px 40px var(--shadow);
}

.form-group {
  margin-bottom: var(--space-lg);
}

.form-group label {
  display: block;
  font-weight: 600;
  color: var(--text);
  margin-bottom: var(--space-xs);
  font-size: 0.9rem;
}

.form-group input,
.form-group textarea,
.form-group select {
  width: 100%;
  padding: var(--space-md);
  border: 2px solid var(--border);
  border-radius: var(--radius-sm);
  font-family: 'Open Sans', sans-serif;
  font-size: 0.95rem;
  transition: var(--transition);
  background: var(--background);
  color: var(--text);
}

.form-group input:focus,
.form-group textarea:focus,
.form-group select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(10, 61, 42, 0.1);
}

.form-group textarea {
  min-height: 100px;
  resize: vertical;
}

/* === Footer === */
.footer {
  background: var(--primary-dark);
  color: rgba(255, 255, 255, 0.7);
  padding: var(--space-3xl) 0 var(--space-xl);
}

.footer-grid {
  display: grid;
  grid-template-columns: 2fr 1fr 1fr 1fr;
  gap: var(--space-2xl);
  margin-bottom: var(--space-2xl);
}

.footer-brand .logo {
  margin-bottom: var(--space-md);
}

.footer-brand p {
  font-size: 0.9rem;
  line-height: 1.7;
  max-width: 300px;
}

.footer h4 {
  color: var(--text-white);
  font-size: 1rem;
  margin-bottom: var(--space-lg);
}

.footer ul {
  list-style: none;
}

.footer ul li {
  margin-bottom: var(--space-sm);
}

.footer ul li a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 0.9rem;
  transition: var(--transition);
}

.footer ul li a:hover {
  color: var(--secondary);
}

.footer-bottom {
  padding-top: var(--space-xl);
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.85rem;
}

.footer-social {
  display: flex;
  gap: var(--space-md);
}

.footer-social a {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.1);
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.7);
  transition: var(--transition);
  font-size: 0.9rem;
}

.footer-social a:hover {
  background: var(--secondary);
  color: var(--primary-dark);
}

/* === Chatbot Modal === */
.chatbot-overlay {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  z-index: 2000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: var(--space-lg);
}

.chatbot-overlay.active {
  display: flex;
}

.chatbot-modal {
  background: var(--background-white);
  border-radius: var(--radius-lg);
  width: 100%;
  max-width: 500px;
  max-height: 80vh;
  display: flex;
  flex-direction: column;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
  overflow: hidden;
}

.chatbot-header {
  background: var(--primary);
  padding: var(--space-lg);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.chatbot-header h3 {
  color: var(--text-white);
  font-size: 1.1rem;
  display: flex;
  align-items: center;
  gap: var(--space-sm);
}

.chatbot-close {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: none;
  background: rgba(255, 255, 255, 0.1);
  color: var(--text-white);
  cursor: pointer;
  font-size: 1.2rem;
  transition: var(--transition);
}

.chatbot-close:hover {
  background: rgba(255, 255, 255, 0.2);
}

.chatbot-messages {
  flex: 1;
  overflow-y: auto;
  padding: var(--space-lg);
  display: flex;
  flex-direction: column;
  gap: var(--space-md);
}

.chat-message {
  max-width: 80%;
  padding: var(--space-md);
  border-radius: var(--radius-md);
  font-size: 0.9rem;
  line-height: 1.5;
}

.chat-message.bot {
  background: var(--background);
  align-self: flex-start;
  border-bottom-left-radius: 4px;
}

.chat-message.user {
  background: var(--primary);
  color: var(--text-white);
  align-self: flex-end;
  border-bottom-right-radius: 4px;
}

.chatbot-input {
  display: flex;
  gap: var(--space-sm);
  padding: var(--space-md) var(--space-lg);
  border-top: 1px solid var(--border);
}

.chatbot-input input {
  flex: 1;
  padding: var(--space-md);
  border: 2px solid var(--border);
  border-radius: var(--radius-full);
  font-family: 'Open Sans', sans-serif;
  font-size: 0.9rem;
  outline: none;
  transition: var(--transition);
}

.chatbot-input input:focus {
  border-color: var(--primary);
}

.chatbot-input button {
  padding: var(--space-md) var(--space-lg);
  background: var(--primary);
  color: var(--text-white);
  border: none;
  border-radius: var(--radius-full);
  cursor: pointer;
  font-weight: 600;
  transition: var(--transition);
}

.chatbot-input button:hover {
  background: var(--primary-light);
}

/* === Floating Chat Button === */
.chat-fab {
  position: fixed;
  bottom: 24px;
  right: 24px;
  width: 60px;
  height: 60px;
  border-radius: 50%;
  background: var(--primary);
  color: var(--text-white);
  border: none;
  cursor: pointer;
  font-size: 1.5rem;
  box-shadow: 0 4px 20px rgba(10, 61, 42, 0.4);
  z-index: 999;
  transition: var(--transition);
  display: flex;
  align-items: center;
  justify-content: center;
}

.chat-fab:hover {
  transform: scale(1.1);
  box-shadow: 0 6px 30px rgba(10, 61, 42, 0.5);
}

/* === Chatbot Cards (NLP v2) === */
.chatbot-cards-container {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin: 8px 0;
}

.chatbot-fira-card {
  background: var(--background-white);
  border: 1px solid var(--border);
  border-radius: var(--radius-md);
  padding: 10px 12px;
  cursor: pointer;
  transition: var(--transition);
}

.chatbot-fira-card:hover {
  border-color: var(--primary);
  box-shadow: 0 2px 8px var(--shadow);
  transform: translateX(4px);
}

.chatbot-fira-card-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 4px;
}

.chatbot-fira-card-icon {
  font-size: 1.1rem;
}

.chatbot-fira-card-name {
  font-weight: 600;
  color: var(--primary);
  font-size: 0.9rem;
}

.chatbot-fira-card-details {
  display: flex;
  gap: 12px;
  font-size: 0.8rem;
  color: var(--text-light);
  margin-bottom: 4px;
}

.chatbot-fira-card-tags {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
}

.chatbot-fira-tag {
  background: var(--background);
  color: var(--primary);
  font-size: 0.7rem;
  padding: 1px 7px;
  border-radius: 10px;
  border: 1px solid var(--border);
}

.chatbot-suggestion {
  font-size: 0.8rem;
  color: var(--text-light);
  padding: 8px 12px;
  background: rgba(249, 199, 79, 0.1);
  border-radius: var(--radius-sm);
  margin: 4px 0;
  border-left: 3px solid var(--secondary);
}

.chatbot-suggestion a {
  color: var(--primary);
  text-decoration: underline;
  cursor: pointer;
}

.chatbot-reset-hint {
  font-size: 0.75rem;
  color: var(--text-light);
  text-align: center;
  padding: 6px;
  cursor: pointer;
  margin-top: 4px;
  opacity: 0.7;
  transition: var(--transition);
}

.chatbot-reset-hint:hover {
  opacity: 1;
  color: var(--primary);
}

/* === Page: Fira Detail === */
.fira-detail {
  padding-top: 100px;
  padding-bottom: var(--space-3xl);
}

.fira-detail-hero {
  position: relative;
  height: 400px;
  border-radius: var(--radius-lg);
  overflow: hidden;
  margin-bottom: var(--space-2xl);
}

.fira-detail-hero img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.fira-detail-hero .hero-overlay {
  position: absolute;
  bottom: 0;
  left: 0;
  right: 0;
  padding: var(--space-2xl);
  background: linear-gradient(to top, rgba(0,0,0,0.8), transparent);
  color: var(--text-white);
}

.fira-detail-hero h1 {
  font-size: 2.5rem;
  margin-bottom: var(--space-sm);
}

.fira-detail-hero .location {
  font-size: 1.1rem;
  opacity: 0.9;
}

.fira-detail-content {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: var(--space-2xl);
}

.fira-detail-main h2 {
  color: var(--primary);
  font-size: 1.5rem;
  margin-bottom: var(--space-md);
}

.fira-detail-main p {
  color: var(--text);
  line-height: 1.8;
  margin-bottom: var(--space-lg);
}

.fira-detail-sidebar {
  background: transparent;
  border-radius: var(--radius-md);
  padding: var(--space-xl);
  border: 1px solid var(--border);
  box-shadow: 0 4px 20px var(--shadow);
  height: fit-content;
}

.sidebar-info {
  margin-bottom: var(--space-lg);
  padding-bottom: var(--space-lg);
  border-bottom: 1px solid var(--border);
}

.sidebar-info:last-child {
  border-bottom: none;
  margin-bottom: 0;
  padding-bottom: 0;
}

.sidebar-info h4 {
  color: var(--primary);
  font-size: 0.85rem;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: var(--space-xs);
}

.sidebar-info p {
  color: var(--text);
  font-size: 1rem;
  margin: 0;
}

/* === Responsive === */
@media (max-width: 768px) {
  .hero h1 {
    font-size: 2.2rem;
  }
  
  .hero p {
    font-size: 1rem;
  }
  
  .search-bar {
    padding: var(--space-md) var(--space-lg);
    padding-left: 45px;
    font-size: 0.95rem;
  }
  
  .search-btn {
    padding: var(--space-xs) var(--space-md);
    font-size: 0.8rem;
  }
  
  .firas-grid {
    grid-template-columns: 1fr;
  }
  
  .submit-content {
    grid-template-columns: 1fr;
  }
  
  .footer-grid {
    grid-template-columns: 1fr 1fr;
  }
  
  .fira-detail-content {
    grid-template-columns: 1fr;
  }
  
  .nav {
    display: none;
  }
  
  .calendar-container {
    padding: var(--space-md);
  }
  
  .calendar-day {
    font-size: 0.75rem;
  }
  
  .section-title {
    font-size: 1.6rem;
  }

  /* Language selector — mobile fix */
  .lang-selector {
    margin-left: auto;
  }

  .lang-selector .lang-current {
    padding: 0.4rem 0.8rem;
    font-size: 0.8rem;
  }

  .lang-selector .lang-current .lang-name-label {
    display: none; /* Hide text label on mobile, show only flag + arrow */
  }

  .lang-selector .lang-dropdown {
    right: 0;
    left: auto;
    min-width: 160px;
    max-height: 0;
  }

  .lang-selector.open .lang-dropdown {
    max-height: 280px;
  }

  .lang-selector .lang-option {
    padding: 0.6rem 0.8rem;
    font-size: 0.82rem;
  }

  .lang-selector .flag-icon,
  .lang-selector .flag-icon-svg {
    width: 20px;
    height: 14px;
  }
}

@media (max-width: 480px) {
  .hero h1 {
    font-size: 1.8rem;
  }
  
  .footer-grid {
    grid-template-columns: 1fr;
  }
  
  .footer-bottom {
    flex-direction: column;
    gap: var(--space-md);
    text-align: center;
  }
  
  .categories {
    gap: var(--space-xs);
  }
  
  .category-pill {
    font-size: 0.75rem;
    padding: 4px 10px;
  }
}

/* === Animations === */
@keyframes fadeInUp {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.animate-in {
  animation: fadeInUp 0.6s ease forwards;
}

.animate-delay-1 { animation-delay: 0.1s; }
.animate-delay-2 { animation-delay: 0.2s; }
.animate-delay-3 { animation-delay: 0.3s; }
.animate-delay-4 { animation-delay: 0.4s; }

/* ============================================
   CALENDAR v2 — Stay Filter UI
   ============================================ */
.calendar-stay-filter {
  background: rgba(0, 0, 0, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: var(--radius-lg, 12px);
  padding: 1rem 1.25rem;
  margin: 0 auto 1.5rem auto;
  max-width: 820px;
  text-align: left;
}
.stay-filter-title {
  margin: 0 0 0.25rem 0;
  font-size: 1.05rem;
  color: var(--secondary);
  font-weight: 700;
  letter-spacing: 0.01em;
}
.stay-filter-desc {
  margin: 0 0 0.9rem 0;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.7);
  line-height: 1.45;
}
.stay-filter-form {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  align-items: flex-end;
}
.stay-filter-form label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  flex: 1 1 160px;
  font-size: 0.85rem;
  color: rgba(255, 255, 255, 0.85);
}
.stay-filter-form input[type="date"] {
  width: 100%;
  background: rgba(0, 0, 0, 0.35);
  border: 1px solid rgba(255, 255, 255, 0.15);
  border-radius: var(--radius-sm, 8px);
  color: #fff;
  padding: 0.55rem 0.65rem;
  font-size: 0.95rem;
  color-scheme: dark;
  font-family: inherit;
  transition: border-color 0.2s, background 0.2s;
}
.stay-filter-form input[type="date"]:focus {
  outline: none;
  border-color: var(--secondary);
  background: rgba(0, 0, 0, 0.5);
}
.stay-filter-form button {
  flex: 0 0 auto;
  padding: 0.55rem 1.1rem;
  border-radius: var(--radius-md, 10px);
  font-size: 0.92rem;
  font-weight: 600;
  cursor: pointer;
  border: none;
  transition: var(--transition, all 0.18s ease);
}
.stay-filter-form .btn-primary {
  background: var(--secondary);
  color: var(--primary-dark);
}
.stay-filter-form .btn-primary:hover {
  filter: brightness(1.08);
  transform: translateY(-1px);
}
.stay-filter-form .btn-ghost {
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(255, 255, 255, 0.15);
}
.stay-filter-form .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}
.stay-filter-status {
  margin-top: 0.85rem;
  padding: 0.6rem 0.8rem;
  background: rgba(249, 199, 79, 0.08);
  border: 1px solid rgba(249, 199, 79, 0.25);
  border-radius: var(--radius-sm, 8px);
  color: rgba(255, 255, 255, 0.95);
  font-size: 0.88rem;
  line-height: 1.45;
}
.stay-filter-status strong {
  color: var(--secondary);
  font-weight: 700;
}

/* Calendar day states for stay filter */
.calendar-day.in-stay {
  background: rgba(249, 199, 79, 0.06);
}
.calendar-day.out-of-stay {
  opacity: 0.32;
  background: transparent;
}
.calendar-day.out-of-stay.has-event {
  opacity: 0.5;
}

/* ============================================
   CHATBOT v3 — Suggestion chips and card tags
   ============================================ */
.chatbot-suggestion-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.6rem;
}
.chatbot-chip {
  background: rgba(46, 139, 87, 0.18);
  color: #fff;
  border: 1px solid rgba(46, 139, 87, 0.45);
  padding: 0.35rem 0.7rem;
  border-radius: 999px;
  font-size: 0.85rem;
  cursor: pointer;
  transition: background 0.18s, transform 0.18s;
  font-family: inherit;
}
.chatbot-chip:hover {
  background: rgba(46, 139, 87, 0.32);
  transform: translateY(-1px);
}
.chatbot-fira-card-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  margin-top: 0.4rem;
}
.chatbot-fira-tag {
  display: inline-block;
  background: rgba(10, 61, 42, 0.45);
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.7rem;
  padding: 0.18rem 0.5rem;
  border-radius: 999px;
  border: 1px solid rgba(249, 199, 79, 0.22);
}

/* Mobile tweaks for stay filter */
@media (max-width: 600px) {
  .stay-filter-form label { flex-basis: 100%; }
  .stay-filter-form button { flex: 1 1 100px; }
}
