/* Cars page specific styles */

/* Google Reviews and Map Section Styles */
.map-section {
    margin-top: 3rem;
    padding: 2rem 0;
    background: linear-gradient(135deg, #f8f9fa 0%, #ffffff 100%);
    border-radius: 12px;
}

.map-header {
    text-align: center;
    margin-bottom: 2rem;
}

.map-title {
    font-size: 2.5rem;
    font-weight: 700;
    color: #2c3e50;
    margin-bottom: 0.5rem;
}

.map-subtitle {
    font-size: 1.1rem;
    color: #6c757d;
    margin-bottom: 0;
}

.map-container {
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    margin-bottom: 1.5rem;
}

.map-container iframe {
    border-radius: 12px;
    transition: transform 0.3s ease;
}

.map-container:hover iframe {
    transform: scale(1.02);
}

.map-info {
    background: #ffffff;
    padding: 1.5rem;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
}

.map-info h5 {
    color: #2c3e50;
    font-weight: 600;
    margin-bottom: 0.5rem;
}

.map-info p {
    color: #6c757d;
    margin-bottom: 0.5rem;
}

/* Enhanced Review Styles */
.review-item {
    background: #ffffff;
    border-radius: 12px;
    padding: 1.5rem;
    margin-bottom: 1.5rem;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.05);
    transition: all 0.3s ease;
    border: 1px solid #e9ecef;
}

.review-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
}

.review-content {
    display: flex;
    align-items: flex-start;
    gap: 1rem;
}

.reviewer-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
    border: 2px solid #e9ecef;
    flex-shrink: 0;
}

.review-details {
    flex: 1;
}

.reviewer-name {
    font-size: 1.1rem;
    font-weight: 600;
    color: #2c3e50;
    margin-bottom: 0.25rem;
}

.reviewer-info {
    font-size: 0.9rem;
    color: #6c757d;
    margin-bottom: 0.5rem;
}

.review-rating {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.75rem;
}

.review-stars {
    display: flex;
    gap: 2px;
}

.review-star {
    width: 16px;
    height: 16px;
    transition: all 0.2s ease;
}

.review-date {
    color: #6c757d;
    font-size: 0.85rem;
}

.review-text {
    color: #495057;
    line-height: 1.6;
    margin-bottom: 0;
}

/* Stats Card Enhancements */
.stats-card {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white;
    border-radius: 16px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 8px 32px rgba(102, 126, 234, 0.3);
    transition: transform 0.3s ease;
}

.stats-card:hover {
    transform: translateY(-4px);
}

.stats-number {
    font-size: 2.5rem;
    font-weight: 700;
    margin: 0.5rem 0;
}

.rating-number {
    font-size: 2rem;
    font-weight: 700;
    margin-bottom: 0.5rem;
}

.stars-container {
    display: flex;
    justify-content: center;
    gap: 4px;
    margin-bottom: 1rem;
}

.star-icon {
    width: 20px;
    height: 20px;
    transition: all 0.2s ease;
}

.google-review-card {
    background: rgba(255, 255, 255, 0.15);
    border-radius: 8px;
    padding: 1rem;
    margin-top: 1rem;
    backdrop-filter: blur(10px);
    transition: all 0.3s ease;
    border: 1px solid rgba(255, 255, 255, 0.2);
}

.google-review-card:hover {
    background: rgba(255, 255, 255, 0.25);
    transform: translateY(-2px);
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
}

.google-review-link {
    text-decoration: none;
    color: inherit;
    display: block;
}

.google-review-link:hover {
    text-decoration: none;
    color: inherit;
}

.google-review-content {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    cursor: pointer;
}

.google-text {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 600;
    color: #ffffff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.3);
}

.google-review-content .google-text {
    color: #ffffff !important;
}

/* Scrollable Reviews Container */
.reviews-scrollable-container {
    max-height: 400px !important;
    overflow-y: auto !important;
    padding-right: 10px !important;
    scrollbar-width: thin;
    scrollbar-color: #667eea #f1f1f1;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    background: #ffffff;
}

.reviews-scrollable-container::-webkit-scrollbar {
    width: 8px;
}

.reviews-scrollable-container::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 4px;
}

.reviews-scrollable-container::-webkit-scrollbar-thumb {
    background: #667eea;
    border-radius: 4px;
}

.reviews-scrollable-container::-webkit-scrollbar-thumb:hover {
    background: #5a6fd8;
}

/* Ensure reviews have proper spacing */
.reviews-scrollable-container .review-item {
    margin-bottom: 1rem;
    border-bottom: 1px solid #f8f9fa;
    padding-bottom: 1rem;
}

.reviews-scrollable-container .review-item:last-child {
    border-bottom: none;
    margin-bottom: 0;
}

/* Enhanced Map Info Styling */
.map-info {
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%) !important;
    padding: 2rem !important;
    border-radius: 16px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1) !important;
    border: 1px solid rgba(102, 126, 234, 0.1) !important;
    position: relative !important;
    overflow: hidden !important;
    margin-top: 1.5rem !important;
}

.map-info::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #667eea 0%, #764ba2 100%);
    z-index: 1;
}

.map-info h5 {
    color: #2c3e50 !important;
    font-weight: 700 !important;
    margin-bottom: 0.75rem !important;
    font-size: 1.1rem !important;
    position: relative !important;
    padding-left: 25px !important;
}

.map-info h5::before {
    content: '📍';
    position: absolute;
    left: 0;
    top: 0;
    font-size: 16px;
    z-index: 2;
}

.map-info p {
    color: #495057 !important;
    margin-bottom: 0.75rem !important;
    font-size: 1rem !important;
    line-height: 1.6 !important;
    padding-left: 25px !important;
}

.map-info .row > div {
    position: relative;
}

.map-info .row > div:first-child h5::before {
    content: '🏢';
}

.map-info .row > div:last-child h5::before {
    content: '📞';
}

.google-icon {
    width: 20px;
    height: 20px;
}

.google-text {
    margin: 0;
    font-size: 0.9rem;
    font-weight: 500;
}

.listing .listing-img img{
    object-fit: cover;
}

/* Responsive Design */
@media (max-width: 768px) {
    .map-title {
        font-size: 2rem;
    }
    
    .review-content {
        flex-direction: column;
        text-align: center;
    }
    
    .reviewer-avatar {
        align-self: center;
    }
    
    .stats-card {
        padding: 1.5rem;
    }
    
    .stats-number {
        font-size: 2rem;
    }
}

/* Common utility classes */
.is-hidden { display: none; }
.thin-divider { width: 97%; height: 0; border: 0.5px solid #FEFEFE; }
.row-full-width { width: 100%; }
.justify-between { justify-content: space-between; }
.inline-block { display: inline; }
.cursor-pointer { cursor: pointer; }
.float-left { float: left; }
.float-right { float: right; }
.text-center { text-align: center; }

/* Responsive menu */
.responsive-menu.is-hidden { display: none; }

/* New improved error alert styles */
.alert-error {
  position: fixed;
  top: 20px;
  right: 20px;
  left: auto;
  z-index: 999999;
  background: linear-gradient(135deg, #fff5f5 0%, #ffffff 100%);
  border: 2px solid #FC1923;
  border-radius: 12px;
  padding: 16px 20px;
  opacity: 0;
  display: none;
  max-width: 500px;
  min-width: 300px;
  width: auto;
  box-sizing: border-box;
  box-shadow: 0 8px 32px rgba(252, 25, 35, 0.15);
  backdrop-filter: blur(10px);
  transform: translateX(100%);
  transition: all 0.3s cubic-bezier(0.68, -0.55, 0.265, 1.55);
}

.alert-error.show {
  display: block;
  opacity: 1;
  transform: translateX(0);
}

.alert-error.hide {
  opacity: 0;
  transform: translateX(100%);
}

.alert-error-text {
  font-family: 'Roboto', sans-serif;
  font-style: normal;
  font-weight: 500;
  font-size: 16px;
  line-height: 1.5;
  text-align: left;
  color: #DC2626;
  margin: 0;
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
}

.alert-error-icon {
  display: inline-block;
  width: 20px;
  height: 20px;
  background: #FC1923;
  border-radius: 50%;
  margin-right: 12px;
  position: relative;
  vertical-align: middle;
}

.alert-error-icon::before,
.alert-error-icon::after {
  content: '';
  position: absolute;
  background: white;
  top: 50%;
  left: 50%;
}

.alert-error-icon::before {
  width: 2px;
  height: 10px;
  margin: -5px 0 0 -1px;
}

.alert-error-icon::after {
  width: 10px;
  height: 2px;
  margin: -1px 0 0 -5px;
}

/* Mobile responsive design */
@media (max-width: 480px) {
  .alert-error {
    left: 16px;
    right: 16px;
    width: auto;
    max-width: none;
    min-width: 0;
    top: 16px;
    padding: 14px 18px;
  }
  
  .alert-error-text {
    font-size: 15px;
    line-height: 1.4;
  }
  
  .alert-error-icon {
    width: 18px;
    height: 18px;
    margin-right: 10px;
  }
}

/* Legacy filter-error styles (keeping for backward compatibility) */
.filter-error-text {
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 400;
  font-size: 17px;
  line-height: 1.6;
  text-align: left;
  color: #FC1923;
  margin: 14px 18px;
  word-break: break-word;
  overflow-wrap: anywhere;
  white-space: normal;
}

.filter-error {
  position: fixed;
  top: 20px;
  right: 20px;
  left: auto;
  transform: translateY(-10px);
  z-index: 999999;
  background: #ffffff;
  border-right: 4px solid #FC1923;
  box-shadow: 0 10px 25px rgba(0, 0, 0, 0.15);
  border-radius: 8px;
  padding: 0;
  opacity: 0;
  display: none;
  max-width: 560px;
  min-width: 320px;
  width: auto;
  height: auto;
  min-height: 60px;
  box-sizing: border-box;
  overflow: hidden;
}

.filter-error.show {
  display: block;
  animation: filterErrorInRight 300ms ease-out forwards;
}

.filter-error.hide {
  animation: filterErrorOutRight 300ms ease-in forwards;
}

@keyframes filterErrorInRight {
  from { opacity: 0; transform: translateY(-10px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes filterErrorOutRight {
  from { opacity: 1; transform: translateY(0); }
  to { opacity: 0; transform: translateY(-10px); }
}

@media (max-width: 480px) {
  .filter-error {
    left: 16px;
    right: 16px;
    width: auto;
    max-width: none;
    min-width: 0;
    padding: 0;
    top: 10px;
    overflow: visible;
  }
  
  .filter-error-text {
    font-size: 15px;
    line-height: 1.4;
    word-break: normal;
    overflow-wrap: normal;
  }
}

/* Form elements */
.red-text { color: red !important; }

/* Checkbox styles */
.checkbox-row--flex {
  display: flex;
  flex-direction: row;
  align-items: center;
}

/* Button styles */
.cars-submitbutton {
  background-color: #FEFEFE;
  width: 222px;
  height: 60px;
  color: #00B5CC;
  float: right;
  font-family: 'Roboto';
  font-style: normal;
  font-weight: 600;
  font-size: 32px;
  line-height: 7px;
}

/* Section styles */
.site-section--no-bottom { padding-bottom: 0 !important; }
.site-section--no-padding { padding: 0 !important; }

/* Card button styles */
.card-link-btn { 
  all: unset; 
  display: block; 
  cursor: pointer; 
  text-align: left; 
}

/* Days styling */
.days--left { border-radius: 5px 0 0 5px; }
.days--right { border-radius: 0 5px 5px 0; }

/* Hero section */
.hero-inner-page {
  background-color: #00B5CC;
}

/* Filter section */
.filter-section {
  justify-content: space-between;
}

/* Mobile search */
.mobile-search.is-hidden { display: none; }

.mobile-filter-section {
  justify-content: space-between;
  display: none;
}

.mobile-filter-section.show {
  display: flex;
}

/* Checkbox filter */
.checkbox-filter {
  margin-right: 20px;
  margin-left: 33px;
}

/* Clear filters button */
.clear-filters {
  cursor: pointer;
  float: right;
}

/* Car name width */
.car-name-width {
  width: 320px;
}

.total-price-width {
  width: 85px !important;
}

/* Button sizes */
.btn-sm-custom {
  width: 124px;
  height: 35px;
}

/* Padding utilities */
.padding-left-55 {
  padding-left: 55px;
}

/* Margin utilities */
.margin-auto {
  margin-left: auto !important;
  margin-right: auto !important;
}

/* Text colors */
.text-muted {
  color: rgba(14, 13, 13, 0.4);
}

/* Review section */
.review-date {
  float: right;
}


/* Search form styles */
.search-form {
  background: none !important;
  padding: 0;
  margin: 0 !important;
  border: none !important;
  box-shadow: none !important;
}

/* Search icon button styles */
.search-icon {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  color: #666;
  background: none;
  border: none;
  cursor: pointer;
  padding: 4px;
  border-radius: 50%;
  transition: all 0.3s ease;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
}

.search-icon:hover {
  background-color: #00B5CC;
  color: white;
  transform: translateY(-50%) scale(1.1);
  box-shadow: 0 2px 8px rgba(0, 181, 204, 0.3);
}

.search-icon:active {
  transform: translateY(-50%) scale(0.95);
}

.search-icon i {
  font-size: 14px;
}

/* Improved filter checkbox styles - applies to all checkboxes in filter */
.checkbox-square {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  width: 18px;
  height: 18px;
  border: 2px solid #ddd;
  border-radius: 4px;
  background-color: #fff;
  cursor: pointer;
  position: relative;
  transition: all 0.3s ease;
  margin-right: 8px;
  vertical-align: middle;
  flex-shrink: 0;
}

.checkbox-square:hover {
  border-color: #00B5CC;
  background-color: #f8f9fa;
  transform: scale(1.05);
}

.checkbox-square:checked {
  background-color: #00B5CC;
  border-color: #00B5CC;
  box-shadow: 0 2px 4px rgba(0, 181, 204, 0.3);
}

.checkbox-square:checked::after {
  content: '';
  position: absolute;
  left: 5px;
  top: 2px;
  width: 4px;
  height: 8px;
  border: solid white;
  border-width: 0 2px 2px 0;
  transform: rotate(45deg);
  animation: checkmark 0.2s ease-in-out;
}

@keyframes checkmark {
  0% {
    opacity: 0;
    transform: rotate(45deg) scale(0);
  }
  100% {
    opacity: 1;
    transform: rotate(45deg) scale(1);
  }
}

.checkbox-square:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 181, 204, 0.2);
}

/* Filter label styles */
.checkbox-square + label {
  cursor: pointer;
  user-select: none;
  font-size: 14px;
  color: #333;
  transition: color 0.3s ease;
  display: flex;
  align-items: center;
  margin-bottom: 8px;
  padding: 4px 0;
}

.checkbox-square:checked + label {
  color: #00B5CC;
  font-weight: 500;
}

/* Each filter container */
.each-filter {
  display: flex;
  align-items: center;
  margin-bottom: 12px;
  padding: 2px 0;
  transition: background-color 0.2s ease;
  border-radius: 4px;
}

.each-filter:hover {
  background-color: #f8f9fa;
  padding-left: 4px;
}

/* Filter class (category buttons) styles */
.row.filter-class {
  display: flex;
  gap: 15px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.row.filter-class li {
  cursor: pointer;
  padding: 8px 16px;
  background-color: #f8f9fa;
  border-radius: 20px;
  transition: all 0.3s ease;
  border: 2px solid transparent;
  font-size: 14px;
  font-weight: 500;
  color: #666;
  user-select: none;
  position: relative;
  overflow: hidden;
}

.row.filter-class li::before {
  content: '';
  position: absolute;
  top: 0;
  left: -100%;
  width: 100%;
  height: 100%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.4), transparent);
  transition: left 0.5s ease;
}

/* Active/Selected state */
.row.filter-class li.active,
.row.filter-class li.selected {
  background-color: #00B5CC;
  border-color: #00B5CC;
  box-shadow: 0 2px 8px rgba(0, 181, 204, 0.3);
  font-weight: 600;
}

/* Focus state for accessibility */
.row.filter-class li:focus {
  outline: none;
  box-shadow: 0 0 0 3px rgba(0, 181, 204, 0.2);
}

/* Responsive design for filter class */
@media (max-width: 768px) {
  .row.filter-class {
    gap: 10px;
    flex-wrap: wrap;
  }
  
  .row.filter-class li {
    padding: 6px 12px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .row.filter-class {
    gap: 8px;
  }
  
  .row.filter-class li {
    padding: 5px 10px;
    font-size: 12px;
  }
}

/* Search result elements - make width depend on content */
.searchresult {
  display: flex;
  gap: 20px;
  flex-wrap: wrap;
  align-items: flex-start;
}

.location, .date, .time {
  display: flex;
  align-items: center;
  width: fit-content;
  min-width: auto;
  max-width: none;
  flex-shrink: 0;
  padding: 15px;
}

.location img, .date img, .time img {
  flex-shrink: 0;
  width: auto;
  height: auto;
}

.location div, .date div, .time div {
  display: flex;
  flex-direction: column;
  width: fit-content;
  min-width: auto;
}

.location p, .date p, .time p {
  margin: 0;
  white-space: nowrap;
  width: fit-content;
}

.location>img, .date>img, .time>img{
  margin-top: 0px;
  margin-left: 0px;
}

/* Responsive adjustments */
@media (max-width: 768px) {
  .searchresult {
    flex-direction: column;
    gap: 15px;
  }
  
  .location, .date, .time {
    width: 100%;
    justify-content: flex-start;
  }
  
  .location p, .date p, .time p {
    white-space: normal;
    word-wrap: break-word;
  }
}

@media only screen and (max-width: 470px) {
  .car-listing-content>.row:nth-child(2) {
      top: 30px !important;
  }
}

/* Remove focus outlines */
* { outline: none !important; }
a:focus, button:focus { outline: none !important; box-shadow: none !important; }
* { -webkit-tap-highlight-color: transparent !important; }
