/* public/styles.css - Modern Real Estate Map UI */
* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  -webkit-text-size-adjust: 100%;
  -ms-text-size-adjust: 100%;
}

:root {
  /* Primary Blue - Màu chủ đạo */
  --primary: #2563eb;
  --primary-dark: #1d4ed8;
  --primary-light: #60a5fa;
  --primary-lighter: #dbeafe;
  
  /* Gray Scale - Xám đen */
  --gray-900: #0f172a;
  --gray-800: #1e293b;
  --gray-700: #334155;
  --gray-600: #475569;
  --gray-500: #64748b;
  --gray-400: #94a3b8;
  --gray-300: #cbd5e1;
  --gray-200: #e2e8f0;
  --gray-100: #f1f5f9;
  --gray-50: #f8fafc;
  
  /* Status Colors - Giữ đơn giản */
  --success: #10b981;
  --danger: #ef4444;
  --warning: #f59e0b;
  
  /* Background */
  --bg-primary: #ffffff;
  --bg-secondary: var(--gray-50);
  --bg-hover: var(--gray-100);
  
  /* Text */
  --text-primary: var(--gray-900);
  --text-secondary: var(--gray-600);
  --text-muted: var(--gray-500);
  
  /* Border */
  --border: var(--gray-200);
  --border-hover: var(--gray-300);
  
  /* Shadows - Giảm độ mạnh */
  --shadow-sm: 0 1px 2px 0 rgb(0 0 0 / 0.05);
  --shadow-md: 0 2px 4px 0 rgb(0 0 0 / 0.06), 0 1px 2px 0 rgb(0 0 0 / 0.04);
  --shadow-lg: 0 4px 6px -1px rgb(0 0 0 / 0.08), 0 2px 4px -1px rgb(0 0 0 / 0.04);
  --shadow-xl: 0 10px 15px -3px rgb(0 0 0 / 0.08), 0 4px 6px -2px rgb(0 0 0 / 0.04);
}

body {
  margin: 0;
  font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', 'Roboto', 'Oxygen', 'Ubuntu', 'Helvetica Neue', Arial, sans-serif;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text-primary);
  background: var(--bg-secondary);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  overflow-x: hidden;
  touch-action: manipulation;
}

.app-container {
  display: flex;
  height: 100vh;
  position: relative;
  overflow: hidden;
}

/* Services Toggle Button (Top Right) */
/* Base styles for services button */
.services-toggle-btn {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px 20px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
  border: none;
  border-radius: 10px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  box-shadow: var(--shadow-md);
  transition: all 0.3s ease;
  transition: all 0.2s ease;
}

/* Desktop floating button (hidden on mobile) */
.services-desktop-btn {
  position: fixed;
  top: 20px;
  right: 20px;
  z-index: 2000;
}

/* Mobile button in header (hidden on desktop) */
.services-mobile-btn {
  display: none;
  padding: 8px 12px;
  font-size: 12px;
  border-radius: 8px;
  margin-left: auto;
}

.services-toggle-btn:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  transform: translateY(-2px);
  box-shadow: 0 6px 20px rgba(37, 99, 235, 0.5);
}

.services-toggle-btn:active {
  transform: translateY(0);
}

.services-icon {
  font-size: 18px;
  line-height: 1;
}

.services-text {
  font-size: 14px;
}

/* Services Panel (Slider from Left) */
.services-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 420px;
  max-width: 90vw;
  height: 100vh;
  background: var(--bg-primary);
  box-shadow: 4px 0 24px rgba(0, 0, 0, 0.15);
  z-index: 1500;
  display: flex;
  flex-direction: column;
  transform: translateX(0);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
}

.services-panel.hidden {
  transform: translateX(-100%);
}

.services-panel-header {
  padding: 20px 24px;
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  box-shadow: var(--shadow-md);
  position: sticky;
  top: 0;
  z-index: 10;
}

.services-panel-header h2 {
  font-size: 20px;
  font-weight: 700;
  color: white;
  margin: 0;
  letter-spacing: -0.3px;
}

.services-close-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 20px;
  cursor: pointer;
  transition: all 0.2s;
}

.services-close-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.services-panel-content {
  padding: 20px;
  flex: 1;
  overflow-y: auto;
}

/* Service Item */
.service-item {
  display: flex;
  gap: 16px;
  padding: 20px;
  background: var(--bg-secondary);
  border: 2px solid var(--border);
  border-radius: 12px;
  margin-bottom: 16px;
  transition: all 0.3s;
}

.service-item:hover {
  border-color: var(--primary-light);
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.service-icon {
  font-size: 36px;
  line-height: 1;
  flex-shrink: 0;
}

.service-info {
  flex: 1;
}

.service-info h3 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 0 0 6px 0;
}

.service-info p {
  font-size: 13px;
  color: var(--text-secondary);
  margin: 0 0 12px 0;
  line-height: 1.5;
}

.service-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-link {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 14px;
  background: white;
  color: var(--primary);
  border: 1.5px solid var(--border);
  border-radius: 8px;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: all 0.2s;
}

.service-link:hover {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
  transform: translateY(-1px);
  box-shadow: var(--shadow-sm);
}

.service-link-primary {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.service-link-primary:hover {
  background: var(--primary-dark);
  border-color: var(--primary-dark);
}

/* Policy Detail Panel (Nested Slider) */
.policy-detail-panel {
  position: fixed;
  top: 0;
  left: 0;
  width: 420px;
  max-width: 90vw;
  height: 100vh;
  background: var(--bg-primary);
  box-shadow: 8px 0 32px rgba(0, 0, 0, 0.2);
  z-index: 1600;
  display: flex;
  flex-direction: column;
  transform: translateX(-100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
}

.policy-detail-panel.active {
  transform: translateX(0);
}

.policy-detail-header {
  padding: 20px 24px;
  background: linear-gradient(135deg, #059669 0%, #047857 100%);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  position: sticky;
  top: 0;
  z-index: 10;
}

.policy-detail-header h2 {
  font-size: 18px;
  font-weight: 700;
  color: white;
  margin: 0;
  flex: 1;
  text-align: center;
  letter-spacing: -0.3px;
}

.policy-back-btn,
.policy-close-all-btn {
  width: 36px;
  height: 36px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.2);
  border: none;
  border-radius: 8px;
  color: white;
  font-size: 18px;
  cursor: pointer;
  transition: all 0.2s;
  flex-shrink: 0;
}

.policy-back-btn {
  width: auto;
  padding: 0 12px;
  font-weight: 600;
}

.policy-back-btn:hover,
.policy-close-all-btn:hover {
  background: rgba(255, 255, 255, 0.3);
  transform: scale(1.05);
}

.policy-back-btn:active,
.policy-close-all-btn:active {
  transform: scale(0.95);
}

.policy-detail-content {
  flex: 1;
  overflow-y: auto;
  padding: 24px;
  line-height: 1.8;
  color: var(--text-primary);
}

.policy-detail-content h3 {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
  margin: 24px 0 12px 0;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--border);
}

.policy-detail-content h3:first-child {
  margin-top: 0;
}

.policy-detail-content h4 {
  font-size: 16px;
  font-weight: 600;
  color: var(--text-primary);
  margin: 20px 0 10px 0;
}

.policy-detail-content p {
  margin-bottom: 16px;
  color: var(--text-secondary);
  text-align: justify;
}

.policy-detail-content ul,
.policy-detail-content ol {
  margin: 16px 0;
  padding-left: 24px;
}

.policy-detail-content li {
  margin-bottom: 8px;
  color: var(--text-secondary);
}

.policy-detail-content strong {
  color: var(--text-primary);
  font-weight: 600;
}

.policy-detail-content a {
  color: var(--primary);
  text-decoration: none;
  font-weight: 500;
}

.policy-detail-content a:hover {
  text-decoration: underline;
}

.policy-highlight {
  background: #fef3c7;
  padding: 16px;
  border-left: 4px solid #f59e0b;
  border-radius: 8px;
  margin: 16px 0;
}

.policy-contact-box {
  background: linear-gradient(135deg, #dbeafe 0%, #bfdbfe 100%);
  padding: 20px;
  border-radius: 12px;
  margin: 24px 0;
  text-align: center;
}

.policy-contact-box h4 {
  color: var(--primary);
  margin: 0 0 12px 0;
}

.policy-contact-box p {
  margin: 8px 0;
  color: var(--text-primary);
}

.policy-contact-box a {
  font-weight: 600;
  font-size: 18px;
}

/* Sidebar - Modern Card Style */
.sidebar {
  width: 420px;
  max-width: 100%;
  background: var(--bg-primary);
  box-shadow: var(--shadow-lg);
  display: flex;
  flex-direction: column;
  z-index: 1000;
  position: relative;
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  max-height: 100vh;
  height: 100vh;
}

.sidebar.sidebar-hidden {
  transform: translateX(-100%);
}

/* Header Section with Logo */
.header-with-logo {
  padding: 20px 24px;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  display: flex;
  align-items: center;
  gap: 16px;
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  flex-shrink: 0;
  position: relative;
}

.app-logo {
  width: 52px;
  height: 52px;
  object-fit: contain;
  filter: brightness(0) invert(1);
  flex-shrink: 0;
}

.header-text {
  flex: 1;
}

.sidebar h1 {
  font-size: 22px;
  font-weight: 700;
  margin: 0;
  padding: 0;
  color: white;
  letter-spacing: -0.5px;
  line-height: 1.3;
}

.header-subtitle {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.85);
  margin: 4px 0 0 0;
  font-weight: 400;
}

/* Location Display - Modern Card */
.location-display {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 18px 24px;
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
  margin: 0;
  flex-shrink: 0;
}

.location-info {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 12px;
}

.location-icon {
  font-size: 22px;
  flex-shrink: 0;
  animation: pulse 2s infinite;
}

@keyframes pulse {
  0%, 100% { transform: scale(1); }
  50% { transform: scale(1.1); }
}

.location-text {
  flex: 1;
  min-width: 0;
}

.location-label {
  font-size: 11px;
  color: var(--text-secondary);
  text-transform: uppercase;
  font-weight: 600;
  letter-spacing: 0.5px;
  margin-bottom: 2px;
}

.location-value {
  font-size: 16px;
  color: var(--text-primary);
  font-weight: 700;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.location-value strong {
  color: var(--primary);
}

.change-location-btn {
  padding: 10px 16px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  background: white;
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
  transition: all 0.2s ease;
  white-space: nowrap;
  display: flex;
  align-items: center;
  gap: 6px;
  box-shadow: var(--shadow-sm);
}

.change-location-btn .btn-icon {
  font-size: 14px;
}

.change-location-btn:hover {
  background: var(--bg-hover);
  border-color: var(--border-hover);
  box-shadow: var(--shadow-md);
}

.change-location-btn:active {
  transform: translateY(0);
  box-shadow: 0 2px 4px rgba(37, 99, 235, 0.2);
}

/* Legacy button class support */
.change-city-button {
  padding: 10px 18px;
  border-radius: 10px;
  border: 2px solid var(--primary);
  background: white;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  color: var(--primary);
  transition: all 0.2s ease;
}

.change-city-button:hover {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

/* Filters Container */
.filters-container {
  background: var(--bg-primary);
  border-bottom: 1px solid var(--border);
}

.filters-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 24px;
  background: var(--gray-50);
  cursor: pointer;
  transition: background 0.2s;
  user-select: none;
}

.filters-header:hover {
  background: var(--gray-100);
}

.filters-header-content {
  display: flex;
  align-items: center;
  gap: 8px;
}

.filters-icon {
  font-size: 18px;
}

.filters-title {
  font-size: 15px;
  font-weight: 700;
  color: var(--text-primary);
}

.filters-toggle {
  display: flex;
  align-items: center;
  gap: 6px;
  color: var(--primary);
  font-size: 12px;
  font-weight: 500;
}

.toggle-icon {
  font-size: 16px;
  transition: transform 0.3s ease;
}

.filters-container.collapsed .toggle-icon {
  transform: rotate(-180deg);
}

/* Filters - Modern Design */
.filters {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  padding: 16px 24px;
  background: var(--bg-primary);
  max-height: 500px;
  overflow: visible;
  transition: max-height 0.3s cubic-bezier(0.4, 0, 0.2, 1), padding 0.3s ease;
  flex-shrink: 0;
}

.filters-container {
  flex-shrink: 0;
}

.filters-container.collapsed .filters {
  max-height: 0;
  padding: 0 24px;
}

.filters select {
  padding: 10px 12px;
  border-radius: 8px;
  border: 1.5px solid var(--border);
  font-size: 14px;
  color: var(--text-primary);
  background: var(--bg-primary);
  cursor: pointer;
  transition: all 0.2s ease;
  font-weight: 500;
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 24 24" fill="none" stroke="%2364748b" stroke-width="2"><polyline points="6 9 12 15 18 9"/></svg>');
  background-repeat: no-repeat;
  background-position: right 10px center;
  background-size: 16px;
  padding-right: 36px;
}

.filters select:hover {
  border-color: var(--primary);
  box-shadow: var(--shadow-sm);
}

.filters select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

/* Mobile: single column */
@media (max-width: 640px) {
  .filters {
    grid-template-columns: 1fr;
  }
}

/* ===== RENTAL LIST - DESKTOP BASE (>768px) ===== */
.rental-list {
  flex: 1 1 0;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 16px 20px;
  display: grid;
  grid-template-columns: repeat(2, 1fr); /* Desktop: 2 cột đẹp */
  grid-auto-rows: min-content;
  gap: 12px;
  background: var(--bg-secondary);
  align-content: start;
  min-height: 0;
  max-height: 100%;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
}

/* Custom Scrollbar */
.rental-list::-webkit-scrollbar {
  width: 8px;
}

.rental-list::-webkit-scrollbar-track {
  background: transparent;
}

.rental-list::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 4px;
}

.rental-list::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* DESKTOP: Item layout ngang (row) */
.rental-item {
  display: flex;
  flex-direction: row; /* Desktop: ảnh bên trái, nội dung bên phải */
  min-height: 100px;
  height: auto;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 0;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
}

.rental-item:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
  border-color: var(--primary-light);
}

.rental-item.active {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1), var(--shadow-md);
  transform: translateY(-2px);
}

.rental-item .no-image-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 6px;
  width: 100%;
  height: 100px;
  background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 100%);
  color: var(--text-secondary);
  font-size: 13px;
  font-weight: 500;
}

.rental-item .no-image-icon::before {
  content: '📷';
  font-size: 32px;
  opacity: 0.5;
}

.rental-thumb {
  flex-shrink: 0;
  width: 140px; /* Desktop: 140px width */
  height: 100%; /* Match parent height */
  min-height: 100px;
  overflow: hidden;
}

.rental-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.rental-content {
  flex: 1;
  padding: 14px; /* Desktop: 14px padding */
  display: flex;
  flex-direction: column;
}

.rental-title {
  font-size: 16px;
  font-weight: 700;
  margin-bottom: 8px;
  color: var(--text-primary);
  line-height: 1.5;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  min-height: 48px;
}

.rental-meta {
  display: flex;
  gap: 4px;
  margin-bottom: 8px;
  flex-wrap: wrap;
}

.badge {
  font-size: 10px;
  padding: 3px 8px;
  border-radius: 4px;
  font-weight: 600;
  letter-spacing: 0.2px;
  display: inline-flex;
  align-items: center;
  gap: 3px;
}

.badge-type {
  background: var(--primary-lighter);
  color: var(--primary-dark);
}

.badge-type::before {
  content: '🏢';
  font-size: 14px;
}

.badge-status {
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-weight: 500;
}

.badge-available {
  background: #d1fae5;
  color: #065f46;
}

.badge-available::before {
  content: '✓';
  font-weight: bold;
}

.badge-occupied {
  background: #fee2e2;
  color: #991b1b;
}

.badge-occupied::before {
  content: '✕';
  font-weight: bold;
}

.rental-info {
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.rental-info div {
  margin-bottom: 4px;
  display: flex;
  align-items: flex-start;
  gap: 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rental-info div::before {
  content: '•';
  color: var(--primary);
  font-weight: bold;
  flex-shrink: 0;
  font-size: 8px;
}

.rental-info div:last-child {
  margin-bottom: 0;
}

/* Phone link styles */
.phone-link {
  color: var(--primary);
  text-decoration: none;
  font-weight: 600;
  transition: all 0.2s;
  border-bottom: 1px solid transparent;
}

.phone-link:hover {
  color: var(--primary-dark);
  border-bottom: 1px solid var(--primary-dark);
}

/* Reveal phone link - masked phone that reveals on click */
.reveal-phone-link {
  color: var(--text-secondary);
  text-decoration: underline;
  text-decoration-style: dotted;
  cursor: pointer;
  font-weight: 500;
}

.reveal-phone-link:hover {
  color: var(--primary);
  text-decoration-style: solid;
}

/* Legacy button styles (keep for backward compatibility) */
.reveal-phone-btn {
  margin-left: 6px;
  padding: 3px 0px;
  font-size: 11px;
  font-weight: 600;
  color: var(--primary);
  background: var(--bg-secondary);
  border: 1px solid var(--primary);
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
}

.reveal-phone-btn:hover {
  background: var(--primary);
  color: white;
  transform: scale(1.05);
}

.reveal-phone-btn-popup {
  margin-left: 6px;
  padding: 4px 10px;
  font-size: 11px;
  font-weight: 600;
  color: #fff;
  background: var(--primary);
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: all 0.2s;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
}

.reveal-phone-btn-popup:hover {
  background: var(--primary-dark);
  transform: scale(1.05);
}

.rental-price {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--border);
  font-size: 17px;
  font-weight: 700;
  color: var(--primary);
  display: flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.rental-price::before {
  content: '₫';
  font-size: 15px;
  flex-shrink: 0;
}

.empty-state {
  text-align: center;
  padding: 40px 20px;
  color: var(--text-secondary);
  font-size: 14px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
}

.empty-state::before {
  content: '🔍';
  font-size: 48px;
  opacity: 0.5;
}

.empty-state.error {
  color: var(--danger);
}

.empty-state.error::before {
  content: '⚠️';
}

/* Map */
#map {
  flex: 1;
}

/* ===== MODAL - MODERN DESIGN ===== */
.hidden {
  display: none !important;
  visibility: hidden !important;
  opacity: 0 !important;
  pointer-events: none !important;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  background: linear-gradient(135deg, rgba(15, 23, 42, 0.7) 0%, rgba(15, 23, 42, 0.85) 100%);
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  animation: fadeIn 0.3s ease;
}

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

.modal {
  background: var(--bg-primary);
  border-radius: 20px;
  padding: 32px;
  width: 90%;
  max-width: 480px;
  box-shadow: var(--shadow-xl);
  animation: slideUp 0.3s ease;
  border: 1px solid rgba(255, 255, 255, 0.1);
  position: relative;
  z-index: 10000;
}

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

.modal h2 {
  margin: 0 0 12px 0;
  font-size: 24px;
  font-weight: 700;
  color: var(--text-primary);
  display: flex;
  align-items: center;
  gap: 12px;
}

.modal h2::before {
  content: '📍';
  font-size: 32px;
}

.modal-desc {
  margin: 0 0 24px 0;
  font-size: 14px;
  color: var(--text-secondary);
  line-height: 1.6;
}

.modal-select {
  width: 100%;
  padding: 12px 16px;
  border-radius: 12px;
  border: 2px solid var(--border);
  font-size: 15px;
  margin-bottom: 16px;
  background: var(--bg-primary);
  color: var(--text-primary);
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  appearance: none;
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="none" stroke="%2364748b" stroke-width="2.5"><polyline points="6 9 12 15 18 9"/></svg>');
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 20px;
  padding-right: 44px;
}

.modal-select:hover {
  border-color: var(--primary-light);
}

.modal-select:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

.modal-error {
  font-size: 13px;
  color: var(--danger);
  margin-bottom: 16px;
  padding: 12px 14px;
  background: rgba(239, 68, 68, 0.1);
  border: 1px solid rgba(239, 68, 68, 0.3);
  border-radius: 8px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
  animation: shake 0.3s ease;
}

.modal-error::before {
  content: '⚠️';
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 1px;
}

@keyframes shake {
  0%, 100% {
    transform: translateX(0);
  }
  25% {
    transform: translateX(-4px);
  }
  75% {
    transform: translateX(4px);
  }
}

.modal-button {
  width: 100%;
  padding: 14px 24px;
  border-radius: 12px;
  border: none;
  background: linear-gradient(135deg, var(--primary) 0%, var(--primary-dark) 100%);
  color: white;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  box-shadow: var(--shadow-md);
  margin-top: 8px;
  position: relative;
  z-index: 10001;
  pointer-events: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.modal-button:hover:not(:disabled) {
  transform: translateY(-2px);
  box-shadow: var(--shadow-lg);
}

.modal-button:active:not(:disabled) {
  transform: translateY(0);
  box-shadow: var(--shadow-sm);
}

.modal-button:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  background: linear-gradient(135deg, var(--text-secondary) 0%, var(--text-secondary) 100%);
}

.modal-button .button-loader {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.modal-button .button-loader::before {
  content: '';
  width: 16px;
  height: 16px;
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-top-color: white;
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

/* ===== QR CODE MODAL ===== */
.qr-code-modal {
  max-width: 600px;
  max-height: 90vh;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
}

.qr-code-container {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 24px;
  margin: 24px 0;
  padding: 24px;
  background: var(--bg-secondary);
  border-radius: 12px;
  flex-shrink: 0;
}

.qr-code-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 16px;
  padding: 20px;
  background: white;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  transition: all 0.3s ease;
}

.qr-code-item:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-md);
}

.qr-code-platform {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 600;
  font-size: 16px;
  color: var(--text-primary);
}

.platform-icon {
  font-size: 24px;
}

.qr-code-box {
  width: 200px;
  height: 200px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: white;
  border: 2px solid var(--border);
  border-radius: 12px;
  padding: 12px;
  box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.qr-code-box img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.store-link {
  display: inline-block;
  transition: transform 0.2s;
}

.store-link:hover {
  transform: scale(1.05);
}

.modal-button-secondary {
  background: linear-gradient(135deg, var(--text-secondary) 0%, #475569 100%);
}

.modal-button-secondary:hover:not(:disabled) {
  background: linear-gradient(135deg, #475569 0%, #334155 100%);
}

@media (max-width: 640px) {
  .qr-code-modal {
    max-width: 95%;
    max-height: 85vh;
    padding: 16px;
  }
  
  .qr-code-modal h2 {
    font-size: 18px;
    margin-bottom: 8px;
  }
  
  .qr-code-modal .modal-desc {
    font-size: 13px;
    margin-bottom: 12px;
  }
  
  .qr-code-container {
    grid-template-columns: 1fr;
    gap: 12px;
    padding: 12px;
    margin: 12px 0;
  }
  
  .qr-code-item {
    padding: 12px;
    gap: 10px;
  }
  
  .qr-code-box {
    width: 150px;
    height: 150px;
    padding: 8px;
  }
  
  .qr-code-platform {
    font-size: 14px;
  }
  
  .platform-icon {
    font-size: 20px;
  }
  
  .store-link img {
    height: 32px !important;
  }
  
  .modal-button {
    margin-top: 8px;
    padding: 12px 20px;
    font-size: 14px;
  }
}

/* ===== CUSTOM MARKERS - MODERN DESIGN ===== */
.custom-marker {
  width: 48px;
  height: 48px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  user-select: none;
  box-shadow: var(--shadow-lg);
  border-radius: 12px;
  border: 3px solid white;
  background-clip: padding-box;
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

.custom-marker:hover {
  transform: translateY(-4px) scale(1.1);
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.3);
}

.custom-marker .marker-inner {
  width: 32px;
  height: 32px;
  display: block;
  border-radius: 8px;
  background-size: 20px 20px;
  background-repeat: no-repeat;
  background-position: center;
}

/* Marker Icons */
.custom-marker.icon-house {
  background: linear-gradient(135deg, #f97316 0%, #ea580c 100%);
}

.custom-marker.icon-house .marker-inner {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="white"><path d="M12 3l10 9h-3v9h-14v-9h-3l10-9zm0 2.414l-6 5.4v8.186h12v-8.186l-6-5.4z"/></svg>');
}

.custom-marker.icon-building {
  background: linear-gradient(135deg, #3b82f6 0%, #2563eb 100%);
}

.custom-marker.icon-building .marker-inner {
  background-image: url('data:image/svg+xml;utf8,<svg xmlns="http://www.w3.org/2000/svg" width="20" height="20" viewBox="0 0 24 24" fill="white"><path d="M3 21v-13h8v-7h10v20h-18zm2-2h4v-3h-4v3zm6 0h4v-3h-4v3zm6 0h4v-3h-4v3zm-12-5h4v-3h-4v3zm6 0h4v-3h-4v3zm6 0h4v-3h-4v3zm0-5h4v-3h-4v3z"/></svg>');
}

/* Custom Markers - Building vs Apartment Style */
.custom-marker-wrapper {
  background: transparent !important;
  border: none !important;
}

/* Base marker style */
.custom-marker {
  border-radius: 50%;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
  transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  cursor: pointer;
  position: relative;
  border: 3px solid white;
  display: flex;
  align-items: center;
  justify-content: center;
}

/* Apartment marker - smaller, simple dot */
.custom-marker.marker-apartment {
  width: 24px;
  height: 24px;
}

.custom-marker.marker-apartment::before {
  content: '';
  position: absolute;
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  opacity: 0.8;
}

/* Building marker - larger with stack icon */
.custom-marker.marker-building {
  width: 32px;
  height: 32px;
  border-width: 4px;
}

/* Building stack icon (3 layers representing multiple floors) */
.marker-stack {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2px;
  padding: 2px;
}

.marker-stack span {
  width: 12px;
  height: 3px;
  background: white;
  border-radius: 1px;
  opacity: 0.9;
}

.marker-stack span:nth-child(1) {
  width: 14px;
}

.marker-stack span:nth-child(2) {
  width: 12px;
}

.marker-stack span:nth-child(3) {
  width: 10px;
}

/* Crawled marker - medium size with special styling (vàng) */
.custom-marker.marker-crawled {
  width: 28px;
  height: 28px;
  border-width: 3px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f59e0b !important; /* Amber/yellow */
  color: white;
}

.custom-marker.marker-crawled .crawled-icon {
  font-size: 14px;
  line-height: 1;
}

/* Reveal phone button styling */
.reveal-phone-btn {
  background: #2563eb;
  color: #fff;
  border: none;
  border-radius: 6px;
  padding: 6px 10px;
  font-size: 12px;
  cursor: pointer;
  transition: transform 0.1s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.reveal-phone-btn:hover {
  background: #1d4ed8;
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.3);
}

.reveal-phone-btn:active {
  transform: scale(0.98);
}

/* Building pulse ring effect */
.custom-marker.marker-building::after {
  content: '';
  position: absolute;
  width: 100%;
  height: 100%;
  border-radius: 50%;
  border: 2px solid currentColor;
  opacity: 0;
  animation: building-pulse 2s ease-out infinite;
}

@keyframes building-pulse {
  0% {
    transform: scale(1);
    opacity: 0.6;
  }
  100% {
    transform: scale(1.8);
    opacity: 0;
  }
}

/* Color variants */
.custom-marker.marker-available {
  background: var(--primary);
  color: var(--primary);
}

.custom-marker.marker-occupied {
  background: #ef4444;
  color: #ef4444;
}

/* Processed crawled marker - blue for verified crawled items */
.custom-marker.marker-processed {
  background: #3b82f6;
  color: #3b82f6;
  border: 2px solid #2563eb;
  box-shadow: 0 0 8px rgba(59, 130, 246, 0.5);
}

/* Viewed marker - gray color for rentals with revealed phone (7-day memory) */
.custom-marker.marker-viewed {
  background: #9ca3af !important;
  color: #9ca3af !important;
  border-color: #6b7280 !important;
  opacity: 0.75;
}

.custom-marker.marker-viewed .marker-stack span {
  background: #9ca3af !important;
}

.custom-marker.marker-viewed .crawled-icon {
  opacity: 0.7;
  filter: grayscale(100%);
}

/* Hover effects */
.custom-marker:hover {
  transform: scale(1.3);
  box-shadow: 0 6px 20px rgba(0, 0, 0, 0.5);
  z-index: 1000 !important;
}

.custom-marker.marker-apartment:hover::before {
  opacity: 1;
  animation: pulse-dot 1.5s infinite;
}

.custom-marker.marker-building:hover .marker-stack span {
  animation: stack-bounce 0.6s ease-in-out infinite;
}

.custom-marker.marker-building:hover .marker-stack span:nth-child(1) {
  animation-delay: 0s;
}

.custom-marker.marker-building:hover .marker-stack span:nth-child(2) {
  animation-delay: 0.1s;
}

.custom-marker.marker-building:hover .marker-stack span:nth-child(3) {
  animation-delay: 0.2s;
}

@keyframes pulse-dot {
  0%, 100% {
    transform: scale(1);
    opacity: 1;
  }
  50% {
    transform: scale(1.3);
    opacity: 0.7;
  }
}

@keyframes stack-bounce {
  0%, 100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-2px);
  }
}

/* ===== MAP POPUP STYLING - IMPROVED ===== */
.leaflet-popup-content-wrapper {
  border-radius: 12px !important;
  padding: 0 !important;
  box-shadow: 0 12px 40px rgba(0,0,0,0.25) !important;
  border: none !important;
  overflow: hidden;
  max-width: 350px !important;
  min-width: 320px !important;
}

.leaflet-popup-content {
  margin: 0 !important;
  width: 100% !important;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, 'Segoe UI', sans-serif !important;
  line-height: 1.5;
  font-size: 14px;
}

.custom-popup {
  display: flex;
  flex-direction: column;
}

.custom-popup .popup-image {
  width: 100%;
  height: 200px;
  object-fit: cover;
  object-position: center;
  background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
  display: block;
  margin: 0;
  border-radius: 12px 12px 0 0;
}

.custom-popup .popup-body {
  padding: 18px 20px;
  background: #fff;
  border-radius: 0 0 12px 12px;
}

/* Title with navigation button */
.custom-popup .popup-title-with-nav {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  align-items: center;
}

.custom-popup .popup-title {
  font-weight: 700;
  font-size: 17px;
  color: #1a1a1a;
  line-height: 1.4;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  word-break: break-word;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  flex: 1;
}

/* Direction button in popup */
.custom-popup .popup-direction-btn {
  flex-shrink: 0;
  width: 30px;
  height: 30px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #00897B;
  color: white;
  text-decoration: none;
  border-radius: 50%;
  transition: all 0.2s ease;
  box-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.custom-popup .popup-direction-btn svg {
  width: 22px;
  height: 22px;
  fill: white;
}

.custom-popup .popup-direction-btn:hover {
  background: #00796B;
  box-shadow: 0 3px 6px rgba(0, 0, 0, 0.3);
  transform: scale(1.05);
}

.custom-popup .popup-direction-btn:active {
  transform: scale(0.95);
}

.custom-popup .popup-badges {
  display: flex;
  gap: 8px;
  margin-bottom: 14px;
  flex-wrap: wrap;
}

.custom-popup .popup-badge {
  font-size: 10px;
  padding: 5px 10px;
  border-radius: 5px;
  font-weight: 600;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  box-shadow: 0 2px 4px rgba(0,0,0,0.08);
  text-transform: uppercase;
  letter-spacing: 0.5px;
  white-space: nowrap;
  -webkit-font-smoothing: antialiased;
}

.custom-popup .popup-badge.available {
  background: #d1fae5;
  color: #065f46;
}

.custom-popup .popup-badge.occupied {
  background: #fee2e2;
  color: #991b1b;
}

.custom-popup .popup-info {
  margin-bottom: 10px;
  color: #2d3748;
  font-size: 13px;
  display: flex;
  align-items: flex-start;
  gap: 8px;
  line-height: 1.5;
  padding: 10px 12px;
  background: #f7fafc;
  border-radius: 8px;
  border-left: 3px solid var(--primary);
  font-weight: 500;
  word-break: break-word;
  -webkit-font-smoothing: antialiased;
}

.custom-popup .popup-info-icon {
  color: var(--primary);
  font-size: 16px;
  flex-shrink: 0;
  margin-top: 2px;
}

.custom-popup .popup-price {
  color: #fff;
  font-weight: 700;
  font-size: 16px;
  padding: 12px 16px;
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  border-top: none;
  margin-top: 14px;
  margin-left: -20px;
  margin-right: -20px;
  margin-bottom: -18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
  border-radius: 0 0 12px 12px;
  text-align: center;
  word-break: break-word;
  line-height: 1.4;
  flex-wrap: wrap;
  min-height: 44px;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.custom-popup .popup-price-icon {
  font-size: 18px;
  flex-shrink: 0;
  line-height: 1;
}

.leaflet-popup-tip {
  border-top-color: var(--border) !important;
}

.leaflet-popup-close-button {
  color: var(--text-secondary) !important;
  font-size: 24px !important;
}

/* Island Labels - Hoàng Sa & Trường Sa */
.island-label {
  background: rgba(220, 38, 38, 0.9) !important;
  border: 2px solid #dc2626 !important;
  border-radius: 6px !important;
  color: white !important;
  font-size: 12px !important;
  font-weight: 700 !important;
  padding: 6px 10px !important;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.3) !important;
  text-align: center !important;
}

.island-label::before {
  border-top-color: #dc2626 !important;
}

.island-marker {
  background: transparent !important;
  border: none !important;
  font-weight: 300 !important;
  padding: 6px 10px !important;
  margin-right: 10px !important;
}

/* Vietnam Island Marker Labels */
.vietnam-island-marker {
  background: transparent !important;
  border: none !important;
}

.vietnam-island-label {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 100%;
}

.island-label-content {
  background: linear-gradient(135deg, #1e40af 0%, #1e3a8a 100%);
  color: white;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 700;
  text-align: center;
  box-shadow: 0 4px 12px rgba(30, 64, 175, 0.5);
  border: 3px solid white;
  text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
  line-height: 1.3;
  white-space: nowrap;
  animation: island-pulse 3s ease-in-out infinite;
}

.island-label-subtitle {
  font-size: 11px;
  font-weight: 600;
  opacity: 0.95;
  margin-top: 2px;
}

@keyframes island-pulse {
  0%, 100% {
    box-shadow: 0 4px 12px rgba(30, 64, 175, 0.5);
  }
  50% {
    box-shadow: 0 6px 16px rgba(30, 64, 175, 0.7);
  }
}

.leaflet-popup-close-button:hover {
  color: var(--text-primary) !important;
}

/* Mobile Markers */
@media (pointer: coarse) {
  .custom-marker {
    width: 56px;
    height: 56px;
    border-radius: 14px;
  }
  .custom-marker .marker-inner {
    width: 38px;
    height: 38px;
  }
}

/* Hide Leaflet Attribution */
.leaflet-control-attribution {
  display: none !important;
}

/* ===== RESPONSIVE DESIGN ===== */

/* Ultra Wide Desktop (2560px+) */
@media (min-width: 2560px) {
  .sidebar {
    width: 550px;
  }

  .services-panel {
    width: 550px;
  }

  .services-toggle-btn {
    top: 28px;
    right: 28px;
    padding: 16px 28px;
    font-size: 16px;
  }

  .rental-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
  }

  .service-item {
    padding: 28px;
  }

  .service-icon {
    font-size: 42px;
  }

  .service-info h3 {
    font-size: 18px;
  }

  .service-info p {
    font-size: 14px;
  }

  .service-link {
    padding: 12px 18px;
    font-size: 14px;
  }
}

/* Extra Large Desktop (1920px+) */
@media (min-width: 1920px) {
  .sidebar {
    width: 480px;
  }

  .services-panel {
    width: 480px;
  }

  .services-toggle-btn {
    top: 24px;
    right: 24px;
    padding: 14px 24px;
    font-size: 15px;
  }

  .rental-list {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .service-item {
    padding: 24px;
  }
}

/* Large Desktop (1440px - 1919px) */
@media (min-width: 1440px) and (max-width: 1919px) {
  .sidebar {
    width: 450px;
  }

  .services-panel {
    width: 450px;
  }
}

/* Standard Desktop (1024px - 1439px) */
@media (max-width: 1439px) and (min-width: 1025px) {
  .sidebar {
    width: 420px;
  }

  .services-panel {
    width: 420px;
  }
}

/* Tablet Landscape (769px - 1024px) */
@media (max-width: 1024px) and (min-width: 769px) {
  .sidebar {
    width: 380px;
  }

  .services-panel {
    width: 380px;
  }

  .rental-list {
    grid-template-columns: repeat(2, 1fr);
  }

  .services-toggle-btn {
    top: 16px;
    right: 16px;
  }
}

/* ===== DESKTOP LAYOUT DỌC (>768px) ===== */
@media (min-width: 769px) {
  /* Desktop: Layout dọc - ảnh trên, nội dung dưới */
  .rental-item {
    flex-direction: column !important;
  }

  .rental-thumb {
    width: 100% !important;
    height: 70px !important;
    max-width: none !important;
    
  }

  .rental-item .no-image-icon {
    width: 100% !important;
    height: 180px !important;
  }

  .rental-content {
    width: 100%;
    padding: 16px !important;
  }
}

/* ===== TABLET & MOBILE (≤768px) ===== */
@media (max-width: 768px) {
  .app-container {
    flex-direction: column;
    height: 100vh;
    overflow: hidden;
  }

  /* Hide desktop floating button, show mobile button in header */
  .services-desktop-btn {
    display: none !important;
  }
  
  .services-mobile-btn {
    display: flex !important;
  }

  .services-panel {
    width: 100%;
    max-width: 100%;
    height: 100vh;
    z-index: 2000;
  }

  .policy-detail-panel {
    width: 100%;
    max-width: 100%;
    height: 100vh;
    z-index: 2100;
  }

  .policy-detail-header h2 {
    font-size: 16px;
  }

  .policy-back-btn,
  .policy-close-all-btn {
    width: 32px;
    height: 32px;
    font-size: 16px;
  }
 
  .policy-back-btn {
    padding: 0 10px;
  }

  .policy-detail-content {
    padding: 20px 16px;
  }

  /* Mobile map popup: Show only apartment name + direction button */
  .custom-popup .popup-image {
    display: none;
  }

  .custom-popup .popup-badges {
    display: none;
  }

  .custom-popup .popup-info {
    display: none;
  }

  .custom-popup .popup-price {
    display: none;
  }

  .custom-popup .popup-body {
    padding: 14px 16px;
  }

  .custom-popup .popup-title-with-nav {
    margin-bottom: 0;
    gap: 10px;
  }

  .custom-popup .popup-title {
    margin-bottom: 0;
    font-size: 15px;
  }

  .custom-popup .popup-direction-btn {
    width: 30px;
    height: 30px;
  }

  .custom-popup .popup-direction-btn svg {
    width: 20px;
    height: 20px;
  }

  .service-item {
    padding: 16px;
  }

  .service-icon {
    font-size: 32px;
  }

  .service-info h3 {
    font-size: 15px;
  }

  .service-info p {
    font-size: 12px;
  }

  .service-link {
    padding: 7px 12px;
    font-size: 12px;
  }

  .sidebar {
    width: 100%;
    height: auto;
    max-height: 50vh;
    min-height: 50vh;
    border-right: none;
    border-bottom: 2px solid var(--border);
    transition: transform 0.3s ease;
    overflow: hidden;
    display: flex;
    flex-direction: column;
  }

  .sidebar.sidebar-hidden {
    pointer-events: none;
  }

  .header-with-logo {
    padding: 12px 16px;
    gap: 10px;
  }
  
  .app-logo {
    width: 36px;
    height: 36px;
  }
  
  .sidebar h1 {
    font-size: 18px;
  }
  
  .header-subtitle {
    font-size: 10px;
  }
  
  .location-display {
    padding: 8px 12px;
    gap: 8px;
  }
  
  .location-icon {
    font-size: 18px;
  }
  
  .location-label {
    font-size: 9px;
  }
  
  .location-value {
    font-size: 12px;
  }
  
  .change-location-btn {
    padding: 8px 14px;
    font-size: 12px;
  }

  .filters-header {
    padding: 8px 16px;
  }

  .filters-title {
    font-size: 12px;
  }

  .filters-toggle {
    font-size: 10px;
  }

  .city-control,
  .filters {
    padding: 10px 16px;
    flex-shrink: 0;
  }

  .filters-container {
    flex-shrink: 0;
  }

  .rental-list {
    display: grid !important;
    grid-template-columns: 1fr !important;
    gap: 10px;
    padding: 10px 12px;
    flex: 1 1 0 !important;
    min-height: 0 !important;
    overflow-y: scroll !important;
    overflow-x: hidden !important;
    max-height: 100% !important;
    align-content: start;
    background: var(--bg-secondary);
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }

  /* Rental items - already handled in 480px breakpoint below */

  .pagination-container {
    padding: 10px 16px;
  }

  .pagination-info {
    font-size: 11px;
  }

  .pagination-btn,
  .page-number {
    padding: 6px 10px;
    font-size: 12px;
  }

  #map {
    height: 50vh;
  }
}

/* Mobile (480px and below) */
@media (max-width: 480px) {
  .services-icon {
    font-size: 16px;
  }

  .services-text {
    font-size: 12px;
  }

  .services-panel-header {
    padding: 16px 20px;
    position: sticky;
    top: 0;
  }

  .services-panel-header h2 {
    font-size: 18px;
  }

  .services-close-btn {
    width: 32px;
    height: 32px;
    font-size: 18px;
  }

  .services-panel-content {
    padding: 16px;
  }

  .service-item {
    flex-direction: column;
    padding: 16px;
    gap: 12px;
  }

  .service-icon {
    font-size: 28px;
  }

  .service-info h3 {
    font-size: 14px;
  }

  .service-info p {
    font-size: 12px;
  }

  .service-links {
    flex-direction: column;
    gap: 10px;
  }

  .service-link {
    padding: 12px 16px;
    font-size: 14px;
    justify-content: center;
    min-height: 44px;
    display: flex;
    width: 100%;
  }

  .header-with-logo {
    padding: 10px 12px;
    gap: 8px;
  }
  
  .app-logo {
    width: 32px;
    height: 32px;
  }
  
  .sidebar h1 {
    font-size: 16px;
  }
  
  .header-subtitle {
    font-size: 9px;
  }
  
  .location-display {
    padding: 6px 10px;
    gap: 6px;
    flex-direction: row;
    flex-wrap: wrap;
    align-items: center;
  }
  .leaflet-popup-content-wrapper {
    min-width: 240px !important;
    max-width: 280px !important;
  }
  .location-info {
    flex-direction: row;
    justify-content: space-between;
    width: 100%;
  }
  
  .location-icon {
    font-size: 18px;
  }
  
  .location-label {
    font-size: 9px;
  }
  
  .location-value {
    font-size: 12px;
  }
  
  .change-location-btn {
    padding: 6px 10px;
    font-size: 10px;
    width: auto;
    justify-content: center;
  }

  .filters-header {
    padding: 6px 12px;
  }

  .filters-icon {
    font-size: 14px;
  }

  .filters-title {
    font-size: 11px;
  }

  .filters-toggle {
    font-size: 10px;
  }

  .toggle-icon {
    font-size: 12px;
  }

  .modal {
    padding: 24px 20px;
    max-width: 90%;
  }

  .modal h2 {
    font-size: 20px;
  }

  .rental-list {
    grid-template-columns: 1fr;
    flex: 1 1 0 !important;
    min-height: 0 !important;
    overflow-y: scroll !important;
    overflow-x: hidden !important;
    max-height: 100% !important;
    padding: 8px 10px !important;
    gap: 8px;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior-y: contain;
    position: relative;
  }

  .rental-item {
    margin-bottom: 0;
  }

  .rental-item img,
  .rental-item .no-image-icon {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
  }

  .rental-thumb {
    flex-shrink: 0;
    width: 100px;
    min-height: 100%;
    overflow: hidden;
  }

  .rental-content {
    padding: 8px;
    flex: 1;
  }

  .rental-title {
    font-size: 13px;
    margin-bottom: 6px;
  }

  .rental-info {
    font-size: 11px;
  }

  .filters {
    gap: 6px;
    padding: 8px 12px;
    grid-template-columns: 1fr;
  }

  .filters select {
    min-height: 40px;
    font-size: 13px;
    padding: 8px 10px;
  }

  .pagination-container {
    padding: 8px 12px;
  }

  .pagination-info {
    font-size: 10px;
  }

  .pagination-btn,
  .page-number {
    min-height: 36px;
    padding: 0 12px;
    font-size: 12px;
  }

  .reveal-phone-btn,
  .reveal-phone-btn-popup {
    min-height: 28px;
    padding: 4px 8px;
    font-size: 10px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    white-space: nowrap;
    flex-shrink: 0;
    line-height: 1;
  }
 

  .modal-button {
    min-height: 44px;
    font-size: 14px;
    padding: 12px 20px;
  }

  .modal-select {
    min-height: 44px;
    font-size: 14px;
    padding: 10px 14px;
  }

  .change-location-btn {
    min-height: 36px;
  }

  .rental-item {
    cursor: pointer;
    -webkit-tap-highlight-color: transparent;
  }

  .rental-item:active {
    transform: scale(0.98);
  }

 

  .rental-content {
    padding: 10px;
  }

  .rental-title {
    font-size: 13px;
    font-weight: 700;
    margin-bottom: 6px;
    line-height: 1.3;
    min-height: 34px;
  }

  .rental-meta {
    margin-bottom: 6px;
  }

  .badge {
    font-size: 9px;
    padding: 2px 6px;
  }

  .rental-info {
    font-size: 11px;
    line-height: 1.4;
    display: flex;
    flex-direction: column;
    gap: 4px;
  }

  .rental-info div {
    margin-bottom: 0;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 4px;
  }

  .rental-price {
    margin-top: 6px;
    padding-top: 6px;
    font-size: 13px;
  }

  .rental-price::before {
    font-size: 14px;
  }
}

/* Mobile Landscape Orientation */
@media (max-width: 926px) and (orientation: landscape) {
  .app-container {
    flex-direction: row;
  }

  .sidebar {
    width: 50%;
    height: 100vh;
    max-height: 100vh;
    border-bottom: none;
    border-right: 2px solid var(--border);
    overflow-y: auto;
  }

  .services-panel {
    width: 50%;
    max-width: 400px;
  }

  #map {
    width: 50%;
    height: 100vh;
  }

  .rental-list {
    max-height: none;
    flex: 1 1 auto;
    min-height: 0;
  }

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

  .filters-container.collapsed .filters {
    max-height: 0;
  }
}

/* iPhone and Small Mobile Landscape */
@media (max-height: 430px) and (orientation: landscape) {
  .services-toggle-btn {
    top: 8px;
    right: 8px;
    padding: 8px 12px;
    font-size: 11px;
  }

  .header-with-logo {
    padding: 12px 16px;
  }

  .app-logo {
    width: 32px;
    height: 32px;
  }

  .sidebar h1 {
    font-size: 16px;
  }

  .header-subtitle {
    display: none;
  }

  .location-display {
    padding: 8px 12px;
  }

  .filters {
    padding: 8px 12px;
  }

  .filters select {
    min-height: 36px;
    font-size: 12px;
  }
}

/* ===== PAGINATION ===== */
.pagination-container {
  padding: 16px 20px;
  background: var(--bg-primary);
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-shrink: 0;
}

.pagination-info {
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 500;
}

.pagination-controls {
  display: flex;
  gap: 8px;
  align-items: center;
}

.pagination-btn {
  padding: 6px 12px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  gap: 4px;
}

.pagination-btn:hover:not(:disabled) {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

.pagination-btn:disabled {
  opacity: 0.4;
  cursor: not-allowed;
}

.page-numbers {
  display: flex;
  gap: 4px;
}

.page-number {
  width: 32px;
  height: 32px;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: var(--bg-primary);
  color: var(--text-primary);
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
}

.page-number:hover {
  background: var(--bg-secondary);
  border-color: var(--primary-light);
}

.page-number.active {
  background: var(--primary);
  color: white;
  border-color: var(--primary);
}

@media (max-width: 640px) {
  .pagination-container {
    flex-direction: column;
    gap: 8px;
  }
  
  .page-numbers {
    flex-wrap: wrap;
    justify-content: center;
  }
}

/* ===== NOTIFICATION TOAST ===== */
.notification-toast {
  position: fixed;
  top: 24px;
  right: 24px;
  background: var(--bg-primary);
  border: 1px solid var(--border);
  border-radius: 12px;
  padding: 16px 20px;
  box-shadow: var(--shadow-xl);
  z-index: 10000;
  min-width: 320px;
  max-width: 400px;
  display: flex;
  align-items: center;
  gap: 12px;
  animation: slideIn 0.3s ease;
}

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

.notification-toast.info {
  border-left: 4px solid var(--primary);
}

.notification-toast.success {
  border-left: 4px solid var(--success);
}

.notification-toast.warning {
  border-left: 4px solid var(--warning);
}

.notification-toast.error {
  border-left: 4px solid var(--danger);
}

.notification-toast .icon {
  font-size: 24px;
  flex-shrink: 0;
}

.notification-toast .content {
  flex: 1;
}

.notification-toast .title {
  font-weight: 600;
  font-size: 14px;
  color: var(--text-primary);
  margin-bottom: 4px;
}

.notification-toast .message {
  font-size: 13px;
  color: var(--text-secondary);
  line-height: 1.4;
}

.notification-toast .close-btn {
  background: none;
  border: none;
  color: var(--text-secondary);
  cursor: pointer;
  font-size: 20px;
  padding: 0;
  width: 24px;
  height: 24px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 4px;
  transition: all 0.2s ease;
}

.notification-toast .close-btn:hover {
  background: var(--bg-secondary);
  color: var(--text-primary);
}

@media (max-width: 640px) {
  .notification-toast {
    top: 16px;
    right: 16px;
    left: 16px;
    min-width: auto;
  }
}

/* ===== UTILITY CLASSES ===== */
.text-primary {
  color: var(--text-primary);
}

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

.bg-primary {
  background: var(--bg-primary);
}

.bg-secondary {
  background: var(--bg-secondary);
}

/* ===== CITY SELECTION MODAL ===== */
.city-selection-modal {
  max-width: 520px;
  padding: 24px;
}

.city-selection-modal h2 {
  font-size: 20px;
  margin-bottom: 20px;
  text-align: center;
}

.city-selection-modal h2::before {
  display: none;
}

.modal-close-btn {
  position: absolute;
  top: 16px;
  right: 16px;
  width: 32px;
  height: 32px;
  border: none;
  background: var(--bg-secondary);
  color: var(--text-secondary);
  font-size: 24px;
  line-height: 1;
  border-radius: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 0;
  z-index: 10;
}

.modal-close-btn:hover {
  background: var(--border);
  color: var(--text-primary);
}

/* City Suggestions Cards */
.city-suggestions {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-bottom: 20px;
}

.city-card {
  cursor: pointer;
  transition: all 0.2s ease;
  border-radius: 12px;
  overflow: hidden;
  background: var(--bg-secondary);
  border: 2px solid transparent;
}

.city-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--shadow-md);
}

.city-card.selected {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.1);
}

.city-card-image {
  position: relative;
  width: 100%;
  aspect-ratio: 16/10;
  overflow: hidden;
}

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

.city-card-check {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 28px;
  height: 28px;
  background: var(--primary);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: white;
  font-size: 16px;
  box-shadow: var(--shadow-md);
}

.city-card-name {
  padding: 10px 12px;
  text-align: center;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary);
}

/* City Search */
.city-search-container {
  position: relative;
  margin-bottom: 16px;
}

.city-search-container i {
  position: absolute;
  left: 14px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-secondary);
  font-size: 14px;
}

.city-search-input {
  width: 100%;
  padding: 12px 16px 12px 42px;
  border-radius: 12px;
  border: 2px solid var(--border);
  font-size: 15px;
  background: var(--bg-primary);
  color: var(--text-primary);
  transition: all 0.2s ease;
}

.city-search-input::placeholder {
  color: var(--text-secondary);
}

.city-search-input:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.1);
}

/* City List */
.city-list-container {
  max-height: 280px;
  overflow-y: auto;
  margin-bottom: 16px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: var(--bg-secondary);
}

.city-list {
  padding: 4px;
}

.city-list-item {
  padding: 12px 16px;
  cursor: pointer;
  border-radius: 8px;
  transition: all 0.2s ease;
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 15px;
  color: var(--text-primary);
  margin-bottom: 2px;
}

.city-list-item:hover {
  background: var(--bg-primary);
}

.city-list-item.selected {
  background: var(--primary);
  color: white;
  font-weight: 600;
}

.city-list-item .city-check {
  color: white;
  font-size: 16px;
}

.city-list-container::-webkit-scrollbar {
  width: 6px;
}

.city-list-container::-webkit-scrollbar-track {
  background: transparent;
}

.city-list-container::-webkit-scrollbar-thumb {
  background: var(--border);
  border-radius: 3px;
}

.city-list-container::-webkit-scrollbar-thumb:hover {
  background: var(--text-secondary);
}

/* Mobile Responsive */
@media (max-width: 768px) {
  .city-selection-modal {
    width: 95%;
    max-width: none;
    padding: 20px;
  }

  .city-suggestions {
    gap: 8px;
  }

  .city-card-name {
    font-size: 13px;
    padding: 8px;
  }

  .city-list-container {
    max-height: 200px;
  }
}

@media (max-width: 480px) {
  .city-selection-modal h2 {
    font-size: 18px;
  }

  .city-card-image {
    aspect-ratio: 16/11;
  }

  .city-card-name {
    font-size: 12px;
    padding: 6px 8px;
  }
}

/* ===== DETAIL PANEL ===== */
.detail-panel {
  position: fixed;
  top: 0;
  right: 0;
  bottom: 0;
  left: 0;
  z-index: 2000;
  pointer-events: none;
  opacity: 0;
  transition: opacity 0.3s ease;
}

.detail-panel.active {
  pointer-events: auto;
  opacity: 1;
}

.detail-panel-overlay {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
  cursor: pointer;
}

.detail-panel-content {
  position: absolute;
  top: 0;
  right: 0;
  bottom: 0;
  width: 100%;
  max-width: 600px;
  background: white;
  box-shadow: -4px 0 20px rgba(0, 0, 0, 0.2);
  transform: translateX(100%);
  transition: transform 0.3s cubic-bezier(0.4, 0, 0.2, 1);
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.detail-panel.active .detail-panel-content {
  transform: translateX(0);
}

.detail-panel-close {
  position: sticky;
  top: 16px;
  left: 16px;
  z-index: 10;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  border: none;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 20px;
  color: #333;
  transition: all 0.2s;
  float: left;
  margin-left: 16px;
  margin-bottom: -40px;
}

.detail-panel-close:hover {
  background: #f5f5f5;
  transform: scale(1.1);
}

.detail-panel-body {
  padding-top: 0;
}

/* Gallery */
.detail-gallery {
  position: relative;
  background: #000;
}

.detail-gallery-main {
  position: relative;
  width: 100%;
  height: 350px;
  overflow: hidden;
}

.detail-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  background: #000;
}

.gallery-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  color: #333;
  transition: all 0.2s;
  z-index: 5;
}

.gallery-nav:hover {
  background: white;
  transform: translateY(-50%) scale(1.1);
}

.gallery-prev {
  left: 16px;
}

.gallery-next {
  right: 16px;
}

.gallery-counter {
  position: absolute;
  bottom: 16px;
  right: 16px;
  padding: 8px 16px;
  background: rgba(0, 0, 0, 0.7);
  color: white;
  border-radius: 20px;
  font-size: 14px;
  font-weight: 500;
}

.detail-gallery-thumbs {
  display: flex;
  gap: 8px;
  padding: 12px;
  overflow-x: auto;
  background: #f5f5f5;
  -webkit-overflow-scrolling: touch;
}

.detail-gallery-thumbs::-webkit-scrollbar {
  height: 6px;
}

.detail-gallery-thumbs::-webkit-scrollbar-thumb {
  background: #ccc;
  border-radius: 3px;
}

.gallery-thumb {
  flex-shrink: 0;
  width: 80px;
  height: 60px;
  border-radius: 6px;
  overflow: hidden;
  cursor: pointer;
  border: 2px solid transparent;
  transition: all 0.2s;
}

.gallery-thumb:hover {
  border-color: #4CAF50;
}

.gallery-thumb.active {
  border-color: #4CAF50;
  box-shadow: 0 0 0 2px rgba(76, 175, 80, 0.2);
}

.gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

/* Info Section */
.detail-info {
  padding: 20px;
}

.detail-header {
  margin-bottom: 16px;
}

.detail-title {
  font-size: 20px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 12px 0;
  line-height: 1.4;
}

.detail-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-badges .badge {
  padding: 4px 10px;
  border-radius: 5px;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
}

.badge-crawled {
  background: #ff9800;
  color: white;
}

.detail-price {
  margin-bottom: 16px;
  padding: 16px;
  background: linear-gradient(135deg, #2563eb 0%, #3b82f6 100%);
  border-radius: 10px;
  box-shadow: var(--shadow-sm);
}

.price-text {
  font-size: 22px;
  font-weight: 700;
  color: white;
  display: block;
}

.detail-meta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 24px;
  padding-bottom: 24px;
  border-bottom: 1px solid #e0e0e0;
}

.meta-item {
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 14px;
  color: var(--text-secondary);
}

.meta-item i {
  width: 18px;
  color: var(--primary);
  font-size: 15px;
}

.detail-description,
.detail-amenities,
.detail-contact {
  margin-bottom: 20px;
}

.detail-description h3,
.detail-amenities h3,
.detail-contact h3 {
  font-size: 16px;
  font-weight: 700;
  color: var(--text-primary);
  margin: 0 0 12px 0;
}

.description-content {
  font-size: 14px;
  line-height: 1.6;
  color: var(--text-secondary);
  white-space: pre-wrap;
  word-wrap: break-word;
}

.amenities-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 12px;
}

.amenity-item {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px;
  background: #f5f5f5;
  border-radius: 8px;
  font-size: 14px;
  color: #555;
}

.amenity-item i {
  color: #4CAF50;
  font-size: 16px;
}

.contact-info {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.contact-item {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 15px;
  color: #555;
}

.contact-item i {
  width: 20px;
 
  font-size: 16px;
}

/* .reveal-phone-btn {
  padding: 12px 24px;
  background: var(--primary);
  color: white;
  border: none;
  border-radius: 8px;
  font-size: 15px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  gap: 8px;
} */

.reveal-phone-btn:hover {
  background: var(--primary-dark);
  box-shadow: var(--shadow-md);
}

.contact-phone {
  font-size: 18px;
  font-weight: 700;
  color: var(--primary);
}

.detail-actions {
  display: flex;
  gap: 10px;
  padding-top: 20px;
  border-top: 1px solid var(--border);
}

.detail-actions .btn {
  flex: 1;
  padding: 10px 16px;
  border: none;
  border-radius: 8px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: all 0.2s;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
}

.btn-primary {
  background: linear-gradient(135deg, #2563eb 0%, #1d4ed8 100%);
  color: white;
  transition: all 0.3s ease;
}

.btn-primary:hover {
  background: linear-gradient(135deg, #1d4ed8 0%, #1e40af 100%);
  box-shadow: var(--shadow-lg);
  transform: translateY(-1px);
}

.btn-secondary {
  background: #f5f5f5;
  color: #555;
  border: 1px solid #ddd;
}

.btn-secondary:hover {
  background: #e8e8e8;
  transform: translateY(-2px);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

/* Responsive */
@media (max-width: 768px) {
  .detail-panel-content {
    max-width: 100%;
  }

  .detail-gallery-main {
    height: 300px;
  }

  .detail-title {
    font-size: 18px;
  }

  .price-text {
    font-size: 20px;
  }

  .detail-info {
    padding: 20px;
  }

  .detail-actions {
    flex-direction: column;
  }

  .detail-actions .btn {
    width: 100%;
  }
}

@media (max-width: 480px) {
  .detail-gallery-main {
    height: 250px;
  }

  .detail-title {
    font-size: 17px;
  }

  .price-text {
    font-size: 19px;
  }

  .amenities-list {
    grid-template-columns: 1fr;
  }
}