/*
 * Mobile and tablet layer, loaded after style.css on every website page.
 * Every rule lives inside a media query, so desktop (992px and up) is unaffected.
 * Vite copies this file to public/build/css/mobile.css.
 */

@media (max-width: 991.98px) {

  /* ---------- Foundations ---------- */

  html {
    -webkit-text-size-adjust: 100%;
  }

  /* 16px stops iOS Safari zooming the page when a field gets focus */
  input.form-control,
  select.form-control,
  select.form-select,
  textarea.form-control,
  .select2-container--default .select2-selection--single .select2-selection__rendered,
  .select2-search__field {
    font-size: 16px !important;
  }

  .form-control,
  .form-select {
    min-height: 46px;
  }

  textarea.form-control {
    min-height: 96px;
  }

  .select2-container--default .select2-selection--single {
    min-height: 46px;
    display: flex;
    align-items: center;
  }

  .select2-container--default .select2-results__option {
    padding: 12px 14px;
  }

  .btn {
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .text-muted {
    color: #5f5f5f !important;
  }

  a[href^="tel:"],
  a[href^="mailto:"] {
    overflow-wrap: anywhere;
  }

  img {
    max-width: 100%;
  }

  /* ---------- Header ---------- */

  .header .container-fluid {
    padding-left: 8px;
    padding-right: 12px;
  }

  .header .header-nav {
    position: relative;
    display: flex;
    flex-wrap: nowrap;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-height: 60px;
    padding: 0;
    margin: 0;
  }

  .header .navbar-header {
    display: flex;
    align-items: center;
    flex: 1 1 auto;
    gap: 4px;
    width: auto;
    min-width: 0;
    margin: 0;
    padding: 0;
    position: static;
  }

  .header .navbar-header #mobile_btn {
    position: static;
    display: inline-flex;
    flex: 0 0 auto;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    margin: 0;
    padding: 0;
    transform: none;
  }

  .header .navbar-header .navbar-brand {
    margin: 0;
    padding: 0;
    position: static;
    transform: none;
  }

  .header .navbar-header .logo img,
  .header .navbar-header .logo-small .img-fluid {
    display: block;
    height: 40px;
    width: auto;
    max-width: 100%;
  }

  /* Language and currency stay reachable beside the menu button */
  .header .header-navbar-rht {
    position: static;
    display: flex;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    align-items: center;
    gap: 2px;
    margin: 0;
    padding: 0;
    transform: none;
  }

  .header .header-navbar-rht > li:not(.language-switcher):not(.currency-switcher) {
    display: none;
  }

  .header .header-navbar-rht .flag-nav {
    margin: 0;
  }

  .header .header-navbar-rht .nav-link {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
    min-width: 44px;
    min-height: 44px;
    margin: 0;
    padding: 0 6px;
    background: transparent;
    color: #1f1f1f;
    font-size: 14px;
    font-weight: 600;
  }

  .header .header-navbar-rht .nav-link::after {
    margin: 0;
    font-size: 10px;
  }

  .header .language-switcher .nav-link img {
    width: 22px;
    height: 22px;
    border-radius: 50%;
    object-fit: cover;
  }

  .header .header-navbar-rht .dropdown-menu {
    min-width: 180px;
    margin-top: 4px;
  }

  .header .header-navbar-rht .dropdown-item {
    min-height: 44px;
  }

  .header .currency-form {
    margin: 0;
  }

  /* ---------- Slide-out menu ---------- */

  .sidebar-overlay.opened {
    left: 0;
  }

  /* The menu lives inside the header, so the header must stack above the overlay */
  html.menu-opened .header {
    z-index: 1040;
  }

  html.menu-opened,
  html.menu-opened body {
    overflow: hidden;
  }

  .header .main-menu-wrapper {
    width: min(300px, 84vw);
    margin: 0;
    background: #1f1f1f;
    transform: translateX(-105%);
  }

  [dir="rtl"] .header .main-menu-wrapper {
    transform: translateX(105%);
  }

  html.menu-opened .header .main-menu-wrapper,
  html.menu-opened[dir="rtl"] .header .main-menu-wrapper {
    transform: translateX(0);
  }

  .header .menu-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    min-height: 60px;
    padding: 8px 8px 8px 16px;
    background: #fff;
    border: 0;
  }

  [dir="rtl"] .header .menu-header {
    padding: 8px 16px 8px 8px;
  }

  .header .menu-header .menu-logo img {
    display: block;
    height: 40px;
    width: auto;
  }

  .header .menu-header .menu-close {
    position: static;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    font-size: 20px;
  }

  .header .main-nav {
    padding: 0;
    margin: 0;
  }

  .header .main-nav > li {
    margin: 0 !important;
  }

  .header .main-nav > li > a {
    display: flex !important;
    align-items: center;
    justify-content: space-between;
    min-height: 50px;
    padding: 12px 16px !important;
    font-size: 15px;
  }

  .header .main-nav .submenu a {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 10px 24px !important;
    font-size: 14px;
  }

  .menu-auth-links {
    display: flex;
    flex-direction: column;
    gap: 10px;
    padding: 16px;
    border-top: 1px solid rgba(255, 255, 255, 0.14);
  }

  .menu-auth-links .btn {
    width: 100%;
    border-radius: 8px;
    font-weight: 600;
  }

  .menu-auth-links .menu-auth-primary {
    background: #be944e;
    border: 1px solid #be944e;
    color: #fff;
  }

  .menu-auth-links .menu-auth-secondary {
    background: transparent;
    border: 1px solid rgba(255, 255, 255, 0.45);
    color: #fff;
  }

  /* ---------- Page rhythm ---------- */

  .section {
    padding-top: 36px;
    padding-bottom: 36px;
  }

  .section-heading {
    margin-bottom: 24px;
  }

  .section-heading h2 {
    font-size: 24px;
    line-height: 1.25;
  }

  .section-heading p {
    font-size: 15px;
    line-height: 1.5;
    margin: 0;
  }

  .breadcrumb-bar {
    padding: 24px 0;
  }

  .breadcrumb-bar .breadcrumb-title {
    font-size: 26px;
    margin-bottom: 6px;
  }

  .breadcrumb-bar .breadcrumb {
    margin-bottom: 0;
    font-size: 14px;
  }

  /* ---------- Date search form (home, search) ---------- */

  .search-box-banner {
    padding: 14px;
    border-radius: 12px;
  }

  .search-box-banner ul {
    display: block;
    margin: 0;
    padding: 0;
  }

  .search-box-banner li.column-group-main,
  .search-box-banner li.column-group-last {
    width: 100%;
    margin: 0 0 12px;
    padding: 0;
  }

  .search-box-banner li.column-group-last {
    margin-bottom: 0;
  }

  .search-box-banner .input-block {
    margin: 0;
    padding: 0;
  }

  .search-box-banner .input-block label {
    margin-bottom: 6px;
    font-size: 14px;
  }

  .search-box-banner .input-block-wrapp {
    display: grid;
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr);
    gap: 8px;
    margin: 0;
  }

  .search-box-banner .input-block-wrapp > .input-block {
    width: auto;
    min-width: 0;
    margin: 0;
  }

  .search-box-banner .group-img input.form-control {
    width: 100%;
    height: 46px;
    padding-inline-start: 34px;
    padding-inline-end: 4px;
  }

  .search-box-banner .group-img {
    position: relative;
  }

  .search-box-banner .group-img i {
    position: absolute;
    top: 50%;
    left: auto;
    right: auto;
    inset-inline-start: 10px;
    transform: translateY(-50%);
    z-index: 1;
  }

  .search-box-banner .time-select-wrapper .select2-container {
    width: 100% !important;
  }

  .search-box-banner .time-select-wrapper .select2-selection {
    height: 46px;
    padding: 0 28px 0 32px;
  }

  [dir="rtl"] .search-box-banner .time-select-wrapper .select2-selection {
    padding: 0 32px 0 28px;
  }

  .search-box-banner .time-select-wrapper .select2-selection__rendered {
    padding: 0 !important;
    line-height: 46px !important;
  }

  .search-box-banner .time-select-wrapper .span {
    position: static;
    transform: none;
  }

  .search-box-banner .search-btn .search-button {
    width: 100%;
    min-height: 48px;
    font-size: 16px;
    gap: 8px;
  }

  .flatpickr-calendar {
    max-width: calc(100vw - 16px);
  }

  .flatpickr-day {
    height: 40px;
    line-height: 40px;
  }

  /* ---------- Home ---------- */

  .banner-section {
    padding-bottom: 28px;
  }

  .banner-section .home-banner {
    padding-top: 0;
  }

  .banner-section .home-banner h1 {
    font-size: 30px;
    line-height: 1.2;
    margin-bottom: 8px;
  }

  .banner-section .home-banner h2 {
    font-size: 19px;
    line-height: 1.3;
    margin-bottom: 12px;
  }

  .banner-section .home-banner p {
    font-size: 15px;
    line-height: 1.5;
  }

  .services .services-group {
    padding: 0;
  }

  .facts-number .count-sec,
  .facts-number .col-lg-3 {
    margin-bottom: 0;
  }

  .facts-number .row {
    --bs-gutter-x: 10px;
    --bs-gutter-y: 10px;
  }

  .facts-number .row > [class*="col-"] {
    flex: 0 0 50%;
    max-width: 50%;
    width: 50%;
  }

  .facts-number .count-sec {
    height: 100%;
    flex-direction: column;
    align-items: flex-start;
    gap: 8px;
    padding: 12px;
    background: #fff;
  }

  .facts-number .count-img {
    margin: 0;
  }

  .facts-number .count-content h4 {
    margin-bottom: 2px;
    font-size: 20px;
  }

  .facts-number .count-content p {
    margin: 0;
    color: #4f4f4f;
    font-size: 13px;
    line-height: 1.3;
  }

  /* Coloured bars become compact icons */
  .why-choose .card-body {
    padding: 16px;
  }

  .why-choose .choose-img,
  .why-choose .choose-black,
  .why-choose .choose-primary,
  .why-choose .choose-secondary {
    width: 56px;
    height: 56px;
    margin-left: auto;
    margin-right: auto;
    margin-bottom: 12px;
    padding: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 12px;
  }

  .owl-carousel .owl-nav button.owl-prev,
  .owl-carousel .owl-nav button.owl-next {
    min-width: 40px;
    min-height: 40px;
  }

  .faq-card,
  .faq {
    margin-bottom: 10px;
  }

  .faq-card .faq-title a,
  .faq .faq-title a {
    display: block;
    padding-top: 6px;
    padding-bottom: 6px;
    padding-inline-end: 28px;
    min-height: 44px;
  }

  /* ---------- Car cards ---------- */

  .listing-details-group {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
  }

  .listing-details-group ul {
    display: contents;
  }

  .listing-details-group ul li {
    display: flex;
    align-items: center;
    gap: 6px;
    min-width: 0;
    margin: 0;
    padding: 0;
  }

  .listing-details-group ul li span {
    flex: 0 0 auto;
    margin: 0;
  }

  .listing-details-group ul li p {
    margin: 0;
    min-width: 0;
    font-size: 13px;
    text-transform: capitalize;
  }

  .listing-title a {
    white-space: normal;
  }

  .btn-order {
    min-height: 44px;
    display: flex;
    align-items: center;
    justify-content: center;
  }

  /* Decorative section art must not widen the page on tablets */
  .section.services {
    overflow-x: clip;
  }

  /* ---------- Contact ---------- */

  .contact-section .single-contact-info {
    padding: 16px;
  }

  .contact-section .single-contact-info a {
    display: inline-block;
    padding: 4px 0;
  }

  .contact-section .contact-info-area .row > [class*="col-"] {
    margin-bottom: 0;
  }

  .contact-section form .btn,
  .contact-section .contact-btn {
    width: 100%;
  }

  /* ---------- Long-form content ---------- */

  .seo-content-section ul,
  .seo-content-section ol {
    list-style: disc;
    padding-inline-start: 20px;
    margin-bottom: 16px;
  }

  .seo-content-section li {
    display: list-item;
    padding-inline-start: 0;
  }

  /* ---------- Sign in / register ---------- */

  .login-wrapper .loginbox {
    margin: 0;
  }

  .login-wrapper .login-auth {
    padding: 20px 16px;
  }

  .login-wrapper .btn {
    width: 100%;
  }

  .login-wrapper .sign-up {
    width: auto;
    min-height: 44px;
  }

  /* ---------- Customer profile ---------- */

  .dashboard-section {
    padding: 10px 0;
  }

  /* The tabs were centred inside a scroller, which pushed the first tab out of reach */
  .dashboard-menu ul {
    display: grid !important;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 6px;
    margin: 0 !important;
    padding: 0;
    overflow: visible;
  }

  .dashboard-menu ul li {
    width: auto;
    min-width: 0;
    margin: 0;
  }

  .dashboard-menu ul li a {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    width: 100%;
    min-width: 0;
    min-height: 64px;
    height: 100%;
    margin: 0;
    padding: 8px 2px;
    border-radius: 10px;
  }

  .dashboard-menu ul li a img {
    width: 22px;
    height: 22px;
    margin: 0;
  }

  .dashboard-menu ul li a span {
    margin: 0;
    font-size: 12px;
    line-height: 1.2;
    text-align: center;
    overflow-wrap: anywhere;
  }

  .content {
    padding-top: 20px;
    padding-bottom: 28px;
  }

  .content-header {
    margin-bottom: 14px;
  }

  .content-header h4 {
    font-size: 22px;
    margin: 0;
  }

  /* These link to pages that do not exist */
  .content-header .booking-nav {
    display: none;
  }

  /* Stat widgets as a 2 x 2 grid */
  .dashboard-content > .container > .row:has(> [class*="col-"] > .widget-box) {
    --bs-gutter-x: 10px;
  }

  .row > [class*="col-"]:has(> .widget-box) {
    flex: 0 0 50%;
    max-width: 50%;
    width: 50%;
  }

  .widget-box {
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    margin-bottom: 10px;
    padding: 12px;
  }

  .widget-box .widget-header {
    gap: 6px;
    margin-bottom: 8px;
    padding-bottom: 8px;
  }

  .widget-box .widget-content h6 {
    font-size: 13px;
    line-height: 1.3;
    margin-bottom: 4px;
  }

  .widget-box .widget-content h3 {
    margin: 0;
    font-size: 22px;
  }

  .widget-box .widget-icon span {
    width: 40px;
    height: 40px;
  }

  .widget-box .widget-icon span img {
    width: 22px;
    height: 22px;
  }

  .widget-box .view-link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    min-height: 32px;
    font-size: 13px;
  }

  /* Status filters as a single swipeable row */
  .sorting-info {
    padding: 10px;
  }

  .booking-lists {
    margin: 0;
  }

  .booking-lists ul.nav {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    margin: 0;
    padding: 2px 0;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
  }

  .booking-lists ul.nav::-webkit-scrollbar {
    display: none;
  }

  .booking-lists ul.nav li {
    flex: 0 0 auto;
    margin: 0;
  }

  .booking-lists ul.nav li a {
    display: inline-flex;
    align-items: center;
    min-height: 44px;
    padding: 0 14px;
    white-space: nowrap;
    font-size: 14px;
  }

  /* Placeholder dropdowns that are not wired to any filtering */
  .sorting-info .filter-group {
    display: none;
  }

  .book-card .card-header {
    padding: 14px;
  }

  .book-card .table-search {
    justify-content: flex-start;
    margin-top: 10px;
  }

  .book-card .btn-add {
    width: 100%;
  }

  .book-card .card-body {
    padding: 12px;
  }

  /* Data tables read as stacked cards; mobile.js labels each cell */
  .dashboard-table.table-responsive,
  .dashboard-table .dt-container,
  .dashboard-table .dataTables_wrapper {
    overflow: visible;
    margin: 0;
  }

  .dashboard-table table.table,
  .dashboard-table table.table tbody {
    display: block;
    width: 100% !important;
    border: 0;
  }

  .dashboard-table table.table thead {
    display: none;
  }

  .dashboard-table table.table tbody tr {
    display: block;
    margin-bottom: 12px;
    padding: 10px 12px;
    border: 1px solid #eaeaea;
    border-radius: 12px;
    background: #fff;
  }

  .dashboard-table table.table tbody td {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    width: 100% !important;
    padding: 8px 0;
    border: 0;
    border-bottom: 1px solid #f3f3f3;
    white-space: normal;
    font-size: 14px;
    text-align: end;
  }

  .dashboard-table table.table tbody td:last-child {
    border-bottom: 0;
  }

  .dashboard-table table.table tbody td:empty {
    display: none;
  }

  .dashboard-table table.table tbody td[data-label]::before {
    content: attr(data-label);
    flex: 0 0 38%;
    color: #6b6b6b;
    font-size: 13px;
    font-weight: 500;
    text-align: start;
  }

  .dashboard-table table.table tbody td p {
    margin: 0;
  }

  .dashboard-table table.table tbody td.dt-card-title {
    justify-content: flex-start;
    text-align: start;
  }

  .dashboard-table table.table tbody td.dt-card-title::before {
    display: none;
  }

  .dashboard-table .table-avatar {
    display: flex;
    align-items: center;
    gap: 10px;
    min-width: 0;
  }

  .dashboard-table .table-head-name {
    min-width: 0;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .dashboard-table .dropdown-action .dropdown-toggle {
    min-width: 44px;
    min-height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .dashboard-table .dt-info,
  .dashboard-table .dataTables_info,
  .dashboard-table .dt-length,
  .dashboard-table .dt-paging,
  .dashboard-table .dataTables_paginate {
    text-align: center;
  }

  .dashboard-table .dt-paging .dt-paging-button,
  .dashboard-table .paginate_button {
    min-width: 44px;
    min-height: 44px;
  }

  /* Status badges were clipped off the right edge of dashboard rows */
  .dashboard-content .card .table-responsive {
    overflow-x: visible;
  }

  .dashboard-content .card .table-responsive > table,
  .dashboard-content .card .table-responsive > table tbody {
    display: block;
    width: 100%;
  }

  .dashboard-content .card .table-responsive > table tr {
    display: block;
    padding: 10px 0;
    border-bottom: 1px solid #f0f0f0;
  }

  .dashboard-content .card .table-responsive > table tr:last-child {
    border-bottom: 0;
  }

  .dashboard-content .card .table-responsive > table td {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px;
    width: 100%;
    padding: 4px 14px;
    border: 0;
    white-space: normal;
  }

  .dashboard-content .card .table-avatar {
    flex: 1 1 100%;
    min-width: 0;
    white-space: normal;
  }

  .dashboard-content .card .table-avatar .table-head-name {
    min-width: 0;
    white-space: normal;
  }

  /* ---------- Settings ---------- */

  .settings-menu ul {
    display: flex;
    margin: 0;
    padding: 0;
  }

  .settings-menu ul li {
    flex: 1 1 auto;
  }

  .settings-info .btn,
  .settings-widget form .btn {
    flex: 1 1 auto;
  }

  .profile-submit-btn {
    display: flex;
    gap: 8px;
  }

  .profile-submit-btn .btn {
    flex: 1 1 0;
    white-space: normal;
  }

  /* ---------- Footer ---------- */

  .footer .footer-top {
    padding: 32px 0 8px;
  }

  .footer .footer-widget {
    margin-bottom: 20px;
  }

  .footer .footer-top .col-lg-7 > .row > .col-lg-4 {
    flex: 0 0 50%;
    max-width: 50%;
    width: 50%;
  }

  .footer .footer-title,
  .footer .footer-widget h5 {
    margin-bottom: 12px;
    padding-bottom: 8px;
    font-size: 16px;
  }

  .footer .footer-menu ul {
    margin: 0;
    padding: 0;
  }

  .footer .footer-menu ul li {
    margin: 0;
  }

  .footer .footer-menu ul li a {
    display: flex;
    align-items: center;
    min-height: 40px;
    padding: 4px 0;
    color: #d6d6d6;
    font-size: 14px;
  }

  .footer .footer-contact-info p,
  .footer .footer-address a,
  .footer .update-phone a,
  .footer .update-email a,
  .footer a[href^="tel:"],
  .footer a[href^="mailto:"] {
    color: #d6d6d6;
  }

  .footer .social-icon li a {
    width: 44px;
    height: 44px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
  }

  .footer .copyright-text p,
  .footer .copyright-menu a {
    color: #c8c8c8;
  }

  .footer .copyright-menu a,
  .footer .footer-list a {
    display: inline-flex;
    align-items: center;
    min-height: 40px;
  }

  /* Room for the floating WhatsApp button at the end of the page */
  .footer .footer-bottom,
  .footer .copyright {
    padding-bottom: 20px;
  }

  /* ---------- Booking ---------- */

  .booking-new-module {
    padding-top: 12px !important;
    /* Keeps the last content clear of the fixed booking bar */
    padding-bottom: 96px !important;
  }

  .booking-wizard-head {
    position: relative;
    margin-bottom: 12px !important;
    padding: 12px 44px;
  }

  .booking-wizard-head .booking-head-title h4 {
    margin-bottom: 2px;
    font-size: 20px;
  }

  .booking-wizard-head .booking-head-title p {
    margin: 0;
    font-size: 14px;
  }

  .booking-back-link {
    position: absolute;
    top: 50%;
    inset-inline-start: 2px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 44px;
    height: 44px;
    transform: translateY(-50%);
    color: #1f1f1f;
    font-size: 20px;
  }

  [dir="rtl"] .booking-back-link i {
    transform: scaleX(-1);
  }

  /* Show which car is being booked first, then the form, then the price breakdown */
  #step-1 > .row {
    display: flex;
    flex-direction: column;
  }

  #step-1 > .row > .col-lg-8,
  #step-1 > .row > .col-lg-4 {
    display: contents;
  }

  #step-1 .booking-information-main {
    order: 2;
    width: 100%;
    padding-left: calc(var(--bs-gutter-x) * .5);
    padding-right: calc(var(--bs-gutter-x) * .5);
  }

  #step-1 > .row > .col-lg-4 > * {
    width: calc(100% - var(--bs-gutter-x));
    max-width: calc(100% - var(--bs-gutter-x));
    min-width: 0;
  }

  #step-1 > .row > .col-lg-4 > .listing-img {
    order: 0;
    margin: 0 calc(var(--bs-gutter-x) * .5) 12px;
    border-radius: 12px;
    overflow: hidden;
  }

  #step-1 .listing-img .slide-images {
    height: auto !important;
  }

  #step-1 .listing-img .slide-images img {
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    height: auto;
    object-fit: cover;
  }

  #step-1 > .row > .col-lg-4 > .booking-information-card {
    order: 1;
    margin: 0 calc(var(--bs-gutter-x) * .5) 16px;
  }

  #step-1 > .row > .col-lg-4 > .booking-sidebar {
    order: 3;
    margin: 16px calc(var(--bs-gutter-x) * .5) 0;
  }

  .booking-information-card {
    margin-bottom: 16px;
    padding: 14px;
    border-radius: 12px;
  }

  .booking-information-card .booking-info-head {
    flex-wrap: wrap;
    gap: 6px 8px;
    margin-bottom: 12px;
    padding-bottom: 10px;
  }

  .booking-information-card .booking-info-head h5 {
    margin: 0;
    font-size: 17px;
  }

  #main-car-specs {
    --bs-gutter-x: 10px;
  }

  #main-car-specs > div {
    flex: 0 0 50%;
    max-width: 50%;
    width: 50%;
    margin-bottom: 10px !important;
  }

  #main-car-specs img {
    max-width: 28px;
    max-height: 28px;
  }

  /* Date and time sit side by side instead of four full-width rows */
  .booking-timings .row {
    --bs-gutter-x: 8px;
  }

  .booking-timings .row > .col-md-6 {
    flex: 0 0 50%;
    max-width: 50%;
    width: 50%;
  }

  .booking-timings .input-block {
    margin-bottom: 12px;
  }

  .booking-timings .group-img input.form-control {
    padding-inline-start: 34px;
    padding-inline-end: 4px;
  }

  .booking-information-card small,
  .booking-information-card .form-text {
    color: #5f5f5f !important;
    opacity: 1 !important;
    font-size: 13px;
  }

  .booking-information-card .form-check {
    display: flex;
    align-items: flex-start;
    gap: 10px;
    min-height: 44px;
    padding-inline-start: 0;
  }

  .booking-information-card .form-check-input {
    flex: 0 0 auto;
    float: none;
    width: 22px;
    height: 22px;
    margin: 1px 0 0;
  }

  .booking-information-card .form-check-label a {
    text-decoration: underline;
  }

  .booking-information-card .insurance-card {
    width: 100%;
    max-width: 100%;
    flex: 0 0 100%;
  }

  /* The fixed bar takes over Complete Booking on small screens */
  .booking-info-btns #complete-booking-btn,
  .booking-info-btns > .btn-secondary {
    display: none;
  }

  .booking-info-btns {
    margin: 0 !important;
  }

  .booking-sidebar-body .booking-vehicle-rates ul {
    margin: 0;
    padding: 0;
  }

  .booking-mobile-bar {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 1020;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 10px 12px calc(10px + env(safe-area-inset-bottom));
    background: #fff;
    border-top: 1px solid #e8e8e8;
    box-shadow: 0 -6px 18px rgba(0, 0, 0, 0.08);
  }

  .booking-mobile-total {
    flex: 0 1 auto;
    min-width: 0;
    padding: 2px 0;
    background: transparent;
    border: 0;
    text-align: start;
  }

  .booking-mobile-total .total-label {
    display: flex;
    align-items: center;
    gap: 4px;
    color: #5f5f5f;
    font-size: 12px;
    line-height: 1.3;
  }

  .booking-mobile-total .total-value {
    display: block;
    color: #1f1f1f;
    font-size: 17px;
    font-weight: 700;
    line-height: 1.25;
    white-space: nowrap;
  }

  .booking-mobile-bar .booking-mobile-submit {
    flex: 1 1 auto;
    max-width: 210px;
    min-height: 48px;
    border-radius: 8px;
    font-size: 15px;
    font-weight: 600;
  }

  body:has(.booking-mobile-bar) .whatsapp-float {
    bottom: calc(84px + env(safe-area-inset-bottom));
  }

  body:has(.booking-mobile-bar) .progress-wrap {
    display: none;
  }

  /* ---------- Toasts ---------- */

  #toast-container.toast-top-right,
  #toast-container.toast-top-left {
    top: 8px;
    left: 8px;
    right: 8px;
  }

  #toast-container > div {
    width: 100%;
    margin-bottom: 6px;
  }
}

@media (max-width: 991.98px) {
  /* Selectors below match the depth of the theme rules they replace */

  .search-box-banner .input-block-wrapp {
    align-items: start;
  }

  .search-box-banner .group-img input.form-control {
    margin: 0;
    color: #1f1f1f;
  }

  .search-box-banner .group-img i {
    z-index: 5;
    pointer-events: none;
  }

  .search-box-banner .time-select-wrapper .select2-selection__rendered {
    color: #1f1f1f !important;
  }

  .listing-item .listing-content .listing-details-group ul {
    display: contents;
  }

  .listing-item .listing-content .listing-details-group ul li {
    flex: none;
    width: auto;
    max-width: none;
    margin: 0;
    padding: 0;
  }

  /* Carousel arrows sit below the slides instead of over card text */
  .section .popular-cartype-slider .owl-nav,
  .section .rental-deal-slider .owl-nav {
    position: static;
    display: flex;
    justify-content: center;
    gap: 12px;
    margin-top: 12px;
    transform: none;
  }

  .section .popular-cartype-slider .owl-nav button.owl-prev,
  .section .popular-cartype-slider .owl-nav button.owl-next,
  .section .rental-deal-slider .owl-nav button.owl-prev,
  .section .rental-deal-slider .owl-nav button.owl-next {
    position: static;
    width: 44px;
    height: 44px;
    margin: 0;
    transform: none;
  }

  .sort-section .sorting-select {
    max-width: none;
    min-width: 0;
  }

  .sort-section .sorting-select .select2-selection__rendered {
    color: #1f1f1f !important;
    text-align: start;
  }

  .dashboard-section .dashboard-menu ul li {
    width: auto;
    margin: 0;
  }

  .dashboard-section .dashboard-menu ul li a {
    display: flex;
    width: 100%;
    min-width: 0;
    padding: 8px 2px;
  }

  .sorting-info .booking-lists ul.nav li {
    display: block;
    flex: 0 0 auto;
    width: auto;
    margin: 0;
  }

  .sorting-info .booking-lists ul.nav li a {
    display: inline-flex;
    width: auto;
  }

  .widget-box .widget-header .widget-content {
    min-width: 0;
  }

  .settings-info .profile-info-grid .profile-info-header {
    flex-wrap: wrap;
    gap: 12px;
  }

  .settings-info .profile-info-grid .profile-info-pic {
    flex-wrap: wrap;
    min-width: 0;
    max-width: 100%;
  }

  .settings-info .profile-info-grid .profile-info-content {
    flex: 1 1 180px;
    min-width: 0;
  }

  .settings-info form .profile-submit-btn {
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
  }

  .settings-info form .profile-submit-btn .btn {
    flex: 1 1 0;
    width: auto;
    min-width: 0;
    margin: 0;
    white-space: normal;
  }

  .footer .footer-contact .footer-contact-info .footer-address .addr-info a {
    color: #d6d6d6;
  }

  .widget-box .widget-header .widget-icon {
    flex: 0 0 40px;
    width: 40px;
    height: 40px;
  }

  .widget-box .widget-header .widget-icon span {
    width: 40px;
    height: 40px;
  }

  /* Single level of card on the bookings table */
  .book-card.card {
    border: 0;
    background: transparent;
    box-shadow: none;
  }

  .book-card .card-header {
    padding: 0 0 12px;
    background: transparent;
    border: 0;
  }

  .book-card .card-body {
    padding: 0;
  }

  .book-card .dashboard-table,
  .book-card .dashboard-table .dt-container {
    padding: 0;
    border: 0;
  }

  /* Rows on the dashboard summary read as one list, not separate boxes */
  .dashboard-content .card .dashboard-table table.table tbody tr {
    margin: 0;
    border: 0;
    border-radius: 0;
    padding: 4px 14px;
  }

  .dashboard-content .card .dashboard-table table.table tbody tr:has(+ tr td .table-avatar),
  .dashboard-content .card .dashboard-table table.table tbody tr:last-child {
    padding-bottom: 12px;
    border-bottom: 1px solid #f0f0f0;
  }

  /* Image badge belongs to the car photo */
  #step-1 > .row > .col-lg-4 > .listing-img {
    position: relative;
  }

  /* Bookings: keep a little air above service names */
  .booking-information-card .row > .col-12 > .card,
  .booking-information-card [class*="service-item"],
  .booking-information-card [class*="addon-item"] {
    padding-top: 12px;
  }
}

@media (max-width: 767.98px) {
  /* Three-across specs need more room than a phone card has */
  .listing-details-group {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 359.98px) {
  .header .navbar-header .logo-small .img-fluid {
    height: 34px;
  }

  .header .header-navbar-rht .nav-link {
    min-width: 40px;
    padding: 0 3px;
  }

  .dashboard-menu ul li a span {
    font-size: 11px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .whatsapp-float-pulse {
    animation: none !important;
    display: none;
  }
}
