.gallery-access-section {
  padding: 2rem;
  background: #f9f9f9;
  border-radius: 12px;
  box-shadow: 0 0 12px rgba(0,0,0,0.1);
  font-family: 'Vazirmatn', sans-serif;
}

.form-container {
  max-width: 400px;
  margin: auto;
  text-align: center;
}

.form-title {
  font-size: 1.4rem;
  margin-bottom: 1rem;
  color: #333;
}

.car-form .form-group {
  margin-bottom: 1rem;
  text-align: left;
}

.car-form label {
  display: block;
  margin-bottom: 0.5rem;
  font-weight: bold;
}

.car-form input {
  width: 100%;
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 1rem;
}

.submit-btn {
  background: linear-gradient(135deg, #ff9800, #f57c00);
  color: white;
  border: none;
  padding: 0.8rem 1.2rem;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.submit-btn:hover {
  background: linear-gradient(135deg, #f57c00, #e65100);
}

/* ✅ پنل خرید خودرو */
.marketplace-header {
  padding: 2rem;
  font-family: 'Vazirmatn', sans-serif;
}

.marketplace-header h2 {
  font-size: 1.6rem;
  margin-bottom: 1.5rem;
  color: #333;
}

/* ✅ فیلتر آگهی‌ها */
.filter-container {
  margin-bottom: 2rem;
}

.filter-toggle {
  background: linear-gradient(135deg, #2196f3, #03a9f4);
  color: white;
  border: none;
  padding: 0.6rem 1rem;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
  transition: background 0.3s ease;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}

.filter-toggle:hover {
  background: linear-gradient(135deg, #1976d2, #0288d1);
}

.filter-form {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 1rem;
  margin-top: 1rem;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: blur(10px);
  border-radius: 12px;
  box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.filter-group {
  display: flex;
  flex-direction: column;
}

.filter-group label {
  font-weight: bold;
  margin-bottom: 0.4rem;
  color: #444;
}

.filter-group input,
.filter-group select {
  padding: 0.6rem;
  border: 1px solid #ccc;
  border-radius: 8px;
  font-size: 0.9rem;
}

.filter-submit {
  grid-column: span 2;
  background: linear-gradient(135deg, #4caf50, #388e3c);
  color: white;
  border: none;
  padding: 0.8rem 1.2rem;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.filter-submit:hover {
  background: linear-gradient(135deg, #388e3c, #2e7d32);
}

/* ✅ لیست آگهی‌ها */
.car-listings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 1.5rem;
}


.details-btn {
  margin-top: 0.6rem;
  background: #ff5722;
  color: white;
  border: none;
  padding: 0.5rem 0.8rem;
  border-radius: 8px;
  font-weight: bold;
  cursor: pointer;
  transition: background 0.3s ease;
}

.details-btn:hover {
  background: #e64a19;
}
@media (max-width: 768px) {
  .filter-form {
    display: none;
    grid-template-columns: 1fr; /* ✅ تک‌ستونه */
    gap: 1rem;
    padding: 1rem;
    background: rgba(255,255,255,0.6);
    border-radius: 12px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
    max-width: 100%;
    box-sizing: border-box;
  }

  .filter-group {
    width: 100%;
  }

  .filter-group label {
    font-size: 0.95rem;
    font-weight: bold;
    margin-bottom: 0.3rem;
    color: #333;
  }

  .filter-group input,
  .filter-group select {
    width: 100%;
    font-size: 1rem;
    padding: 0.6rem;
    border-radius: 8px;
    border: 1px solid #ccc;
    box-sizing: border-box;
  }

  .filter-submit {
    width: 100%;
    font-size: 1rem;
    padding: 0.8rem;
    border-radius: 10px;
    background: linear-gradient(135deg, #4caf50, #388e3c);
    color: white;
    font-weight: bold;
    border: none;
  }
}









































:root {
  --accent: #ff5722;
  --accent-hover: #e64a19;
  --bg-glass: rgba(255, 255, 255, 0.92);
  --bg-modal: rgba(255, 255, 255, 0.96);
  --shadow-card: 0 4px 12px rgba(0, 0, 0, 0.08);
  --shadow-hover: 0 6px 18px rgba(0, 0, 0, 0.15);
  --shadow-modal: 0 8px 24px rgba(0, 0, 0, 0.25);
  --radius-lg: 18px;
  --radius-md: 12px;
  --font-main: 'Baloo 2', 'Vazirmatn', 'Roboto', sans-serif;
}

@media (max-width: 768px) {
  .car-modal-content {
    width: 100%;
    max-width: 100%;
    margin: 0 auto;
    padding: 0;
    box-sizing: border-box;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
  }

  .car-image-slider {
    width: 100%;
    max-width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    box-sizing: border-box;
  }

.car-image-slider {
    width: 100%;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
    scroll-behavior: smooth;
    display: flex;
    border-bottom: 1px solid #eee;
    background-color: #f9f9f9;
  }

  .slider-track {
    display: flex;
    flex-wrap: nowrap;
    gap: 0;
    width: 100%;
  }

  .slider-track img {
    flex: 0 0 100%;
    width: 100%;
    height: 45vh;
    object-fit: contain;
    scroll-snap-align: start;
    box-sizing: border-box;
    pointer-events: none;
    user-select: none;
  }
  .car-info {
    width: 100%;
    padding: 16px;
    box-sizing: border-box;
    text-align: center;
  }

}




@media (min-width: 1024px) {
  .car-image-slider {
    position: relative;
    overflow: hidden;
    height: 400px;
    background: #f9f9f9;
  }

  .slider-track {
    display: flex;
    transition: transform 0.4s ease;
    height: 100%;
    width: 100%;
  }


.slider-track img {
  flex: 0 0 100%;
  width: 100%;
  height: auto;
  object-fit: contain;
  pointer-events: none;
  user-select: none;
}


  .slider-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    color: white;
    border: none;
    font-size: 2rem;
    padding: 0 12px;
    cursor: pointer;
    z-index: 10;
    border-radius: 8px;
  }

  .slider-nav.prev {
    left: 10px;
  }

  .slider-nav.next {
    right: 10px;
  }
}















/* لیست آگهی‌ها */
.car-listings {
  display: grid;
  gap: 16px;
  width: 100%;
  padding: 12px;
}

@media (max-width: 768px) {
  .car-listings {
    grid-template-columns: repeat(2, 1fr);
  }
.car-modal-content {
  width: 100%;
  max-width: 100%;
  margin: 0 auto;
  padding: 0;
  box-sizing: border-box;
  overflow-x: hidden;
}
                                    .modal-actions {
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 14px;
  margin-top: 20px;
}

/* دکمه شیشه‌ای عمومی */
.glass-btn {
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  background: rgba(255, 255, 255, 0.1); /* ✅ شیشه‌ای بدون رنگ */
  border: 2px solid rgba(255, 255, 255, 0.3);
  border-radius: 50%;
  box-shadow: 0 6px 18px rgba(0,0,0,0.25);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

/* دکمه تماس سبز */
.call-owner {
  width: 72px;
  height: 72px;
  animation: pulse 1.4s infinite;
}

.call-owner .icon-phone i {
  font-size: 2rem;
  color: #4caf50;
  text-shadow: 0 0 6px rgba(76, 175, 80, 0.6);
  animation: heartbeat 1.4s infinite;
}

/* دکمه بستن قرمز */
.close-modal {
  width: 44px;
  height: 44px;
}

.close-modal .icon-close i {
  font-size: 1.8rem;
  color: #f44336;
  text-shadow: 0 0 4px rgba(244, 67, 54, 0.5);
}

/* هاور */
.glass-btn:hover {
  transform: scale(1.08);
  box-shadow: 0 8px 24px rgba(0,0,0,0.3);
}

/* انیمیشن‌ها */
@keyframes pulse {
  0% { transform: scale(1); }
  50% { transform: scale(1.08); }
  100% { transform: scale(1); }
}

@keyframes heartbeat {
  0% { transform: scale(1); }
  25% { transform: scale(1.2); }
  50% { transform: scale(1); }
  75% { transform: scale(1.2); }
  100% { transform: scale(1); }
}


	



}

@media (min-width: 1024px) {
  .car-listings {
    grid-template-columns: repeat(4, 1fr);
  }
}

/* کارت آگهی */
.car-card {
  background: var(--bg-glass);
  backdrop-filter: blur(6px);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-card);
  overflow: hidden;
  padding: 12px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  cursor: pointer;
  font-family: var(--font-main);
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 100%;
  box-sizing: border-box;
}

.car-card:hover {
  transform: scale(1.02);
  box-shadow: var(--shadow-hover);
}

.car-card img {
  width: 100%;
  height: 160px;
  object-fit: cover;
  border-radius: var(--radius-md);
  margin-bottom: 8px;
}

.car-card h4 {
  font-size: 1.1rem;
  font-weight: bold;
  color: #333;
  margin: 6px 0;
  text-align: center;
}

.car-card p {
  font-size: 0.9rem;
  color: #555;
  margin: 2px 0;
  text-align: center;
}

.car-card button {
  margin-top: 8px;
  background: linear-gradient(135deg, var(--accent), #ff9800);
  color: white;
  border: none;
  padding: 8px 16px;
  border-radius: 10px;
  font-weight: bold;
  transition: background 0.3s ease;
  width: 100%;
}

.car-card button:hover {
  background: linear-gradient(135deg, var(--accent-hover), #f57c00);
}

/* پنجره جزئیات */
.car-modal {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: flex;
  align-items: center;
  justify-content: center;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.6);
  overflow-x: hidden;
}

.car-modal-content {
  width: 95%;
  max-width: 800px;
  background: var(--bg-modal);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-modal);
  overflow: hidden;
  animation: fadeIn 0.3s ease;
  display: flex;
  flex-direction: column;
  max-height: 90vh;
}

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

/* گالری عکس */
.car-image-slider {
  width: 100%;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  display: flex;
  border-bottom: 1px solid #eee;
  background-color: #f9f9f9;
  scroll-behavior: smooth;
  -webkit-overflow-scrolling: touch;
}

.slider-track {
  display: flex;
  flex-wrap: nowrap;
  gap: 0;
  width: 100%;
}

.slider-track img {
  flex: 0 0 100%;
  width: 100%;
  height: 45vh;
  object-fit: contain;
  scroll-snap-align: start;
  border-radius: 0;
  display: block;
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* اطلاعات خودرو */
.car-info {
  flex: 1 1 auto;
  overflow-y: auto;
  padding: 16px;
  font-family: var(--font-main);
  text-align: center;
}

.car-info h3 {
  font-size: 1.4rem;
  margin-bottom: 8px;
  color: #222;
}

.car-info p {
  font-size: 0.95rem;
  color: #444;
  margin: 4px 0;
}

.car-info button {
  margin-top: 12px;
  background: linear-gradient(135deg, #2196f3, #03a9f4);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: bold;
  cursor: pointer;
  width: 100%;
}

.car-info button:hover {
  background: linear-gradient(135deg, #1976d2, #0288d1);
}

/* ناوبری اسلایدر */
.slider-nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(0,0,0,0.4);
  color: white;
  border: none;
  font-size: 2rem;
  padding: 0 12px;
  cursor: pointer;
  z-index: 10;
  border-radius: 8px;
}

.slider-nav:hover {
  background: rgba(0,0,0,0.6);
}

.slider-nav.prev {
  left: 10px;
}

.slider-nav.next {
  right: 10px;
}

/* بک‌دراپ مودال */
.modal-backdrop {
  position: fixed;
  top: 0;
  left: 0;
  width: 100%;
  height: 100%;
  backdrop-filter: blur(10px);
  background: rgba(255, 255, 255, 0.6);
  z-index: 9998;
}

