html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

:root {
  --surface: #ffffff;
  --surface-soft: #f5f7fb;
  --text-muted: #6c757d;
  --shadow-soft: 0 12px 40px rgba(15, 23, 42, 0.08);
  --shadow-medium: 0 18px 50px rgba(15, 23, 42, 0.12);
  --radius-lg: 18px;
  --radius-md: 12px;
}

body {
  font-family: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, "Noto Sans", "Liberation Sans", sans-serif;
  display: flex;
  flex-direction: column;
  min-height: 100vh;
  margin: 0;
  background-color: var(--surface-soft);
  color: #0f172a;
}

main {
  flex: 1 0 auto;
}

a {
  text-decoration: none;
}

.btn:focus,
.btn:active:focus,
.btn-link.nav-link:focus,
.form-control:focus,
.form-select:focus,
.form-check-input:focus {
  box-shadow: 0 0 0 0.1rem #fff, 0 0 0 0.25rem rgba(13, 110, 253, 0.25);
}

.site-header .navbar {
  background-color: var(--surface);
}

.site-footer {
  background-color: #2f3542;
  color: #f8fafc;
}

.site-footer .footer-link {
  color: #e2e8f0;
}

.site-footer .footer-link:hover {
  color: #ffffff;
  text-decoration: underline;
}

.site-footer .text-muted {
  color: #cbd5e1 !important;
}

.section {
  padding: 4rem 0;
}

.section.bg-soft {
  background-color: var(--surface-soft);
}

.section-heading {
  margin-bottom: 2rem;
}

.section-heading h2 {
  font-weight: 600;
  margin-bottom: 0.5rem;
}

.hero-section {
  background-color: var(--surface);
  padding: 4rem 0;
  border-bottom: 1px solid rgba(148, 163, 184, 0.2);
}

.hero-image {
  background: linear-gradient(135deg, rgba(13, 110, 253, 0.1), rgba(15, 23, 42, 0.02));
  border-radius: var(--radius-lg);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
}

.search-panel {
  margin-top: -2.5rem;
  padding-bottom: 3rem;
}

.search-panel .card {
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-medium);
}

.feature-card {
  background-color: var(--surface);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  height: 100%;
}

.feature-card i {
  font-size: 1.5rem;
  color: #0d6efd;
}

.feature-card h5 {
  margin-top: 0.75rem;
  font-weight: 600;
}

.location-card {
  background-color: var(--surface);
  border-radius: var(--radius-md);
  padding: 1.5rem;
  box-shadow: var(--shadow-soft);
  height: 100%;
}

.location-card i {
  font-size: 1.4rem;
  color: #0d6efd;
}

.car-card {
  border-radius: var(--radius-md);
  overflow: hidden;
  background-color: var(--surface);
}

.car-card__image {
  height: 200px;
  overflow: hidden;
}

.car-card__image--large {
  height: 320px;
}

.car-card__image img {
    width: 100%;
    height: 100%;
    object-fit: contain;
    object-position: center;
    background: #fff;  
    display: block;
}

.brand-icon {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background-color: rgba(13, 110, 253, 0.1);
  color: #0d6efd;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 0.9rem;
}

.specs span {
  display: inline-flex;
  align-items: center;
}

.booking-summary {
  position: sticky;
  top: 1.5rem;
}

.bg-soft {
  background-color: var(--surface-soft);
}

.footer {
  margin-top: auto;
}

@media (max-width: 991.98px) {
  .search-panel {
    margin-top: 0;
  }

  .booking-summary {
    position: static;
  }
}

.search-panel--results {
  margin-top: 1.5rem;
  padding-top: 1rem;
}

@media (max-width: 991.98px) {
  .search-panel--results {
    margin-top: 1rem;
    padding-top: 1rem;
  }
}

.admin-bookings-table {
  font-size: 0.9rem;
  table-layout: auto;
  width: 100%;
}

.admin-bookings-table th,
.admin-bookings-table td {
  vertical-align: middle;
  white-space: normal;
}


.navbar-logo-wrap {
  width: 170px;
  height: 40px;
  overflow: hidden;
  display: flex;
  align-items: center;
}

.navbar-logo {
  height: 42px;
  width: auto;
  display: block;
}

.lang-switcher-toggle {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
}

.lang-switcher-menu {
  min-width: 140px;
}

.lang-switcher-menu .dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
}

.lang-flag {
  width: 18px;
  height: 18px;
  object-fit: cover;
  border-radius: 50%;
  flex-shrink: 0;
}

@media (max-width: 991px) {
  .lang-switcher-wrapper {
    position: relative;
  }

  .lang-switcher-menu {
    position: absolute;
    right: 0;
    left: auto;
    width: auto;
    min-width: 110px;
    margin-top: 4px;
  }

  .lang-switcher-menu .dropdown-item {
    display: flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
  }
}

[dir="rtl"] .lang-switcher-menu {
  right: 0;
  left: auto;
}

[dir="rtl"] .lang-switcher-menu .dropdown-item {
  justify-content: flex-start;
}


.header-actions {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lang-switcher-desktop {
  display: block;
}

.lang-switcher-mobile {
  display: none;
}

.lang-mobile-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
}

.btn-search-mobile {
  display: none;
}

@media (max-width: 991px) {
  .header-actions {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 0.5rem;
    width: 100%;
  }

  .lang-switcher-desktop,
  .btn-search-desktop {
    display: none;
  }

  .lang-switcher-mobile {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    flex-wrap: wrap;
    width: 100%;
  }

  .btn-search-mobile {
    display: inline-flex;
    margin-top: 0.25rem;
  }
}

[dir="rtl"] .lang-switcher-mobile {
  justify-content: flex-start;
}
