/* Rent Cars Miri — dark luxury theme (charcoal + metallic gold) */

:root {
  --rc-bg: #0a0a0a;
  --rc-bg-alt: #1c1c1c;
  --rc-bg-card: #252525;
  --rc-bg-elevated: #2e2e2e;
  --rc-gold: #d4af37;
  --rc-gold-light: #ffd700;
  --rc-gold-dark: #8c6239;
  --rc-silver: #e5e4e2;
  --rc-text: #e5e4e2;
  --rc-text-muted: #a8a8a8;
  --primary: #d4af37;
  --blue: #d4af37;
}

/* ── Base ── */
body {
  color: var(--rc-text) !important;
  background: radial-gradient(ellipse at top left, var(--rc-bg-alt) 0%, var(--rc-bg) 60%) !important;
  background-attachment: fixed !important;
}

h1, h2, h3, h4, h5,
.h1, .h2, .h3, .h4, .h5,
.section-heading {
  color: #ffffff !important;
}

p, .site-section p {
  color: var(--rc-text-muted);
}

.text-black {
  color: var(--rc-silver) !important;
}

::selection {
  background: var(--rc-gold);
  color: #000;
}

::-moz-selection {
  background: var(--rc-gold);
  color: #000;
}

/* ── Bootstrap primary overrides ── */
.text-primary {
  color: var(--rc-gold) !important;
}

.bg-primary {
  background: linear-gradient(135deg, var(--rc-bg-alt) 0%, var(--rc-bg) 100%) !important;
  border-top: 2px solid var(--rc-gold);
  border-bottom: 2px solid var(--rc-gold);
}

.btn-primary {
  background: linear-gradient(180deg, var(--rc-gold-light) 0%, var(--rc-gold) 45%, var(--rc-gold-dark) 100%) !important;
  border-color: var(--rc-gold) !important;
  color: #1a1a1a !important;
  font-weight: 700;
  text-shadow: 0 1px 0 rgba(255, 255, 255, 0.25);
  box-shadow: 0 4px 15px rgba(212, 175, 55, 0.3);
}

.btn-primary:hover,
.btn-primary:focus,
.btn-primary:active {
  background: linear-gradient(180deg, #ffe566 0%, #e5c04a 45%, #a67c3d 100%) !important;
  border-color: var(--rc-gold-light) !important;
  color: #000 !important;
  box-shadow: 0 6px 20px rgba(212, 175, 55, 0.45);
}

.btn-primary.btn-white {
  background: #ffffff !important;
  color: var(--rc-gold-dark) !important;
  text-shadow: none;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
}

.btn-primary.btn-white:hover {
  background: var(--rc-gold-light) !important;
  color: #000 !important;
}

.modal-header.bg-primary {
  background: linear-gradient(135deg, var(--rc-gold-dark) 0%, var(--rc-gold) 100%) !important;
  border-bottom: none !important;
}

/* ── Sections ── */
.bg-light {
  background-color: var(--rc-bg-alt) !important;
}

.site-section {
  background: transparent;
}

.block-heading-1 h2 {
  background: linear-gradient(180deg, var(--rc-gold-light) 0%, var(--rc-gold) 50%, var(--rc-gold-dark) 100%);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

/* ── Navbar ── */
.site-navbar {
  background: rgba(10, 10, 10, 0.85);
  backdrop-filter: blur(8px);
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}

/* ── Navbar logo ── */
.site-logo {
  line-height: 1;
}

.site-logo-link {
  display: inline-block;
  text-decoration: none !important;
}

.site-logo-img {
  display: block;
  height: 88px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

@media (max-width: 991.98px) {
  .site-logo-img {
    height: 68px;
  }
}

.site-navbar .site-logo a {
  color: transparent !important;
  text-shadow: none;
}

.sticky-wrapper.is-sticky .site-navbar .site-logo a {
  color: transparent !important;
  -webkit-text-fill-color: transparent;
}

.site-navbar .site-navigation .site-menu > li > a {
  color: rgba(255, 255, 255, 0.75) !important;
}

.site-navbar .site-navigation .site-menu > li > a:hover,
.site-navbar .site-navigation .site-menu > li.active > a {
  color: var(--rc-gold) !important;
}

.site-navbar .site-navigation .site-menu .active {
  color: var(--rc-gold) !important;
}

.sticky-wrapper .site-navbar {
  background: rgba(10, 10, 10, 0.95);
}

.sticky-wrapper.is-sticky .site-navbar {
  background: rgba(10, 10, 10, 0.98) !important;
  box-shadow: 0 4px 20px rgba(0, 0, 0, 0.5);
  border-bottom: 1px solid rgba(212, 175, 55, 0.2);
}

.sticky-wrapper.is-sticky .site-navbar ul li a {
  color: var(--rc-silver) !important;
}

.sticky-wrapper.is-sticky .site-navbar ul li a.active {
  color: var(--rc-gold) !important;
}

.site-mobile-menu {
  background: var(--rc-bg-alt) !important;
}

.site-mobile-menu .site-nav-wrap a {
  color: var(--rc-silver) !important;
}

.site-mobile-menu .site-nav-wrap a:hover,
.site-mobile-menu .site-nav-wrap li.active > a {
  color: var(--rc-gold) !important;
}

/* ── Hero ── */
.hero .intro h1 {
  color: #ffffff !important;
  text-shadow: 0 2px 8px rgba(0, 0, 0, 0.6);
}

.hero .intro h1 strong {
  color: var(--rc-gold) !important;
  -webkit-text-fill-color: var(--rc-gold);
  background: none;
  text-shadow: 0 1px 4px rgba(0, 0, 0, 0.4);
}

.hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(10, 10, 10, 0.55) 0%, rgba(28, 28, 28, 0.35) 100%);
  z-index: 1;
}

.hero > .container {
  position: relative;
  z-index: 2;
}

.custom-breadcrumbs a {
  color: var(--rc-silver) !important;
}

.custom-breadcrumbs strong {
  color: var(--rc-gold) !important;
}

/* ── Cards & listings ── */
.step .step-inner {
  background: var(--rc-bg-card) !important;
  box-shadow: 0 15px 30px 0 rgba(0, 0, 0, 0.4) !important;
  border: 1px solid rgba(212, 175, 55, 0.15);
  position: relative;
  z-index: 1;
}

.step .step-inner h3 {
  color: #ffffff !important;
}

.step .step-inner p {
  color: var(--rc-text-muted);
}

.step > span {
  color: rgba(212, 175, 55, 0.42) !important;
  z-index: 0;
}

.listing {
  background: var(--rc-bg-card) !important;
  border: 1px solid rgba(212, 175, 55, 0.12);
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.35);
}

.listing .listing-contents h3 {
  color: #ffffff !important;
}

.listing .listing-contents .caption {
  color: var(--rc-silver) !important;
}

.listing .listing-contents .rent-price strong {
  color: var(--rc-gold) !important;
}

.listing p {
  color: var(--rc-text-muted) !important;
}

.item-1 .item-1-contents {
  background: var(--rc-bg-card) !important;
  border: 1px solid rgba(212, 175, 55, 0.12);
}

.item-1 .item-1-contents h3 {
  color: #ffffff !important;
}

.feature-car-rent-box-1 {
  background: var(--rc-bg-card) !important;
  border: 1px solid rgba(212, 175, 55, 0.12);
}

.feature-car-rent-box-1 ul li {
  border-bottom-color: rgba(255, 255, 255, 0.08) !important;
  color: var(--rc-text-muted);
}

/* ── Services ── */
.service-1.dark .service-1-contents h3 {
  color: #ffffff !important;
}

.service-1.dark .service-1-contents p {
  color: var(--rc-text-muted) !important;
}

.service-1 .service-1-icon {
  background: var(--rc-bg-elevated) !important;
  border-color: rgba(212, 175, 55, 0.3) !important;
}

.service-1 .service-1-icon > span {
  color: var(--rc-gold) !important;
}

.service-1:hover,
.service-1:focus {
  box-shadow: 0 15px 30px 0 rgba(212, 175, 55, 0.1) !important;
}

/* ── Play button / social ── */
.play-now .icon {
  background: linear-gradient(180deg, var(--rc-gold-light) 0%, var(--rc-gold) 100%) !important;
}

.play-now .caption {
  color: var(--rc-silver) !important;
}

.social li a {
  background: linear-gradient(180deg, var(--rc-gold-light) 0%, var(--rc-gold) 100%) !important;
}

/* ── Contact info cards ── */
.contact-info-cards {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}

.contact-info-card {
  background: var(--rc-bg-card);
  border: 1px solid rgba(212, 175, 55, 0.28);
  border-radius: 8px;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.45);
  padding: 2rem 1.5rem;
  transition: border-color 0.25s ease, box-shadow 0.25s ease, transform 0.25s ease;
}

.contact-info-card:hover {
  border-color: rgba(212, 175, 55, 0.55);
  box-shadow: 0 16px 36px rgba(212, 175, 55, 0.12);
  transform: translateY(-3px);
}

.contact-info-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 64px;
  height: 64px;
  margin-bottom: 1.25rem;
  border-radius: 50%;
  background: var(--rc-bg-elevated);
  border: 2px solid rgba(212, 175, 55, 0.35);
  color: var(--rc-gold);
  font-size: 1.6rem;
}

.contact-info-card h3 {
  color: #ffffff !important;
  font-size: 1.1rem;
  font-weight: 700;
  margin-bottom: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.contact-info-card p,
.contact-info-card a {
  color: var(--rc-silver) !important;
  font-size: 1rem;
  line-height: 1.5;
  word-break: break-word;
}

.contact-info-card a:hover {
  color: var(--rc-gold-light) !important;
  text-decoration: none;
}

/* ── Forms ── */
.form-control {
  background-color: var(--rc-bg-elevated) !important;
  border-color: rgba(212, 175, 55, 0.2) !important;
  color: var(--rc-text) !important;
}

.form-control:focus,
.form-control:active {
  border-color: var(--rc-gold) !important;
  box-shadow: 0 0 0 0.2rem rgba(212, 175, 55, 0.25) !important;
}

.form-control::placeholder {
  color: var(--rc-text-muted);
}

/* Native date/time inputs: allow shrinking inside flex rows, keep a
   consistent height, and make sure the value/placeholder text stays
   visible against the dark theme on mobile (iOS Safari especially). */
input[type="date"].form-control,
input[type="time"].form-control {
  min-width: 0;
  min-height: calc(1.5em + 0.75rem + 2px);
  color: var(--rc-text) !important;
  -webkit-text-fill-color: var(--rc-text);
}

input[type="date"].form-control::-webkit-datetime-edit,
input[type="time"].form-control::-webkit-datetime-edit {
  color: var(--rc-text);
}

input[type="date"].form-control::-webkit-calendar-picker-indicator,
input[type="time"].form-control::-webkit-calendar-picker-indicator {
  filter: invert(1);
  opacity: 0.7;
}

label {
  color: var(--rc-silver);
}

/* ── Navbar car search ── */
.nav-search-item {
  display: flex;
  align-items: center;
}

.nav-search-form {
  display: flex;
  align-items: center;
  background: var(--rc-bg-elevated);
  border: 1px solid rgba(212, 175, 55, 0.3);
  border-radius: 40px;
  overflow: hidden;
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.nav-search-form:focus-within {
  border-color: var(--rc-gold);
  box-shadow: 0 0 0 0.15rem rgba(212, 175, 55, 0.25);
}

.nav-search-input {
  background: transparent;
  border: 0;
  outline: none;
  color: var(--rc-text);
  padding: 0.4rem 0.9rem;
  font-size: 0.9rem;
  width: 190px;
  max-width: 100%;
}

.nav-search-input::placeholder {
  color: var(--rc-text-muted);
}

.nav-search-btn {
  background: transparent;
  border: 0;
  color: var(--rc-gold);
  padding: 0.4rem 0.9rem;
  cursor: pointer;
  font-size: 1rem;
  line-height: 1;
  transition: color 0.2s ease;
}

.nav-search-btn:hover {
  color: var(--rc-gold-light);
}

/* On the desktop menu the search sits inline with the nav links. */
.site-menu .nav-search-item {
  margin-left: 1rem;
}

/* Mobile cloned menu: let the search span the row. */
.site-mobile-menu .nav-search-item {
  margin: 0.75rem 20px;
}

.site-mobile-menu .nav-search-form {
  width: 100%;
}

.site-mobile-menu .nav-search-input {
  width: 100%;
  flex: 1 1 auto;
}

/* ── Listing search summary ── */
.vehicle-search-summary:empty {
  display: none;
}

.vehicle-search-summary-inner {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.75rem;
  background: var(--rc-bg-card);
  border: 1px solid rgba(212, 175, 55, 0.2);
  border-radius: 6px;
  padding: 0.65rem 1rem;
  color: var(--rc-text-muted);
}

.vehicle-search-summary-inner strong {
  color: var(--rc-gold);
}

.vehicle-search-clear {
  margin-left: auto;
  color: var(--rc-gold) !important;
  font-weight: 600;
}

.vehicle-search-clear:hover {
  color: var(--rc-gold-light) !important;
  text-decoration: none;
}

/* ── Footer ── */
.site-footer {
  background: var(--rc-bg) !important;
  border-top: 2px solid rgba(212, 175, 55, 0.25);
}

.site-footer .footer-heading {
  color: var(--rc-gold) !important;
}

.site-footer a {
  color: rgba(229, 228, 226, 0.6) !important;
}

.site-footer a:hover {
  color: var(--rc-gold) !important;
}

.site-footer p {
  color: var(--rc-text-muted);
}

.footer-logo {
  height: 72px;
  width: auto;
  max-width: 100%;
  object-fit: contain;
}

.footer-features li,
.footer-contact li {
  color: var(--rc-text-muted);
  margin-bottom: 0.5rem;
}

.footer-contact .icon-map-marker,
.footer-contact .icon-phone,
.footer-contact .icon-envelope {
  color: var(--rc-gold);
}

/* ── Vehicle detail page ── */
.vehicle-detail-panel {
  background: var(--rc-bg-card) !important;
  border: 1px solid rgba(212, 175, 55, 0.2) !important;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.4);
}

.vehicle-detail-panel h2 {
  color: #ffffff !important;
}

.vehicle-detail-panel .text-muted {
  color: var(--rc-text-muted) !important;
}

.vehicle-detail-panel .rent-price {
  color: var(--rc-silver);
}

.vehicle-detail-panel .rent-price strong {
  color: var(--rc-gold) !important;
  font-size: 1.25rem;
}

.vehicle-detail-panel .rent-price + p,
.vehicle-detail-panel .rent-price ~ p {
  color: var(--rc-text-muted);
}

.vehicle-detail-panel .listing-feature .caption {
  color: var(--rc-text-muted) !important;
}

.vehicle-detail-panel .listing-feature .number {
  color: var(--rc-silver) !important;
}

.vehicle-detail-panel .border-bottom {
  border-bottom-color: rgba(212, 175, 55, 0.2) !important;
}

.vehicle-detail-panel .btn-outline-secondary {
  color: var(--rc-silver) !important;
  border-color: rgba(212, 175, 55, 0.35) !important;
  background: transparent !important;
}

.vehicle-detail-panel .btn-outline-secondary:hover {
  color: #1a1a1a !important;
  background: var(--rc-gold) !important;
  border-color: var(--rc-gold) !important;
}

#vehicle-detail h3 {
  color: #ffffff !important;
}

/* Vehicle image carousel */
.vehicle-detail-gallery {
  position: relative;
  border-radius: 8px;
  overflow: hidden;
  background: var(--rc-bg-elevated);
}

.vehicle-detail-gallery .item img {
  width: 100%;
  max-height: 420px;
  min-height: 260px;
  object-fit: cover;
  display: block;
}

.vehicle-detail-gallery .owl-nav {
  margin: 0;
}

.vehicle-detail-gallery .owl-nav .owl-prev,
.vehicle-detail-gallery .owl-nav .owl-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  margin: 0;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: rgba(0, 0, 0, 0.55) !important;
  color: var(--rc-gold) !important;
  font-size: 1.5rem;
  line-height: 44px;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease;
}

.vehicle-detail-gallery .owl-nav .owl-prev:hover,
.vehicle-detail-gallery .owl-nav .owl-next:hover {
  background: rgba(0, 0, 0, 0.75) !important;
  color: #fff !important;
}

.vehicle-detail-gallery .owl-nav .owl-prev {
  left: 16px;
}

.vehicle-detail-gallery .owl-nav .owl-next {
  right: 16px;
}

.vehicle-detail-gallery .owl-dots {
  position: absolute;
  bottom: 16px;
  left: 0;
  right: 0;
  margin: 0;
  z-index: 2;
}

.vehicle-detail-gallery .owl-dots .owl-dot span {
  width: 8px;
  height: 8px;
  margin: 4px;
  background: rgba(255, 255, 255, 0.45);
  transition: width 0.25s ease, background 0.25s ease;
}

.vehicle-detail-gallery .owl-dots .owl-dot.active span,
.vehicle-detail-gallery .owl-dots .owl-dot:hover span {
  width: 22px;
  background: var(--rc-gold);
}

@media (max-width: 767.98px) {
  .vehicle-detail-gallery .item img {
    min-height: 220px;
    max-height: 320px;
  }

  .vehicle-detail-gallery .owl-nav .owl-prev,
  .vehicle-detail-gallery .owl-nav .owl-next {
    width: 38px;
    height: 38px;
    font-size: 1.25rem;
  }

  .vehicle-detail-gallery .owl-nav .owl-prev {
    left: 10px;
  }

  .vehicle-detail-gallery .owl-nav .owl-next {
    right: 10px;
  }
}

/* ── Misc components ── */
.more {
  border-bottom-color: var(--rc-gold) !important;
  color: var(--rc-gold) !important;
}

.post-entry-1 .post-entry-1-contents {
  background: var(--rc-bg-card) !important;
}

.post-entry-1 .post-entry-1-contents h2 a {
  color: #ffffff !important;
}

.post-entry-1 .post-entry-1-contents h2 a:hover {
  color: var(--rc-gold) !important;
}

.careers-1 {
  background: var(--rc-bg-card) !important;
}

.custom-pagination a {
  background: var(--rc-gold) !important;
  color: #1a1a1a !important;
}

.custom-pagination span {
  background: var(--rc-bg-elevated) !important;
  color: var(--rc-silver);
}

.section-2 {
  background: var(--rc-bg-alt) !important;
}

.section-4 {
  border-top-color: rgba(212, 175, 55, 0.15) !important;
}

.modal-content {
  background: var(--rc-bg-card);
  color: var(--rc-text);
  border: 1px solid rgba(212, 175, 55, 0.2);
}

.modal-header,
.modal-footer {
  border-color: rgba(255, 255, 255, 0.08);
}

.close {
  color: var(--rc-silver);
  text-shadow: none;
}

.close:hover {
  color: var(--rc-gold);
}

/* Menu toggle icon on mobile */
.site-menu-toggle .icon-menu {
  color: var(--rc-gold) !important;
}

.text-muted {
  color: var(--rc-text-muted) !important;
}

.table {
  color: var(--rc-text);
}

.table td,
.table th {
  border-color: rgba(255, 255, 255, 0.08);
}

.badge-success {
  background: #2d6a2d;
}

.badge-info {
  background: #3d5a80;
}

a {
  color: var(--rc-gold);
}

a:hover {
  color: var(--rc-gold-light);
}

/* ─────────────────────────────────────────────
   Responsive polish — tablet & phone
   ───────────────────────────────────────────── */

/* Tablet and below */
@media (max-width: 991.98px) {
  /* On tablet the desktop menu is hidden and the search moves into the
     cloned mobile menu, so give the nav search room to breathe there. */
  .nav-search-input {
    width: 100%;
  }

  .vehicle-detail-panel {
    padding: 1.5rem !important;
  }

  .contact-info-cards {
    max-width: 640px;
  }
}

/* Phone */
@media (max-width: 767.98px) {
  /* Hero takes less vertical space so content below is reachable sooner. */
  .hero,
  .hero > .container > .row {
    height: auto !important;
    min-height: 68vh;
    padding-top: 6rem;
    padding-bottom: 3rem;
  }

  .hero.inner-page,
  .hero.inner-page > .container > .row {
    min-height: 180px;
    height: auto !important;
    padding-top: 5rem;
    padding-bottom: 2rem;
  }

  .hero .intro h1 {
    font-size: 34px !important;
    line-height: 1.15;
  }

  .site-logo-img {
    height: 56px;
  }

  .footer-logo {
    height: 60px;
  }

  /* Contact info cards stack with tighter padding. */
  .contact-info-card {
    padding: 1.5rem 1.25rem;
  }

  /* Search summary bar: let the clear link wrap under the text. */
  .vehicle-search-clear {
    margin-left: 0;
  }

  .vehicle-detail-panel {
    padding: 1.25rem !important;
  }
}

/* Small phone */
@media (max-width: 480px) {
  .hero .intro h1 {
    font-size: 28px !important;
  }

  .site-logo-img {
    height: 48px;
  }

  .nav-search-item {
    margin: 0.5rem 16px;
  }
}
