/* ===== Global Styles & Reset ===== */
@import url('fonts-vazirmatn.css');

* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

/* ===== Auth Modal ===== */
.modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.5);
    display: none;
    align-items: center;
    justify-content: center;
    z-index: 1000;
}
.modal-overlay.show { 
    display: flex;
}
.modal-box {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.2);
    max-width: 560px;
    width: 92vw;
    padding: 20px;
    position: relative;
}
.modal-close {
    position: absolute;
    top: 10px;
    left: 10px;
    border: none;
    background: transparent;
    font-size: 22px;
    cursor: pointer;
    color: #666;
}
.auth-modal .section-title { font-size: 20px; }

.auth-tabs {
    display: flex;
    gap: 8px;
    margin: 6px 0 14px;
    border-bottom: 1px solid #eee;
}
.auth-tab {
    padding: 10px 14px;
    background: transparent;
    border: none;
    border-bottom: 2px solid transparent;
    cursor: pointer;
    color: #555;
    font-weight: 600;
}
.auth-tab.active {
    color: var(--primary-color);
    border-bottom-color: var(--primary-color);
}
.auth-content .form-group { margin-bottom: 14px; }
.auth-content label { display: block; margin-bottom: 6px; color: #333; }
.auth-content input[type="text"],
.auth-content input[type="tel"],
.auth-content input[type="password"],
.auth-content input[type="email"] {
    width: 100%;
    padding: 10px 12px;
    border: 1px solid #ddd;
    border-radius: 8px;
    outline: none;
}
.password-input { position: relative; }
.password-input .toggle-password {
    position: absolute;
    left: 8px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    cursor: pointer;
    color: #666;
}
.form-options { display: flex; align-items: center; justify-content: space-between; margin: 8px 0 4px; }
.auth-btn { width: 100%; padding: 12px; border: none; border-radius: 10px; background: var(--primary-gradient); color: #fff; font-weight: 700; cursor: pointer; }
.terms-checkbox { display: flex; align-items: center; gap: 8px; }

/* ===== User Type Selection Styles ===== */
.user-type-selection {
    background: linear-gradient(135deg, #fff5e6 0%, #ffe8cc 100%);
    border-radius: 16px;
    padding: 20px;
    border: 2px solid rgba(255, 165, 0, 0.2);
    box-shadow: 0 4px 15px rgba(255, 165, 0, 0.1);
}

.user-type-selection p {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    text-align: center;
    margin-bottom: 16px;
}

.user-type-options {
    display: flex;
    gap: 16px;
    margin-top: 12px;
}

.user-type-option {
    flex: 1;
    border: 2px solid #e9ecef;
    border-radius: 14px;
    padding: 18px 16px;
    cursor: pointer;
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 12px;
    background: white;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    position: relative;
    overflow: hidden;
}

.user-type-option::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s ease;
    z-index: 0;
}

.user-type-option:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 20px rgba(255, 165, 0, 0.25);
    border-color: var(--primary-color);
}

.user-type-option:hover::before {
    opacity: 0.05;
}

.user-type-option.selected {
    border-color: var(--primary-color);
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.08) 0%, rgba(255, 140, 0, 0.08) 100%);
    box-shadow: 0 6px 20px rgba(255, 165, 0, 0.3);
    transform: translateY(-2px);
}

.user-type-option.selected::before {
    opacity: 0.1;
}

.option-icon {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    background: linear-gradient(135deg, #fff5e6 0%, #ffe8cc 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
    position: relative;
    z-index: 1;
    border: 2px solid rgba(255, 165, 0, 0.2);
}

.user-type-option:hover .option-icon {
    background: var(--primary-gradient);
    border-color: var(--primary-color);
    transform: scale(1.1) rotate(5deg);
}

.user-type-option.selected .option-icon {
    background: var(--primary-gradient);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(255, 165, 0, 0.4);
}

.option-icon i {
    font-size: 28px;
    color: var(--primary-color);
    transition: all 0.3s ease;
}

.user-type-option:hover .option-icon i,
.user-type-option.selected .option-icon i {
    color: white;
    transform: scale(1.1);
}

.user-type-option span {
    font-size: 15px;
    font-weight: 700;
    color: #333;
    text-align: center;
    position: relative;
    z-index: 1;
    transition: color 0.3s ease;
}

.user-type-option.selected span {
    color: var(--primary-color);
}

@media (max-width: 480px) {
    .user-type-options {
        flex-direction: column;
        gap: 12px;
    }
    
    .user-type-option {
        flex-direction: row;
        padding: 14px 16px;
    }
    
    .option-icon {
        width: 50px;
        height: 50px;
    }
    
    .option-icon i {
        font-size: 24px;
    }
}

body.modal-open { overflow: hidden; }

/* Only add scrollable behavior when modal content overflows on mobile */
@media (max-width: 768px) {
    .modal-overlay {
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
        padding: 10px 0;
    }
    .modal-box {
        max-height: 90vh;
        overflow-y: auto;
        margin: auto;
    }
}

@media (max-width: 480px) {
    .modal-box { padding: 16px; width: 96vw; }
}

/* Locate control (bottom-right) */
.leaflet-control.locate-control {
  background: #fff;
  border-radius: 10px;
  box-shadow: 0 2px 10px rgba(0,0,0,0.12);
  overflow: hidden;
}
.leaflet-control.locate-control .locate-btn {
  all: unset;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  cursor: pointer;
}
.leaflet-control.locate-control .locate-btn i {
  color: #1976D2;
  font-size: 18px;
}
.leaflet-control.locate-control .locate-btn:hover {
  background: rgba(25,118,210,0.08);
}

/* User location pulsing marker */
.user-location-marker {
  position: relative;
  width: 36px;
  height: 50px;
  animation: bob 1.6s ease-in-out infinite;
}
.user-location-marker .pulse-ring {
  position: absolute;
  left: 50%;
  bottom: 6px;
  transform: translateX(-50%);
  width: 10px;
  height: 10px;
  background: rgba(25,118,210,0.3);
  border-radius: 50%;
  box-shadow: 0 0 0 0 rgba(25,118,210,0.6);
  animation: pulse 1.8s infinite;
}
@keyframes pulse {
  0% { box-shadow: 0 0 0 0 rgba(25,118,210,0.6); }
  70% { box-shadow: 0 0 0 12px rgba(25,118,210,0); }
  100% { box-shadow: 0 0 0 0 rgba(25,118,210,0); }
}

@keyframes bob {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

/* Advanced Map Controls */
.map-controls-advanced {
  background: #fff;
  border-radius: 16px;
  padding: 20px;
  box-shadow: 0 4px 20px rgba(0,0,0,0.08);
  margin-bottom: 24px;
}

/* Main Search Bar */
.search-bar-main {
  display: flex;
  gap: 12px;
  align-items: center;
  margin-bottom: 0;
}

.search-control-large {
  position: relative;
  flex: 1;
}

.search-control-large .search-icon {
  position: absolute;
  right: 18px;
  top: 50%;
  transform: translateY(-50%);
  color: #999;
  font-size: 18px;
  pointer-events: none;
}

.search-input-large {
  width: 100%;
  padding: 14px 50px;
  border: 2px solid #E0E0E0;
  border-radius: 999px;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 15px;
  font-weight: 500;
  color: #333;
  background: #F8F9FA;
  transition: all 0.3s ease;
  outline: none;
}

.search-input-large:focus {
  border-color: #FFA500;
  box-shadow: 0 0 0 4px rgba(255, 165, 0, 0.12);
  background: #fff;
}

.search-input-large::placeholder {
  color: #999;
}

.clear-search {
  position: absolute;
  left: 16px;
  top: 50%;
  transform: translateY(-50%);
  background: #E0E0E0;
  border: none;
  color: #666;
  cursor: pointer;
  padding: 6px;
  border-radius: 50%;
  width: 28px;
  height: 28px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: all 0.2s ease;
}

.clear-search:hover {
  background: #FFA500;
  color: #fff;
}

.btn-advanced-filter {
  background: #fff;
  color: #FFA500;
  border: 2px solid #FFA500;
  border-radius: 999px;
  padding: 14px 24px;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.06);
  transition: all 0.3s ease;
  cursor: pointer;
  white-space: nowrap;
  position: relative;
}

.btn-advanced-filter:hover {
  background: rgba(255, 165, 0, 0.1);
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.btn-advanced-filter.active {
  background: #FFA500;
  color: #fff;
}

.btn-advanced-filter .toggle-icon {
  transition: transform 0.3s ease;
  font-size: 12px;
}

.btn-advanced-filter.active .toggle-icon {
  transform: rotate(180deg);
}

/* Filter count badge */
.btn-advanced-filter .filter-count-badge {
  position: absolute;
  top: -8px;
  left: -8px;
  background: #FF5722;
  color: white;
  font-size: 11px;
  font-weight: bold;
  padding: 2px 6px;
  border-radius: 10px;
  min-width: 18px;
  height: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 2px solid white;
  box-shadow: 0 2px 4px rgba(0,0,0,0.2);
  z-index: 10;
}

.btn-advanced-filter .filter-count-badge.hidden {
  display: none;
}

/* Advanced Filters Panel */
.advanced-filters-panel {
  margin-top: 20px;
  padding-top: 20px;
  border-top: 2px solid #F0F0F0;
  animation: slideDown 0.3s ease;
}

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

.filters-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  column-gap: 16px;
  row-gap: 18px;
  margin-bottom: 16px;
}

.filters-row:last-child {
  margin-bottom: 0;
}

.filter-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0; /* allow shrinking within grid */
}

.filter-label {
  font-size: 13px;
  font-weight: 600;
  color: #555;
  display: flex;
  align-items: center;
  gap: 6px;
}

.filter-label i {
  color: #FFA500;
  font-size: 14px;
}

/* Fancy custom select (category) */
.custom-select { position: relative; }
.custom-select-trigger {
  width: 100%;
  background: #fff;
  border: 2px solid #E0E0E0;
  border-radius: 12px;
  padding: 10px 14px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}
.custom-select-trigger:focus-visible,
.custom-select.open .custom-select-trigger {
  border-color: #FFA500;
  box-shadow: 0 0 0 3px rgba(255,165,0,0.1);
}
.custom-select-trigger .selected-icon {
  display: inline-flex;
  width: 28px;
  height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(255,165,0,0.12);
  color: #FFA500;
}
.custom-select-trigger .caret { color: #999; font-size: 12px; }

.custom-select-menu {
  position: absolute;
  inset-inline: 0;
  top: calc(100% + 6px);
  background: #fff;
  border: 2px solid #F0F0F0;
  border-radius: 12px;
  box-shadow: 0 8px 24px rgba(0,0,0,0.08);
  padding: 6px;
  z-index: 1000;
  display: none;
  max-height: 280px;
  overflow: auto;
}
.custom-select.open .custom-select-menu { display: block; }

.custom-option {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border-radius: 10px;
  cursor: pointer;
  transition: background 0.15s ease;
}
.custom-option i { color: #555; width: 18px; text-align: center; }
.custom-option:hover { background: #F8F9FA; }
.custom-option.active { background: rgba(255,165,0,0.12); }

/* Searchable custom select styles */
.custom-select.searchable .custom-select-menu {
  padding: 0;
  max-height: none;
  overflow: visible;
}

.custom-search {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 12px;
  border-bottom: 1px solid #F0F0F0;
  position: sticky;
  top: 0;
  background: #fff;
  z-index: 1;
}

.custom-search .search-icon {
  color: #999;
  font-size: 14px;
  flex-shrink: 0;
}

.custom-search .search-input {
  flex: 1;
  border: none;
  outline: none;
  background: transparent;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 14px;
  color: #333;
}

.custom-search .search-input::placeholder {
  color: #999;
}

.custom-options {
  max-height: 280px;
  overflow-y: auto;
  padding: 6px;
}

.custom-select.searchable .custom-option {
  margin: 0;
  border-radius: 8px;
}

/* Hide options that don't match search */
.custom-option[style*="display: none"] {
  display: none !important;
}

.filter-select {
  padding: 10px 14px;
  border: 2px solid #E0E0E0;
  border-radius: 12px;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  background: #F8F9FA;
  cursor: pointer;
  transition: all 0.2s ease;
  outline: none;
}

.filter-select:focus {
  border-color: #FFA500;
  box-shadow: 0 0 0 3px rgba(255, 165, 0, 0.1);
  background: #fff;
}

.filter-select option {
  padding: 10px;
}

.range-inline {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto minmax(0,1fr);
  gap: 8px;
  align-items: center;
}

.range-sep {
  color: #666;
  font-weight: 600;
}

.filter-input {
  padding: 10px 12px;
  border: 2px solid #E0E0E0;
  border-radius: 12px;
  font-family: 'Vazirmatn', sans-serif;
  font-size: 14px;
  font-weight: 500;
  color: #333;
  background: #F8F9FA;
  outline: none;
  transition: all 0.2s ease;
  width: 100%;
  min-width: 0; /* prevent overflow in grid */
}

.filter-input:focus {
  border-color: #FFA500;
  box-shadow: 0 0 0 3px rgba(255,165,0,0.1);
  background: #fff;
}

.filter-actions {
  display: flex;
  gap: 10px;
  align-items: center;
}

.btn-reset-filters {
  flex: 1;
  background: #fff;
  color: #666;
  border: 2px solid #E0E0E0;
  border-radius: 12px;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.2;
  min-height: 48px;
  max-height: 48px;
}

.btn-reset-filters:hover {
  border-color: #999;
  color: #333;
  background: #F8F9FA;
}

.btn-apply-filters {
  flex: 1;
  background: #FFA500;
  color: #fff;
  border: 2px solid #FFA500;
  border-radius: 12px;
  padding: 12px 20px;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: all 0.2s ease;
  line-height: 1.2;
  min-height: 48px;
  max-height: 48px;
}

.btn-apply-filters:hover {
  background: #e69500;
  border-color: #e69500;
}

.btn-view-map-inline {
  flex: 1;
  background: #FFA500;
  color: #fff;
  border: 2px solid #FFA500;
  border-radius: 12px;
  padding: 10px 16px;
  font-weight: 600;
  font-size: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  text-decoration: none;
  transition: all 0.2s ease;
}

.btn-view-map-inline:hover {
  background: #FF8C00;
  border-color: #FF8C00;
  box-shadow: 0 4px 12px rgba(255, 165, 0, 0.3);
}

@media (max-width: 992px) {
  .filters-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 768px) {
  .search-bar-main {
    flex-direction: column;
  }
  
  .search-control-large,
  .btn-advanced-filter {
    width: 100%;
  }
  
  .filters-row {
    grid-template-columns: 1fr;
  }
  
  .filter-actions {
    flex-direction: column;
  }
}

:root {
    --primary-color: #FFA500;
    --primary-gradient: linear-gradient(135deg, #FFA500 0%, #FF8C00 100%);
    --secondary-color: #004E89;
    --accent-color: #F77F00;
    --success-color: #06D6A0;
    --danger-color: #EF476F;
    --dark-color: #1A1A2E;
    --light-color: #F8F9FA;
    --gray-color: #6C757D;
    --border-color: #DEE2E6;
    --shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    --shadow-lg: 0 4px 20px rgba(0, 0, 0, 0.15);
    --transition: all 0.3s ease;
}

body {
    font-family: 'Vazirmatn', sans-serif;
    direction: rtl;
    text-align: right;
    background-color: var(--light-color);
    color: var(--dark-color);
    line-height: 1.6;
}

.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

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

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

button {
    border: none;
    background: none;
    cursor: pointer;
    font-family: inherit;
    transition: var(--transition);
}

/* ===== Header ===== */
.main-header {
    background: #fff;
    box-shadow: var(--shadow);
    position: sticky;
    top: 0;
    z-index: 1000;
}

.header-content {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 15px 0;
    gap: 30px;
}

.logo {
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 24px;
    font-weight: 700;
    color: var(--primary-color);
}

.logo i {
    font-size: 28px;
}

.logo img {
    height: 32px;
    width: auto;
    display: block;
}

.main-nav ul {
    display: flex;
    list-style: none;
    gap: 30px;
}

.main-nav a {
    font-weight: 500;
    color: var(--dark-color);
    padding: 8px 0;
    position: relative;
}

.main-nav a i {
    display: none;
}

.main-nav a:hover,
.main-nav a.active {
    color: var(--primary-color);
}

.main-nav a.active::after {
    content: '';
    position: absolute;
    bottom: 0;
    right: 0;
    width: 100%;
    height: 2px;
    background: var(--primary-color);
}

.header-actions {
    display: flex;
    align-items: center;
    gap: 15px;
}

.search-box {
    position: relative;
}

.search-box input {
    padding: 10px 40px 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 25px;
    width: 250px;
    font-family: inherit;
}

.search-box i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-color);
}

.btn-icon {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: var(--light-color);
    color: var(--dark-color);
    font-size: 18px;
}

.btn-icon:hover {
    background: var(--primary-color);
    color: #fff;
}

.badge {
    position: relative;
    display: inline-block;
    background: var(--danger-color);
    color: #fff;
    font-size: 11px;
    padding: 2px 6px;
    border-radius: 10px;
    font-weight: 600;
}

.mobile-menu-toggle {
    display: none;
    font-size: 24px;
    color: var(--dark-color);
}

/* ===== Buttons ===== */
.btn-primary {
    background: var(--primary-color);
    color: #fff;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-primary:hover {
    background: var(--accent-color);
    transform: translateY(-2px);
    box-shadow: var(--shadow-lg);
}

.btn-secondary {
    background: var(--secondary-color);
    color: #fff;
    padding: 12px 30px;
    border-radius: 8px;
    font-weight: 600;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}

.btn-secondary:hover {
    background: #003d6b;
    transform: translateY(-2px);
}

.btn-block {
    width: 100%;
    justify-content: center;
}

.btn-sm {
    padding: 8px 20px;
    font-size: 14px;
}

.btn-large {
    padding: 15px 40px;
    font-size: 16px;
}

.btn-text {
    color: var(--primary-color);
    font-weight: 600;
    padding: 5px 10px;
}

.btn-text:hover {
    text-decoration: underline;
}

/* ===== Hero Section ===== */
.hero-section {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: #fff;
    padding: 80px 0;
    text-align: center;
}

.hero-content h1 {
    font-size: 48px;
    font-weight: 800;
    margin-bottom: 20px;
}

.hero-content p {
    font-size: 20px;
    margin-bottom: 40px;
    opacity: 0.9;
}

.hero-search {
    max-width: 700px;
    margin: 0 auto 30px;
    display: flex;
    gap: 10px;
    background: #fff;
    padding: 8px;
    border-radius: 50px;
    box-shadow: var(--shadow-lg);
}

.hero-search input {
    flex: 1;
    border: none;
    padding: 12px 20px;
    font-size: 16px;
    font-family: inherit;
    outline: none;
}

.hero-search .btn-primary {
    border-radius: 40px;
}

.quick-categories {
    display: flex;
    justify-content: center;
    gap: 15px;
    flex-wrap: wrap;
}

.category-chip {
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    padding: 10px 20px;
    border-radius: 25px;
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff;
    font-weight: 500;
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.category-chip:hover {
    background: rgba(255, 255, 255, 0.3);
    transform: translateY(-2px);
}

/* ===== Map Preview Section ===== */
.map-preview-section {
    padding: 24px 0 40px;
}

.section-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
    color: var(--dark-color);
}

.view-all {
    color: var(--primary-color);
    font-weight: 600;
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-container-wrapper {
    position: relative;
}

.map-container {
    height: 500px;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow-lg);
}

/* City Selector Control - Glass Theme Minimal */
.map-city-selector {
    position: absolute;
    top: 10px;
    right: 10px;
    z-index: 1000;
    background: rgba(255, 255, 255, 0.25);
    backdrop-filter: blur(20px);
    -webkit-backdrop-filter: blur(20px);
    border-radius: 12px;
    padding: 6px 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.map-city-selector:hover {
    background: rgba(255, 255, 255, 0.35);
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);
    transform: translateY(-1px);
}

.city-selector-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.city-icon {
    color: #4a90e2;
    font-size: 12px;
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3));
    animation: glow 2s ease-in-out infinite alternate;
}

@keyframes glow {
    from { filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.3)); }
    to { filter: drop-shadow(0 1px 4px rgba(74, 144, 226, 0.8)); }
}

.city-label {
    font-size: 11px;
    font-weight: 700;
    color: #2c3e50;
    text-shadow: 0 1px 3px rgba(255, 255, 255, 0.8);
    white-space: nowrap;
    letter-spacing: 0.3px;
}

.city-select-minimal {
    padding: 3px 8px;
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 8px;
    font-size: 11px;
    font-family: inherit;
    background: rgba(255, 255, 255, 0.2);
    backdrop-filter: blur(10px);
    color: #ffffff;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    min-width: 70px;
    height: 22px;
    line-height: 22px;
    font-weight: 500;
}

.city-select-minimal:hover {
    background: rgba(255, 255, 255, 0.3);
    border-color: rgba(74, 144, 226, 0.6);
    transform: translateY(-1px);
}

.city-select-minimal:focus {
    outline: none;
    background: rgba(255, 255, 255, 0.4);
    border-color: #4a90e2;
    box-shadow: 0 0 0 3px rgba(74, 144, 226, 0.2);
}

.city-select-minimal option {
    background: rgba(255, 255, 255, 0.95);
    color: #333;
    backdrop-filter: blur(10px);
}

/* Responsive adjustments for glass city selector */
@media (max-width: 768px) {
    .map-city-selector {
        top: 8px;
        right: 8px;
        padding: 4px 8px;
    }
    
    .city-selector-row {
        gap: 6px;
    }
    
    .city-icon {
        font-size: 10px;
    }
    
    .city-label {
        font-size: 10px;
    }
    
    .city-select-minimal {
        padding: 2px 6px;
        font-size: 10px;
        min-width: 60px;
        height: 20px;
        line-height: 20px;
    }
}

/* ===== Products Grid ===== */
.featured-section,
.hot-deals-section,
.categories-section,
.stats-section {
    padding: 60px 0;
}

.products-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

#productsGrid.products-grid {
    grid-template-columns: repeat(4, 1fr);
}

.product-card {
    background: #fff;
    border-radius: 15px;
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.product-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.product-image {
    position: relative;
    height: 250px;
    overflow: hidden;
}

.product-image img {
    width: 100%;
    height: 240px;
    object-fit: cover;
    transition: transform 0.3s;
}

.seller-card-overlay {
    position: absolute;
    inset: 0;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    padding: 12px;
    background: linear-gradient(180deg, rgba(0,0,0,0.0) 20%, rgba(0,0,0,0.65) 100%);
    color: #fff;
    pointer-events: none;
}

.seller-card-info {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
}

.seller-card-info i {
    font-size: 12px;
}

.seller-card-info .seller-rating {
    text-shadow: 0 2px 8px rgba(0,0,0,0.5);
    margin-right: auto;
}

.seller-card-info .seller-rating i {
    font-size: 11px;
}

/* Seller Stats Grid */
.seller-stats-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 8px;
    margin-bottom: 12px;
}

.seller-stat-card {
    background: white;
    border-radius: 12px;
    padding: 8px 10px;
    border: 1px solid var(--border-color);
    box-shadow: 0 2px 4px rgba(0,0,0,0.05);
    transition: all 0.2s;
    display: flex;
    align-items: center;
    gap: 8px;
    min-height: 60px;
}

.seller-stat-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(0,0,0,0.1);
    border-color: var(--primary-color);
}

.seller-stat-icon {
    width: 36px;
    height: 36px;
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.12) 0%, rgba(255, 140, 0, 0.12) 100%);
    border-radius: 8px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--primary-color);
    font-size: 18px;
}

.seller-stat-text {
    display: flex;
    flex-direction: column;
    line-height: 1.15;
    flex: 1;
    min-width: 0;
}

.seller-stat-value {
    font-size: 16px;
    font-weight: 900;
    color: var(--text-primary);
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.seller-stat-label {
    font-size: 10px;
    color: var(--text-secondary);
    font-weight: 600;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

/* Seller Address Styling */
.seller-address {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.05) 0%, rgba(255, 140, 0, 0.05) 100%);
    border: 1px solid rgba(255, 165, 0, 0.15);
    border-radius: 10px;
    padding: 10px 12px;
    margin-top: 8px;
    display: flex;
    align-items: flex-start;
    gap: 8px;
    transition: all 0.2s ease;
}

.seller-address:hover {
    border-color: rgba(255, 165, 0, 0.3);
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.08) 0%, rgba(255, 140, 0, 0.08) 100%);
}

.seller-address i {
    color: var(--primary-color);
    font-size: 14px;
    margin-top: 2px;
    flex-shrink: 0;
}

.seller-address span {
    color: var(--text-primary);
    font-size: 12px;
    font-weight: 600;
    line-height: 1.4;
    word-break: break-word;
}

/* Product Actions Layout */
.product-actions {
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding: 0 4px;
}

.btn-secondary {
    background: white;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: 700;
    font-size: 12px;
    cursor: pointer;
    transition: all 0.3s;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    text-decoration: none;
    flex: 1;
    justify-content: center;
}

.btn-secondary:hover {
    background: var(--primary-color);
    color: white;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(255, 165, 0, 0.3);
}

.btn-primary {
    flex: 1;
    padding: 8px 12px;
    font-size: 12px;
    border-radius: 8px;
}

/* Marketing Leads Styles */
.leads-container {
    background: white;
    border-radius: 15px;
    padding: 24px;
    box-shadow: var(--shadow);
}

.leads-header {
    margin-bottom: 24px;
}

.leads-header h3 {
    color: var(--text-primary);
    font-size: 20px;
    font-weight: 700;
    margin-bottom: 16px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.leads-list {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 16px;
}

@media (max-width: 1024px) {
    .leads-list {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .leads-list {
        grid-template-columns: 1fr;
    }
}

.lead-file-item {
    background: var(--bg-secondary);
    border: 1px solid var(--border-color);
    border-radius: 12px;
    padding: 16px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    transition: all 0.3s ease;
}

.lead-file-item:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(255, 165, 0, 0.1);
    transform: translateY(-1px);
}

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

.file-info i {
    color: var(--primary-color);
    font-size: 18px;
}

.file-name {
    font-weight: 600;
    color: var(--text-primary);
    font-size: 16px;
}

.file-actions {
    display: flex;
    gap: 8px;
}

.file-actions .btn-action {
    padding: 8px 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 13px;
    font-weight: 600;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.file-actions .btn-view {
    background: var(--primary-color);
    color: white;
}

.file-actions .btn-view:hover {
    background: #e67e00;
    transform: translateY(-1px);
}

.file-actions .btn-download {
    background: #28a745;
    color: white;
}

.file-actions .btn-download:hover {
    background: #218838;
    transform: translateY(-1px);
}

.info-box {
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.05) 0%, rgba(255, 140, 0, 0.05) 100%);
    border: 1px solid rgba(255, 165, 0, 0.15);
    border-radius: 10px;
    padding: 16px;
    margin-top: 16px;
}

.info-box h4 {
    color: var(--primary-color);
    font-size: 16px;
    font-weight: 700;
    margin-bottom: 8px;
}

.info-box p {
    color: var(--text-secondary);
    font-size: 14px;
    line-height: 1.6;
}

/* Excel Data Modal Styles */
.excel-data-display {
    padding: 0;
}

.excel-file-header {
    display: flex;
    align-items: center;
    gap: 16px;
    padding: 20px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    border-radius: 12px 12px 0 0;
    margin: -20px -20px 0 -20px;
}

.excel-icon-wrapper {
    width: 60px;
    height: 60px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(10px);
}

.excel-icon-wrapper i {
    font-size: 32px;
    color: white;
}

.excel-file-info h3 {
    color: white;
    font-size: 18px;
    font-weight: 700;
    margin: 0 0 6px 0;
}

.excel-file-info p {
    color: rgba(255, 255, 255, 0.9);
    font-size: 14px;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 6px;
}

.lead-preview-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: linear-gradient(135deg, rgba(255, 165, 0, 0.1) 0%, rgba(255, 140, 0, 0.1) 100%);
    border: 1px solid rgba(255, 165, 0, 0.3);
    color: var(--primary-color);
    padding: 8px 16px;
    border-radius: 20px;
    font-weight: 600;
    font-size: 13px;
    margin: 20px 0 16px 0;
}

.lead-preview-badge i {
    font-size: 14px;
}

.lead-data-card {
    background: var(--bg-secondary);
    border-radius: 12px;
    padding: 20px;
    margin-bottom: 20px;
}

.lead-field {
    display: flex;
    align-items: flex-start;
    gap: 16px;
    padding: 16px;
    background: white;
    border-radius: 10px;
    margin-bottom: 12px;
    border: 1px solid var(--border-color);
    transition: all 0.3s ease;
}

.lead-field:last-child {
    margin-bottom: 0;
}

.lead-field:hover {
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(255, 165, 0, 0.1);
    transform: translateX(-2px);
}

.field-icon {
    width: 44px;
    height: 44px;
    background: linear-gradient(135deg, var(--primary-color) 0%, #ff8c00 100%);
    border-radius: 10px;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.field-icon i {
    color: white;
    font-size: 18px;
}

.field-content {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.field-content label {
    color: var(--text-secondary);
    font-size: 13px;
    font-weight: 600;
    margin: 0;
}

.field-content .field-value {
    color: var(--text-primary);
    font-size: 17px;
    font-weight: 700;
}

.field-content .phone-clickable {
    cursor: pointer;
    color: #2196F3;
    text-decoration: underline;
    transition: color 0.2s;
}

.field-content .phone-clickable:hover {
    color: #1976D2;
}

.modal-footer-actions {
    display: flex;
    justify-content: center;
    padding-top: 20px;
    border-top: 1px solid var(--border-color);
}

.btn-close-modal {
    background: linear-gradient(135deg, #6c757d 0%, #5a6268 100%);
    color: white;
    border: none;
    padding: 12px 32px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 15px;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    box-shadow: 0 4px 12px rgba(108, 117, 125, 0.3);
}

.btn-close-modal:hover {
    background: linear-gradient(135deg, #5a6268 0%, #495057 100%);
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(108, 117, 125, 0.4);
}

.btn-close-modal i {
    font-size: 16px;
}

/* Excel file icon color */
.fa-file-excel {
    color: #28a745 !important;
}

@media (max-width: 768px) {
    .seller-stats-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 6px;
    }
    
    .seller-stat-card {
        padding: 6px 8px;
        min-height: 55px;
    }
    
    .seller-stat-icon {
        width: 32px;
        height: 32px;
        font-size: 16px;
    }
    
    .seller-stat-value {
        font-size: 14px;
    }
    
    .seller-stat-label {
        font-size: 9px;
    }
}

.product-card:hover .product-image img {
    transform: scale(1.1);
}

.discount-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--danger-color);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 14px;
}

.new-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: var(--success-color);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 12px;
}

.btn-wishlist {
    position: absolute;
    bottom: 15px;
    left: 15px;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--gray-color);
}

.btn-wishlist:hover,
.btn-wishlist.active {
    color: var(--danger-color);
}

.product-info {
    padding: 20px;
}

.product-category {
    color: var(--primary-color);
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 8px;
}

.product-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--dark-color);
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.product-rating {
    display: flex;
    align-items: center;
    gap: 5px;
    margin-bottom: 10px;
    font-size: 14px;
}

.product-rating .fas.fa-star,
.product-rating .fas.fa-star-half-alt {
    color: #FFC107;
}

.product-rating .far.fa-star {
    color: #DEE2E6;
}

.product-rating span {
    color: var(--gray-color);
    font-size: 18px;
}

.seller-info,
.product-location {
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
    color: var(--gray-color);
    margin-bottom: 8px;
}

.seller-info i,
.product-location i {
    color: var(--primary-color);
}

.product-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin: 15px 0;
}

.current-price {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
}

.original-price {
    font-size: 16px;
    color: var(--gray-color);
    text-decoration: line-through;
}

/* ===== Hot Deals Section ===== */
.hot-deals-section {
    background: #fff;
}

.countdown {
    display: flex;
    align-items: center;
    gap: 10px;
    color: var(--danger-color);
    font-weight: 700;
    font-size: 18px;
}

.deals-slider {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 25px;
}

.deal-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 15px;
    overflow: hidden;
    display: flex;
    color: #fff;
    box-shadow: var(--shadow-lg);
}

.deal-image {
    width: 150px;
    height: 150px;
}

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

.deal-content {
    flex: 1;
    padding: 20px;
}

.deal-content h3 {
    font-size: 18px;
    margin-bottom: 15px;
}

.deal-price {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 15px;
}

.deal-current {
    font-size: 22px;
    font-weight: 700;
}

.deal-original {
    font-size: 16px;
    text-decoration: line-through;
    opacity: 0.7;
}

.deal-progress {
    margin-top: 15px;
}

.progress-bar {
    height: 8px;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 8px;
}

.progress-fill {
    height: 100%;
    background: #fff;
    border-radius: 10px;
    transition: var(--transition);
}

.progress-text {
    font-size: 13px;
    opacity: 0.9;
}

/* ===== Categories Section ===== */
.categories-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 20px;
}

.category-box {
    background: #fff;
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.category-box:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
    background: var(--primary-color);
    color: #fff;
}

.category-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 15px;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 36px;
    color: var(--primary-color);
    transition: var(--transition);
}

.category-box:hover .category-icon {
    background: #fff;
}

.category-box h3 {
    font-size: 18px;
    margin-bottom: 8px;
}

.category-box p {
    color: var(--gray-color);
    font-size: 14px;
}

.category-box:hover p {
    color: rgba(255, 255, 255, 0.9);
}

/* ===== Stats Section ===== */
.stats-section {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: #fff;
}

.stats-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 30px;
}

.stat-box {
    display: flex;
    align-items: center;
    gap: 20px;
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px;
    border-radius: 15px;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.stat-icon {
    width: 70px;
    height: 70px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 15px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
}

.stat-content h3 {
    font-size: 36px;
    font-weight: 800;
    margin-bottom: 5px;
}

.stat-content p {
    font-size: 16px;
    opacity: 0.9;
}

/* ===== Footer ===== */
.main-footer {
    background: var(--dark-color);
    color: #fff;
    padding: 30px 0 12px;
}

.footer-content {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px 40px;
    margin-bottom: 20px;
}

.footer-logo {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 8px;
}

.footer-logo i {
    font-size: 20px;
    color: var(--primary-color);
}

.footer-column p {
    margin-bottom: 10px;
    opacity: 0.8;
    line-height: 1.5;
    font-size: 13px;
}

.footer-column h4 {
    margin-bottom: 10px;
    font-size: 15px;
}

.footer-column ul {
    list-style: none;
}

.footer-column ul li {
    margin-bottom: 6px;
}

.footer-column ul li a {
    opacity: 0.8;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.footer-column ul li a:hover {
    opacity: 1;
    color: var(--primary-color);
}

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

.social-links a {
    width: 32px;
    height: 32px;
    background: rgba(255, 255, 255, 0.1);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.social-links a:hover {
    background: var(--primary-color);
    transform: translateY(-2px);
}

.contact-info li {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
}

.contact-info i {
    color: var(--primary-color);
    font-size: 12px;
}

.footer-bottom {
    text-align: center;
    padding-top: 15px;
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    opacity: 0.8;
    font-size: 13px;
}

/* ===== Page Header ===== */
.page-header {
    background: linear-gradient(135deg, var(--secondary-color), var(--primary-color));
    color: #fff;
    padding: 60px 0;
    text-align: center;
}

.page-header h1 {
    font-size: 42px;
    font-weight: 800;
    margin-bottom: 15px;
}

.page-header p {
    font-size: 18px;
    opacity: 0.9;
}

.breadcrumb {
    display: flex;
    align-items: center;
    gap: 10px;
    justify-content: center;
    margin-top: 20px;
}

.breadcrumb a {
    opacity: 0.8;
}

.breadcrumb a:hover {
    opacity: 1;
    text-decoration: underline;
}

.breadcrumb i {
    font-size: 12px;
    opacity: 0.6;
}

/* ===== Responsive ===== */
@media (max-width: 992px) {
    .hero-content h1 {
        font-size: 36px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
    }
}

@media (max-width: 768px) {
    .main-nav {
        display: block;
        position: fixed;
        top: 0;
        right: 0;
        height: 100vh;
        width: 300px;
        background: linear-gradient(180deg, #ffffff 0%, #f8f9fa 100%);
        box-shadow: -8px 0 32px rgba(0,0,0,0.15);
        transform: translateX(100%);
        transition: transform 0.35s cubic-bezier(0.4, 0, 0.2, 1);
        z-index: 1000;
        padding: 0;
        overflow-y: auto;
    }
    
    .mobile-menu-toggle {
        display: block;
    }
    
    .main-nav.active { transform: translateX(0); }
    
    .main-nav ul { 
        flex-direction: column; 
        gap: 0;
        padding: 100px 20px 40px;
    }
    
    .main-nav li {
        border-bottom: 1px solid rgba(0,0,0,0.06);
    }
    
    .main-nav li:last-child {
        border-bottom: none;
    }
    
    .main-nav a {
        display: flex;
        align-items: center;
        gap: 12px;
        padding: 16px 12px;
        font-size: 16px;
        font-weight: 600;
        color: #2c3e50;
        border-radius: 10px;
        transition: all 0.25s ease;
    }
    
    .main-nav a i {
        display: inline-block;
        font-size: 18px;
        width: 24px;
        text-align: center;
        color: var(--primary-color);
        transition: color 0.25s ease;
    }
    
    .main-nav a:hover,
    .main-nav a.active {
        background: var(--primary-gradient);
        color: white;
        transform: translateX(-4px);
    }
    
    .main-nav a:hover i,
    .main-nav a.active i {
        color: white;
    }
    
    .main-nav a.active::after {
        display: none;
    }
    
    body.mobile-nav-open { overflow: hidden; }
    body.mobile-nav-open::before {
        content: '';
        position: fixed;
        inset: 0;
        background: rgba(0,0,0,0.5);
        z-index: 999;
        animation: fadeIn 0.3s ease;
    }
    
    @keyframes fadeIn {
        from { opacity: 0; }
        to { opacity: 1; }
    }
    
    .header-actions .search-box {
        display: none;
    }
    
    .hero-content h1 {
        font-size: 28px;
    }
    
    .hero-content p {
        font-size: 16px;
    }
    
    .products-grid {
        grid-template-columns: repeat(2, 1fr) !important;
        gap: 15px;
    }
    
    .deal-card {
        flex-direction: column;
    }
    
    .deal-image {
        width: 100%;
        height: 200px;
    }
}

@media (max-width: 992px) {
    .footer-content {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px 30px;
    }
}

@media (max-width: 576px) {
    .products-grid {
        grid-template-columns: 1fr !important;
    }
    
    .quick-categories {
        flex-direction: column;
        align-items: stretch;
    }
    
    .footer-content {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    
    .main-footer {
        padding: 25px 0 10px;
    }
}

/* ===== Map Page ===== */
.map-page {
    display: flex;
    height: calc(100vh - 70px);
}

.map-sidebar {
    width: 350px;
    background: #fff;
    overflow-y: auto;
    box-shadow: var(--shadow);
    z-index: 100;
}

.sidebar-header {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.sidebar-header h3 {
    font-size: 20px;
    font-weight: 700;
}

.filter-section {
    padding: 20px;
    border-bottom: 1px solid var(--border-color);
}

.filter-section h4 {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 15px;
}

.search-input {
    position: relative;
}

.search-input input {
    width: 100%;
    padding: 10px 40px 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
}

.search-input i {
    position: absolute;
    right: 15px;
    top: 50%;
    transform: translateY(-50%);
    color: var(--gray-color);
}

.checkbox-group,
.radio-group {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.checkbox-label,
.radio-label {
    display: flex;
    align-items: center;
    gap: 10px;
    cursor: pointer;
    font-size: 14px;
}

.checkbox-label input,
.radio-label input {
    cursor: pointer;
}

.checkbox-label .count {
    margin-right: auto;
    color: var(--gray-color);
    font-size: 13px;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 10px;
}

.price-inputs input {
    flex: 1;
    padding: 8px 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
}

.price-range input[type="range"] {
    width: 100%;
}

.select-input {
    width: 100%;
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    font-family: inherit;
    background: #fff;
}

.results-info {
    padding: 15px 20px;
    background: var(--light-color);
    display: flex;
    align-items: center;
    gap: 10px;
    font-size: 14px;
}

.results-info i {
    color: var(--primary-color);
}

.map-main {
    flex: 1;
    position: relative;
}

.full-map-container {
    width: 100%;
    height: 100%;
}

.map-controls {
    position: absolute;
    top: 20px;
    left: 20px;
    z-index: 500;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.map-control-btn {
    width: 45px;
    height: 45px;
    background: #fff;
    border-radius: 8px;
    box-shadow: var(--shadow);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 18px;
    color: var(--dark-color);
}

.map-control-btn:hover {
    background: var(--primary-color);
    color: #fff;
}

.map-legend {
    position: absolute;
    bottom: 20px;
    right: 20px;
    background: #fff;
    padding: 15px;
    border-radius: 10px;
    box-shadow: var(--shadow);
    z-index: 500;
    max-height: 400px;
    overflow-y: auto;
    max-width: 200px;
}

.map-legend h4 {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 10px;
    position: sticky;
    top: 0;
    background: #fff;
    padding-bottom: 5px;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-bottom: 8px;
    font-size: 12px;
}

.legend-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 13px;
    border: 2px solid white;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    flex-shrink: 0;
}

.legend-marker {
    width: 20px;
    height: 20px;
    border-radius: 50%;
}

.marker-electronics { background: #2196F3; }
.marker-fashion { background: #E91E63; }
.marker-food { background: #FF9800; }
.marker-home { background: #4CAF50; }
.marker-beauty { background: #9C27B0; }
.marker-sports { background: #F44336; }

.map-popup {
    width: 280px;
}

.popup-image {
    position: relative;
    height: 160px;
}

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

.popup-discount {
    position: absolute;
    top: 10px;
    right: 10px;
    background: var(--danger-color);
    color: #fff;
    padding: 4px 10px;
    border-radius: 15px;
    font-weight: 700;
    font-size: 12px;
}

.popup-content {
    padding: 15px;
}

.popup-category {
    color: var(--primary-color);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 5px;
}

.popup-title {
    font-size: 14px;
    font-weight: 600;
    margin-bottom: 8px;
}

.popup-seller {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: var(--gray-color);
    margin-bottom: 8px;
}

.popup-price {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 12px;
}

.popup-current-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
}

.popup-original-price {
    font-size: 13px;
    color: var(--gray-color);
    text-decoration: line-through;
}

.popup-actions {
    display: flex;
    gap: 8px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

.btn-icon-sm {
    width: 35px;
    height: 35px;
    border-radius: 8px;
    background: var(--light-color);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-color);
}

.btn-icon-sm:hover {
    background: var(--danger-color);
    color: #fff;
}

/* ===== Products Page ===== */
.products-page {
    padding: 0;
}

.products-layout {
    display: flex;
    gap: 30px;
}

.products-sidebar {
    width: 280px;
    flex-shrink: 0;
}

.sidebar-section {
    background: #fff;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 20px;
    box-shadow: var(--shadow);
}

.sidebar-section h3 {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 15px;
}

.category-list {
    list-style: none;
}

.category-list li {
    margin-bottom: 5px;
}

.category-list a {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px;
    border-radius: 8px;
    font-size: 14px;
    color: var(--dark-color);
}

.category-list a:hover,
.category-list a.active {
    background: var(--light-color);
    color: var(--primary-color);
}

.category-list .count {
    margin-right: auto;
    color: var(--gray-color);
    font-size: 13px;
}

.price-filter {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.discount-filter,
.rating-filter {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.stars {
    color: #FFC107;
    display: flex;
    gap: 2px;
}

.products-content {
    flex: 1;
}

.products-toolbar {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 25px;
    padding: 15px 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: var(--shadow);
}

.results-count {
    font-size: 14px;
    color: var(--gray-color);
}

.results-count strong {
    color: var(--dark-color);
}

.toolbar-right {
    display: flex;
    align-items: center;
    gap: 15px;
}

.view-mode {
    display: flex;
    gap: 5px;
}

.view-btn {
    width: 40px;
    height: 40px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--gray-color);
}

.view-btn.active,
.view-btn:hover {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.sort-select {
    padding: 10px 15px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    font-family: inherit;
}

.pagination {
    display: flex;
    justify-content: center;
    align-items: center;
    gap: 8px;
    margin-top: 40px;
}

.page-btn {
    min-width: 40px;
    height: 40px;
    padding: 0 12px;
    border: 1px solid var(--border-color);
    border-radius: 6px;
    background: #fff;
    color: var(--dark-color);
    font-weight: 600;
}

.page-btn:hover:not(:disabled),
.page-btn.active {
    background: var(--primary-color);
    color: #fff;
    border-color: var(--primary-color);
}

.page-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.page-dots {
    color: var(--gray-color);
}

/* ===== Categories Page ===== */
.categories-page-section {
    padding: 60px 0;
}

.categories-grid-large {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 25px;
}

.category-card {
    background: #fff;
    padding: 40px 30px;
    border-radius: 15px;
    text-align: center;
    box-shadow: var(--shadow);
    transition: var(--transition);
    position: relative;
    overflow: hidden;
}

.category-card::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--primary-color), var(--accent-color));
    opacity: 0;
    transition: var(--transition);
}

.category-card:hover::before {
    opacity: 1;
}

.category-card:hover {
    transform: translateY(-5px);
    box-shadow: var(--shadow-lg);
}

.category-card-icon {
    width: 100px;
    height: 100px;
    margin: 0 auto 20px;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--primary-color);
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.category-card:hover .category-card-icon {
    background: #fff;
    transform: scale(1.1);
}

.category-card h3 {
    font-size: 20px;
    margin-bottom: 10px;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.category-card p {
    color: var(--gray-color);
    font-size: 14px;
    position: relative;
    z-index: 1;
    transition: var(--transition);
}

.category-card:hover h3,
.category-card:hover p {
    color: #fff;
}

.category-arrow {
    position: absolute;
    bottom: 20px;
    left: 20px;
    width: 40px;
    height: 40px;
    background: var(--light-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    opacity: 0;
    transform: translateX(-10px);
    transition: var(--transition);
    z-index: 1;
}

.category-card:hover .category-arrow {
    opacity: 1;
    transform: translateX(0);
    background: #fff;
}

/* ===== Breadcrumb Section ===== */
.breadcrumb-section {
    background: var(--light-color);
    padding: 20px 0;
}

.breadcrumb-section .breadcrumb {
    justify-content: flex-start;
}

.breadcrumb-section .breadcrumb a {
    color: var(--primary-color);
}

.breadcrumb-section .breadcrumb span {
    color: var(--gray-color);
}

/* ===== Responsive for Map & Products Pages ===== */
/* ===== Home Map Icons Marquee ===== */
.map-icons-marquee-wrapper {
    position: relative;
    margin: 10px 0 16px;
}

.map-icons-marquee {
    position: relative;
    overflow: hidden;
    border-radius: 12px;
    background: #fff;
    box-shadow: var(--shadow);
    direction: ltr; /* ensure horizontal flow for marquee math */
    padding: 10px 16px; /* move padding here to avoid affecting translation */
}

.map-icons-marquee-wrapper::before,
.map-icons-marquee-wrapper::after {
    content: '';
    position: absolute;
    top: 0;
    width: 50px;
    height: 100%;
    z-index: 2;
    pointer-events: none;
}

/* Fade edges (RTL: right is leading edge) */
.map-icons-marquee-wrapper::before {
    right: 0;
    background: linear-gradient(270deg, #fff, rgba(255,255,255,0));
}
.map-icons-marquee-wrapper::after {
    left: 0;
    background: linear-gradient(90deg, #fff, rgba(255,255,255,0));
}

.map-icons-marquee .marquee-track {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    padding: 0; /* prevent padding from breaking seamless loop */
    width: max-content; /* shrink to content width */
    min-width: 200%; /* two groups side-by-side */
    white-space: nowrap; /* prevent wrapping */
    animation: marquee-scroll 40s linear infinite;
    will-change: transform;
}

.map-icons-marquee .marquee-group {
    display: inline-flex;
    align-items: center;
    gap: 12px;
    flex: 0 0 auto;
}

.map-icons-marquee:hover .marquee-track {
    animation-play-state: paused;
}

@keyframes marquee-scroll {
    from { transform: translate3d(0, 0, 0); }
    to { transform: translate3d(var(--marquee-shift, -50%), 0, 0); }
}

.icon-pill {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    background: var(--light-color);
    border: 1px solid var(--border-color);
    border-radius: 999px;
    color: var(--dark-color);
    font-size: 13px;
    white-space: nowrap;
    direction: rtl; /* keep Persian text RTL inside pill */
    cursor: pointer;
    transition: transform 0.12s ease, box-shadow 0.2s ease, background 0.2s ease, border-color 0.2s ease;
}

.icon-pill:hover { box-shadow: 0 3px 10px rgba(0,0,0,0.08); }
.icon-pill:active { transform: scale(0.98); }

.icon-pill.selected {
    background: var(--primary-color);
    border-color: var(--primary-color);
    box-shadow: 0 4px 14px rgba(255, 102, 0, 0.3);
    color: #fff;
    font-weight: 600;
}

.icon-pill.selected .pill-icon {
    background: rgba(255, 255, 255, 0.3);
    color: #fff;
}

.pill-icon {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #fff;
    box-shadow: 0 2px 6px rgba(0,0,0,0.15);
}

.pill-blue { background: #2196F3; }
.pill-pink { background: #E91E63; }
.pill-orange { background: #FF9800; }
.pill-green { background: #4CAF50; }
.pill-purple { background: #9C27B0; }
.pill-red { background: #F44336; }
.pill-cyan { background: #00BCD4; }
.pill-gray { background: #9E9E9E; }
.pill-slate { background: #607D8B; }
.pill-lightgreen { background: #8BC34A; }
.pill-deeporange { background: #FF5722; }
.pill-brown { background: #795548; }

@media (max-width: 576px) {
    .map-icons-marquee .marquee-track { gap: 8px; padding: 8px 12px; }
    .icon-pill { padding: 6px 10px; font-size: 12px; }
    .pill-icon { width: 24px; height: 24px; }
}

/* Selected filters chips under marquee */
.selected-filters-bar {
    background: #fff;
    border: 1px solid var(--border-color);
    border-radius: 10px;
    padding: 8px 10px;
    box-shadow: var(--shadow);
    margin-bottom: 16px;
    display: flex;
    gap: 10px;
    align-items: center;
}

.selected-label {
    color: var(--dark-color);
    font-weight: 600;
    white-space: nowrap;
}

.selected-filters {
    display: flex;
    gap: 8px;
    min-height: 28px;
    overflow-x: auto;
    overflow-y: hidden;
    flex: 1 1 auto;
    scroll-behavior: smooth;
    flex-wrap: nowrap;
    white-space: nowrap;
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    -webkit-overflow-scrolling: touch; /* iOS momentum */
    touch-action: pan-x pan-y; /* allow both horizontal and vertical touch pan */
    cursor: grab;
}

.selected-filters::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Opera */
}

.selected-filters.dragging {
    cursor: grabbing;
}

/* Selected items rail ("موارد انتخاب‌شده") */
.selected-items-row .selected-price {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 4px;
    align-items: flex-start;
}

.selected-items-row .selected-price-main {
    display: inline-flex;
    align-items: flex-end;
    gap: 6px;
    font-weight: 600;
    flex-direction: row-reverse;
}

.selected-items-row .selected-price-main .price-digits {
    font-size: 0.88rem;
    line-height: 1;
    letter-spacing: 0.4px;
    color: #1b1c1d;
}

.selected-items-row .selected-price-main .price-currency {
    font-size: 0.88rem;
    font-weight: 800;
    padding: 0 4px;
    border-radius: 0;
    background: transparent;
    color: #8c8f92;
    line-height: 1.2;
}

.selected-items-row .selected-price-original {
    display: inline-flex;
    align-items: flex-end;
    gap: 4px;
    font-size: 0.75rem;
    color: #9aa0a6;
    flex-direction: row-reverse;
}

.selected-items-row .selected-price-original .price-digits {
    text-decoration: line-through;
}

.selected-items-row .selected-price-original .price-currency {
    font-size: 0.7rem;
    color: #9aa0a6;
    font-weight: 800;
}

.selected-items-row .selected-price--single .selected-price-main {
    color: #1a1a1a;
}

/* All-Off Shops Section - Hide scrollbar but allow scrolling */
#allOffShops {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    touch-action: pan-x pan-y; /* Allow both horizontal and vertical touch scrolling */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

#allOffShops::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Opera */
}

/* Selected Items Section - Hide scrollbar but allow scrolling */
#selectedItems {
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
    touch-action: pan-x pan-y; /* Allow both horizontal and vertical touch scrolling */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

#selectedItems::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Opera */
}

/* Marquee Track - Allow touch scrolling */
.marquee-track {
    touch-action: pan-x pan-y; /* Allow both horizontal and vertical touch scrolling */
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
}

.map-icons-marquee {
    touch-action: pan-x pan-y; /* Allow both horizontal and vertical touch scrolling */
    overflow-x: auto; /* Allow manual horizontal scroll */
    scrollbar-width: none; /* Firefox */
    -ms-overflow-style: none; /* IE/Edge */
}

.map-icons-marquee::-webkit-scrollbar {
    display: none; /* Chrome/Safari/Opera */
}

/* Generic chips (categories/job titles) */
.chips {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.chip {
  background: #fff;
  border: 1px solid var(--border-color);
  border-radius: 999px;
  padding: 8px 14px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #333;
  font-weight: 600;
  font-size: 13px;
  transition: var(--transition);
}

.chip i { color: var(--primary-color); }

.chip:hover {
  background: #F8F9FA;
  transform: translateY(-2px);
  box-shadow: var(--shadow);
}

.chip.active {
  border-color: var(--primary-color);
  color: var(--primary-color);
  background: rgba(255,165,0,0.08);
}

/* Product Card Styles (shared between shopping-details and products pages) */
.product-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: var(--shadow-md);
    transition: all 0.3s;
    display: flex;
    flex-direction: column;
    height: 100%;
    position: relative;
}

.product-card:hover {
    transform: translateY(-4px);
    box-shadow: var(--shadow-lg);
}

.product-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: var(--primary-gradient);
    opacity: 0;
    transition: opacity 0.3s;
}

.product-card:hover::before {
    opacity: 1;
}

.product-image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f0f0f0;
}

.product-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.product-card:hover .product-image {
    position: relative;
    overflow: hidden;
}

.product-image .product-photo-overlay {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    padding: 10px 14px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 8px;
    background: linear-gradient(180deg, rgba(0,0,0,0) 0%, rgba(0,0,0,0.7) 80%);
    color: #fff;
    font-size: 13px;
    font-weight: 700;
    backdrop-filter: blur(2px);
}

.product-image .product-photo-name {
    flex: 1;
    font-size: 15px;
    font-weight: 800;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.product-image .product-photo-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 12px;
    background: rgba(0,0,0,0.5);
    padding: 4px 8px;
    border-radius: 999px;
    border: 1px solid rgba(255,255,255,0.3);
}

.product-image .product-photo-rating i {
    color: #FFC107;
}

.product-discount-badge {
    position: absolute;
    right: 12px;
    top: 12px;
    background: linear-gradient(135deg, rgba(220,53,69,0.95) 0%, rgba(200,35,51,0.95) 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 8px;
    font-weight: 800;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(220, 53, 69, 0.3);
    z-index: 1;
}

.product-info {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.product-name {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    color: var(--text-primary);
}

.product-desc {
    color: var(--text-secondary);
    font-size: 14px;
    margin-bottom: 10px;
    line-height: 1.6;
}

.product-price {
    display: flex;
    align-items: baseline;
    gap: 8px;
    margin-top: 6px;
}

.price-original {
    font-size: 12px;
    color: var(--text-secondary);
    text-decoration: line-through;
}

.price-final {
    font-size: 18px;
    font-weight: 900;
    color: var(--primary-color);
}

.product-discount-type {
    display: flex;
    flex-direction: column;
    gap: 8px;
    margin: 10px 0 12px;
    padding: 12px;
    border-radius: 10px;
    background: transparent;
    border: 1px solid rgba(255,165,0,0.25);
    transition: all 0.2s ease;
    box-sizing: border-box;
    overflow: hidden;
    order: 98;
    margin-top: auto;
}

.product-discount-type:hover {
    border-color: rgba(255,165,0,0.5);
}

.product-discount-type .type-prefix {
    font-size: 12px;
    font-weight: 700;
    color: var(--text-primary);
    display: flex;
    align-items: center;
    gap: 6px;
}

.product-discount-type .type-prefix i {
    color: var(--primary-color);
    font-size: 14px;
}

.product-discount-type .type-badge {
    background: transparent;
    color: var(--primary-color);
    font-weight: 800;
    padding: 0;
    border-radius: 0;
    white-space: nowrap;
    align-self: flex-start;
    font-size: 13px;
}

/* Countdown display */
.countdown-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    margin-top: 4px;
    flex: 1;
}

.countdown-unit {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.countdown-number {
    background: transparent;
    color: var(--text-primary);
    font-size: 16px;
    font-weight: 800;
    padding: 2px 0;
    min-width: 32px;
    text-align: center;
}

@keyframes number-pulse {
    0%, 100% { 
        transform: scale(1);
        box-shadow: 0 3px 10px rgba(255,75,75,0.35);
    }
    50% { 
        transform: scale(1.05);
        box-shadow: 0 5px 16px rgba(255,75,75,0.5);
    }
}

.countdown-label {
    font-size: 11px;
    font-weight: 700;
    color: var(--text-secondary);
}

.countdown-separator {
    display: none;
}

@keyframes separator-blink {
    0%, 100% { opacity: 1; }
    50% { opacity: 0.3; }
}

/* Discount content for scheduled/unlimited */
.discount-content { display: block; }

.discount-info-row { display: none; }

.discount-info-row i {
    color: var(--primary-color);
    font-size: 14px;
    min-width: 16px;
}

.discount-info-row .info-value {
    color: var(--text-primary);
    font-weight: 700;
}

/* Countdown active state */
.product-discount-type.countdown-active { border-color: rgba(255,165,0,0.5); }

@keyframes countdown-pulse {
    0%, 100% { box-shadow: 0 4px 12px rgba(255,75,75,0.2); }
    50% { box-shadow: 0 6px 20px rgba(255,75,75,0.4); }
}

.product-discount-type.countdown-active .type-badge { color: var(--primary-color); }

@keyframes badge-glow {
    0%, 100% { box-shadow: 0 4px 12px rgba(255,75,75,0.4); }
    50% { box-shadow: 0 6px 20px rgba(255,75,75,0.7); }
}

.product-actions { display: flex; gap: 10px; margin-top: 10px; order: 99; }

.product-actions .btn-primary {
    flex: 1;
    padding: 12px;
    border-radius: 10px;
    font-weight: 700;
    font-size: 14px;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: all 0.3s;
}

/* Empty state */
.empty-state {
    grid-column: 1 / -1;
    text-align: center;
    padding: 60px 20px;
    color: var(--text-secondary);
}

.empty-state i {
    font-size: 64px;
    color: var(--border-color);
    margin-bottom: 20px;
}

.empty-state p {
    font-size: 18px;
    font-weight: 600;
}

@media (max-width: 480px) {
    .countdown-number { font-size: 14px; min-width: 30px; }
}

/* Discount table layout */
.discount-table {
  width: 100%;
  border-collapse: collapse;
}
.discount-table th,
.discount-table td {
  border: 1px solid var(--border-color);
  padding: 8px 10px;
  text-align: center;
  font-size: 13px;
}
.discount-table th {
  background: #fff;
  color: var(--primary-color);
  font-weight: 800;
}
.discount-table td.label {
  text-align: right;
  font-weight: 700;
  color: var(--text-secondary);
}

.selected-hint {
    color: var(--gray-color);
    font-size: 13px;
}

.selected-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: var(--light-color);
    border: 1px solid var(--border-color);
    color: var(--dark-color);
    padding: 6px 10px;
    border-radius: 999px;
    font-size: 13px;
    flex: 0 0 auto; /* prevent shrinking */
}

.selected-chip .chip-icon {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    background: var(--primary-color);
    color: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

.selected-chip .chip-remove {
    margin-right: 4px;
    color: var(--gray-color);
    cursor: pointer;
}

@media (max-width: 992px) {
    .map-sidebar {
        width: 300px;
    }
    
    .products-layout {
        flex-direction: column;
    }
    
    .products-sidebar {
        width: 100%;
    }
    
    .sidebar-section {
        display: inline-block;
        width: calc(50% - 10px);
        margin-left: 10px;
        vertical-align: top;
    }
}

@media (max-width: 768px) {
    .map-page {
        flex-direction: column;
    }
    
    .map-sidebar {
        width: 100%;
        height: 300px;
    }
    
    .map-main {
        height: 500px;
    }
    
    .sidebar-section {
        width: 100%;
        margin-left: 0;
    }
    
    .products-toolbar {
        flex-direction: column;
        gap: 15px;
    }
    
    .toolbar-right {
        width: 100%;
        justify-content: space-between;
    }
}

/* ===== User Profile Dropdown (Logged In State) ===== */
.user-profile-container {
    position: relative;
}

.user-profile-dropdown {
    position: relative;
}

.user-profile-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 14px;
    background: linear-gradient(135deg, #fff5e6 0%, #ffe8cc 100%);
    border: 2px solid rgba(255, 165, 0, 0.3);
    border-radius: 12px;
    cursor: pointer;
    transition: all 0.3s ease;
    font-family: 'Vazirmatn', sans-serif;
}

.user-profile-btn:hover {
    background: var(--primary-gradient);
    border-color: var(--primary-color);
    box-shadow: 0 4px 12px rgba(255, 165, 0, 0.3);
}

.user-profile-btn:hover .user-avatar i {
    color: white;
}

.user-profile-btn:hover .user-info .user-name,
.user-profile-btn:hover .user-info .user-type-badge {
    color: white;
}

.user-profile-btn:hover > i {
    color: white;
}

.user-avatar {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: var(--primary-gradient);
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s ease;
}

.user-avatar i {
    font-size: 20px;
    color: white;
}

.user-info {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 2px;
}

.user-name {
    font-size: 14px;
    font-weight: 700;
    color: #333;
    transition: color 0.3s ease;
}

.user-type-badge {
    font-size: 11px;
    font-weight: 600;
    color: var(--primary-color);
    background: rgba(255, 165, 0, 0.15);
    padding: 2px 8px;
    border-radius: 8px;
    transition: all 0.3s ease;
}

.user-profile-btn > i {
    font-size: 12px;
    color: #666;
    transition: transform 0.3s ease, color 0.3s ease;
}

.user-profile-dropdown.open .user-profile-btn > i {
    transform: rotate(180deg);
}

.user-dropdown-menu {
    position: absolute;
    top: calc(100% + 8px);
    left: 0;
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    min-width: 250px;
    overflow: hidden;
    z-index: 1000;
    animation: dropdownSlide 0.2s ease;
}

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

.dropdown-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 12px 16px;
    color: #333;
    text-decoration: none;
    transition: all 0.2s ease;
    font-size: 14px;
    font-weight: 500;
}

.dropdown-item i {
    width: 18px;
    text-align: center;
    color: #666;
    transition: color 0.2s ease;
}

.dropdown-item:hover {
    background: rgba(255, 165, 0, 0.08);
    color: var(--primary-color);
}

.dropdown-item:hover i {
    color: var(--primary-color);
}

@media (max-width: 576px) {
    .user-info {
        display: none;
    }
    
    .user-profile-btn {
        padding: 8px;
    }
    
    .user-profile-btn > i {
        display: none;
    }
}

/* ===== Leaflet Popup Custom Styles ===== */
.leaflet-popup-content-wrapper {
    border-radius: 18px;
    padding: 0 !important;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    box-shadow: 0 8px 32px rgba(0,0,0,0.18), 0 2px 8px rgba(0,0,0,0.12);
    overflow: hidden;
}

.leaflet-popup-content {
    margin: 0 !important;
    padding: 0 !important;
    font-family: 'Vazirmatn', sans-serif;
    direction: rtl;
}

.leaflet-popup-tip {
    box-shadow: 0 3px 14px rgba(0,0,0,0.15);
}

.custom-popup .leaflet-popup-tip {
    background: #121212 !important;
    border: 3px solid rgba(255,255,255,0.1);
}

.custom-popup .leaflet-popup-content-wrapper {
    border: 3px solid rgba(255,255,255,0.1);
    padding: 0 !important;
    background: #b9b9b9 !important;
}

.custom-popup .leaflet-popup-content {
    margin: 0 !important;
    padding: 0 !important;
}

/* Fancy scrollbar for products */
.custom-popup div[style*="overflow-x: auto"] {
    scrollbar-width: thin;
    scrollbar-color: rgba(0,0,0,0.2) transparent;
}

.custom-popup div[style*="overflow-x: auto"]::-webkit-scrollbar {
    height: 6px;
}

.custom-popup div[style*="overflow-x: auto"]::-webkit-scrollbar-track {
    background: linear-gradient(90deg, transparent, rgba(0,0,0,0.05), transparent);
    border-radius: 3px;
}

.custom-popup div[style*="overflow-x: auto"]::-webkit-scrollbar-thumb {
    background: linear-gradient(90deg, rgba(0,0,0,0.15), rgba(0,0,0,0.25), rgba(0,0,0,0.15));
    border-radius: 3px;
    transition: background 0.2s;
}

.custom-popup div[style*="overflow-x: auto"]::-webkit-scrollbar-thumb:hover {
    background: linear-gradient(90deg, rgba(0,0,0,0.25), rgba(0,0,0,0.35), rgba(0,0,0,0.25));
}

/* Product card hover effect */
.custom-popup div[style*="min-width: 95px"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15) !important;
}

/* Smooth animations */
.leaflet-popup {
    animation: popupFadeIn 0.3s ease-out;
}

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

/* ===== Admin Panel Button ===== */
.admin-panel-btn {
    position: fixed;
    bottom: 20px;
    left: 20px;
    background: var(--primary-gradient);
    color: #fff;
    border: none;
    border-radius: 50px;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 700;
    cursor: pointer;
    box-shadow: 0 8px 22px rgba(0,0,0,0.18);
    display: flex;
    align-items: center;
    gap: 10px;
    z-index: 999;
    transition: all 0.25s ease;
    animation: pulse 2s infinite;
}

.admin-panel-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 28px rgba(0,0,0,0.22);
}

.admin-panel-btn i {
    font-size: 20px;
}

/* Specific positioning for owner button */
#ownerPanelBtn {
    bottom: 30px; /* Position above the marketer button, but closer */
}

@keyframes pulse {
    0%, 100% {
        box-shadow: 0 8px 24px rgba(0,0,0,0.18);
    }
    50% {
        box-shadow: 0 8px 32px rgba(0,0,0,0.26);
    }
}

/* ===== Admin Panel (Themed) ===== */
.admin-container {
    max-width: 1200px;
    margin: 24px auto;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 10px 30px rgba(0,0,0,0.08);
    overflow: hidden;
}

.admin-header {
    background: var(--primary-gradient);
    color: #fff;
    padding: 20px 24px;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.admin-header h1 { font-size: 20px; font-weight: 800; display: flex; gap: 10px; align-items: center; }
.admin-header .btn-header {
    background: rgba(255,255,255,0.15);
    color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
    padding: 8px 14px;
    border-radius: 10px;
    cursor: pointer;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.admin-header .btn-header:hover { background: rgba(255,255,255,0.25); }

.admin-tabs { display: flex; gap: 6px; padding: 0 16px; background: #f8f9fa; border-bottom: 2px solid #eee; overflow-x: auto; }
.admin-tab {
    padding: 12px 16px;
    background: transparent;
    border: none;
    border-bottom: 3px solid transparent;
    color: #6c757d;
    font-weight: 700;
    cursor: pointer;
    display: inline-flex;
    align-items: center;
    gap: 8px;
}
.admin-tab.active { color: var(--primary-color); border-bottom-color: var(--primary-color); background: #fff; }
.admin-tab:hover { color: var(--primary-color); background: rgba(255,165,0,0.06); }

.admin-content { padding: 20px; }
.tab-pane { display: none; animation: fadeIn 0.25s ease; }
.tab-pane.active { display: block; }

.stats-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 16px; margin-bottom: 20px; }
.stat-card { background: var(--primary-gradient); color: #fff; padding: 20px; border-radius: 14px; box-shadow: 0 6px 18px rgba(0,0,0,0.12); }
.stat-card h3 { font-size: 14px; opacity: 0.9; margin-bottom: 10px; }
.stat-value { font-size: 28px; font-weight: 800; }

.data-table { width: 100%; border-collapse: collapse; background: #fff; border-radius: 12px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.06); }
.data-table thead { background: var(--primary-gradient); color: #fff; }
.data-table th { padding: 12px; text-align: right; font-size: 13px; }
.data-table td { padding: 12px; border-bottom: 1px solid #f0f0f0; font-size: 13px; }
.data-table tbody tr:hover { background: #fafafa; }

.btn-action { padding: 6px 10px; border: none; border-radius: 8px; cursor: pointer; font-weight: 700; font-size: 12px; }
.btn-edit { background: #4CAF50; color: #fff; }
.btn-delete { background: #f44336; color: #fff; }
.btn-view { background: #2196F3; color: #fff; }

.btn-primary { background: var(--primary-gradient); color: #fff; padding: 10px 16px; border: none; border-radius: 10px; font-weight: 800; display: inline-flex; gap: 8px; align-items: center; }
.search-box { display: flex; gap: 10px; margin-bottom: 16px; }
.search-input { flex: 1; padding: 10px 12px; border: 2px solid #e9ecef; border-radius: 10px; }
.search-input:focus { outline: none; border-color: var(--primary-color); box-shadow: 0 0 0 3px rgba(255,165,0,0.12); }

.section-title { font-size: 18px; font-weight: 800; color: #333; display: flex; gap: 8px; align-items: center; margin-bottom: 14px; }
.admin-section-row { display: flex; justify-content: space-between; align-items: center; margin-bottom: 16px; gap: 10px; }
.empty-state { text-align: center; padding: 40px 10px; color: #888; }
.badge { display: inline-block; padding: 4px 10px; border-radius: 999px; font-size: 11px; font-weight: 800; }
.badge-success { background: #d4edda; color: #155724; }
.badge-warning { background: #fff3cd; color: #856404; }
.badge-danger { background: #f8d7da; color: #721c24; }
.badge-info { background: #d1ecf1; color: #0c5460; }

/* Ensure badges inside admin tables render inline, not absolutely positioned */
.admin-content .data-table .badge {
  position: static;
  top: auto;
  left: auto;
}

@media (max-width: 768px) {
  .admin-content { padding: 14px; }
  .admin-header { padding: 16px; flex-direction: column; gap: 10px; align-items: stretch; }
  
  /* Fix horizontal scrolling for admin tables on mobile/tablet */
  .tab-pane {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  
  .data-table {
    min-width: 800px; /* Ensure table has minimum width for horizontal scroll */
  }
  
  #reviewsTableContainer {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
}

/* ===== Location Registration Modal ===== */
.photo-upload-container {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 10px;
}

.photo-preview {
    position: relative;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.photo-preview img {
    width: 100%;
    height: auto;
    display: block;
}

.remove-photo {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(244, 67, 54, 0.9);
    color: white;
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.remove-photo:hover {
    background: rgba(244, 67, 54, 1);
    transform: scale(1.1);
}

.photo-buttons {
    display: flex;
    gap: 10px;
    justify-content: center;
    flex-wrap: wrap;
}

.btn-photo {
    flex: 1;
    min-width: 140px;
    padding: 12px 20px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.3);
}

.btn-photo:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(102, 126, 234, 0.4);
}

.btn-photo i {
    font-size: 16px;
}

.location-info,
.datetime-info {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    background: #f5f5f5;
    border-radius: 8px;
    margin-top: 8px;
    font-size: 14px;
}

.location-info i,
.datetime-info i {
    color: #667eea;
    font-size: 18px;
}

.location-info span,
.datetime-info span {
    flex: 1;
    color: #333;
}

#cameraStream {
    border: 2px solid #667eea;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .photo-buttons {
        flex-direction: column;
    }
    
    .btn-photo {
        width: 100%;
        min-width: auto;
    }
    
    .photo-preview {
        max-width: 100%;
    }
}

/* ===== Marketer Routes Styles ===== */
.routes-quick-actions {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
    margin-bottom: 18px;
}

.route-map-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 12px 18px;
    border-radius: 14px;
    border: none;
    cursor: pointer;
    font-weight: 700;
    font-size: 14px;
    background: linear-gradient(135deg, #2563EB, #3B82F6);
    color: #fff;
    box-shadow: 0 12px 30px rgba(37, 99, 235, 0.25);
    transition: all 0.2s ease;
}

.route-map-btn:hover:not(:disabled) {
    transform: translateY(-2px);
    box-shadow: 0 18px 36px rgba(37, 99, 235, 0.3);
}

.route-map-btn:disabled,
.route-map-btn.is-loading {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

.route-map-btn--secondary {
    background: linear-gradient(135deg, #14B8A6, #0EA5E9);
    box-shadow: 0 12px 30px rgba(14, 165, 233, 0.25);
}

.route-map-btn.is-loading i {
    animation: spin 1s linear infinite;
}

.routes-table-container {
    background: white;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    overflow: hidden;
}

.routes-table {
    width: 100%;
    border-collapse: collapse;
}

.routes-table thead {
    background: linear-gradient(135deg, #FFA500 0%, #FF8C00 100%);
    color: white;
}

.routes-table th {
    padding: 14px 12px;
    text-align: center;
    font-weight: 700;
    font-size: 14px;
    border-bottom: 2px solid rgba(255,255,255,0.2);
    white-space: nowrap;
}

.routes-table tbody tr {
    border-bottom: 1px solid #f0f0f0;
    transition: all 0.2s ease;
}

.routes-table tbody tr:hover {
    background: #fff8f0;
}

.routes-table tbody tr:last-child {
    border-bottom: none;
}

.routes-table td {
    padding: 12px 16px;
    text-align: center;
    font-size: 13px;
    color: #333;
}

.route-date-cell {
    font-weight: 700;
    color: #FFA500;
}

.route-count-cell {
    font-weight: 700;
    color: #333;
    font-size: 15px;
}

.route-action-cell {
    text-align: center;
}

.btn-icon {
    background: linear-gradient(135deg, #FFA500 0%, #FF8C00 100%);
    color: white;
    border: none;
    border-radius: 6px;
    width: 36px;
    height: 36px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
    font-size: 16px;
}

.btn-icon:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(255, 165, 0, 0.4);
}

.btn-xs {
    padding: 6px 14px;
    font-size: 12px;
}

.btn-sm {
    padding: 8px 16px;
    font-size: 13px;
}

/* Photos Grid */
.photos-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 16px;
    margin-top: 20px;
}

.photo-card {
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
}

.photo-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.photo-wrapper {
    width: 100%;
    height: 200px;
    overflow: hidden;
    background: #f5f5f5;
}

.photo-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.photo-info {
    padding: 12px;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.photo-time {
    font-size: 13px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-map {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 6px 12px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
    transition: all 0.3s ease;
}

.btn-map:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
}

/* ===== Withdrawal Styles ===== */
.withdrawal-summary {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
    margin-bottom: 30px;
}

.summary-card {
    background: white;
    border-radius: 12px;
    padding: 20px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    align-items: center;
    gap: 16px;
    transition: all 0.3s ease;
}

.summary-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.summary-icon {
    width: 60px;
    height: 60px;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 24px;
}

.summary-info {
    flex: 1;
}

.summary-label {
    font-size: 13px;
    color: #666;
    margin-bottom: 8px;
}

.summary-value {
    font-size: 20px;
    font-weight: 700;
    color: #333;
}

.withdrawal-request-form {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    margin-bottom: 30px;
}

.withdrawal-request-form h3 {
    margin: 0 0 20px 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

.withdrawal-request-form .form-group {
    margin-bottom: 20px;
}

.withdrawal-request-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #333;
}

.withdrawal-history {
    background: white;
    border-radius: 12px;
    padding: 24px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.withdrawal-history h3 {
    margin: 0 0 20px 0;
    color: #333;
    display: flex;
    align-items: center;
    gap: 10px;
}

/* Responsive */
@media (max-width: 768px) {
    .routes-table-container {
        overflow-x: auto;
    }

    .routes-table {
        font-size: 12px;
    }

    .routes-table th,
    .routes-table td {
        padding: 10px 8px;
        font-size: 11px;
    }

    .btn-icon {
        width: 32px;
        height: 32px;
        font-size: 14px;
    }

    .photos-grid {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
        gap: 12px;
    }

    .photo-wrapper {
        height: 150px;
    }
    
    .withdrawal-summary {
        grid-template-columns: 1fr;
    }
    
    .summary-value {
        font-size: 16px;
    }
}

/* Page-specific styles */
/* Hide selected filters bar on products.html and sellers.html */
body.products-page .selected-filters-bar,
body.sellers-page .selected-filters-bar {
    display: none !important;
}

body.products-page .selected-items-row,
body.sellers-page .selected-items-row {
    display: none !important;
}

/* ===== Map Styles ===== */
.map-picker-container {
    width: 100% !important;
    height: 400px !important;
    border: 2px solid #e0e0e0 !important;
    border-radius: 8px !important;
    overflow: hidden !important;
    position: relative !important;
    background: #f5f5f5 !important;
    display: block !important;
    visibility: visible !important;
}

.map-picker-container .leaflet-container {
    width: 100% !important;
    height: 100% !important;
    font-family: 'Vazirmatn', sans-serif;
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    z-index: 1 !important;
    border: 3px solid #ff0000 !important;
}

.map-picker-container .leaflet-control-container {
    font-family: 'Vazirmatn', sans-serif;
}

.locate-control {
    background: white !important;
    border: 1px solid #ccc !important;
    border-radius: 4px !important;
    cursor: pointer !important;
    padding: 5px !important;
    margin: 5px !important;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.locate-control:hover {
    background: #f0f0f0 !important;
}
