/* ========================== */
/* FILTER FORM & PAGE DESIGN - RESPONSIVE VERSION */
/* ========================== */

/* Container for the entire filter section */
.container.my-4 {
  max-width: 1200px;
  margin: 0 auto;
}

/* Enhanced filter form styling - using Bootstrap's grid for responsiveness */
#filterForm {
  background: linear-gradient(135deg, #fff 0%, #f9f9f9 100%);
  padding: 20px 25px;
  border-radius: 25px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.08), 0 0 0 1px rgba(139,93,59,0.1);
  transition: all 0.3s ease;
  position: relative;
  overflow: hidden;
  margin: 0; /* Remove default margins */
}

/* Add a subtle inner glow on hover */
#filterForm:hover {
  box-shadow: 0 15px 40px rgba(0,0,0,0.12), 0 0 0 1px rgba(139,93,59,0.2);
  transform: translateY(-2px);
}

/* Form elements with enhanced styling */
#filterForm .form-select,
#filterForm .form-control {
  border-radius: 15px;
  padding: 10px 12px;
  font-size: 14px;
  border: 1px solid #ddd;
  background: #fff;
  transition: all 0.3s ease;
  position: relative;
}

/* Placeholder styling */
#filterForm .form-select::placeholder,
#filterForm .form-control::placeholder {
  color: #aaa;
  font-style: italic;
}

/* Hover & focus effects with animation */
#filterForm .form-select:hover,
#filterForm .form-control:hover {
  border-color: #8b5d3b;
  transform: scale(1.02);
}

#filterForm .form-select:focus,
#filterForm .form-control:focus {
  outline: none;
  border-color: #8b5d3b;
  box-shadow: 0 0 10px rgba(139,93,59,0.3), inset 0 1px 2px rgba(0,0,0,0.1);
  background: #fefefe;
}

/* Page title and description styling */
.page-title {
  font-size: 2.5rem;
  font-weight: 700;
  color: #8b5d3b;
  margin-bottom: 10px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.text-center.mb-4 .text-muted {
  font-size: 1.1rem;
  color: #666;
  max-width: 600px;
  margin: 0 auto;
  line-height: 1.6;
}

/* Results container styling */
#results {
  background: #fff;
  border-radius: 15px;
  padding: 20px;
  box-shadow: 0 5px 20px rgba(0,0,0,0.05);
  min-height: 200px;
  transition: all 0.3s ease;
}

#results:hover {
  box-shadow: 0 10px 30px rgba(0,0,0,0.1);
}

/* Responsive adjustments */
@media (max-width: 1200px) {
  #filterForm {
    padding: 18px 22px;
  }
  #filterForm .form-select,
  #filterForm .form-control {
    font-size: 13.5px;
    padding: 9px 11px;
  }
  .page-title {
    font-size: 2.3rem;
  }
}

@media (max-width: 992px) {
  #filterForm {
    padding: 15px 20px;
  }
  #filterForm .form-select,
  #filterForm .form-control {
    font-size: 13px;
    padding: 8px 10px;
  }
  .page-title {
    font-size: 2.1rem;
  }
  .text-center.mb-4 .text-muted {
    font-size: 1rem;
  }
}

@media (max-width: 768px) {
  #filterForm {
    padding: 14px 18px;
  }
  #filterForm .form-select,
  #filterForm .form-control {
    font-size: 12.5px;
    padding: 7px 9px;
  }
  .page-title {
    font-size: 1.9rem;
  }
  .text-center.mb-4 .text-muted {
    font-size: 0.95rem;
  }
  #results {
    padding: 15px;
  }
}

@media (max-width: 576px) {
  #filterForm {
    padding: 12px 15px;
  }
  #filterForm .form-select,
  #filterForm .form-control {
    font-size: 12px;
    padding: 6px 8px;
  }
  .page-title {
    font-size: 1.7rem;
  }
  .text-center.mb-4 .text-muted {
    font-size: 0.9rem;
  }
  #results {
    padding: 10px;
    border-radius: 10px;
  }
}

@media (max-width: 480px) {
  #filterForm {
    padding: 10px 12px;
  }
  #filterForm .form-select,
  #filterForm .form-control {
    font-size: 11px;
    padding: 5px 7px;
  }
  .page-title {
    font-size: 1.5rem;
  }
  .text-center.mb-4 .text-muted {
    font-size: 0.85rem;
  }
  #results {
    padding: 8px;
  }
}

/* High contrast mode support */
@media (prefers-contrast: high) {
  #filterForm {
    background: #fff;
    border: 2px solid #000;
  }
  #filterForm .form-select,
  #filterForm .form-control {
    border: 2px solid #000;
  }
  .page-title {
    color: #000;
  }
  #results {
    border: 2px solid #000;
  }
}

/* Reduced motion for accessibility */
@media (prefers-reduced-motion: reduce) {
  #filterForm,
  #filterForm .form-select,
  #filterForm .form-control,
  #results {
    transition: none;
  }
}

/* Additional styling for better visual hierarchy */
body {
  font-family: 'Arial', sans-serif;
  background: linear-gradient(135deg, #f5f5f5 0%, #e8e8e8 100%);
  color: #333;
}

.container.my-4 {
  background: rgba(255,255,255,0.9);
  border-radius: 20px;
  padding: 20px;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

.text-center.mb-4 .container.my-4 {
  background: transparent;
  box-shadow: none;
  padding: 0;
}

/* ==========================
   Cards Nos Circuits Section
========================== */
.card {
  border: none;
  overflow: hidden;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border-radius: 12px;
  background-color: #fff;
}

.card:hover {
  transform: translateY(-5px);
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.15);
}

.card-img-top {
  height: 220px;
  object-fit: cover;
  border-radius: 12px 12px 0 0;
  transition: transform 0.3s ease, filter 0.3s ease;
}

.card:hover .card-img-top {
  transform: scale(1.05);
  filter: brightness(0.9);
}

.card-body {
  padding: 1.25rem;
}

.card-body h5 {
  font-weight: 600;
  margin-bottom: 10px;
  color: #1b2a41;
}

.card-body p {
  font-size: 0.95rem;
  color: #495057;
}

/* Badges */
.badge {
  border-radius: 12px;
  padding: 6px 12px;
  font-size: 0.8rem;
  margin-right: 6px;
  font-weight: 500;
}

.price-badge { background-color: #0d6efd; color: #fff; }
.duration-badge { background-color: #6c757d; color: #fff; }
.type-badge { background-color: #198754; color: #fff; }

/* Modern card hover effect */
.card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 25px rgba(0,0,0,0.15);
    transition: all 0.3s ease;
}


/* Section title */
.page-title {
  font-size: 2.2rem;
  font-weight: 700;
  color: #1b2a41;
  text-align: center;
  margin-bottom: 20px;
  position: relative;
}

/* Title underline */
.page-title::after {
  content: '';
  display: block;
  width: 80px;
  height: 4px;
  background: linear-gradient(135deg, #C79663, #A86B42);
  margin: 10px auto 0;
  border-radius: 2px;
}

/* ==========================
   Liked Section (Circle Cards)
========================== */
/* Scroll wrapper */
.scrolling-wrapper {
  display: flex;
  overflow-x: auto;
  padding-bottom: 10px;
  scroll-behavior: smooth;
}

.scrolling-wrapper::-webkit-scrollbar {
  height: 8px;
}

.scrolling-wrapper::-webkit-scrollbar-thumb {
  background: #8b5d3b;
  border-radius: 4px;
}

.scrolling-wrapper::-webkit-scrollbar-track {
  background: #f1f1f1;
}

/* Circle card */
.circle-card {
  width: 120px;
  height: 120px;
  border-radius: 50%;
  overflow: hidden;
  background: #fff;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.circle-card img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.hover-scale:hover {
  transform: scale(1.1);
  box-shadow: 0 10px 25px rgba(0,0,0,0.2);
}

/* Card title */
.scrolling-wrapper h6 {
  font-size: 14px;
  margin-top: 8px;
  color: #4e2d1b;
}

/* Flex shrink for horizontal scroll */
.flex-shrink-0 {
  flex: 0 0 auto;
}

/* Responsive adjustments */
@media(max-width: 576px){
  .circle-card {
    width: 90px;
    height: 90px;
  }
  .scrolling-wrapper h6 {
    font-size: 12px;
  }
}

/* ==========================
   Agence Section
========================== */
.agence {
  padding: 60px 0;
}

.agence-card {
  background: #fff;
  border-radius: 15px;
  text-align: center;
  padding: 30px 20px;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 5px 15px rgba(0,0,0,0.05);
}

/* Hover effect */
.agence-card:hover {
  transform: translateY(-8px);
  box-shadow: 0 15px 35px rgba(0,0,0,0.15);
}

/* Image inside card */
.agence-card img {
  width: 90%;
  max-width: 300px;
  border-radius: 10px;
  margin-bottom: 20px;
  object-fit: cover;
  transition: transform 0.3s ease;
}

.agence-card img:hover {
  transform: scale(1.05);
}

/* Icons in card */
.agence-card i {
  font-size: 1.3rem;
  color: #0d6efd;
  margin-right: 6px;
}

/* Responsive layout */

/* Tablets */
@media (max-width: 992px) {
  .agence-card {
    padding: 25px 15px;
  }
  .agence-card img {
    width: 100%;
    max-width: 250px;
  }
}

/* Phones */
@media (max-width: 576px) {
  .agence-card {
    padding: 20px 10px;
  }
  .agence-card img {
    width: 100%;
    max-width: 200px;
    margin-bottom: 15px;
  }
  .agence-card i {
    font-size: 1.1rem;
    margin-right: 4px;
  }
}


