:root {
  --red: #c0161b;
  --red-strong: #ea1d26;
  --black: #08090b;
  --gray-900: #14151a;
  --gray-800: #1d2028;
  --gray-700: #2b2f39;
  --gray-500: #707481;
  --gray-300: #b9bcc5;
  --gray-100: #f1f2f4;
  --white: #ffffff;
  --border: rgba(255, 255, 255, 0.12);
  --shadow: 0 24px 70px rgba(0, 0, 0, 0.38);
  --shadow-soft: 0 14px 38px rgba(0, 0, 0, 0.2);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  background:
    radial-gradient(circle at 20% 0%, rgba(192, 22, 27, 0.16), transparent 34%),
    linear-gradient(180deg, #0b0c10 0%, var(--black) 100%);
  color: var(--white);
  font-family: 'Inter', Arial, sans-serif;
  line-height: 1.6;
}

body,
button,
input,
textarea,
select {
  font-family: 'Inter', Arial, sans-serif;
}

h1,
h2,
h3 {
  margin: 0;
  color: var(--white);
  font-family: 'Space Grotesk', Arial, sans-serif;
  line-height: 0.95;
  letter-spacing: 0;
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

.site-header {
  position: sticky;
  top: 0;
  z-index: 50;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 16px;
  min-height: 88px;
  padding: 14px clamp(18px, 4vw, 56px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.07);
  background: rgba(8, 9, 11, 0.82);
  backdrop-filter: blur(20px);
}

.site-nav {
  display: flex;
  align-items: center;
  gap: clamp(14px, 2.8vw, 30px);
  min-width: 0;
  color: var(--gray-300);
  font-size: 0.95rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.site-nav-left {
  justify-content: flex-start;
}

.site-nav-right {
  justify-content: flex-end;
}

.site-nav a {
  position: relative;
  transition: color 180ms ease;
}

.site-nav a::after {
  position: absolute;
  right: 0;
  bottom: -10px;
  left: 0;
  height: 2px;
  background: var(--red);
  content: '';
  transform: scaleX(0);
  transform-origin: center;
  transition: transform 180ms ease;
}

.site-nav a:hover {
  color: var(--white);
}

.site-nav a:hover::after {
  transform: scaleX(1);
}

.brand {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 120px;
  padding: 10px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0.02));
  box-shadow: var(--shadow-soft);
}

.brand img {
  display: block;
  width: 92px;
  height: 34px;
  object-fit: contain;
}

.hero,
.page-hero {
  position: relative;
  overflow: hidden;
  isolation: isolate;
}

.hero {
  display: grid;
  min-height: calc(100vh - 88px);
  place-items: center;
  padding: 92px 20px 110px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.03), transparent 40%),
    linear-gradient(180deg, rgba(8, 9, 11, 0.9), rgba(8, 9, 11, 0.96));
}

.hero::before,
.page-hero::before {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.045) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.045) 1px, transparent 1px);
  background-size: 42px 42px;
  opacity: 0.2;
  content: '';
  pointer-events: none;
}

.hero::after,
.page-hero::after {
  position: absolute;
  inset: auto -10% -30% -10%;
  height: 440px;
  background: radial-gradient(circle at 50% 50%, rgba(192, 22, 27, 0.32), transparent 62%);
  content: '';
  pointer-events: none;
  filter: blur(24px);
}

.hero-pattern {
  position: absolute;
  inset: 0;
  opacity: 0.32;
  mix-blend-mode: screen;
  background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%23ffffff' stroke-opacity='0.3' stroke-width='1.2'%3E%3Cpath d='M60 14 82 38 106 44 88 62 94 88 60 76 26 88 32 62 14 44 38 38Z'/%3E%3Cpath d='M0 60h120M60 0v120'/%3E%3Ccircle cx='60' cy='60' r='22'/%3E%3C/g%3E%3C/svg%3E");
  background-size: 120px 120px;
}

.hero-content {
  position: relative;
  width: min(1040px, 100%);
  text-align: center;
}

html[dir="rtl"] .hero-content {
  text-align: right;
}

html[dir="rtl"] .hero-subtitle,
html[dir="rtl"] .page-hero p:not(.eyebrow) {
  margin-left: auto;
  margin-right: 0;
}

.eyebrow {
  margin: 0 0 16px;
  color: #ff7f84;
  font-size: 0.78rem;
  font-weight: 800;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.hero h1 {
  font-size: clamp(3.2rem, 9vw, 7rem);
  text-shadow: 0 12px 40px rgba(0, 0, 0, 0.35);
}

html[dir="rtl"] .hero h1 {
  line-height: 1.16;
}

.hero-subtitle,
.page-hero p:not(.eyebrow) {
  max-width: 700px;
  margin: 22px auto 0;
  color: var(--gray-300);
  font-size: clamp(1.02rem, 1.8vw, 1.22rem);
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 22px;
  border: 1px solid transparent;
  border-radius: 999px;
  font-weight: 800;
  line-height: 1;
  transition: transform 180ms ease, box-shadow 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.btn:hover {
  transform: translateY(-2px);
}

.btn-primary {
  background: linear-gradient(180deg, var(--red-strong), var(--red));
  color: var(--white);
  box-shadow: 0 18px 40px rgba(192, 22, 27, 0.34);
}

.btn-primary:hover {
  box-shadow: 0 24px 52px rgba(192, 22, 27, 0.44);
}

.btn-outline {
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.02);
  color: var(--white);
}

.btn-outline:hover {
  border-color: var(--red);
  background: rgba(192, 22, 27, 0.14);
}

.site-reserve-btn,
.floating-reserve {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background: linear-gradient(180deg, var(--red-strong), var(--red));
  color: var(--white);
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease;
}

.site-reserve-btn:hover,
.floating-reserve:hover {
  border-color: rgba(255, 255, 255, 0.26);
  background: linear-gradient(180deg, #ff5b60, #b80d16);
  transform: translateY(-2px);
}

.section {
  padding: clamp(66px, 7vw, 116px) clamp(18px, 4vw, 56px);
}

.section-heading {
  width: min(1180px, 100%);
  margin: 0 auto 34px;
}

.section-heading h2 {
  font-size: clamp(2.2rem, 5vw, 4.6rem);
}

.car-grid,
.feature-grid,
.steps-grid,
.listing-grid,
.admin-grid {
  display: grid;
  width: min(1180px, 100%);
  margin: 0 auto;
  gap: 22px;
}

.car-grid,
.listing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.feature-grid,
.steps-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.car-card,
.feature-item,
.step-item,
.listing-card,
.detail-panel,
.availability-section {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(24, 26, 31, 0.96), rgba(14, 15, 19, 0.96));
  box-shadow: var(--shadow-soft);
}

.car-card,
.feature-item,
.step-item,
.listing-card {
  transition: transform 220ms ease, box-shadow 220ms ease, border-color 220ms ease, opacity 220ms ease;
}

.car-card:hover,
.feature-item:hover,
.step-item:hover,
.listing-card:hover {
  border-color: rgba(255, 255, 255, 0.16);
  box-shadow: var(--shadow);
  transform: translateY(-6px);
}

.car-photo {
  overflow: hidden;
  display: grid;
  min-height: 240px;
  place-items: center;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.04), rgba(0, 0, 0, 0.26)),
    radial-gradient(circle at 50% 0%, rgba(192, 22, 27, 0.28), transparent 56%),
    #111318;
  color: var(--gray-300);
  font-weight: 800;
}

.car-photo img,
.listing-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.car-content,
.listing-card-body,
.feature-item,
.step-item,
.detail-panel,
.availability-section {
  padding: 24px;
}

.badge {
  display: inline-flex;
  margin-bottom: 14px;
  padding: 7px 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  color: var(--gray-100);
  font-size: 0.78rem;
  font-weight: 800;
}

.badge-dark {
  background: rgba(192, 22, 27, 0.14);
  color: #ffc5c7;
}

.car-content h3,
.listing-card h2,
.feature-item h3,
.step-item h3,
.features-block h2,
.availability-header h2,
.detail-panel h1 {
  font-family: 'Space Grotesk', Arial, sans-serif;
}

.car-content h3 {
  min-height: 2.2em;
  font-size: 1.45rem;
}

.price {
  margin: 16px 0 20px;
  color: var(--gray-300);
}

.price strong,
.detail-price strong,
.stat-card strong {
  color: #ff5b60;
}

.why-section {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent);
}

.feature-icon,
.step-item span {
  display: grid;
  width: 52px;
  height: 52px;
  margin-bottom: 22px;
  place-items: center;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: #ff7f84;
  font-size: 1.2rem;
  font-weight: 900;
}

.feature-item p,
.step-item p,
.site-footer,
.listing-price-row .price,
.detail-price,
.feature-item p,
.step-item p {
  color: var(--gray-300);
}

.site-footer {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  padding: 34px clamp(18px, 4vw, 56px);
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  background: #06070a;
}

.footer-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 160px;
  flex: 0 0 auto;
}

.footer-logo img {
  width: 100%;
  height: 56px;
  object-fit: contain;
}

.site-footer div {
  display: grid;
  gap: 6px;
}

.site-footer strong {
  color: var(--white);
  font-family: 'Space Grotesk', Arial, sans-serif;
  font-size: 1.35rem;
}

.floating-reserve {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  max-width: calc(100vw - 40px);
  padding: 15px 22px;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(180deg, var(--red-strong), var(--red));
  color: var(--white);
  cursor: pointer;
  box-shadow: 0 22px 42px rgba(192, 22, 27, 0.28);
  font-weight: 900;
  line-height: 1;
  transition: transform 180ms ease, box-shadow 180ms ease, filter 180ms ease;
}

.floating-reserve:hover {
  filter: brightness(1.04);
  box-shadow: 0 28px 54px rgba(192, 22, 27, 0.38);
  transform: translateY(-3px);
}

.page-hero {
  display: grid;
  min-height: 380px;
  place-items: center;
  padding: clamp(82px, 12vw, 150px) 20px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.02), transparent),
    linear-gradient(135deg, rgba(10, 11, 14, 0.96), rgba(17, 18, 22, 0.98));
}

.page-hero h1 {
  font-size: clamp(3rem, 8vw, 6rem);
}

.vehicles-section,
.listing-section,
.detail-section {
  position: relative;
}

.section[data-reveal],
.car-card[data-reveal],
.feature-item[data-reveal],
.step-item[data-reveal],
.listing-card[data-reveal],
.detail-panel[data-reveal],
.availability-section[data-reveal] {
  opacity: 0;
  transform: translateY(28px) scale(0.99);
  transition: opacity 700ms ease, transform 700ms ease;
}

.section.is-visible,
.car-card.is-visible,
.feature-item.is-visible,
.step-item.is-visible,
.listing-card.is-visible,
.detail-panel.is-visible,
.availability-section.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.listing-section {
  padding-top: clamp(42px, 6vw, 72px);
}

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  width: min(1180px, 100%);
  margin: 0 auto 28px;
  gap: 10px;
}

.filter-btn {
  min-height: 42px;
  padding: 10px 16px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.03);
  color: var(--white);
  cursor: pointer;
  font-weight: 800;
  transition: transform 180ms ease, background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.filter-btn:hover,
.filter-btn.is-active {
  border-color: var(--red);
  background: rgba(192, 22, 27, 0.16);
  color: #ffd4d6;
  box-shadow: 0 12px 26px rgba(192, 22, 27, 0.18);
  transform: translateY(-2px);
}

.listing-card {
  overflow: hidden;
}

.listing-photo {
  display: block;
  aspect-ratio: 16 / 10;
  background: #14161b;
}

.listing-photo img,
.gallery-main img,
.thumbnail-btn img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listing-card-body {
  display: grid;
  gap: 0;
}

.listing-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 14px;
}

.listing-card h2 {
  margin-bottom: 18px;
  font-size: 1.45rem;
}

.car-spec-list,
.detail-spec-grid {
  margin: 0;
}

.car-spec-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.listing-card .car-spec-list {
  grid-template-columns: 1fr;
}

.car-spec-list div,
.detail-spec-grid div {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
}

.car-spec-list dt,
.detail-spec-grid dt {
  color: var(--gray-500);
  font-size: 0.72rem;
  font-weight: 800;
}

.car-spec-list dd,
.detail-spec-grid dd {
  margin: 3px 0 0;
  color: var(--white);
  font-weight: 900;
}

.listing-price-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-top: 20px;
}

.listing-price-row .price {
  margin: 0;
}

.detail-section {
  padding-top: clamp(42px, 6vw, 72px);
}

.detail-layout {
  display: grid;
  width: min(1180px, 100%);
  margin: 0 auto;
  grid-template-columns: minmax(0, 1.2fr) minmax(320px, 0.8fr);
  gap: 34px;
}

.gallery-main {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: #14161b;
}

.thumbnail-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.thumbnail-btn {
  overflow: hidden;
  aspect-ratio: 16 / 10;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 10px;
  background: #14161b;
  cursor: pointer;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.thumbnail-btn:hover,
.thumbnail-btn.is-active {
  border-color: var(--red);
  box-shadow: 0 12px 26px rgba(192, 22, 27, 0.2);
  transform: translateY(-2px);
}

.detail-panel {
  align-self: start;
}

.detail-panel h1 {
  margin-top: 14px;
  font-size: clamp(2.25rem, 4vw, 3.5rem);
}

.detail-price {
  margin: 20px 0 24px;
}

.detail-price strong {
  font-size: clamp(2rem, 4vw, 3rem);
}

.detail-spec-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.features-block {
  margin-top: 26px;
}

.features-block h2 {
  margin-bottom: 14px;
  font-size: 1.45rem;
}

.feature-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.feature-pills span {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(192, 22, 27, 0.14);
  color: #ffd8da;
  font-size: 0.84rem;
  font-weight: 900;
}

.availability-section {
  width: min(1180px, 100%);
  margin: clamp(42px, 6vw, 72px) auto 0;
}

.availability-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.availability-header h2 {
  font-size: clamp(2rem, 4vw, 3.2rem);
}

.calendar-controls {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--white);
  font-weight: 900;
}

.calendar-controls button {
  display: grid;
  width: 42px;
  height: 42px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.03);
  color: var(--white);
  cursor: pointer;
  font-size: 1.7rem;
  line-height: 1;
  transition: transform 180ms ease, background 180ms ease, color 180ms ease, border-color 180ms ease;
}

.calendar-controls button:hover {
  border-color: var(--red);
  background: rgba(192, 22, 27, 0.16);
  color: #ffd4d6;
  transform: translateY(-2px);
}

#calendar-month-label {
  min-width: 168px;
  text-align: center;
  text-transform: capitalize;
}

.calendar-weekdays,
.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.calendar-weekdays {
  margin-bottom: 8px;
}

.calendar-weekdays span {
  color: var(--gray-500);
  font-size: 0.78rem;
  font-weight: 900;
  text-align: center;
}

.calendar-day {
  display: grid;
  min-height: 58px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  cursor: pointer;
  font-weight: 900;
  transition: transform 180ms ease, border-color 180ms ease, box-shadow 180ms ease, background 180ms ease;
}

.calendar-day:not(.is-empty):not(.is-blocked):hover {
  border-color: var(--red);
  background: rgba(192, 22, 27, 0.16);
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.18);
  transform: translateY(-2px);
}

.calendar-day.is-empty {
  visibility: hidden;
}

.calendar-day.is-blocked {
  background: rgba(255, 255, 255, 0.08);
  color: var(--gray-500);
  cursor: not-allowed;
  text-decoration: line-through;
}

.calendar-day.is-today {
  border-color: var(--red);
  border-width: 2px;
}

.calendar-message {
  grid-column: 1 / -1;
  margin: 0;
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  font-weight: 900;
  text-align: center;
}

.calendar-message.is-error {
  border-color: rgba(192, 22, 27, 0.35);
  background: rgba(192, 22, 27, 0.12);
  color: #ffd4d6;
}

.detail-cta-row {
  width: min(1180px, 100%);
  margin: 24px auto 0;
}

body.modal-open {
  overflow: hidden;
}

.reservation-modal {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 20px;
  pointer-events: none;
  visibility: hidden;
}

.reservation-modal.is-open {
  pointer-events: auto;
  visibility: visible;
}

.reservation-overlay {
  position: absolute;
  inset: 0;
  background: rgba(4, 4, 6, 0.78);
  opacity: 0;
  transition: opacity 220ms ease;
}

.reservation-modal.is-open .reservation-overlay {
  opacity: 1;
}

.reservation-panel {
  position: relative;
  width: min(720px, 100%);
  max-height: calc(100vh - 40px);
  overflow: auto;
  overflow-x: hidden;
  scrollbar-gutter: stable;
  padding: clamp(24px, 4vw, 38px);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(20, 21, 26, 0.98), rgba(12, 13, 16, 0.98));
  box-shadow: 0 28px 90px rgba(0, 0, 0, 0.5);
  opacity: 0;
  transform: translateY(34px) scale(0.98);
  transition: opacity 220ms ease, transform 220ms ease;
}

.reservation-modal.is-open .reservation-panel {
  opacity: 1;
  transform: translateY(0) scale(1);
}

.modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  cursor: pointer;
  font-size: 1.6rem;
  line-height: 1;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.modal-close:hover {
  border-color: var(--red);
  background: rgba(192, 22, 27, 0.16);
  color: #ffd4d6;
  transform: rotate(4deg);
}

.reservation-panel h2 {
  margin-right: 44px;
  font-size: clamp(2rem, 4vw, 3.1rem);
}

.reservation-form {
  display: grid;
  gap: 18px;
  margin-top: 26px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
  gap: 16px;
}

.form-field {
  position: relative;
  display: grid;
  gap: 8px;
}

.form-field label {
  color: var(--gray-300);
  font-size: 0.86rem;
  font-weight: 900;
}

.form-field input,
.form-field select {
  width: 100%;
  min-height: 50px;
  padding: 13px 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  font-size: 1rem;
  outline: none;
  transition: background 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.form-field input:focus,
.form-field select:focus {
  border-color: var(--red);
  background: rgba(255, 255, 255, 0.06);
  box-shadow: 0 0 0 4px rgba(192, 22, 27, 0.16);
}

.date-field input {
  cursor: pointer;
}

.mini-datepicker {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  right: 0;
  z-index: 10;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 10px;
  background: #121419;
  box-shadow: var(--shadow);
}

.mini-datepicker-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 12px;
  color: var(--white);
}

.mini-datepicker-header strong {
  text-transform: capitalize;
}

.mini-datepicker-header button {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  cursor: pointer;
  font-size: 1.35rem;
  line-height: 1;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease;
}

.mini-datepicker-header button:hover {
  border-color: var(--red);
  background: rgba(192, 22, 27, 0.16);
  color: #ffd4d6;
}

.mini-loading {
  margin: 0 0 10px;
  color: var(--gray-500);
  font-size: 0.82rem;
  font-weight: 900;
  text-align: center;
}

.mini-weekdays,
.mini-calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}

.mini-weekdays {
  margin-bottom: 6px;
}

.mini-weekdays span {
  color: var(--gray-500);
  font-size: 0.68rem;
  font-weight: 900;
  text-align: center;
}

.mini-day {
  display: grid;
  min-height: 36px;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.04);
  color: var(--white);
  cursor: pointer;
  font-size: 0.86rem;
  font-weight: 900;
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease;
}

.mini-day:not(.is-empty):not(.is-blocked):hover,
.mini-day.is-selected {
  border-color: var(--red);
  background: rgba(192, 22, 27, 0.2);
  color: #ffd4d6;
  transform: translateY(-1px);
}

.mini-day.is-empty {
  visibility: hidden;
}

.mini-day.is-blocked {
  background: rgba(255, 255, 255, 0.08);
  color: var(--gray-500);
  cursor: not-allowed;
  text-decoration: line-through;
}

.mini-day.is-today {
  border-color: var(--red);
  border-width: 2px;
}

.price-preview {
  margin: 0;
  padding: 14px 16px;
  border: 1px solid rgba(192, 22, 27, 0.28);
  border-radius: 8px;
  background: rgba(192, 22, 27, 0.12);
  color: #ffd4d6;
  font-weight: 900;
}

.form-error {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(255, 123, 128, 0.24);
  border-radius: 8px;
  background: rgba(255, 123, 128, 0.08);
  color: #ffb0b4;
  font-weight: 800;
}

.reservation-submit {
  width: 100%;
}

.reservation-success {
  display: grid;
  justify-items: center;
  padding: 34px 10px 12px;
  text-align: center;
}

.reservation-success[hidden],
.reservation-form-panel[hidden] {
  display: none;
}

.success-icon {
  display: grid;
  width: 72px;
  height: 72px;
  margin-bottom: 20px;
  place-items: center;
  border-radius: 50%;
  background: var(--red);
  color: var(--white);
  font-size: 2.1rem;
  font-weight: 900;
  box-shadow: 0 20px 38px rgba(192, 22, 27, 0.28);
}

.reservation-success p {
  max-width: 460px;
  margin: 14px 0 24px;
  color: var(--gray-300);
}

.listing-section {
  padding-top: clamp(42px, 6vw, 72px);
}

.detail-section,
.hero,
.page-hero,
.section {
  scroll-margin-top: 110px;
}

.listing-card img,
.gallery-main img,
.thumbnail-btn img {
  transition: transform 300ms ease, filter 300ms ease;
}

.listing-card:hover img,
.gallery-main:hover img {
  transform: scale(1.02);
}

.section[data-reveal],
.car-card[data-reveal],
.feature-item[data-reveal],
.step-item[data-reveal],
.listing-card[data-reveal],
.detail-panel[data-reveal],
.availability-section[data-reveal] {
  opacity: 0;
  transform: translateY(24px) scale(0.985);
  transition: opacity 700ms ease, transform 700ms ease;
}

.section.is-visible,
.car-card.is-visible,
.feature-item.is-visible,
.step-item.is-visible,
.listing-card.is-visible,
.detail-panel.is-visible,
.availability-section.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

@media (max-width: 960px) {
  .site-header {
    grid-template-columns: 1fr auto;
    grid-template-areas:
      'logo logo'
      'left right';
    gap: 12px;
  }

  .brand {
    grid-area: logo;
    justify-self: center;
  }

  .site-nav-left {
    grid-area: left;
  }

  .site-nav-right {
    grid-area: right;
  }

  .car-grid,
  .feature-grid,
  .steps-grid,
  .listing-grid,
  .two-columns {
    grid-template-columns: 1fr 1fr;
  }

  .detail-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .site-header {
    grid-template-columns: 1fr;
    grid-template-areas:
      'logo'
      'left'
      'right';
    justify-items: center;
    padding: 14px 14px 16px;
  }

  .site-nav {
    width: 100%;
    justify-content: center;
    flex-wrap: wrap;
    gap: 12px 18px;
    font-size: 0.82rem;
  }

  .hero {
    min-height: 620px;
    padding-top: 72px;
    padding-bottom: 84px;
  }

  .hero h1 {
    font-size: 2.85rem;
  }

  html[dir="rtl"] .hero h1 {
    line-height: 1.22;
  }

  .car-grid,
  .feature-grid,
  .steps-grid,
  .listing-grid,
  .two-columns,
  .form-two,
  .form-three {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .car-spec-list,
  .detail-spec-grid,
  .calendar-weekdays,
  .calendar-grid {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .listing-price-row,
  .availability-header {
    align-items: stretch;
    flex-direction: column;
  }

  .detail-panel {
    padding: 20px;
  }

  .calendar-day {
    min-height: 44px;
    font-size: 0.86rem;
  }

  .site-footer {
    flex-direction: column;
    padding-bottom: 96px;
  }

  .floating-reserve {
    right: 18px;
    bottom: 18px;
    min-height: 48px;
    padding: 14px 18px;
    font-size: 0.92rem;
  }
}

/* Light brand refresh: red, black, gray, white. */
:root {
  --red: #d20f1b;
  --red-strong: #f01927;
  --black: #08090b;
  --gray-900: #17191f;
  --gray-800: #252934;
  --gray-700: #3b404d;
  --gray-500: #737987;
  --gray-300: #d7dae0;
  --gray-100: #f5f6f8;
  --white: #ffffff;
  --border: rgba(8, 9, 11, 0.11);
  --shadow: 0 26px 70px rgba(8, 9, 11, 0.16);
  --shadow-soft: 0 14px 36px rgba(8, 9, 11, 0.1);
}

body {
  background:
    linear-gradient(90deg, rgba(210, 15, 27, 0.045) 1px, transparent 1px),
    linear-gradient(rgba(8, 9, 11, 0.035) 1px, transparent 1px),
    linear-gradient(180deg, var(--white) 0%, #f7f7f8 48%, #eceef2 100%);
  background-size: 46px 46px, 46px 46px, auto;
  color: var(--black);
}

h1,
h2,
h3 {
  color: var(--black);
}

.site-header {
  min-height: 96px;
  border-bottom: 1px solid rgba(8, 9, 11, 0.08);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 34px rgba(8, 9, 11, 0.08);
}

.site-nav {
  color: var(--gray-700);
}

.site-nav a:hover {
  color: var(--black);
}

.brand {
  width: clamp(150px, 17vw, 220px);
  height: 70px;
  padding: 8px 18px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.brand img {
  width: auto;
  max-width: 100%;
  height: 100%;
  object-fit: contain;
  filter: drop-shadow(0 10px 18px rgba(8, 9, 11, 0.14));
}

.hero {
  min-height: calc(100vh - 96px);
  background:
    radial-gradient(circle at 50% 78%, rgba(210, 15, 27, 0.16), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(245, 246, 248, 0.98));
}

.page-hero {
  background:
    radial-gradient(circle at 50% 90%, rgba(210, 15, 27, 0.14), transparent 36%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 242, 244, 0.96));
}

.hero::before,
.page-hero::before {
  background-image:
    linear-gradient(rgba(8, 9, 11, 0.04) 1px, transparent 1px),
    linear-gradient(90deg, rgba(8, 9, 11, 0.04) 1px, transparent 1px);
  opacity: 1;
}

.hero::after,
.page-hero::after {
  background: linear-gradient(90deg, transparent, rgba(210, 15, 27, 0.2), transparent);
  filter: blur(18px);
}

.hero-pattern {
  opacity: 0.12;
  mix-blend-mode: multiply;
  background-image: url("data:image/svg+xml,%3Csvg width='120' height='120' viewBox='0 0 120 120' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' stroke='%2308090b' stroke-opacity='0.26' stroke-width='1.2'%3E%3Cpath d='M60 14 82 38 106 44 88 62 94 88 60 76 26 88 32 62 14 44 38 38Z'/%3E%3Cpath d='M0 60h120M60 0v120'/%3E%3Ccircle cx='60' cy='60' r='22'/%3E%3C/g%3E%3C/svg%3E");
}

.hero h1,
.page-hero h1 {
  color: var(--black);
  text-shadow: none;
}

.hero-subtitle,
.page-hero p:not(.eyebrow),
.feature-item p,
.step-item p,
.listing-price-row .price,
.detail-price {
  color: var(--gray-700);
}

.eyebrow {
  color: var(--red);
}

.btn-outline {
  border-color: rgba(8, 9, 11, 0.16);
  background: var(--white);
  color: var(--black);
}

.btn-outline:hover {
  color: var(--red);
}

.car-card,
.feature-item,
.step-item,
.listing-card,
.detail-panel,
.availability-section {
  border: 1px solid rgba(8, 9, 11, 0.1);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
}

.car-card:hover,
.feature-item:hover,
.step-item:hover,
.listing-card:hover {
  border-color: rgba(210, 15, 27, 0.28);
  box-shadow: var(--shadow);
}

.car-photo,
.listing-photo,
.gallery-main,
.thumbnail-btn {
  background:
    radial-gradient(circle at 50% 10%, rgba(210, 15, 27, 0.13), transparent 48%),
    #eef0f4;
}

.badge {
  background: rgba(8, 9, 11, 0.06);
  color: var(--black);
}

.badge-dark,
.feature-pills span {
  background: rgba(210, 15, 27, 0.1);
  color: #981018;
}

.price {
  color: var(--gray-700);
}

.price strong,
.detail-price strong {
  color: var(--red);
}

.feature-icon,
.step-item span {
  border-color: rgba(210, 15, 27, 0.2);
  background: var(--black);
  color: var(--white);
}

.site-footer {
  border-top: 1px solid rgba(8, 9, 11, 0.08);
  background: var(--black);
  color: var(--gray-300);
}

.site-footer strong {
  color: var(--white);
}

.filter-btn {
  border-color: rgba(8, 9, 11, 0.12);
  background: var(--white);
  color: var(--black);
}

.filter-btn:hover,
.filter-btn.is-active {
  color: var(--white);
  background: var(--red);
}

.car-spec-list div,
.detail-spec-grid div {
  border-color: rgba(8, 9, 11, 0.09);
  background: var(--gray-100);
}

.car-spec-list dt,
.detail-spec-grid dt,
.calendar-weekdays span {
  color: var(--gray-500);
}

.car-spec-list dd,
.detail-spec-grid dd,
.calendar-controls,
.calendar-day,
.calendar-message {
  color: var(--black);
}

.calendar-controls button,
.calendar-day {
  border-color: rgba(8, 9, 11, 0.11);
  background: var(--white);
  color: var(--black);
}

.calendar-day.is-blocked {
  background: #e3e5ea;
  color: var(--gray-500);
}

.calendar-message {
  border-color: rgba(8, 9, 11, 0.1);
  background: var(--white);
}

.reservation-panel {
  border-color: rgba(8, 9, 11, 0.12);
  background: var(--white);
  color: var(--black);
}

.reservation-panel h2,
.reservation-success h2 {
  color: var(--black);
}

.modal-close,
.form-field input,
.form-field select,
.mini-datepicker,
.mini-datepicker-header button,
.mini-day {
  border-color: rgba(8, 9, 11, 0.12);
  background: var(--white);
  color: var(--black);
}

.form-field label,
.mini-datepicker-header,
.reservation-success p {
  color: var(--gray-700);
}

.form-field input:focus,
.form-field select:focus {
  background: var(--white);
}

.price-preview {
  color: #981018;
}

[data-reveal] {
  opacity: 0;
  transform: translateY(34px);
  transition: opacity 760ms ease, transform 760ms cubic-bezier(0.2, 0.8, 0.2, 1);
  will-change: opacity, transform;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0);
}

.hero-content[data-reveal].is-visible {
  animation: heroLift 900ms cubic-bezier(0.2, 0.8, 0.2, 1) both;
}

@keyframes heroLift {
  from {
    opacity: 0;
    transform: translateY(28px) scale(0.985);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

@media (max-width: 960px) {
  .site-header {
    min-height: 132px;
  }
}

@media (max-width: 640px) {
  .brand {
    width: 172px;
    height: 68px;
  }

  .calendar-weekdays,
  .calendar-grid {
    grid-template-columns: repeat(7, minmax(0, 1fr));
  }

  .calendar-day {
    min-height: 42px;
  }
}

/* Interaction polish: tighter corners, larger logo, clearer date selection. */
.site-header {
  min-height: 108px;
}

.brand {
  width: clamp(260px, 28vw, 390px);
  height: 104px;
  padding: 4px 8px;
}

.brand img {
  width: auto;
  max-width: 100%;
  height: 100%;
}

.btn,
.floating-reserve,
.filter-btn,
.modal-close,
.form-field input,
.form-field select,
.mini-datepicker,
.mini-datepicker-header button,
.mini-day,
.calendar-controls button,
.calendar-day,
.calendar-message,
.car-card,
.feature-item,
.step-item,
.listing-card,
.detail-panel,
.availability-section,
.reservation-panel,
.gallery-main,
.thumbnail-btn,
.car-spec-list div,
.detail-spec-grid div,
.price-preview,
.form-error,
.badge,
.feature-pills span {
  border-radius: 6px;
}

.feature-icon,
.step-item span,
.success-icon {
  border-radius: 8px;
}

.car-card,
.listing-card {
  cursor: pointer;
}

.car-card:focus-visible,
.listing-card:focus-visible {
  outline: 3px solid rgba(210, 15, 27, 0.32);
  outline-offset: 4px;
}

.mini-day.is-in-range {
  border-color: rgba(210, 15, 27, 0.18);
  background: rgba(210, 15, 27, 0.09);
  color: var(--black);
}

.mini-day.is-range-edge {
  border-color: rgba(210, 15, 27, 0.36);
  background: rgba(210, 15, 27, 0.14);
  color: var(--black);
}

.mini-day.is-selected {
  border-color: var(--red);
  background: var(--red);
  color: var(--white);
}

.mini-day.is-blocked {
  cursor: not-allowed;
}

.car-spec-list div,
.detail-spec-grid div {
  min-width: 0;
}

.car-spec-list dt,
.car-spec-list dd,
.detail-spec-grid dt,
.detail-spec-grid dd {
  overflow-wrap: anywhere;
}

.site-footer a {
  color: var(--white);
  font-weight: 800;
}

.floating-reserve {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 16px 22px;
  border: 1px solid transparent;
  background: var(--red);
  color: var(--white);
  font-size: 0.92rem;
  font-weight: 800;
  letter-spacing: 0;
  box-shadow: none !important;
}

.floating-reserve:hover {
  background: #b80d16;
  box-shadow: none !important;
}

.btn,
.filter-btn,
.modal-close,
.form-field input,
.form-field select,
.mini-datepicker-header button,
.mini-day,
.calendar-controls button,
.calendar-day,
.admin-btn,
.logout-btn,
.admin-form input,
.admin-form select,
.login-form input {
  box-shadow: none !important;
}

.btn:hover,
.filter-btn:hover,
.modal-close:hover,
.form-field input:hover,
.form-field select:hover,
.mini-datepicker-header button:hover,
.mini-day:hover,
.calendar-controls button:hover,
.calendar-day:hover,
.admin-btn:hover,
.logout-btn:hover,
.admin-form input:hover,
.admin-form select:hover,
.login-form input:hover {
  box-shadow: none !important;
}

@media (max-width: 960px) {
  .site-header {
    min-height: 176px;
  }
}

@media (max-width: 640px) {
  .brand {
    width: 260px;
    height: 96px;
  }

  .reservation-modal {
    padding: 12px;
  }

  .reservation-panel {
    width: 100%;
    max-height: calc(100vh - 24px);
  }

  .reservation-form .form-grid {
    grid-template-columns: 1fr;
  }

  .btn,
  .floating-reserve,
  .filter-btn,
  .modal-close,
  .form-field input,
  .form-field select,
  .mini-datepicker,
  .mini-day,
  .calendar-day,
  .car-card,
  .listing-card,
  .detail-panel,
    .availability-section,
    .reservation-panel {
    border-radius: 5px;
  }
}

/* Final public chrome overrides */
.site-header {
  min-height: 102px;
}

.brand {
  flex: 0 0 auto;
  width: clamp(226px, 28vw, 340px);
  height: 86px;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.brand img {
  width: 100%;
  height: 100%;
  max-width: 100%;
  object-fit: contain;
  object-position: center;
}

.hero {
  background:
    radial-gradient(circle at 50% 78%, rgba(210, 15, 27, 0.12), transparent 34%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 246, 248, 0.98));
}

.hero-content {
  z-index: 1;
}

.about-hero {
  min-height: calc(100vh - 108px);
  background:
    linear-gradient(180deg, rgba(8, 9, 11, 0.26), rgba(8, 9, 11, 0.46)),
    #0b0f14;
}

.about-hero .hero-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  opacity: 0.62;
  filter: saturate(1.02) contrast(1.02) brightness(1);
}

.about-hero .hero-content,
.about-hero .hero-content h1,
.about-hero .hero-content .hero-subtitle,
.about-hero .hero-content .eyebrow {
  color: var(--white);
}

.about-hero .hero-content h1 {
  text-shadow: 0 18px 48px rgba(0, 0, 0, 0.5);
}

.map-section {
  padding-top: 24px;
}

.map-frame {
  width: min(1180px, 100%);
  margin: 0 auto;
  border: 1px solid rgba(8, 9, 11, 0.1);
  border-radius: 10px;
  overflow: hidden;
  background: var(--white);
  box-shadow: var(--shadow-soft);
}

.map-frame iframe {
  display: block;
  width: 100%;
  min-height: 560px;
  border: 0;
}

.map-actions {
  width: min(1180px, 100%);
  margin: 22px auto 0;
}

.site-reserve-btn {
  min-height: 46px;
  padding: 12px 18px;
  border: 1px solid transparent;
  border-radius: 6px;
}

.icon-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: 42px;
  min-width: 42px;
  height: 42px;
  padding: 0;
  border: 1px solid rgba(8, 9, 11, 0.12);
  border-radius: 6px;
  background: var(--white);
  color: var(--black);
  cursor: pointer;
}

.icon-link svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
}

.icon-link[href*="facebook"] svg,
.icon-link[aria-label="Facebook"] svg {
  fill: currentColor;
  stroke: none;
}

.language-toggle {
  width: auto;
  padding: 0 10px;
  font-weight: 900;
}

.mobile-menu-toggle {
  display: none;
  width: 44px;
  height: 44px;
  padding: 10px;
  border: 1px solid rgba(8, 9, 11, 0.12);
  border-radius: 6px;
  background: var(--white);
  cursor: pointer;
}

.mobile-menu-toggle span {
  display: block;
  height: 2px;
  margin: 5px 0;
  background: var(--black);
}

.detail-book-btn {
  width: min(100%, 420px);
  min-height: 60px;
  margin-top: 26px;
  padding: 18px 28px;
  border-radius: 6px;
  font-size: 1rem;
}

.detail-cta-inline {
  margin-top: 24px;
}

.floating-whatsapp {
  position: fixed;
  right: 24px;
  bottom: 24px;
  z-index: 100;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  padding: 0;
  border-radius: 50%;
  background: #25d366;
  color: var(--white);
  box-shadow: none !important;
  transition: transform 180ms ease, filter 180ms ease;
}

.floating-whatsapp img {
  width: 30px;
  height: 30px;
  display: block;
}

.floating-whatsapp:hover {
  filter: brightness(1.04);
  transform: translateY(-3px);
}

.site-footer {
  flex-direction: column;
  align-items: center;
  text-align: center;
}

.site-footer > span {
  color: var(--gray-300);
  font-weight: 600;
}

.footer-logo {
  width: 178px;
}

.footer-logo img {
  width: auto;
  max-width: 100%;
  height: 62px;
}

.footer-socials,
.footer-legal {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  flex-wrap: wrap;
}

.footer-legal a {
  color: var(--gray-300);
  font-size: 0.9rem;
  font-weight: 700;
}

.footer-legal a:hover {
  color: var(--white);
}

.mobile-drawer {
  position: fixed;
  inset: 0;
  z-index: 180;
  pointer-events: none;
  visibility: hidden;
}

.mobile-drawer.is-open {
  pointer-events: auto;
  visibility: visible;
}

.drawer-backdrop {
  position: absolute;
  inset: 0;
  border: 0;
  background: rgba(8, 9, 11, 0.48);
  opacity: 0;
  transition: opacity 180ms ease;
}

.mobile-drawer.is-open .drawer-backdrop {
  opacity: 1;
}

.drawer-panel {
  position: absolute;
  top: 0;
  bottom: 0;
  left: 0;
  width: min(340px, 88vw);
  padding: 22px;
  background: var(--white);
  transform: translateX(-100%);
  transition: transform 220ms ease;
}

.mobile-drawer.is-open .drawer-panel {
  transform: translateX(0);
}

.drawer-close {
  float: right;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(8, 9, 11, 0.12);
  border-radius: 6px;
  background: var(--white);
  color: var(--black);
  cursor: pointer;
  font-size: 1.4rem;
}

.drawer-logo {
  display: inline-flex;
  width: 206px;
  height: 70px;
}

.drawer-logo img {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.drawer-nav {
  display: grid;
  gap: 10px;
  margin-top: 24px;
}

.drawer-nav a,
.drawer-nav button {
  min-height: 44px;
  padding: 12px;
  border: 1px solid rgba(8, 9, 11, 0.1);
  border-radius: 6px;
  background: #f7f8fa;
  color: var(--black);
  cursor: pointer;
  font-weight: 900;
  text-align: left;
}

.drawer-socials {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.cookie-banner {
  position: fixed;
  right: 18px;
  bottom: 92px;
  left: 18px;
  z-index: 190;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: min(920px, calc(100% - 36px));
  margin: 0 auto;
  padding: 16px;
  border: 1px solid rgba(8, 9, 11, 0.12);
  border-radius: 8px;
  background: var(--white);
  color: var(--black);
  box-shadow: 0 18px 44px rgba(8, 9, 11, 0.14);
}

.cookie-banner[hidden] {
  display: none;
}

.cookie-banner p {
  margin: 0;
}

.cookie-banner a {
  color: var(--red);
  font-weight: 900;
}

.cookie-banner > div {
  display: flex;
  gap: 10px;
  flex: 0 0 auto;
}

.contact-form,
.legal-section {
  width: min(860px, 100%);
  margin: 0 auto;
  padding: clamp(22px, 4vw, 34px);
  border: 1px solid rgba(8, 9, 11, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
}

.contact-form {
  display: grid;
  gap: 18px;
}

.contact-details {
  width: min(860px, 100%);
  margin: 0 auto 18px;
  padding: 18px 20px;
  border: 1px solid rgba(8, 9, 11, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
}

.contact-details strong {
  display: block;
  margin-bottom: 6px;
  color: var(--black);
  font-size: 0.9rem;
  text-transform: uppercase;
}

.contact-details p {
  margin: 0 0 8px;
  color: var(--slate);
}

.contact-details a {
  color: var(--red);
  font-weight: 900;
}

.contact-form .btn {
  justify-self: start;
  margin-top: 4px;
}

html[dir="rtl"] .contact-form .btn {
  justify-self: end;
}

.form-field textarea {
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(8, 9, 11, 0.12);
  border-radius: 8px;
  background: var(--white);
  color: var(--black);
  font-size: 1rem;
  resize: vertical;
  outline: none;
}

.form-field textarea:focus {
  border-color: var(--red);
  box-shadow: 0 0 0 4px rgba(192, 22, 27, 0.16);
}

.reservation-form select.is-locked {
  border-color: rgba(192, 22, 27, 0.28);
  background: rgba(8, 9, 11, 0.04);
  color: var(--black);
  cursor: not-allowed;
  opacity: 1;
}

.form-success {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(19, 138, 85, 0.24);
  border-radius: 8px;
  background: rgba(19, 138, 85, 0.08);
  color: #0c6d42;
  font-weight: 800;
}

.legal-section h2 {
  margin-bottom: 18px;
}

.legal-section p {
  color: var(--gray-700);
}

.modal-close {
  color: var(--black) !important;
}

html[dir="rtl"] .reservation-panel .modal-close {
  right: auto;
  left: 16px;
}

html[dir="rtl"] .reservation-panel h2 {
  margin-right: 0;
  margin-left: 44px;
}

.car-card,
.listing-card {
  outline: none;
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: min(1180px, 100%);
  margin: 30px auto 0;
  flex-wrap: wrap;
}

.pagination-pages {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.pagination-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 10px 14px;
  border: 1px solid rgba(8, 9, 11, 0.12);
  border-radius: 6px;
  background: var(--white);
  color: var(--black);
  font-weight: 800;
  transition: transform 180ms ease, border-color 180ms ease, background 180ms ease, color 180ms ease;
}

.pagination-link:hover,
.pagination-link.is-active {
  border-color: var(--red);
  background: var(--red);
  color: var(--white);
  transform: translateY(-2px);
}

.pagination-link.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

@media (max-width: 960px) {
  .site-header {
    display: grid;
    grid-template-columns: auto 1fr auto;
    grid-template-areas: none;
    min-height: 98px;
  }

  .brand {
    grid-area: auto;
    justify-self: center;
    width: clamp(208px, 43vw, 285px);
    height: 76px;
  }

  .mobile-menu-toggle {
    display: inline-grid;
    align-content: center;
  }

  .site-nav-left,
  .site-nav-right .icon-link {
    display: none;
  }

  .site-nav-right {
    grid-area: auto;
    justify-content: flex-end;
  }
}

@media (max-width: 640px) {
  .brand {
    width: clamp(198px, 68vw, 265px);
    height: 68px;
  }

  .about-hero {
    min-height: 560px;
  }

  .detail-book-btn {
    width: 100%;
  }

  .map-frame iframe {
    min-height: 420px;
  }

  .cookie-banner {
    align-items: stretch;
    flex-direction: column;
    bottom: 84px;
  }

  .cookie-banner > div {
    width: 100%;
  }

  .cookie-banner .btn {
    flex: 1;
  }
}

/* Footer rebuild, mobile navbar, WhatsApp spacing, and public RTL support. */
.site-footer {
  display: block;
  padding: 0;
  background: var(--black);
  color: var(--gray-300);
  text-align: left;
}

.footer-inner {
  display: grid;
  grid-template-columns: minmax(260px, 1.2fr) minmax(220px, 1fr) minmax(220px, 1fr);
  gap: clamp(28px, 5vw, 70px);
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(44px, 6vw, 70px) clamp(18px, 4vw, 56px);
}

.footer-column {
  display: grid;
  align-content: start;
  gap: 16px;
}

.footer-column h2 {
  color: var(--white);
  font-size: 1rem;
  line-height: 1.2;
}

.footer-brand p {
  max-width: 320px;
  margin: 0;
}

.footer-links,
.footer-contact {
  display: grid;
  gap: 9px;
}

.footer-socials {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-start;
}

.footer-links a,
.footer-contact a,
.footer-contact span {
  color: var(--gray-300);
  font-weight: 700;
}

.footer-links a:hover,
.footer-contact a:hover {
  color: var(--white);
}

.footer-bottom {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 16px;
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: 18px clamp(18px, 4vw, 56px) 28px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.footer-bottom p {
  margin: 0;
  text-align: center;
}

.floating-whatsapp {
  bottom: 28px;
  z-index: 160;
}

.drawer-reserve {
  border-color: var(--red) !important;
  background: var(--red) !important;
  color: var(--white) !important;
}

html.i18n-pending body {
  opacity: 0;
}

html.is-arabic body,
body.is-arabic {
  font-family: 'Cairo', 'Inter', Arial, sans-serif;
}

html.is-arabic h1,
html.is-arabic h2,
html.is-arabic h3,
html.is-arabic button,
html.is-arabic input,
html.is-arabic textarea,
html.is-arabic select,
body.is-arabic h1,
body.is-arabic h2,
body.is-arabic h3,
body.is-arabic button,
body.is-arabic input,
body.is-arabic textarea,
body.is-arabic select {
  font-family: 'Cairo', 'Inter', Arial, sans-serif;
}

html[dir="rtl"] .site-footer,
html[dir="rtl"] .footer-inner {
  text-align: right;
}

html[dir="rtl"] .footer-socials {
  justify-content: flex-start;
}

html[dir="rtl"] .drawer-panel {
  right: 0;
  left: auto;
  transform: translateX(100%);
}

html[dir="rtl"] .mobile-drawer.is-open .drawer-panel {
  transform: translateX(0);
}

html[dir="rtl"] .drawer-nav a,
html[dir="rtl"] .drawer-nav button {
  text-align: right;
}

html[dir="rtl"] .drawer-close {
  float: left;
}

@media (max-width: 960px) {
  .site-nav-right .site-reserve-btn,
  .site-nav-right .social-link {
    display: none;
  }

  .site-nav-right .language-toggle {
    display: inline-flex;
  }
}

@media (max-width: 760px) {
  .footer-inner {
    grid-template-columns: 1fr;
  }

  .footer-bottom {
    align-items: flex-start;
    flex-direction: column;
  }
}

@media (max-width: 640px) {
  .floating-whatsapp {
    right: 18px;
    bottom: 18px;
  }
}
