/* VietHome - Main Styles */

* {
  -webkit-tap-highlight-color: transparent;
}

html, body {
  height: 100%;
  margin: 0;
  padding: 0;
}

body {
  font-family: 'Inter', sans-serif;
  overscroll-behavior: none;
  display: flex;
  flex-direction: column;
}

/* Scam Property Styles */
.scam-property {
  position: relative;
}

.scam-property::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  border: 3px solid #dc2626;
  pointer-events: none;
  z-index: 10;
}

.scam-property .property-image {
  filter: grayscale(100%) opacity(0.5);
}

/* Desktop filters sidebar — show on md+, hide on mobile (bypasses Tailwind CDN ordering issues) */
#desktop-filters-sidebar {
  display: none;
}
@media (min-width: 768px) {
  #desktop-filters-sidebar {
    display: flex !important;
    flex-direction: column;
  }
}

/* Filter Toggle Buttons */
#favorites-filter-toggle-desktop.active,
#mobile-favorites-filter-toggle.active,
#favorites-filter-toggle.active {
  background-color: rgb(254 226 226) !important;
  border-color: rgb(239 68 68) !important;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.2);
}

#verified-filter-toggle-desktop.active,
#mobile-verified-filter-toggle.active,
#verified-filter-toggle.active {
  background-color: rgb(255 237 213) !important;
  border-color: rgb(249 115 22) !important;
  box-shadow: 0 0 0 2px rgba(249, 115, 22, 0.2);
}

#owner-filter-toggle-desktop.active,
#mobile-owner-filter-toggle.active,
#owner-filter-toggle.active {
  background-color: rgb(209 250 229) !important;
  border-color: rgb(16 185 129) !important;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.2);
}

#hide-viewed-filter-toggle-desktop.active,
#hide-viewed-filter-mobile-bar.active,
#mobile-hide-viewed-filter-toggle-1.active,
#mobile-hide-viewed-filter-toggle-2.active {
  background-color: rgb(219 234 254) !important;
  border-color: rgb(59 130 246) !important;
  box-shadow: 0 0 0 2px rgba(59, 130, 246, 0.2);
}

/* Checkmark icon visibility on active quick toggles */
.filter-quick-toggle.active .toggle-check {
  opacity: 1 !important;
}

/* Mobile Compact Bar - Active State Enhancement */
#favorites-filter-toggle.active,
#verified-filter-toggle.active,
#owner-filter-toggle.active,
#hide-viewed-filter-mobile-bar.active {
  transform: scale(1.05);
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

#favorites-filter-toggle.active {
  background-color: rgb(254 226 226) !important;
  border-color: rgb(239 68 68) !important;
  color: rgb(185 28 28) !important;
}

#verified-filter-toggle.active {
  background-color: rgb(255 237 213) !important;
  border-color: rgb(249 115 22) !important;
  color: rgb(154 52 18) !important;
}

#owner-filter-toggle.active {
  background-color: rgb(209 250 229) !important;
  border-color: rgb(16 185 129) !important;
  color: rgb(6 95 70) !important;
}

#hide-viewed-filter-mobile-bar.active {
  background-color: rgb(219 234 254) !important;
  border-color: rgb(59 130 246) !important;
  color: rgb(30 64 175) !important;
}

/* Active filter buttons general */
.filter-btn.active,
.period-btn.active,
.bedroom-btn.active {
  background-color: rgb(37 99 235) !important;
  color: white !important;
  border-color: rgb(37 99 235) !important;
  box-shadow: 0 0 0 2px rgba(37, 99, 235, 0.2);
}

/* Hero Section */
.hero-section {
  position: relative;
}

.hero-bg {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: opacity 0.4s ease-in-out;
}

/* Custom Dropdown Styles */
.custom-dropdown-btn {
  position: relative;
  cursor: pointer;
  user-select: none;
}

.custom-dropdown-btn:hover {
  background-color: #f9fafb;
}

.custom-dropdown-btn.active {
  background-color: #f3f4f6;
}

.custom-dropdown-btn.active .fa-chevron-down {
  transform: rotate(180deg);
}

.custom-dropdown-menu {
  position: absolute;
  top: calc(100% + 8px);
  left: 8px;
  right: 8px;
  z-index: 9999 !important;
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.2), 0 0 0 1px rgba(0, 0, 0, 0.05);
  padding: 0.5rem;
  min-width: 220px;
  animation: dropdownSlideIn 0.2s ease-out;
  border: 1px solid #e5e7eb;
  display: none !important;
}

.custom-dropdown-menu:not(.hidden) {
  display: block !important;
}

@keyframes dropdownSlideIn {
  from {
    opacity: 0;
    transform: translateY(-10px) scale(0.95);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.dropdown-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem 1rem;
  border-radius: 0.5rem;
  cursor: pointer;
  transition: all 0.15s ease;
  color: #374151;
  font-size: 0.9375rem;
  user-select: none;
}

.dropdown-item:hover {
  background-color: #f3f4f6;
  transform: translateX(4px);
}

.dropdown-item:active {
  transform: translateX(4px) scale(0.98);
}

.dropdown-item.selected {
  background-color: #eff6ff;
  color: #2563eb;
  font-weight: 500;
}

.dropdown-item.selected i {
  color: #2563eb;
}

.dropdown-item i {
  width: 1.25rem;
  text-align: center;
  color: #6b7280;
  font-size: 1rem;
  transition: color 0.15s ease;
}

.dropdown-item:hover i {
  color: #2563eb;
}

/* Mobile dropdown menus */
@media (max-width: 768px) {
  .custom-dropdown-menu {
    position: fixed;
    top: auto;
   
    left: 0;
    right: 0;
    margin: 0;
    border-radius: 1rem 1rem 0 0;
    box-shadow: 0 -4px 20px rgba(0, 0, 0, 0.1);
    max-height: 60vh;
    overflow-y: auto;
    z-index: 9999 !important;
  }
  
  .dropdown-item {
    padding: 0.875rem 1rem;
    font-size: 1rem;
  }
}

/* Hero header - transparent */
.hero-header {
  background: transparent;
}

.hero-header.scrolled {
  background: rgba(0, 0, 0, 0.8);
  backdrop-filter: blur(10px);
}

/* Amenities Modal */
#hero-amenities-modal {
  backdrop-filter: blur(4px);
}

#amenities-list label {
  transition: background-color 0.2s ease;
}

#amenities-list label:hover {
  background-color: #f9fafb;
}

.amenity-checkbox {
  accent-color: #2563eb;
}

/* Main Content - Scrollable (Home Page) */
.main-content {
  width: 100%;
  /* Let the page scroll naturally - no overflow constraint */
  position: relative;
  z-index: 1;
}

/* Mobile filters overlay - ensure it's on top */
#mobile-filters-wrapper {
  z-index: 2147483647;
}

#mobile-filters-panel {
  z-index: 2147483647 !important;
}

#mobile-filters-backdrop {
  z-index: 2147483646 !important;
}

/* Hide main content when mobile filters are open */
body.mobile-filters-open header,
body.mobile-filters-open .main-content-wrapper,
body.mobile-filters-open .mobile-nav,
body.mobile-filters-open .properties-layout {
  display: none !important;
}

/* Ensure filters wrapper is visible when open */
body.mobile-filters-open #mobile-filters-wrapper {
  display: block !important;
}

/* Filters Sidebar */
.properties-layout {
  display: flex;
  gap: 2rem;
}

.properties-layout aside {
  width: 18rem;
  flex-shrink: 0;
}

.properties-layout main {
  flex: 1;
  min-width: 0;
}

/* Mobile: Hide filters by default */
@media (max-width: 768px) {
  .properties-layout {
    flex-direction: column;
  }
  
  .properties-layout aside {
    width: 100%;
    order: -1;
  }
}

/* Smooth scrolling for entire page */
html {
  scroll-behavior: smooth;
}

/* Main content wrapper - for map page (flex layout) */
.main-content-wrapper {
  flex: 1;
  display: flex;
  overflow: hidden;
  min-height: 0;
}

/* Horizontal Scroll Snap */
.snap-x {
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.snap-start {
  scroll-snap-align: start;
}

/* Line Clamp Utility */
.line-clamp-1 {
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

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

/* Hide scrollbar for horizontal scroll */
#recently-posted::-webkit-scrollbar {
  height: 6px;
}

#recently-posted::-webkit-scrollbar-track {
  background: #f1f1f1;
  border-radius: 10px;
}

#recently-posted::-webkit-scrollbar-thumb {
  background: #888;
  border-radius: 10px;
}

#recently-posted::-webkit-scrollbar-thumb:hover {
  background: #555;
}

/* Back to Top Button */
#back-to-top {
  transition: all 0.3s ease;
}

#back-to-top:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(37, 99, 235, 0.4);
}

/* Improved loading states */
.loading-skeleton {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: loading 1.5s infinite;
}

@keyframes loading {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

/* Smooth transitions for all interactive elements */
button, a {
  transition: all 0.2s ease;
}

/* Improved card hover effects */
.property-card, #recently-posted > div {
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.property-card:hover, #recently-posted > div:hover {
  transform: translateY(-4px);
}

/* Map container */
#map {
  height: 100%;
  width: 100%;
  position: absolute;
  top: 0;
  left: 0;
}

#map-container {
  height: 100%;
  width: 100%;
  flex: 1;
}

/* Header */
header {
  position: sticky;
  top: 0;
  z-index: 100;
  flex-shrink: 0;
  height: fit-content;
}

/* Logo styles */
#site-logo {
  display: block;
  max-height: 40px;
  width: auto;
}

.logo-fallback,
.logo-text {
  display: none;
}

#site-logo:not([src]) + .logo-fallback,
#site-logo:not([src]) ~ .logo-text {
  display: block;
}

/* When image fails to load, hide it and show fallback */
img[src=""]:has(#site-logo),
#site-logo[src=""],
#site-logo[src*="undefined"] {
  display: none;
}

/* Mobile nav */
.mobile-nav {
  flex-shrink: 0;
}

/* Filters component */
#filters-component {
  display: flex;
  flex-direction: column;
  height: 100%;
  min-height: 0;
}

/* User location marker animation */
@keyframes pulse-blue {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.2);
    opacity: 0.8;
  }
}

.user-location-marker {
  animation: pulse-blue 2s infinite;
}

/* Spin animation for loading state */
@keyframes spin {
  from { transform: rotate(0deg); }
  to { transform: rotate(360deg); }
}

.animate-spin {
  animation: spin 1s linear infinite;
}

/* Custom Scrollbar */
::-webkit-scrollbar { width: 6px; }
::-webkit-scrollbar-track { background: #f1f1f1; }
::-webkit-scrollbar-thumb { background: #cbd5e1; border-radius: 3px; }
::-webkit-scrollbar-thumb:hover { background: #94a3b8; }

/* Property Card */
.property-card {
  transition: all 0.3s ease;
}

.property-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1), 0 8px 10px -6px rgba(0, 0, 0, 0.1);
}

.property-card.active {
  border: 2px solid #3b82f6;
}

.property-card.hovered {
  border: 2px solid #60a5fa;
  background: #eff6ff;
}

/* ═══════════════════════════════════════
   Promo Cards Styles
═══════════════════════════════════════ */
.promo-card {
  position: relative;
  overflow: visible;
}

/* Boost — warm orange glow (search_highlight + hot_badge) */
.promo-card.promo-boost {
  border: 2px solid transparent;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, #f97316, #fb923c, #fbbf24) border-box;
  box-shadow: 0 0 14px rgba(249, 115, 22, 0.25);
}
.promo-card.promo-boost:hover {
  box-shadow: 0 0 22px rgba(249, 115, 22, 0.45);
}

/* TOP-3 — gold glow */
.promo-card.promo-top {
  border: 2px solid transparent;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, #fbbf24, #f59e0b, #fbbf24) border-box;
  box-shadow: 0 0 20px rgba(251, 191, 36, 0.35);
}
.promo-card.promo-top:hover {
  box-shadow: 0 0 32px rgba(251, 191, 36, 0.55);
}

/* VIP — purple/pink pulse */
.promo-card.promo-vip {
  border: 2px solid transparent;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, #a855f7, #ec4899, #a855f7) border-box;
  box-shadow: 0 0 25px rgba(168, 85, 247, 0.4);
  animation: vipPulse 2.5s ease-in-out infinite;
}

/* Legacy alias */
.promo-card.promo-featured {
  border: 2px solid transparent;
  background: linear-gradient(white, white) padding-box,
              linear-gradient(135deg, #f97316, #fb923c, #fbbf24) border-box;
  box-shadow: 0 0 14px rgba(249, 115, 22, 0.25);
}

@keyframes vipPulse {
  0%, 100% { box-shadow: 0 0 25px rgba(168, 85, 247, 0.4); }
  50%       { box-shadow: 0 0 48px rgba(236, 72, 153, 0.65); }
}

@keyframes promoPulse {
  0%, 100% { opacity: 1; }
  50%       { opacity: 0.82; }
}

/* Image inner border overlay */
.promo-image-border::after {
  content: '';
  position: absolute;
  inset: 0;
  border: 3px solid transparent;
  border-radius: 0.75rem;
  background: linear-gradient(135deg, var(--promo-color-1), var(--promo-color-2)) border-box;
  -webkit-mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  mask: linear-gradient(#fff 0 0) padding-box, linear-gradient(#fff 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}

.promo-image-border.promo-boost,
.promo-image-border.promo-featured {
  --promo-color-1: #f97316;
  --promo-color-2: #fbbf24;
}
.promo-image-border.promo-top {
  --promo-color-1: #fbbf24;
  --promo-color-2: #f59e0b;
}
.promo-image-border.promo-vip {
  --promo-color-1: #a855f7;
  --promo-color-2: #ec4899;
}

/* Zoom on hover */
.promo-image-scale { transition: transform 0.5s ease; }
.promo-card:hover .promo-image-scale { transform: scale(1.15); }

/* Filter Button */
.filter-btn {
  transition: all 0.2s;
}

.filter-btn.active {
  background-color: #3b82f6;
  color: white;
  border-color: #3b82f6;
}

/* Mobile Optimizations */
@media (max-width: 768px) {
  #header-component {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 100;
  }
  .main-content-wrapper {
    padding-top: 56px !important;
  }
  #map-container {
    display: block;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 56px);
    z-index: 50;
  }
  #map-container.show {
    display: block;
  }
  #list-container {
    display: none !important;
    flex-direction: column !important;
    overflow: hidden !important;
    background-color: #f9fafb !important;
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: calc(100% - 56px);
    z-index: 60;
  }
  #list-container.show {
    display: flex !important;
  }
  .desktop-only {
    display: none !important;
  }
  .modal-content {
    width: 100% !important;
    max-width: 100% !important;
  }
  .modal-gallery {
    height: 200px !important;
  }
  /* Show map controls on mobile */
  .map-controls {
    display: flex !important;
  }
}

@media (min-width: 769px) {
  .mobile-only {
    display: none !important;
  }
  /* Always show map controls on desktop */
  .map-controls {
    display: flex !important;
  }
}

@media (min-width: 769px) {
  /* Desktop List Container States */
  #list-container {
    transition: transform 0.3s ease, width 0.3s ease;
    display: flex !important;
    flex-direction: column !important;
    height: 100% !important;
    max-height: 100%;
    min-height: 0;
    width: 500px;
    background-color: white;
    border-right: 1px solid #e5e7eb;
    z-index: 10;
    box-shadow: none !important;
    position: static !important;
    top: auto !important;
    bottom: auto !important;
  }
}

@media (min-width: 1024px) {
  #list-container {
    width: 600px;
  }
}

/* Desktop: Left sidebar with filters */
@media (min-width: 768px) {
  #list-container .filters-wrapper {
    flex-direction: row !important;
  }
  
  /* Left sidebar (quick filters + buttons) */
  #list-container .filters-wrapper > div:first-child {
    width: 280px !important;
    flex-shrink: 0 !important;
  }
  
  /* Right panel (main content) */
  #list-container .filters-wrapper > div:last-child {
    flex: 1 !important;
    min-width: 0 !important;
  }
}

.filters-sticky {
  flex-shrink: 0 !important;
}

#list-container .filters-sticky {
  flex-shrink: 0;
}

#property-list-container {
  flex: 1 1 auto !important;
  min-height: 0;
  height: 100%;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  -webkit-overflow-scrolling: touch;
  background-color: #f9fafb !important;
  display: flex !important;
  flex-direction: column !important;
}

#list-container.fullscreen {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100% !important;
  z-index: 100;
  display: flex !important;
}

#list-container.fullscreen .filters-wrapper {
  display: flex !important;
  flex-direction: row !important;
  height: 100% !important;
}

#list-container.fullscreen .filters-sticky {
  position: relative;
  width: 280px;
  max-width: 280px;
  min-width: 280px;
  background: white;
  border-right: 1px solid #e5e7eb;
  z-index: 20;
  overflow-y: auto;
  flex-shrink: 0;
}

#list-container.fullscreen .filters-sticky.hidden {
  transform: translateX(-100%);
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
}

#list-container.fullscreen #property-list-container {
  flex: 1 !important;
  width: calc(100% - 280px) !important;
}

/* Both mode - filters visible on desktop */
#list-container.both-mode .filters-wrapper {
  display: flex !important;
  flex-direction: row !important;
  height: 100% !important;
}

#list-container.both-mode .filters-sticky {
  position: relative;
  width: 50%;
  max-width: 250px;
  min-width: 220px;
  background: white;
  border-right: 1px solid #e5e7eb;
  z-index: 20;
  overflow-y: auto;
  flex-shrink: 0;
  border-bottom: none !important;
}

@media (min-width: 1024px) {
  #list-container.both-mode .filters-sticky {
    max-width: 280px;
    min-width: 250px;
  }
}

/* Mobile: Hide filters panel and show toggle button */
@media (max-width: 767px) {
  #list-container.both-mode .filters-wrapper,
  #list-container.fullscreen .filters-wrapper {
    flex-direction: column !important;
  }
  
  #list-container.both-mode .filters-sticky,
  #list-container.fullscreen .filters-sticky {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    border-right: none !important;
    border-bottom: 1px solid #e5e7eb !important;
  }
  
  /* Show toggle button on mobile */
  #list-container.both-mode #advanced-filters-toggle,
  #list-container.fullscreen #advanced-filters-toggle {
    display: flex !important;
  }
  
  /* Hide filters panel by default on mobile */
  #list-container.both-mode #advanced-filters-panel,
  #list-container.fullscreen #advanced-filters-panel {
    display: none !important;
  }
  
  /* Show when toggled */
  #list-container.both-mode #advanced-filters-panel:not(.hidden),
  #list-container.fullscreen #advanced-filters-panel:not(.hidden) {
    display: block !important;
  }
}

/* Mobile Filters Panel Styling - ALL controlled by JS inline styles */
@media (max-width: 767px) {
  #mobile-filters-panel .px-4 {
    padding: 1rem !important;
  }
  
  /* Better spacing for filter sections */
  #mobile-filters-panel > div > div:not(:last-child) {
    margin-bottom: 0.5rem;
  }
  
  /* Quick filter buttons - better mobile layout */
  #mobile-filters-panel .filter-quick-toggle {
    width: 100%;
    justify-content: flex-start;
    padding: 0.75rem 1rem;
    border-width: 2px;
  }
  
  /* Period buttons */
  #mobile-filters-panel .period-btn {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    border-radius: 0.75rem;
  }
  
  /* Property type buttons */
  #mobile-filters-panel .filter-btn {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    border-radius: 0.75rem;
  }
  
  /* Bedroom buttons */
  #mobile-filters-panel .bedroom-btn {
    padding: 0.625rem 1rem;
    font-size: 0.875rem;
    border-radius: 0.75rem;
  }
  
  /* Price inputs */
  #mobile-filters-panel input[type="number"] {
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.75rem;
  }
  
  /* City select */
  #mobile-filters-panel select {
    padding: 0.625rem 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.75rem;
  }
  
  /* Amenities search */
  #mobile-filters-panel #mobile-amenities-search-input {
    padding: 0.625rem 0.75rem 0.625rem 2.5rem;
    font-size: 0.875rem;
    border-radius: 0.75rem;
  }
  
  /* Amenities container */
  #mobile-filters-panel #mobile-amenities-filter-container {
    max-height: 8rem;
    border: 1px solid #e5e7eb;
    border-radius: 0.75rem;
    padding: 0.5rem;
  }
  
  /* Reset button */
  #mobile-filters-panel button[onclick="resetFilters()"] {
    padding: 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.75rem;
  }
  
  /* Apply button */
  #mobile-filters-panel #apply-filters-btn {
    padding: 0.75rem;
    font-size: 0.875rem;
    border-radius: 0.75rem;
  }
}

/* Desktop: Hide filters toggle button in both mode */
@media (min-width: 768px) {
  #list-container.both-mode #advanced-filters-toggle {
    display: none !important;
  }

  /* Always show filters panel in both mode - override hidden class */
  #list-container.both-mode #advanced-filters-panel,
  #list-container.both-mode #advanced-filters-panel.hidden {
    display: block !important;
  }
}

#list-container.both-mode #property-list-container {
  flex: 1 !important;
}

#list-container.fullscreen #property-list-container {
  flex: 1 !important;
  width: calc(100% - 50%);
}

#list-container.hidden-desktop {
  transform: translateX(-100%);
  position: fixed;
  top: 56px;
  left: 0;
  bottom: 0;
  z-index: 100;
}

#map-container.map-fullscreen {
  position: fixed;
  top: 56px;
  left: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  z-index: 50;
}

/* Property List Container - handles scrolling (duplicate removed) */

/* Property List Grid Layout */
#property-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 0.75rem;
  padding: 0.75rem;
  margin: 0;
  width: 100%;
  flex: 0 0 auto;
}

/* List Only Mode - Full Width Grid */
.main-content-wrapper.list-only-mode #list-container {
  width: 100% !important;
  max-width: 100%;
  flex: 0 0 100%;
}

.main-content-wrapper.list-only-mode #property-list {
  grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
  gap: 1rem;
  padding: 1rem;
}

.main-content-wrapper.list-only-mode .property-card {
  height: 360px;
}

.main-content-wrapper.list-only-mode .property-card .property-image {
  height: 200px !important;
}

/* Map Only Mode - Filters visible, list hidden */
.main-content-wrapper.map-only-mode #list-container {
  width: 320px !important;
  max-width: 320px;
  flex: 0 0 320px;
}

.main-content-wrapper.map-only-mode #property-list-container {
  display: none !important;
}

.main-content-wrapper.map-only-mode .filters-wrapper {
  display: block !important;
  padding: 0.75rem;
}

/* Property Card - Fixed Size */
.property-card {
  width: 100%;
  height: 340px;
  display: flex;
  flex-direction: column;
  background: white;
  border-radius: 0.75rem;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  cursor: pointer;
  transition: box-shadow 0.2s;
}

.property-card:hover {
  box-shadow: 0 10px 25px -5px rgba(0, 0, 0, 0.1);
}

.property-card .property-image {
  width: 100%;
  height: 180px !important;
  object-fit: cover;
  flex-shrink: 0;
}

.property-card .p-3,
.property-card .p-4 {
  padding: 0.75rem;
  flex-grow: 1;
  display: flex;
  flex-direction: column;
}

@media (max-width: 640px) {
  #property-list {
    grid-template-columns: 1fr;
    flex: 0 0 auto;
  }
}

@media (min-width: 768px) {
  #property-list {
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1rem;
  }

  .property-card {
    height: 360px;
  }

  .property-card .property-image {
    height: 200px !important;
  }
}

/* Desktop List Mode - 4 cards per row, fill remaining width */
@media (min-width: 769px) {
  #list-container.fullscreen #property-list {
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    gap: 0.75rem;
    padding: 1rem;
  }

  #list-container.fullscreen .property-card {
    height: 320px;
  }

  #list-container.fullscreen .property-card .property-image {
    height: 170px !important;
  }
}

/* Desktop List Mode - Full width container */
@media (min-width: 769px) {
  #list-container.fullscreen {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* Desktop Toggle Buttons */
.desktop-toggle-btn {
  display: none;
}

.desktop-back-both {
  display: none;
}

@media (min-width: 769px) {
  .desktop-toggle-btn {
    display: flex;
  }

  .desktop-toggle-btn.active {
    background-color: #eff6ff;
    border-color: #3b82f6;
    color: #1d4ed8;
  }

  .desktop-toggle-btn.active i {
    color: #2563eb;
  }
  
  .desktop-toggle-btn:hover {
    background-color: #f9fafb;
  }
  
  .desktop-toggle-btn.active:hover {
    background-color: #dbeafe;
  }
}

/* Badges */
.badge { 
  display: inline-flex; 
  align-items: center; 
  gap: 4px; 
  padding: 2px 8px; 
  border-radius: 4px; 
  font-size: 10px; 
  font-weight: 600; 
  white-space: nowrap; 
}

.badge-wifi { background: #dbeafe; color: #1d4ed8; }
.badge-pool { background: #cffafe; color: #0e7490; }
.badge-gym { background: #fce7f3; color: #be185d; }
.badge-parking { background: #fef3c7; color: #b45309; }
.badge-ac { background: #e0e7ff; color: #4338ca; }
.badge-kitchen { background: #fef9c3; color: #854d0e; }
.badge-elevator { background: #e0e7ff; color: #3730a3; }
.badge-washing { background: #f3e8ff; color: #7e22ce; }
.badge-balcony { background: #dcfce7; color: #15803d; }
.badge-cleaning { background: #fef3c7; color: #a16207; }
.badge-furnished { background: #fed7aa; color: #c2410c; }
.badge-security { background: #fee2e2; color: #b91c1c; }

/* Verified Realtor Badge - Orange Shield */
.verified-realtor {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
  box-shadow: 0 2px 8px rgba(249, 115, 22, 0.4);
  animation: verifiedPulse 2s ease-in-out infinite;
}

@keyframes verifiedPulse {
  0%, 100% {
    box-shadow: 0 2px 8px rgba(249, 115, 22, 0.4);
  }
  50% {
    box-shadow: 0 2px 12px rgba(249, 115, 22, 0.6);
  }
}

/* Modal Styles */
.modal-overlay { 
  background: rgba(0, 0, 0, 0.6); 
  backdrop-filter: blur(4px); 
}

.modal-content { 
  animation: modalSlideIn 0.3s ease-out; 
}

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

@media (max-width: 768px) {
  @keyframes modalSlideIn {
    from { opacity: 0; transform: translateX(100%); }
    to { opacity: 1; transform: translateX(0); }
  }
}

/* Map Controls */
.map-control-btn {
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  padding: 4px 6px;
  cursor: pointer;
  transition: all 0.2s;
  font-size: 11px;
  font-weight: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  min-width: 28px;
  min-height: 28px;
  width: 28px;
}

/* Prevent location button from spinning */
#location-btn.animate-spin {
  animation: none !important;
}

.map-control-btn:hover {
  background: #f9fafb;
}

.map-control-btn.active {
  background: #3b82f6;
  color: white;
  border-color: #3b82f6;
}

/* Hide map controls when map is not visible - controlled by JS */
.map-controls.hidden {
  display: none !important;
}

/* Leaflet Draw Customization */
.leaflet-draw-toolbar a { background-color: #3b82f6 !important; }
.leaflet-draw-toolbar a:hover { background-color: #2563eb !important; }

/* Language Selector */
.lang-selector { position: relative; }
.currency-selector { position: relative; }

.lang-dropdown,
.currency-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  background: white;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
  min-width: 160px;
  z-index: 9999;
  overflow: hidden;
}

.lang-dropdown.show,
.currency-dropdown.show { display: block; }

.lang-option,
.currency-option {
  padding: 10px 16px;
  cursor: pointer;
  transition: background 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-option:hover,
.currency-option:hover { background: #f3f4f6; }
.lang-option.active,
.currency-option.active { background: #eff6ff; color: #3b82f6; }

/* Bottom Navigation for Mobile */
.mobile-nav { display: none; }

@media (max-width: 768px) {
  .mobile-nav {
    display: flex;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: rgba(255, 255, 255, 0.96);
    backdrop-filter: blur(16px);
    -webkit-backdrop-filter: blur(16px);
    border-top: 1px solid rgba(226, 232, 240, 0.9);
    padding: 4px 8px;
    padding-bottom: calc(4px + env(safe-area-inset-bottom));
    z-index: 100;
    justify-content: space-around;
    box-shadow: 0 -1px 0 rgba(0,0,0,0.05), 0 -6px 20px rgba(0,0,0,0.06);
  }

  .mobile-nav-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 2px;
    padding: 4px 4px 3px;
    color: #94a3b8;
    font-size: 10px;
    font-weight: 500;
    letter-spacing: 0.01em;
    transition: color 0.15s ease;
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
    min-width: 52px;
    user-select: none;
  }

  .mobile-nav-item:active {
    transform: scale(0.88);
    transition: transform 0.07s ease;
  }

  .mobile-nav-item .mobile-nav-icon {
    width: 44px;
    height: 28px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 14px;
    transition: background 0.2s ease, transform 0.15s ease;
    margin-bottom: 1px;
  }

  .mobile-nav-item.active { color: #2563eb; }

  .mobile-nav-item.active .mobile-nav-icon {
    background: #dbeafe;
    transform: scale(1.06);
  }

  .mobile-nav-item i {
    font-size: 18px;
  }

  .main-content-wrapper { padding-bottom: 60px !important; }
}

/* Profile Page - Desktop side panel */
@media (min-width: 769px) {
  .profile-page.desktop-fullscreen {
    top: 0 !important;
    bottom: 0 !important;
    right: 0;
    left: auto;
    width: 420px !important;
    height: 100% !important;
    z-index: 2000;
    position: fixed;
    box-shadow: -8px 0 40px rgba(0,0,0,0.18);
    border-left: 1px solid rgba(0,0,0,0.07);
    animation: slideInRight 0.22s ease-out;
  }
}

@keyframes slideInRight {
  from { transform: translateX(60px); opacity: 0; }
  to   { transform: translateX(0);    opacity: 1; }
}

/* Backdrop for profile/settings on desktop */
#profile-backdrop, #settings-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 1999;
  animation: backdropFade 0.2s ease-out;
}
@keyframes backdropFade {
  from { opacity: 0; }
  to   { opacity: 1; }
}

/* Settings Page - Desktop Fullscreen */
@media (min-width: 769px) {
  .settings-page.desktop-fullscreen {
    top: 0 !important;
    left: 0;
    right: 0;
    bottom: 0;
    width: 100%;
    height: 100%;
    z-index: 2000;
    position: fixed;
  }
  
  .settings-page.desktop-fullscreen .settings-content-wrapper {
    max-width: 500px;
    margin: 0 auto;
    width: 100%;
  }
}

/* Hide map controls when profile or settings is open on desktop */
@media (min-width: 769px) {
  .profile-page.desktop-fullscreen ~ #map-container .map-controls,
  .settings-page.desktop-fullscreen ~ #map-container .map-controls,
  body.profile-open .map-controls,
  body.settings-open .map-controls {
    display: none !important;
  }
}

/* Telegram user styles - hide logout button and user menu in header */
body.telegram-user .telegram-user-hidden,
body.telegram-user #desktop-user-menu {
  display: none !important;
}

/* Mobile header - hide user menu */
@media (max-width: 768px) {
  #desktop-user-menu,
  .desktop-user-menu {
    display: none !important;
  }
}

/* Toast Animation */
.toast-enter { transform: translate(-50%, 100%); opacity: 0; }
.toast-enter-active { transform: translate(-50%, 0); opacity: 1; transition: all 0.3s ease; }
.toast-exit { transform: translate(-50%, 0); opacity: 1; }
.toast-exit-active { transform: translate(-50%, 100%); opacity: 0; transition: all 0.3s ease; }

/* ══════════════════════════════════════════
   MOBILE UX IMPROVEMENTS
══════════════════════════════════════════ */

/* Remove tap highlight and 300ms delay on all interactive elements */
button, a, [onclick], select, input, textarea {
  -webkit-tap-highlight-color: transparent;
  touch-action: manipulation;
}

@media (max-width: 768px) {
  /* Touch feedback for filter & period buttons */
  .filter-btn:active,
  .period-btn:active,
  .filter-quick-toggle:active {
    transform: scale(0.93);
    opacity: 0.72;
    transition: transform 0.07s ease, opacity 0.07s ease;
  }

  /* Property card touch press */
  .property-card:active {
    transform: scale(0.985);
    box-shadow: 0 1px 4px rgba(0,0,0,0.08) !important;
    transition: transform 0.08s ease, box-shadow 0.08s ease;
  }

  /* Hide desktop filter sidebar on mobile — use mobile compact bar + overlay instead */
  #desktop-filters-sidebar {
    display: none !important;
  }

  /* Taller modal gallery for better photo viewing */
  .modal-gallery {
    height: 260px !important;
  }

  /* Reduce top section padding on mobile */
  .main-content > section:first-child {
    padding-top: 1rem;
  }

  /* Favorite button: larger touch target */
  .property-card [onclick*="toggleFavorite"] {
    width: 2.25rem;
    height: 2.25rem;
  }
}

/* Image dots indicator (swipeable gallery on cards) */
.card-image-dots {
  position: absolute;
  bottom: 9px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 4px;
  z-index: 11;
  pointer-events: none;
}

.card-image-dots .dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.5);
  transition: all 0.22s ease;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.35);
}

.card-image-dots .dot.active {
  background: #fff;
  width: 16px;
  border-radius: 3px;
}

/* Horizontally scrollable filter chips row */
.mobile-filters-scroll {
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: none;
  -ms-overflow-style: none;
}
.mobile-filters-scroll::-webkit-scrollbar { display: none; }

/* Safe Area for iPhone */
@supports (padding-bottom: env(safe-area-inset-bottom)) {
  .mobile-nav { padding-bottom: env(safe-area-inset-bottom); }
}

/* Image Gallery Swipe */
.gallery-container {
  scroll-snap-type: x mandatory;
  -webkit-overflow-scrolling: touch;
}

.gallery-item { scroll-snap-align: center; }

/* Video Container */
.video-container {
  position: relative;
  padding-bottom: 56.25%;
  height: 0;
  overflow: hidden;
}

.video-container iframe,
.video-container video {
  position: absolute;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
}

/* Gallery Navigation */
.gallery-nav {
  position: absolute;
  bottom: 12px;
  left: 50%;
  transform: translateX(-50%);
  display: flex;
  gap: 6px;
  z-index: 10;
}

.gallery-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: rgba(255,255,255,0.5);
  transition: all 0.2s;
}

.gallery-dot.active {
  background: white;
  transform: scale(1.2);
}

/* Video Play Button */
.video-play-btn {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: 60px;
  height: 60px;
  background: rgba(0,0,0,0.6);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
}

.video-play-btn:hover {
  background: rgba(0,0,0,0.8);
  transform: translate(-50%, -50%) scale(1.1);
}

.video-play-btn i {
  color: white;
  font-size: 24px;
  margin-left: 4px;
}

/* Gallery Counter */
.gallery-counter {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(0,0,0,0.6);
  color: white;
  padding: 4px 10px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 500;
}

/* Ad Listing Card */
.ad-listing-card {
  transition: all 0.3s ease;
}

.ad-listing-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 10px 25px -5px rgba(59, 130, 246, 0.3);
}

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

/* User Dropdown */
.user-dropdown {
  display: none;
  position: absolute;
  right: 0;
  top: 100%;
  margin-top: 0.5rem;
  width: 12rem;
  background: white;
  border-radius: 0.75rem;
  box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
  border: 1px solid #e5e7eb;
  padding: 0.5rem;
  z-index: 50;
}

.user-dropdown.show {
  display: block;
}

/* Rotate utility for chevron */
.rotate-180 {
  transform: rotate(180deg);
  transition: transform 0.3s ease;
}

/* Amenity checkbox styling */
.amenity-checkbox input[type="checkbox"] {
  accent-color: #3b82f6;
}

.amenity-checkbox input[type="checkbox"]:checked + span {
  color: #1d4ed8;
  font-weight: 500;
}

.amenity-checkbox:has(input:checked) {
  background-color: #eff6ff;
  border-color: #93c5fd;
}

/* Price slider styling */
#price-slider, #price-popup-slider,
#price-range-slider-min, #price-range-slider-max,
#mobile-price-range-slider-min, #mobile-price-range-slider-max {
  -webkit-appearance: none;
  appearance: none;
  width: 100%;
  height: 6px;
  background: #e5e7eb;
  border-radius: 3px;
  outline: none;
}

#price-slider::-webkit-slider-thumb, #price-popup-slider::-webkit-slider-thumb,
#price-range-slider-min::-webkit-slider-thumb, #price-range-slider-max::-webkit-slider-thumb,
#mobile-price-range-slider-min::-webkit-slider-thumb, #mobile-price-range-slider-max::-webkit-slider-thumb {
  -webkit-appearance: none;
  appearance: none;
  width: 18px;
  height: 18px;
  background: #3b82f6;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  transition: all 0.2s;
}

#price-slider::-webkit-slider-thumb:hover, #price-popup-slider::-webkit-slider-thumb:hover,
#price-range-slider-min::-webkit-slider-thumb:hover, #price-range-slider-max::-webkit-slider-thumb:hover,
#mobile-price-range-slider-min::-webkit-slider-thumb:hover, #mobile-price-range-slider-max::-webkit-slider-thumb:hover {
  background: #2563eb;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

#price-slider::-moz-range-thumb, #price-popup-slider::-moz-range-thumb,
#price-range-slider-min::-moz-range-thumb, #price-range-slider-max::-moz-range-thumb,
#mobile-price-range-slider-min::-moz-range-thumb, #mobile-price-range-slider-max::-moz-range-thumb {
  width: 18px;
  height: 18px;
  background: #3b82f6;
  border-radius: 50%;
  cursor: pointer;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  border: none;
  transition: all 0.2s;
}

#price-slider::-moz-range-thumb:hover, #price-popup-slider::-moz-range-thumb:hover,
#price-range-slider-min::-moz-range-thumb:hover, #price-range-slider-max::-moz-range-thumb:hover,
#mobile-price-range-slider-min::-moz-range-thumb:hover, #mobile-price-range-slider-max::-moz-range-thumb:hover {
  background: #2563eb;
  box-shadow: 0 3px 8px rgba(0,0,0,0.3);
}

/* Bedroom button active state */
.bedroom-btn.active {
  background-color: #3b82f6;
  color: white;
  border-color: #3b82f6;
}

/* Active filters chips */
#active-filters-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.375rem;
  min-height: 1.5rem;
}

/* Mobile: Ensure chips are visible */
@media (max-width: 767px) {
  #active-filters-chips {
    display: flex !important;
  }
}

.filter-chip {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
  padding: 0.25rem 0.625rem;
  background-color: #eff6ff;
  color: #1d4ed8;
  font-size: 0.75rem;
  font-weight: 500;
  border-radius: 9999px;
  border: 1px solid #bfdbfe;
}

.filter-chip button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0.125rem;
  margin-left: 0.25rem;
  color: inherit;
  opacity: 0.7;
  transition: opacity 0.2s;
}

.filter-chip button:hover {
  opacity: 1;
}

/* Property Card Image Placeholder */
.property-image[src*="data:image/svg+xml"] {
  object-fit: contain;
  background-color: #e0e7ff;
}

/* Loading state for images */
.property-image {
  background: linear-gradient(90deg, #f0f0f0 25%, #e0e0e0 50%, #f0f0f0 75%);
  background-size: 200% 100%;
  animation: shimmer 1.5s infinite;
}

.property-image.loaded {
  animation: none;
  background: none;
}

@keyframes shimmer {
  0% {
    background-position: 200% 0;
  }
  100% {
    background-position: -200% 0;
  }
}

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

.animate-fade-in {
  animation: fadeIn 0.3s ease-out;
}

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

.animate-slide-up {
  animation: slideUp 0.3s ease-out;
}

/* Price filter popup animation */
@keyframes fadeInScale {
  from {
    transform: scale(0.95) translateY(-10px);
    opacity: 0;
  }
  to {
    transform: scale(1) translateY(0);
    opacity: 1;
  }
}

#price-filter-popup:not(.hidden) .bg-white {
  animation: fadeInScale 0.2s ease-out;
}

/* Remove shimmer when image is loaded */
img.property-image[src]:not([src*="data:image/svg+xml"]) {
  animation: none;
  background: none;
}

/* District overlay labels */
.district-label {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.district-label::before { display: none !important; }

/* Smart Search chips */
.search-chip {
    animation: chipIn 0.15s ease-out;
}
@keyframes chipIn {
    from { opacity: 0; transform: scale(.85); }
    to   { opacity: 1; transform: scale(1); }
}

/* ── Mobile page transitions ────────────────────────────────── */
@media (max-width: 768px) {
    @keyframes pageFadeIn {
        from { opacity: 0; }
        to   { opacity: 1; }
    }
    body { animation: pageFadeIn 0.22s ease-out; }

    @keyframes progressSweep {
        0%   { width: 0%;   opacity: 1; }
        80%  { width: 85%;  opacity: 1; }
        100% { width: 100%; opacity: 0; }
    }
    #page-progress-bar {
        position: fixed;
        top: 0; left: 0;
        height: 2.5px;
        background: linear-gradient(90deg, #2563eb, #60a5fa);
        z-index: 99999;
        animation: progressSweep 0.38s cubic-bezier(.4,0,.2,1) forwards;
        pointer-events: none;
    }
}

/* ─── Desktop chat: voice message bubbles ─────── */
.cw-voice-bubble {
  display: flex; align-items: center; gap: 8px;
  min-width: 180px; max-width: 240px; padding: 2px 0;
  flex-wrap: wrap;
}
.cw-voice-play {
  width: 34px; height: 34px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  border: none; cursor: pointer; transition: opacity .15s;
}
.cw-voice-play:hover { opacity: .8; }
/* Outgoing (teal) bubble */
.bg-teal-500 .cw-voice-play { background: rgba(255,255,255,.22); color: #fff; }
/* Incoming (white) bubble */
.bg-white .cw-voice-play { background: #e0f2fe; color: #0284c7; }
.cw-voice-wave {
  display: flex; align-items: center; gap: 2px;
  flex: 1; height: 26px; overflow: hidden;
}
.cw-voice-wave span {
  width: 3px; border-radius: 2px; flex-shrink: 0;
  background: currentColor; opacity: .35; transition: opacity .2s;
}
.cw-voice-bubble.playing .cw-voice-wave span { opacity: .18; }
.cw-voice-dur {
  font-size: 11px; flex-shrink: 0; opacity: .7;
  min-width: 28px; text-align: right; font-variant-numeric: tabular-nums;
}
.cw-voice-audio { display: none; }

/* Voice AI transcription */
.cw-vai-text {
  flex: 0 0 100%; margin-top: 5px; font-size: 11.5px; line-height: 1.45;
  opacity: .82; font-style: italic;
}
.cw-vai-translation {
  display: block; margin-top: 3px; font-style: normal; opacity: .65; font-size: 11px;
}
.cw-vai-btn {
  flex: 0 0 100%; margin-top: 4px;
  background: none; border: none; padding: 0; cursor: pointer;
  font-size: 10.5px; opacity: .55; display: flex; align-items: center; gap: 4px;
}
.cw-vai-btn:hover { opacity: .8; }
.bg-teal-500 .cw-vai-btn,
.bg-teal-500 .cw-vai-text { color: rgba(255,255,255,.9); }
.bg-white .cw-vai-btn,
.bg-white .cw-vai-text { color: #374151; }

