/* Car Search Results Page Styles */

@import url("style.css");

/* Main Content */
.main-content {
  padding: 32px 0 40px 0;
  background: #f4f4f5;
}

/* Fix container padding for this page */
@media (max-width: 1200px) {
  .container {
    padding-left: 40px;
    padding-right: 40px;
  }
}

@media (max-width: 768px) {
  .container {
    padding-left: 20px;
    padding-right: 20px;
  }
}

.search-layout {
  display: grid;
  grid-template-columns: 280px 1fr;
  gap: 40px;
}

/* Search Form */
.search-section {
  background: #fff;
  border-bottom: 1px solid #e5e7eb;
}

.search-form {
  background: #fff;
  border-radius: 12px;
  padding: 0;
}

.input-fields {
  margin-bottom: 24px;
  padding-top: 32px;
}

.search-options-container {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 16px;
  padding-top: 24px;
}

.field-group {
  display: flex;
  align-items: center;
  gap: 0;
  position: relative;
  box-shadow: var(--shadow-light);
  border-radius: 8px;
}

.input-field {
  flex: 1;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 16.5px;
  background-color: var(--neutral-0);
  position: relative;
}

.input-field:first-child {
  border-top-left-radius: 8px;
  border-bottom-left-radius: 8px;
}

.input-field:last-child {
  border-top-right-radius: 8px;
  border-bottom-right-radius: 8px;
  border-right: none;
}

.field-icon {
  width: 24px;
  height: 23px;
  flex-shrink: 0;
}

.field-content {
  display: flex;
  flex-direction: column;
  gap: 4px;
  flex: 1;
}

.field-label {
  font-family: var(--font-noto-sans);
  font-weight: 400;
  font-size: 12px;
  color: var(--neutral-500);
}

.field-input {
  border: none;
  background: transparent;
  font-family: var(--font-noto-sans);
  font-weight: 600;
  font-size: 14px;
  color: var(--neutral-800);
  outline: none;
  width: 100%;
}

.field-input::placeholder {
  color: var(--neutral-500);
}

.dropdown-icon {
  width: 24px;
  height: 23px;
  flex-shrink: 0;
}

.search-options {
  display: flex;
  gap: 16px;
  align-items: center;
}

.checkbox-label {
  display: flex;
  align-items: center;
  gap: 8px;
  font-family: var(--font-noto-sans);
  font-size: 14px;
  font-weight: 400;
  color: var(--neutral-600);
  cursor: pointer;
}

.checkbox-label input[type="checkbox"] {
  display: none;
}

.checkbox-label .checkmark {
  width: 16px;
  height: 16px;
  border: 2px solid var(--neutral-300);
  border-radius: 4px;
  position: relative;
  flex-shrink: 0;
}

.checkbox-label input[type="checkbox"]:checked + .checkmark {
  background: var(--primary-purple);
  border-color: var(--primary-purple);
}

.checkbox-label input[type="checkbox"]:checked + .checkmark::after {
  content: "✓";
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  color: white;
  font-size: 10px;
  font-weight: bold;
}

.btn-search {
  background: var(--primary-purple);
  border: none;
  border-radius: 8px;
  padding: 16px 32px;
  color: white;
  font-family: var(--font-noto-sans);
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  display: flex;
  align-items: center;
  gap: 8px;
  transition: all 0.2s ease;
  flex-shrink: 0;
}

.btn-search:hover {
  background: #4a35b8;
  transform: translateY(-1px);
}

.search-icon {
  width: 20px;
  height: 20px;
}

/* Sidebar */
.sidebar {
  background: #fff;
  border-radius: 12px;
  padding: 16px;
  border: 1px solid var(--Neutrals-200, #e4e4e7);
  height: fit-content;

}

.filter-section {
  margin-bottom: 16px;
  padding-bottom: 16px;
}

.filter-section:last-child {
  margin-bottom: 0;
  padding-bottom: 0;
  border-bottom: none;
}

.filter-header h3 {
  font-size: 16px;
  font-style: normal;
  font-weight: 700;
  line-height: 24px; /* 150% */
  color: var(--Primary-Dark-Blue, #543fcb);
  margin-bottom: 16px;
}

.collapse-toggle{
      border: none;
    background-color: transparent;

}

.filter-options {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.filter-option {
  display: flex;
  align-items: center;
  gap: 12px;
}

.filter-option label {
  display: flex;
  align-items: center;
  gap: 12px;
  cursor: pointer;
  font-size: 14px;
  color: #374151;
  font-weight: 400;
}

.filter-option input[type="checkbox"] {
  display: none;
}

.filter-option input[type="radio"] {
  display: none;
}

.checkmark {
    width: 28px;
    height: 28px;
    border: 1px solid var(--neutral-400);
    border-radius: 4px;
    position: relative;
    transition: all 0.2s 
ease;
}

.radio-mark {
  width: 20px;
  height: 20px;
  border: 2px solid #d1d5db;
  border-radius: 50%;
  position: relative;
  transition: all 0.2s;
}

#car-search-bar .search-options-container{
    justify-content: flex-end;
}

#car-search-bar .flight-options{
margin-block: 24px !important;
}

#car-search-bar .input-fields{
  padding-top: 0px !important;
}

#car-search-bar.is-hourly .limo-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
}


#car-search-bar .dropdown-icon{
      transform: rotate(0deg);
}
.filter-option input[type="checkbox"]:checked + label .checkmark {
  background: var(--Primary-Dark-Blue, #543fcb);
  border-color: var(--Primary-Dark-Blue, #543fcb);
}

.filter-option input[type="checkbox"]:checked + label .checkmark::after {
content: "";
    position: absolute;
    left: 50%;
    top: 50%;
    width: 6px;
    height: 14px;
    border: solid white;
    border-width: 0 2px 2px 0;
    transform: translate(-50%, -60%) rotate(45deg);
}



.filter-option input[type="radio"]:checked + label .radio-mark {
  background: var(--Primary-Dark-Blue, #543fcb);
  border-color: var(--Primary-Dark-Blue, #543fcb);
}

.divid {
    border: 1px solid #e5e7eb;
}


.filter-option input[type="radio"]:checked + label .radio-mark::after {
  content: "";
  position: absolute;
  left: 50%;
  top: 50%;
  width: 8px;
  height: 8px;
  background: white;
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.show-more {
  color: var(--Status-Info, #0286f7);
  text-decoration: none;
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 24px; /* 171.429% */
}

.show-more:hover {
  text-decoration: underline;
}

/* Content Area */
.content-area {
  display: flex;
  flex-direction: column;
}

/* Results Header */
.results-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.sort-options {
  display: flex;
  gap: 8px;
}

.sort-btn {
  display: flex;
  padding: 8px 16px;
  align-items: center;
  gap: 8px;
  border-radius: 8px;
  background: #fff;
  border: none;
  font-size: 14px;
  font-weight: 500;
  color: #6b7280;
  cursor: pointer;
  transition: all 0.2s;
  height: 40px;
}

.sort-btn.active {
  background: var(--Primary_2Hues-Hue-1, #322675);
  color: #fff;
}

.sort-btn:hover:not(.active) {
  background: #f9fafb;
}

.sort-icon {
  width: 16px;
  height: 16px;
}

.results-count {
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
}

/* Applied Filters */
.applied-filters {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
}

.applied-filters .results-count {
  font-size: 14px;
  color: #6b7280;
  font-weight: 500;
  flex-shrink: 0;
  margin-right: 16px;
}

.filter-tags {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  flex: 1;
  justify-content: flex-start;
}

.filter-tag {
  display: flex;
  padding: 4px 8px 4px 12px;
  align-items: center;
  gap: 4px;
  border-radius: 20px;
  background: var(--Primary_1Hues-Hue-9, #dddbf9);
  color: var(--Primary-Dark-Blue, #543fcb);
  font-size: 12px;
  font-weight: 500;
}

.remove-filter {
  background: none;
  border: none;
  color: var(--Primary-Dark-Blue, #543fcb);
  font-size: 16px;
  cursor: pointer;
  padding: 0;
  width: 16px;
  height: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.remove-filter:hover {
  background: rgba(84, 63, 203, 0.1);
  border-radius: 50%;
}

.remove-all {
  color: var(--Primary-Dark-Blue, #543fcb);
  text-decoration: none;
  font-size: 14px;
  font-weight: 500;
}

.remove-all:hover {
  text-decoration: underline;
}

/* Car Cards */
.car-cards {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.car-card {
  background: #fff;
  border: 1px solid #e5e7eb;
  border-radius: 12px;
  padding: 16px;
  display: flex;
  gap: 20px;
  transition: all 0.2s;
  position: relative;
  height: 202px;
}

.car-card:hover {
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  border-color: #d1d5db;
}

.favorite-btn {
  position: absolute;
  top: 20px;
  right: 20px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 2;
}

.favorite-btn:hover {
  background: #fff;
  transform: scale(1.1);
}

.heart-icon {
  width: 20px;
  height: 20px;
}

.car-image {
  width: 200px;
  height: 162px;
  border-radius: 8px;
  overflow: hidden;
  flex-shrink: 0;
}

.car-image img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.car-details {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  flex: 1 0 0;
  position: relative;
  padding-right: 120px;
}

.car-name {
  font-size: 20px;
  font-weight: 700;
  color: #71717a;
  margin: 0;
}

.car-model {
  font-size: 16px;
  font-weight: 500;
  color: #6b7280;
  margin: 0;
}

.car-specs {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.spec-row {
  display: flex;
  gap: 16px;
}

.spec-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.spec-icon {
  width: 16px;
  height: 16px;
}

.spec-text {
  font-size: 12px;
  color: #6b7280;
}

.company-info {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  position: absolute;
  bottom: 0;
  left: 0;
}

.company-logo {
  width: 60px;
  height: 30px;
  object-fit: contain;
}

.company-rating {
  display: flex;
  align-items: center;
  gap: 8px;
}

.star-icon {
  width: 16px;
  height: 16px;
}

.rating-score {
  color: var(--Neutrals-500, #71717a);
  font-size: 16px;
  font-style: normal;
  font-weight: 500;
  line-height: normal;
}

.rating-max {
  color: var(--Neutrals-500, #71717a);
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 24px;
  margin-left: -4px;
}

.rating-text {
  font-size: 14px;
  font-weight: 600;
  color: #01a94d;
}

.reviews {
  color: #71717a;
  font-size: 16px;
  font-weight: 500;
  line-height: normal;
  text-decoration: none;
  cursor: pointer;
}

.pricing {
  position: absolute;
  top: 0;
  right: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 4px;
}

.price-info {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.price-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.original-price {
  color: var(--Neutrals-400, #a1a1aa);
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 24px; /* 171.429% */
  text-decoration: line-through;
}

.current-price {
  font-size: 18px;
  font-weight: 700;
  color: #111827;
}

.price-total {
  color: var(--Neutrals-400, #a1a1aa);
  font-size: 12px;
  font-style: normal;
  font-weight: 400;
  line-height: 16px; /* 133.333% */
  align-self: flex-end;
}

.amenities {
  display: flex;
  flex-direction: column;
  gap: 4px;
  align-items: flex-end;
}

.amenity {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #01a94d;
}

.amenity img {
  width: 12px;
  height: 12px;
}

.check-icon {
  width: 12px;
  height: 12px;
  filter: #01a94d;
}

.btn-reserve {
  background: var(--Primary-Dark-Blue, #543fcb);
  color: #fff;
  border: none;
  border-radius: 8px;
  padding: 12px 24px;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 0.2s;
  position: absolute;
  bottom: 0;
  right: 0;
}

.btn-reserve:hover {
  background: #4330a3;
}

/* Hotel Recommendations Section */
.hotel-recommendations {
  background: var(--neutral-0);
  padding: 80px 0;
}

.hotel-content {
  text-align: center;
  margin-bottom: 40px;
}

.hotel-title {
  color: var(--Neutrals-600, #52525b);
  font-size: 20px;
  font-style: normal;
  font-weight: 700;
  line-height: 28px;
  letter-spacing: -0.1px;
  margin-bottom: 12px;
}

.hotel-description {
  color: var(--Neutrals-600, #52525b);
  font-size: 14px;
  font-style: normal;
  font-weight: 500;
  line-height: 24px;
  max-width: 600px;
  margin: 0 auto;
}

.hotels-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 24px;
}

.hotel-card {
  background: #fff;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1);
  transition: all 0.2s;
  position: relative;
}

.hotel-card:hover {
    /* transform: translateY(-4px); */
       border-color: #6457E6 !important;

  }

.hotel-image-wrapper {
  position: relative;
  width: 100%;
  height: 200px;
  overflow: hidden;
}

.hotel-image-wrapper img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hotel-image-wrapper .favorite-btn {
  position: absolute;
  top: 12px;
  right: 12px;
  background: rgba(255, 255, 255, 0.9);
  border: none;
  border-radius: 50%;
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: all 0.2s;
  z-index: 2;
}

.hotel-image-wrapper .favorite-btn:hover {
  background: #fff;
  transform: scale(1.1);
}

.hotel-image-wrapper .heart-icon {
  width: 16px;
  height: 16px;
}

.hotel-details {
  padding: 16px;
}

.hotel-name {
  font-size: 16px;
  font-weight: 600;
  color: #111827;
  margin-bottom: 8px;
}

.hotel-meta {
  margin-bottom: 12px;
}

.rating {
  display: flex;
  align-items: center;
  gap: 8px;
}

.rating-score {
  font-size: 14px;
  color: #71717a;
  font-weight: 500;
}

.location {
  font-size: 14px;
  color: #6b7280;
}

.hotel-pricing {
  display: flex;
  justify-content: flex-end;
}

.current-price {
  font-size: 20px;

  font-weight: 700;
  color: #543fcb;
}

/* Newsletter styles inherited from home page */

/* Footer styles inherited from home page */

/* Responsive Design */
@media (max-width: 1024px) {
  .search-layout {
    grid-template-columns: 1fr;
    gap: 30px;
  }

  .sidebar {
    position: static;
    order: 2;
  }

  .content-area {
    order: 1;
  }

  .hotels-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
  }

  .car-card {
    flex-direction: column;
    gap: 16px;
    height: auto;
  }

  .car-image {
    width: 100%;
    height: 200px;
  }

  .car-details {
    padding-right: 0;
  }

  .pricing {
    position: static;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-end;
    margin-top: 16px;
  }

  .btn-reserve {
    position: static;
    align-self: stretch;
    margin-top: 16px;
  }
}

@media (max-width: 768px) {
  .field-group {
    flex-direction: column;
    gap: 0;
  }

  .input-field {
    border-right: none;
    border-bottom: 1px solid #e5e7eb;
    border-radius: 0;
  }

  .input-field:first-child {
    border-radius: 12px 12px 0 0;
  }

  .input-field:last-child {
    border-bottom: none;
    border-radius: 0 0 12px 12px;
  }

  .search-options-container {
    justify-content: center;
  }

  .btn-search {
    width: 100%;
    justify-content: center;
  }

  .results-header {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .applied-filters {
    flex-direction: column;
    gap: 16px;
    align-items: flex-start;
  }

  .applied-filters .results-count {
    align-self: flex-start;
  }

  .filter-tags {
    width: 100%;
    justify-content: flex-start;
  }

  .hotels-grid {
    grid-template-columns: repeat(2, 1fr);
    gap: 16px;
  }

  .newsletter-content {
    flex-direction: column;
    text-align: center;
  }

  .email-input {
    width: 250px;
  }

  .footer-content {
    grid-template-columns: repeat(2, 1fr);
    gap: 30px;
  }

  .footer-brand {
    grid-column: span 2;
  }
}

@media (max-width: 480px) {
  .main-content {
    padding: 20px 0;
  }

  .search-layout {
    gap: 20px;
  }

  .sidebar {
    padding: 20px;
  }

  .car-card {
    padding: 16px;
  }

  .hotels-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .newsletter-form {
    flex-direction: column;
    width: 100%;
  }

  .email-input {
    width: 100%;
  }

  .footer-content {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-social {
    justify-content: center;
  }

  .legal-links {
    justify-content: center;
  }
}

/* رأس كل سكشن: العنوان يسار و"From" يمين */
.filter-header {
  display: flex;
  justify-content: space-between;
      align-items: start;
}
.filter-header .from {
  font-size: 14px;
  color: #52525B;
  font-weight: 500;
}
.filter-header .section-price {
  font-weight: 600;
  color: #6b7280;
}

/* صف الخيار: النص يسار والسعر يمين */
.filter-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.filter-option .option-main {
  display: flex;
  align-items: center;
  gap: 10px;
}
.filter-option .option-price {
  min-width: 52px;
  text-align: right;
  color: #52525B;
  font-size: 14px;
}
.filter-option input[type="checkbox"] {
  cursor: pointer;
}
.filter-option label {
  cursor: pointer;
}

/* “Show more” */
.show-more {
  display: inline-block;
  font-size: 14px;
}


