.admin-bar .main-header {
  top: 32px;
}

/* Existing GDPR Bar Styles */
.gdpr-bar {
  position: fixed;
  bottom: 0;
  left: 0;
  right: 0;
  background-color: #333;
  color: #fff;
  padding: 15px;
  font-size: 14px;
  z-index: 9999;
  display: none;
}

.gdpr-bar a {
  color: var(--dreamsrent_primary_color);
  text-decoration: underline;
}

.gdpr-close-btn {
  background-color: var(--dreamsrent_primary_color);
  color: #fff;
  border: none;
  padding: 10px 20px;
  cursor: pointer;
  font-size: 14px;
  padding-bottom: 10px !important;
  margin-bottom: 10px;
}

/* Responsive Design for Mobile */
@media (max-width: 768px) {
  .gdpr-bar .row {
    flex-direction: column;
    align-items: center;
    text-align: center;
  }

  .gdpr-bar .col-lg-10 {
    width: 100%;
    /* Full-width for text */
    margin-bottom: 15px !important;
    /* Spacing below the text */
  }

  .gdpr-bar .col-lg-1 {
    width: 50%;
    /* Make buttons take half the width */
    margin-bottom: 10px;
    /* Add spacing between buttons */
  }

  .gdpr-close-btn {
    width: 100%;
    /* Full-width buttons */
    padding: 10px;
    font-size: 14px;
    cursor: pointer;
  }

  /* New styles to align buttons side by side */
  .gdpr-bar .row {
    flex-direction: row;
    /* Change to row for buttons */
    justify-content: space-between;
    /* Space between buttons */
  }
}

.page-template-rental-grid span.select2-container.select2-container--default.select2-container--open {
  z-index: 99;
}

.page-template-rental-list span.select2-container.select2-container--default.select2-container--open {
  z-index: 99;
}

body .form-control.is-valid,
body .was-validated .form-control:valid,
body .form-control.is-invalid,
body .was-validated .form-control:invalid {
  background-image: none !important;
}

/* Fix View More button styling */
.view-all-btn .btn-secondary {
  background: #2F2F2F !important;
  color: #ffffff !important;
  border: 2px solid #2F2F2F !important;
  padding: 7px 20px !important;
  font-weight: 500 !important;
  position: relative !important;
  overflow: hidden !important;
  z-index: 1 !important;
  transition: all 0.4s ease !important;
}

.view-all-btn .btn-secondary::before {
  content: '' !important;
  position: absolute !important;
  top: 0 !important;
  left: 0 !important;
  width: 100% !important;
  height: 0 !important;
  background: #ffffff !important;
  z-index: -1 !important;
  transition: height 0.4s ease !important;
}

.view-all-btn .btn-secondary:hover::before {
  height: 100% !important;
}

.view-all-btn .btn-secondary:hover {
  color: #2F2F2F !important;
  border-color: #2F2F2F !important;
}

/* Support ticker - slant effect and improved design */
.support-section {
  background: #111111;
  margin: 20px -5%;
  width: 110%;
  position: relative;
  z-index: 1;
  box-sizing: border-box;
  overflow: hidden;
  transform: rotate(-1.45deg);
  -webkit-transform: rotate(-1.45deg);
  -ms-transform: rotate(-1.45deg);
}

.support-item {
  position: relative;
  margin-right: 30px;
  padding-right: 50px;
  white-space: nowrap;
}

.support-item h2 {
  font-size: 32px;
  font-weight: 900;
  color: #CDCDCD;
  margin: 0;
  line-height: 1.2;
}

@media (max-width: 767.98px) {
  .support-item h2 {
    font-size: 24px;
  }
}

.support-item::after {
  position: absolute;
  content: "✦";
  top: 50%;
  right: 15px;
  transform: translateY(-50%);
  -webkit-transform: translateY(-50%);
  -ms-transform: translateY(-50%);
  color: #FF9307;
  font-size: 16px;
}

.elementor-widget-dsr_support_section,
.elementor-widget-dsr_support_section .elementor-widget-container {
  overflow: hidden;
}

.horizontal-slide {
  width: 100%;
  overflow: hidden;
}

.horizontal-slide .slide-list {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  width: max-content;
}

/* Blog images: fixed height with cropping for consistent cards */
.blog-item .blog-img {
  width: 100%;
  overflow: hidden;
  border-radius: 12px 12px 0 0;
  height: 300px;
}

@media (max-width: 767.98px) {
  .blog-item .blog-img {
    height: 200px;
  }
}

.blog-item .blog-img img {
  display: block;
  width: 100%;
  height: 400px;
  /* desktop card height */
  object-fit: cover;
  object-position: center;
  border-radius: 12px 12px 0 0;
}

@media (max-width: 991.98px) {
  .blog-item .blog-img img {
    height: 200px;
  }
}

@media (max-width: 767.98px) {
  .blog-item .blog-img img {
    height: 160px;
  }
}

.step-icon.bg-primary {
  background-color: #FFA633 !important;
}

.step-icon.bg-secondary-100,
.step-icon.bg-secondary {
  background-color: #127384 !important;
}

.step-icon.bg-dark {
  background-color: #201F1D !important;
}

.brands-slider.owl-carousel .owl-stage-outer,
.client-slider.owl-carousel .owl-stage-outer {
  overflow: hidden !important;
}

/* Apply scroll nav bar color change from theme option */
.header.fixed.has-scroll-nav-color .header-nav .main-nav>li>a,
.header.fixed.has-scroll-nav-color .header-navbar-rht li>a {
  color: var(--dreamsrent-header-fixed-link-color, #2F2F2F) !important;
}

.header.fixed.has-scroll-nav-color .header-nav .main-nav>li>a:hover,
.header.fixed.has-scroll-nav-color .header-navbar-rht li>a:hover {
  color: var(--dreamsrent_primary_color, #ffa800) !important;
}

.header.fixed.has-scroll-nav-color .header-nav .main-nav li.current-menu-item>a,
.header.fixed.has-scroll-nav-color .header-nav .main-nav li.current-menu-ancestor>a {
  color: var(--dreamsrent_primary_color, #ffa800) !important;
}


/* Fix subscribe form alignment */
.footer .footer-contact .footer-contact-info .update-form .wpcf7-form,
.footer .footer-contact .footer-contact-info .update-form .wpcf7-form>p,
.footer .footer-contact .footer-contact-info .update-form .wpcf7-not-valid-tip,
.footer .footer-contact .footer-contact-info .update-form .wpcf7-response-output {
  position: static !important;
  transform: none !important;
  margin: 0 0 8px 0 !important;
  padding: 0 !important;
  width: 100% !important;
  display: block !important;
  float: none !important;
}

.footer .footer-contact .footer-contact-info .update-form .wpcf7-form {
  display: flex !important;
  flex-direction: column !important;
  gap: 8px !important;
}

.footer .footer-contact .footer-contact-info .update-form .wpcf7-form>p {
  margin: 0 !important;
}

.footer .footer-contact .footer-contact-info .update-form .wpcf7-not-valid-tip {
  color: #fff !important;
  font-size: 13px !important;
  margin-top: 8px !important;
  margin-bottom: 8px !important;
}

.footer .footer-contact .footer-contact-info .update-form .wpcf7-response-output,
.subscribe-form .wpcf7-response-output {
  color: #fff !important;
  border-radius: 6px !important;
  padding: 8px 12px !important;
  border: none !important;
  margin: 0 !important;
  margin-top: 8px !important;
}

/* Fix Contact Form 7 inside .subscribe-form */
form.wpcf7-form {
  position: relative;
}

.subscribe-form {
  position: relative;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  width: 100%;
}

.subscribe-form span.wpcf7-form-control-wrap {
  position: static !important;
  transform: none !important;
  display: block !important;
  width: 100% !important;
  margin: 0 !important;
}

.subscribe-form span.wpcf7-not-valid-tip {
  position: static !important;
  transform: none !important;
  margin-top: 8px !important;
  margin-bottom: 8px !important;
  display: block !important;
  text-align: left !important;
  color: #ff0000 !important;
  font-size: 13px !important;
  width: 100% !important;
}

.subscribe-form button.btn-subscribe,
.subscribe-form button.btn {
  position: absolute !important;
  top: 23px !important;
  right: 10px !important;
  transform: translateY(-50%) !important;
  margin: 0 !important;
}

.subscribe-form>span:not([class]) {
  position: absolute !important;
  top: 23px !important;
  left: 15px !important;
  transform: translateY(-50%) !important;
  z-index: 10 !important;
  margin: 0 !important;
  padding: 0 !important;
}

.subscribe-form .form-control:focus,
.subscribe-form input:focus,
.update-form .form-control:focus,
.update-form input:focus {
  box-shadow: none !important;
  outline: none !important;
  border-color: rgba(219, 219, 219, 0.1) !important;
}

/* Make placeholder text white */
.banner-search .form-control::placeholder,
input::placeholder,
textarea::placeholder {
  color: #ffffff;
  opacity: 1;
}

.banner-search .form-control::-webkit-input-placeholder,
input::-webkit-input-placeholder,
textarea::-webkit-input-placeholder {
  color: #ffffff;
  opacity: 1;
}

.banner-search .form-control::-moz-placeholder,
input::-moz-placeholder,
textarea::-moz-placeholder {
  color: #ffffff;
  opacity: 1;
}

.banner-search .form-control:-ms-input-placeholder,
input:-ms-input-placeholder,
textarea:-ms-input-placeholder {
  color: #ffffff;
  opacity: 1;
}

.banner-search .form-control:-moz-placeholder,
input:-moz-placeholder,
textarea:-moz-placeholder {
  color: #ffffff;
  opacity: 1;
}

/* Car card details and wishlist state fixes */
.listing-item.listing-item-two .listing-content .listing-details-group ul {
  display: flex;
  flex-wrap: nowrap;
  gap: 10px;
  justify-content: space-between;
}

.listing-item.listing-item-two .listing-content .listing-details-group ul li {
  display: flex;
  align-items: center;
  flex: 1 1 auto;
  white-space: nowrap;
}

@media (max-width: 1199.98px) {
  .listing-item.listing-item-two .listing-content .listing-details-group ul {
    flex-wrap: wrap;
  }

  .listing-item.listing-item-two .listing-content .listing-details-group ul li {
    flex: 0 0 calc(50% - 5px);
  }
}

@media (max-width: 991.98px) {
  .listing-item.listing-item-two .listing-content .listing-details-group ul li {
    flex: 0 0 100%;
  }
}

.listing-item.listing-item-two .listing-content .listing-details-group ul li span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  flex: 0 0 18px;
}

.listing-item.listing-item-two .listing-content .listing-details-group ul li span img {
  width: 16px;
  height: 16px;
  object-fit: contain;
}

.listing-item .listing-img .fav-item .fav-icon,
.listing-item:hover .listing-img .fav-item .fav-icon,
.listing-item.listing-item-two .listing-img .fav-item .fav-icon,
.listing-item.listing-item-two:hover .listing-img .fav-item .fav-icon {
  opacity: 1 !important;
  visibility: visible !important;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.listing-item .listing-img .fav-item .fav-icon i,
.listing-item .listing-img .fav-item .fav-icon svg {
  color: #676767;
  stroke: currentColor;
  fill: transparent;
}

.listing-item .listing-img .fav-item .fav-icon:hover i,
.listing-item .listing-img .fav-item .fav-icon.selected i,
.listing-item .listing-img .fav-item .fav-icon:hover svg,
.listing-item .listing-img .fav-item .fav-icon.selected svg {
  color: #ff0000;
  stroke: #ff0000;
  fill: #ff0000;
}

.wishlist-button.selected i,
.wishlist-button.selected svg,
.wishlist-button .text-danger {
  color: #ff0000 !important;
  stroke: #ff0000;
}

.testimonial-item.testimonial-item-two .user-img,
.testimonial-item.testimonial-item-two div.user-img {
  display: flex;
  justify-content: center;
  width: 100%;
}

@media (max-width: 1199.98px) {

  .testimonial-item.testimonial-item-two .user-img,
  .testimonial-item.testimonial-item-two div.user-img,
  div.testimonial-item.testimonial-item-two .user-img,
  .owl-item .testimonial-item.testimonial-item-two .user-img,
  .owl-item div.testimonial-item.testimonial-item-two .user-img,
  .owl-item .testimonial-item.testimonial-item-two div.user-img {
    margin-right: 0 !important;
  }
}

.testimonial-item.testimonial-item-two .user-img img,
.testimonial-item.testimonial-item-two div.user-img img {
  display: block;
  margin-left: auto;
  margin-right: auto;
}

/* Fix listing items responsive */
@media (max-width: 1199.98px) {
  .listing-item.listing-item-two {
    margin-bottom: 30px;
  }
}

@media (max-width: 767.98px) {
  .listing-item.listing-item-two {
    margin-bottom: 20px;
  }

  .listing-item.listing-item-two .listing-content {
    padding: 15px;
  }

  .listing-item.listing-item-two .listing-content .listing-details-group ul {
    flex-wrap: wrap;
    gap: 10px;
  }
}

/* Align mobile menu button to the right side and adapt header spacing */
@media (max-width: 991.98px) {
  header .navbar-header {
    display: flex !important;
    justify-content: space-between !important;
    align-items: center !important;
    width: 100% !important;
  }
}

@media (max-width: 575.98px) {
  .header .navbar-header #mobile_btn {
    left: auto !important;
    right: 15px !important;
  }

  /* Retain left alignment of the small logo when menu button shifts to the right */
  .header .navbar-header .logo-small {
    text-align: left !important;
    padding-left: 15px !important;
  }
}

/* Slide in mobile menu from the right side instead of left */
@media (max-width: 991.98px) {

  .header .main-menu-wrapper,
  header .header-nav .main-menu-wrapper {
    left: auto !important;
    right: 0 !important;
    transform: translateX(100%) !important;
    -webkit-transform: translateX(100%) !important;
    -ms-transform: translateX(100%) !important;
  }
}

.menu-opened .header .main-menu-wrapper,
.menu-opened header .header-nav .main-menu-wrapper {
  transform: translateX(0) !important;
  -webkit-transform: translateX(0) !important;
  -ms-transform: translateX(0) !important;
}