/* Custom Colors */
:root {
  --primary-color: #0c8f73;
  --secondary-color: #4c7ae6;
  --orange-color: #ff6b35;
  --text-dark: #2c3e50;
  --text-muted: #6c757d;
  --bg-light: #f8f9fa;
}

/* Global Styles */
body {
  font-family: 'Cairo', sans-serif;
  color: var(--text-dark);
  direction: rtl;
  text-align: right;
}

/* Header */
.navbar {
  background-color: white;
  border-bottom: 1px solid #e9ecef;
  box-shadow: 0 2px 4px rgba(0,0,0,0.05);
}

.logo {
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--primary-color);
}

/* Car Image Gallery */
.car-gallery {
  position: relative;
  background-color: #e9ecef;
  border-radius: 0.5rem;
  overflow: hidden;
}

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

.gallery-nav-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background-color: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 45px;
  height: 45px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.3s;
  z-index: 10;
}

.gallery-nav-btn:hover {
  background-color: white;
  box-shadow: 0 4px 8px rgba(0,0,0,0.15);
}

.gallery-nav-btn.prev {
  left: 1rem;
}

.gallery-nav-btn.next {
  right: 1rem;
}

.image-counter {
  position: absolute;
  bottom: 1rem;
  right: 1rem;
  background-color: rgba(0, 0, 0, 0.7);
  color: white;
  padding: 0.375rem 0.75rem;
  border-radius: 1.5rem;
  font-size: 0.875rem;
  z-index: 10;
}

.badge-special {
  position: absolute;
  top: 1rem;
  left: 1rem;
  background-color: var(--orange-color);
  color: white;
  padding: 0.5rem 1rem;
  border-radius: 0.5rem;
  font-weight: 700;
  font-size: 0.875rem;
  z-index: 10;
}

.badge-views {
  position: absolute;
  top: 1rem;
  right: 1rem;
  background-color: var(--orange-color);
  color: white;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.875rem;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  z-index: 10;
}

/* Benefits Cards */
.benefit-card {
  border: 2px solid var(--secondary-color);
  border-radius: 0.5rem;
  padding: 1.5rem;
  text-align: center;
  background-color: white;
}

.benefit-icon {
  width: 60px;
  height: 60px;
  background-color: rgba(76, 122, 230, 0.1);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 1rem;
}

.benefit-icon svg {
  width: 32px;
  height: 32px;
  color: var(--secondary-color);
}

.benefit-card h3 {
  color: var(--secondary-color);
  font-weight: 700;
  font-size: 0.875rem;
  margin-bottom: 0.5rem;
}

.benefit-card p {
  font-size: 0.75rem;
  color: var(--text-muted);
  margin: 0;
}

/* Tabs */
.nav-tabs {
  border-bottom: 1px solid #dee2e6;
}

.nav-tabs .nav-link {
  color: var(--text-muted);
  font-weight: 700;
  border: none;
  border-bottom: 2px solid transparent;
  padding: 1rem 1.5rem;
}

.nav-tabs .nav-link.active {
  color: var(--primary-color);
  border-bottom-color: var(--primary-color);
  background-color: transparent;
}

.nav-tabs .nav-link:hover {
  color: var(--text-dark);
  border-color: transparent;
}

/* Feature Items */
.feature-item {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.75rem;
  background-color: var(--bg-light);
  border-radius: 0.5rem;
  margin-bottom: 0.75rem;
}

.feature-item svg {
  width: 20px;
  height: 20px;
  color: var(--text-muted);
  flex-shrink: 0;
}

.feature-item .label {
  font-size: 0.875rem;
  color: var(--text-muted);
  margin: 0;
}

.feature-item .value {
  font-weight: 700;
  margin: 0;
}

/* Inspection Circles */
.inspection-circles {
  display: flex;
  justify-content: center;
  gap: 2rem;
  margin: 2rem 0;
}

.inspection-circle {
  text-align: center;
}

.inspection-circle .circle {
  width: 80px;
  height: 80px;
  border: 4px solid var(--primary-color);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.5rem;
  font-size: 2rem;
  color: var(--primary-color);
  font-weight: 700;
}

.inspection-circle p {
  font-size: 0.875rem;
  font-weight: 700;
  margin: 0;
}

/* Car Cards */
.car-card {
  border-radius: 0.5rem;
  overflow: hidden;
  transition: all 0.3s;
  border: 1px solid #dee2e6;
  background-color: white;
}

.car-card:hover {
  box-shadow: 0 4px 12px rgba(0,0,0,0.1);
  transform: translateY(-2px);
}

.car-card-image {
  position: relative;
  aspect-ratio: 4/3;
  overflow: hidden;
}

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

.car-card .heart-btn {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background-color: white;
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  z-index: 5;
}

.car-card .discount-badge {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  background-color: var(--orange-color);
  color: white;
  padding: 0.375rem 0.75rem;
  border-radius: 0.5rem;
  font-size: 0.75rem;
  font-weight: 700;
  z-index: 5;
}

.car-card-body {
  padding: 1rem;
}

.car-card-title {
  font-weight: 700;
  font-size: 1rem;
  margin-bottom: 0.75rem;
}

.car-price {
  color: var(--primary-color);
  font-size: 1.5rem;
  font-weight: 700;
}

.car-price-label {
  font-size: 0.875rem;
  color: var(--text-muted);
}

/* Service Cards */
.service-card {
  position: relative;
  border-radius: 0.5rem;
  overflow: hidden;
  cursor: pointer;
  transition: all 0.3s;
}

.service-card:hover {
  box-shadow: 0 8px 16px rgba(0,0,0,0.15);
}

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

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

.service-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  display: flex;
  align-items: flex-end;
  justify-content: center;
  padding: 1.5rem;
}

.service-content {
  text-align: center;
  color: white;
}

.service-icon {
  width: 64px;
  height: 64px;
  background-color: rgba(255, 255, 255, 0.2);
  backdrop-filter: blur(10px);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 0.75rem;
}

.service-icon svg {
  width: 32px;
  height: 32px;
}

.service-title {
  font-size: 1.25rem;
  font-weight: 700;
  margin: 0;
}

/* Sidebar Card */
.sidebar-card {
  position: sticky;
  top: 6rem;
  border-radius: 0.5rem;
  border: 1px solid #dee2e6;
  background-color: white;
  padding: 1.5rem;
}

.price-section {
  margin-bottom: 1.5rem;
  padding-bottom: 1.5rem;
  border-bottom: 1px solid #dee2e6;
}

.price-large {
  font-size: 2.5rem;
  font-weight: 700;
  color: var(--primary-color);
}

.monthly-payment {
  color: var(--secondary-color);
  font-weight: 700;
}

/* Buttons */
.btn-primary-custom {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s;
}

.btn-primary-custom:hover {
  background-color: #0a7560;
  border-color: #0a7560;
  color: white;
}

.btn-outline-primary-custom {
  background-color: transparent;
  border: 2px solid var(--primary-color);
  color: var(--primary-color);
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s;
}

.btn-outline-primary-custom:hover {
  background-color: var(--primary-color);
  border-color: var(--primary-color);
  color: white;
}

.btn-secondary-custom {
  background-color: var(--secondary-color);
  border-color: var(--secondary-color);
  color: white;
  font-weight: 700;
  padding: 0.75rem 1.5rem;
  border-radius: 0.5rem;
  transition: all 0.3s;
}

.btn-secondary-custom:hover {
  background-color: #3d68d4;
  border-color: #3d68d4;
  color: white;
}

/* Badges */
.badge-primary-custom {
  background-color: rgba(76, 122, 230, 0.1);
  color: var(--secondary-color);
  border: 1px solid var(--secondary-color);
  padding: 0.25rem 0.75rem;
  border-radius: 0.375rem;
  font-size: 0.75rem;
  font-weight: 600;
}

/* Section Titles */
.section-title {
  color: var(--secondary-color);
  font-weight: 700;
  font-size: 1.75rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

/* Responsive */
@media (max-width: 768px) {
  .inspection-circles {
    gap: 1rem;
  }
  
  .inspection-circle .circle {
    width: 60px;
    height: 60px;
    font-size: 1.5rem;
  }
  
  .price-large {
    font-size: 2rem;
  }
}
