.is-hidden { display: none; }
.thin-divider { width: 97%; height: 0; border: 0.5px solid #FEFEFE; }
.row-full-width { width: 100%; }

/* Index page specific navbar override */
.site-navbar {
    position: static !important;
    /* background-color: transparent !important; */
}

.hero-index {
  background-image: url('/images/hero.webp');
  background-color: #0000002b;
  color: #fff;
  height: 819px;
  background-size: cover;
  background-repeat: no-repeat;
  background-blend-mode: multiply;
}

/* 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;
  }
}

.red-text { color: red !important; }

.checkbox-row--flex {
  display: flex;
  flex-direction: row;
  align-items: center;
}

.home-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;
}

.site-section--no-bottom { padding-bottom: 0 !important; }
.site-section--no-padding { padding: 0 !important; }

/* Site section with max-width and centering */
.site-section.site-section--no-bottom {
    max-width: 1440px;
    margin: 0 auto;
    width: 100%;
    padding-left: 20px;
    padding-right: 20px;
    box-sizing: border-box;
    padding-top: 0px !important;
}

/* Responsive styles for site-section */
@media (max-width: 768px) {
    .site-section.site-section--no-bottom {
        padding-left: 15px;
        padding-right: 15px;
    }
}

@media (max-width: 480px) {
    .site-section.site-section--no-bottom {
        padding-left: 10px;
        padding-right: 10px;
    }
}
.justify-between { justify-content: space-between; }
.inline-block { display: inline; }

.viewdeals {
    display: flex;
    justify-content: center;
}
.card-link-btn { all: unset; display: block; cursor: pointer; text-align: left; }
/* New form/card classes */
.hc-inline { display: inline; }
.hc-card-link-btn { all: unset; display: block; cursor: pointer; text-align: left; }

.days--left { border-radius: 5px 0 0 5px; }
.days--right { border-radius: 0 5px 5px 0; }

.hero-index {
  height: 883px;
  margin-bottom: 24px;
}

/* Remove focus outlines from all elements */
* {
    outline: none !important;
}
@media (min-width: 1809px) {
  .daysCount>.days {
    width: 73px !important;
  }
  .Prices>.price {
    width: 73px !important;
  }
}

/* Remove focus outlines from links and buttons */
a:focus, button:focus, input:focus, textarea:focus, select:focus {
    outline: none !important;
    box-shadow: none !important;
    border-color: initial !important;
}

/* Remove tap highlight on mobile */
* {
    -webkit-tap-highlight-color: transparent !important;
}

/* Home carousel (hc-*) */
.hc-slider { position: relative; }
.hc-viewport { overflow-x: auto; overflow-y: hidden; width: 100%; scrollbar-width: none; -ms-overflow-style: none; cursor: grab; user-select: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; position: relative; }
.hc-viewport::-webkit-scrollbar { display: none; }
.hc-viewport:active { cursor: grabbing; }
/* Gradient overlays on sides */
.hc-slider::before,
.hc-slider::after {
  content: '';
  position: absolute;
  top: 0;
  bottom: 0;
  width: 80px;
  z-index: 1;
  pointer-events: none;
  transition: opacity 0.3s ease;
}
.hc-slider::before {
  left: 0;
  background: linear-gradient(to right, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.8) 30%, rgba(255, 255, 255, 0) 100%);
}
.hc-slider::after {
  right: 0;
  background: linear-gradient(to left, rgba(255, 255, 255, 1) 0%, rgba(255, 255, 255, 0.8) 30%, rgba(255, 255, 255, 0) 100%);
}
.hc-track { flex-wrap: nowrap; gap: 16px; user-select: none; -webkit-user-select: none; -moz-user-select: none; -ms-user-select: none; }
.hc-track .col { flex: 0 0 auto; width: 340px; }
.hc-btn { position: absolute; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 50%; border: none; background: rgba(0,0,0,0.5); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; z-index: 2; }
.hc-btn--prev { left: -12px; }
.hc-btn--next { right: -12px; }
.hc-arrow { display: inline-block; width: 0; height: 0; border-top: 6px solid transparent; border-bottom: 6px solid transparent; }
.hc-arrow--left { border-right: 10px solid #fff; }
.hc-arrow--right { border-left: 10px solid #fff; }
.hc-btn.is-disabled { opacity: 0.4; cursor: default; pointer-events: none; }
/* Ensure same margin for discountedcars as economycars */
.economycars, .discountedcars { margin-top: 40px; }
/* Override global margins for section wrappers */
.bestsellers, .economycars, .discountedcars { margin-left: 6px; margin-right: 6px; }
.bestsellers { margin-bottom: 36px; }

/* Discount styles */
.Prices--discount { align-items: center; gap: 12px; }
.old-price { color: #9CA3AF; text-decoration: line-through; font-weight: 500; }
.discounted-price { color: #10B981; font-weight: 700; }
.discount-badge { position: absolute; top: 8px; left: 8px; background: #EF4444; color: #fff; font-weight: 700; font-size: 12px; padding: 4px 8px; border-radius: 4px; z-index: 1; }

@media (max-width: 768px) {
  .hc-btn--prev { left: 4px; }
  .hc-btn--next { right: 4px; }
  .hc-track { gap: 12px; }
  .hc-track .col { width: calc(50% - 6px); min-width: 160px; max-width: 180px; }
  .hc-listing-img img { width: 100%; height: auto; object-fit: cover; }
  .hc-listing-img { max-height: 120px; overflow: hidden; }
  .car-title-link { font-size: 12px; line-height: 1.3; max-height: 2.6em; overflow: hidden; text-overflow: ellipsis; display: -webkit-box; -webkit-line-clamp: 2; line-clamp: 2; -webkit-box-orient: vertical; }
  .hc-listing-contents h3 { min-height: 50px; margin-bottom: 8px; }
  .daysCount, .Prices { width: 100% !important; }
  .daysCount .days, .Prices .price { width: calc(25% - 2px); font-size: 9px; }
  .daysCount .days p { font-size: 9px; line-height: 10px; }
  .Prices .price { font-size: 11px; }
  /* Smaller gradient overlays on mobile */
  .hc-slider::before,
  .hc-slider::after {
    width: 40px;
  }
}

/* Car title link size */
.car-title-link { font-size: 18px; line-height: 1.3; display: inline-block; }

/* WhyUs responsive background images */
.WhyUs {
    background-image: url(../images/background-1440x680.png);
    background-size: cover;
    background-repeat: no-repeat;
    background-position: center;
    background-color: #0000002b;
    background-blend-mode: multiply;
}

@media (min-width: 1441px) {
  .WhyUs {
    background-image: url(../images/background-1920x680.png);
  }
}

@media (min-width: 1921px) {
  .WhyUs {
    background-image: url(../images/background-2560x680.png);
  }
}

/* Blog Slider Section */
.blog-slider-section {
    width: 100%;
    padding: 60px 0;
    background: #f8f9fa;
    margin-top: 40px;
    margin-bottom: 0;
}

.blog-slider-section .container {
    max-width: 1400px;
    margin: 0 auto;
}

.blog-slider-section .section-heading {
    margin-bottom: 0;
}

.view-all-blog-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #00B5CC;
    text-decoration: none;
    font-weight: 600;
    transition: all 0.3s ease;
}

.view-all-blog-btn:hover {
    color: #0088a3;
    text-decoration: none;
    transform: translateX(5px);
}

.blog-slider-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
    margin-top: 30px;
}

.blog-slider-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.blog-slider-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 15px rgba(0, 181, 204, 0.2);
}

.blog-slider-image {
    position: relative;
    display: block;
    overflow: hidden;
    height: 200px;
    width: 100%;
    background: linear-gradient(135deg, #00B5CC 0%, #0088a3 100%);
}

.blog-slider-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
    background: #f0f0f0;
}

.blog-slider-card:hover .blog-slider-image img {
    transform: scale(1.05);
}

.featured-badge-slider {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #00B5CC;
    color: white;
    padding: 4px 12px;
    border-radius: 20px;
    font-size: 0.75rem;
    font-weight: 600;
}

.blog-slider-content {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.blog-slider-category {
    display: inline-block;
    color: #00B5CC;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    margin-bottom: 0.75rem;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-slider-category:hover {
    color: #0088a3;
    text-decoration: none;
}

.blog-slider-title {
    font-size: 1.25rem;
    font-weight: 700;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    flex-grow: 1;
}

.blog-slider-title a {
    color: #333;
    text-decoration: none;
    transition: color 0.3s ease;
}

.blog-slider-title a:hover {
    color: #00B5CC;
    text-decoration: none;
}

.blog-slider-excerpt {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.blog-slider-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 1rem;
    border-top: 1px solid #eee;
    margin-top: auto;
}

.blog-slider-date {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    font-size: 0.85rem;
    color: #999;
}

.blog-slider-date i {
    color: #00B5CC;
}

.blog-slider-read-more {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    color: #00B5CC;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: all 0.3s ease;
}

.blog-slider-read-more:hover {
    color: #0088a3;
    text-decoration: none;
    transform: translateX(3px);
}

@media (max-width: 1200px) {
    .blog-slider-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .blog-slider-section {
        padding: 40px 0;
        margin-top: 30px;
    }
    
    .blog-slider-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
    
    .blog-slider-image {
        height: 180px;
    }
    
    .view-all-blog-btn {
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .blog-slider-section {
        padding: 30px 0;
        margin-top: 20px;
    }
    
    .blog-slider-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}
