/* Responsive CSS */
@media (max-width: 1200px) {
  .nav-menu-links {
    gap: 10px;
  }
  .nav-menu-links a {
    font-size: 0.85rem;
  }
}

@media (max-width: 1024px) {
  .nav-menu-links {
    display: none;
  }
  .hamburger-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }
  .three-column-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  .fast-booking-grid {
    grid-template-columns: repeat(6, 1fr);
    gap: 12px;
  }
  .booking-field-col.col-car {
    grid-column: span 6;
  }
  .booking-field-col.col-ploc {
    grid-column: span 3;
  }
  .booking-field-col.col-rloc {
    grid-column: span 3;
  }
  .booking-field-col.col-pdate {
    grid-column: span 3;
  }
  .booking-field-col.col-ptime {
    grid-column: span 3;
  }
  .booking-field-col.col-rdate {
    grid-column: span 3;
  }
  .booking-field-col.col-rtime {
    grid-column: span 3;
  }
  .booking-field-col.col-btn {
    grid-column: span 6;
  }
  .footer-main-grid {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }
  .footer-contact-card {
    grid-column: 1 / -1;
  }
}

@media (max-width: 768px) {
  .brand-title {
    font-size: 1.05rem;
  }
  .brand-subtitle {
    font-size: 0.58rem;
  }
  .brand-logo-img {
    height: 36px;
    width: auto;
    max-width: 160px;
    object-fit: contain;
  }
  .footer-brand-logo {
    height: 40px;
    width: auto;
    max-width: 175px;
    object-fit: contain;
  }
  .phone-badge-btn {
    font-size: 0.8rem;
    padding: 6px 12px;
  }

  /* Hero & Banner Mobile (Full Width Edge-to-Edge) */
  .hero-banner-section {
    padding: 0 0 25px;
  }
  .hero-banner-fullwidth {
    width: 100%;
    margin: 0;
    border-radius: 0;
    border-bottom: 1px solid rgba(212, 175, 55, 0.2);
  }
  .hero-banner-img {
    width: 100%;
    height: auto;
  }

  /* Booking Widget Card Mobile Polish */
  .fast-booking-box {
    padding: 18px 14px;
    margin: 12px auto 0;
    border-radius: 16px;
  }

  .booking-header-title {
    flex-direction: column;
    align-items: stretch;
    gap: 12px;
    margin-bottom: 16px;
    padding-bottom: 12px;
  }

  .booking-heading-text {
    font-size: 1.12rem;
    justify-content: center;
    text-align: center;
  }

  .booking-service-switch {
    width: 100%;
    display: flex;
  }

  .service-tab-btn {
    flex: 1;
    text-align: center;
    padding: 8px 6px;
    font-size: 0.8rem;
  }

  .fast-booking-grid {
    grid-template-columns: 1fr 1fr;
    gap: 12px 10px;
  }

  .booking-field-col.col-car,
  .booking-field-col.col-ploc,
  .booking-field-col.col-rloc,
  .booking-field-col.col-btn {
    grid-column: 1 / -1;
  }

  .booking-field-col.col-pdate {
    grid-column: 1 / 2;
  }

  .booking-field-col.col-ptime {
    grid-column: 2 / 3;
  }

  .booking-field-col.col-rdate {
    grid-column: 1 / 2;
  }

  .booking-field-col.col-rtime {
    grid-column: 2 / 3;
  }

  .booking-submit-btn {
    height: 48px;
    font-size: 0.96rem;
    margin-top: 4px;
    border-radius: 12px;
  }

  /* Footer Mobile Redesign */
  .site-footer {
    padding: 35px 0 95px; /* Extra bottom clearance for floating contact buttons */
  }

  .footer-main-grid {
    grid-template-columns: 1fr;
    gap: 22px;
    margin-bottom: 24px;
  }

  .footer-brand-header {
    gap: 10px;
    margin-bottom: 10px;
  }

  .footer-brand-logo {
    height: 38px;
  }

  .footer-brand-name {
    font-size: 1.15rem;
  }

  .footer-brand-desc {
    font-size: 0.84rem;
    line-height: 1.6;
    margin-bottom: 14px;
  }

  .footer-hotlines-row {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .footer-phone-pill {
    padding: 8px 6px;
    font-size: 0.78rem;
    justify-content: center;
  }

  .footer-links-group {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 14px;
    background: rgba(255, 255, 255, 0.02);
    border: 1px solid rgba(255, 255, 255, 0.05);
    border-radius: 14px;
    padding: 16px 14px;
  }

  .footer-col-heading {
    font-size: 0.95rem;
    margin-bottom: 10px;
    padding-bottom: 6px;
  }

  .footer-nav-list {
    gap: 6px;
  }

  .footer-nav-list li a {
    font-size: 0.82rem;
  }

  .footer-contact-card {
    padding: 16px 14px;
    border-radius: 14px;
    grid-column: auto;
  }

  .footer-hub-info {
    gap: 8px;
    font-size: 0.82rem;
    margin-bottom: 12px;
  }

  .channels-btn-grid {
    gap: 6px;
  }

  .footer-channel-btn {
    padding: 8px 4px;
    font-size: 0.74rem;
  }

  .footer-bottom-bar {
    flex-direction: column;
    gap: 6px;
    text-align: center;
    padding-top: 16px;
    font-size: 0.74rem;
  }

  /* Services Filter Box (Perfect 2x2 Grid on Mobile) */
  .services-filter-box {
    padding: 12px 10px !important;
    gap: 10px !important;
    margin-bottom: 20px !important;
    border-radius: 12px !important;
    display: flex !important;
    flex-direction: column !important;
  }

  .filter-categories-wrap {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 8px !important;
    width: 100% !important;
  }

  .filter-category-btn {
    padding: 9px 6px !important;
    font-size: 0.78rem !important;
    font-weight: 600 !important;
    text-align: center !important;
    border-radius: 8px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  .filter-search-wrap {
    max-width: 100% !important;
    width: 100% !important;
  }

  .filter-search-inner input {
    height: 42px !important;
    font-size: 0.88rem !important;
    border-radius: 8px !important;
    width: 100% !important;
    box-sizing: border-box !important;
  }

  /* 3-Column Fleet Showcase on Mobile (100% Fit & No Overflow) */
  .showroom-section .container {
    padding-left: 4px !important;
    padding-right: 4px !important;
    width: 100% !important;
    max-width: 100vw !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
  }

  .three-column-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 4px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    margin: 0 !important;
  }

  .stream-cars-list {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .services-cars-grid {
    display: grid !important;
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 4px !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .stream-column {
    min-width: 0 !important;
    max-width: 100% !important;
    width: 100% !important;
    box-sizing: border-box !important;
    padding: 5px 3px !important;
    border-radius: 6px !important;
    overflow: hidden !important;
  }

  .stream-header {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 2px !important;
    padding-bottom: 4px !important;
    margin-bottom: 6px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
    text-align: center !important;
  }

  .stream-header-badge {
    font-size: 0.58rem !important;
    padding: 2px 2px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    text-align: center !important;
    justify-content: center !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    border-radius: 4px !important;
  }

  .stream-count-pill {
    font-size: 0.52rem !important;
    padding: 1px 4px !important;
    display: inline-block !important;
  }

  .car-card {
    width: 100% !important;
    min-width: 0 !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    height: 100% !important;
    min-height: unset !important;
    border-radius: 6px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    background: #0E172F !important;
    padding: 0 !important;
    overflow: hidden !important;
    border: 1px solid rgba(255, 255, 255, 0.08) !important;
  }

  .car-card-media {
    width: 100% !important;
    height: 62px !important;
    min-height: 62px !important;
    position: relative !important;
    overflow: hidden !important;
  }

  .car-card-img {
    width: 100% !important;
    height: 62px !important;
    object-fit: cover !important;
    display: block !important;
  }

  .car-card-badge {
    position: absolute !important;
    top: 2px !important;
    left: 2px !important;
    font-size: 0.46rem !important;
    padding: 1px 3px !important;
    border-radius: 2px !important;
    white-space: nowrap !important;
    max-width: 90% !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    line-height: 1 !important;
  }

  .car-card-body {
    padding: 4px 3px !important;
    display: flex !important;
    flex-direction: column !important;
    justify-content: space-between !important;
    flex: 1 !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .car-card-title {
    font-size: 0.6rem !important;
    line-height: 1.15 !important;
    height: 24px !important;
    margin: 0 0 2px 0 !important;
    overflow: hidden !important;
    display: -webkit-box !important;
    -webkit-line-clamp: 2 !important;
    -webkit-box-orient: vertical !important;
    word-break: break-word !important;
  }

  .car-card-title a {
    font-size: 0.6rem !important;
    color: #FFFFFF !important;
    line-height: 1.15 !important;
    text-decoration: none !important;
  }

  .car-card-sub {
    font-size: 0.52rem !important;
    height: 12px !important;
    margin-bottom: 3px !important;
    white-space: nowrap !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    color: #94A3B8 !important;
  }

  .car-specs-chips {
    display: flex !important;
    flex-wrap: wrap !important;
    gap: 2px !important;
    margin-bottom: 4px !important;
    max-height: 24px !important;
    overflow: hidden !important;
  }

  .spec-chip {
    font-size: 0.46rem !important;
    padding: 1px 2px !important;
    gap: 1px !important;
    line-height: 1 !important;
    white-space: nowrap !important;
    border-radius: 2px !important;
    background: rgba(255, 255, 255, 0.06) !important;
    color: #CBD5E1 !important;
  }

  .spec-chip svg {
    width: 8px !important;
    height: 8px !important;
    display: inline-block !important;
  }

  .car-card-footer {
    margin-top: auto !important;
    padding-top: 3px !important;
    border-top: 1px solid rgba(255, 255, 255, 0.06) !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 3px !important;
    width: 100% !important;
    box-sizing: border-box !important;
    min-width: 0 !important;
  }

  .car-price-block {
    display: flex !important;
    flex-direction: column !important;
    align-items: center !important;
    text-align: center !important;
    gap: 0 !important;
    width: 100% !important;
  }

  .price-label {
    display: none !important;
  }

  .price-val {
    font-size: 0.72rem !important;
    font-weight: 700 !important;
    color: #F5BE38 !important;
    line-height: 1.1 !important;
    white-space: nowrap !important;
  }

  .price-unit {
    font-size: 0.48rem !important;
    color: #94A3B8 !important;
  }

  .card-actions-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 2px !important;
    width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }

  .btn-detail-sm {
    width: 100% !important;
    box-sizing: border-box !important;
    text-align: center !important;
    padding: 3px 1px !important;
    font-size: 0.54rem !important;
    height: 20px !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 3px !important;
    background: rgba(255, 255, 255, 0.08) !important;
    color: #E2E8F0 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
  }

  .btn-book-sm {
    width: 100% !important;
    box-sizing: border-box !important;
    text-align: center !important;
    padding: 3px 1px !important;
    font-size: 0.56rem !important;
    font-weight: 700 !important;
    height: 20px !important;
    line-height: 1 !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    border-radius: 3px !important;
    background: linear-gradient(135deg, #D4AF37 0%, #F5BE38 100%) !important;
    color: #050A14 !important;
    border: none !important;
  }

  /* Floating Buttons on Mobile - positioned safely */
  .floating-contact-panel {
    bottom: 15px;
    right: 15px;
    gap: 8px;
  }
  .floating-btn {
    width: 44px;
    height: 44px;
  }
  .floating-btn svg {
    width: 20px;
    height: 20px;
  }

  /* Car Detail Page Mobile Overrides */
  .car-detail-hero-section {
    padding: 14px 0 45px;
  }

  .car-hero-layout {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 20px;
  }

  .car-media-frame {
    border-radius: 14px;
  }

  .car-media-badges {
    top: 10px;
    left: 10px;
    gap: 6px;
  }

  .car-media-badges .car-card-badge,
  .car-media-badges .car-status-badge {
    position: static !important;
    font-size: 0.65rem;
    padding: 3px 8px;
  }

  .car-trust-pills {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .trust-pill-item {
    font-size: 0.74rem;
    padding: 8px 10px;
  }

  .car-hero-booking-box {
    padding: 18px 14px;
    border-radius: 16px;
  }

  .booking-car-title {
    font-size: 1.35rem;
    line-height: 1.25;
  }

  .booking-car-subtitle {
    font-size: 0.85rem;
    margin-bottom: 14px;
  }

  .pricing-matrix-container {
    margin-bottom: 12px;
  }

  .pricing-rates-grid {
    gap: 6px;
  }

  .rate-box {
    padding: 10px 4px;
    border-radius: 10px;
  }

  .rate-box .rate-tag {
    font-size: 0.68rem;
  }

  .rate-box .rate-val {
    font-size: 1.02rem;
  }

  .rate-box .rate-unit {
    font-size: 0.6rem;
  }

  .detail-form-grid {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
  }

  .detail-form-group .booking-input,
  .detail-form-group .booking-select {
    height: 38px;
    font-size: 0.82rem;
    padding: 0 8px;
  }

  .hero-specs-grid {
    grid-template-columns: repeat(2, 1fr);
    padding: 10px;
    gap: 6px;
    margin: 12px 0;
  }

  .hero-spec-card .h-label {
    font-size: 0.68rem;
  }

  .hero-spec-card .h-val {
    font-size: 0.82rem;
  }

  .booking-submit-btn {
    font-size: 0.95rem;
    padding: 12px 14px;
  }

  .btn-hero-call {
    font-size: 0.85rem;
    padding: 10px 14px;
  }

  .car-details-split-container {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-top: 20px;
  }

  .specs-panel,
  .features-panel {
    padding: 16px 14px;
    border-radius: 14px;
  }

  .panel-title {
    font-size: 1.05rem;
  }

  .specs-table td {
    padding: 8px 4px;
    font-size: 0.82rem;
  }

  .specs-table td.label-col {
    width: 42%;
  }

  .specs-table td.val-col {
    text-align: right;
  }

  .features-grid-list {
    grid-template-columns: 1fr;
    gap: 6px;
    margin: 0 0 16px;
  }

  .features-grid-list li {
    font-size: 0.82rem;
    padding: 7px 10px;
  }

  .rental-docs-box {
    padding: 12px 14px;
    margin-bottom: 14px;
  }

  .doc-step-item {
    font-size: 0.78rem;
  }

  .car-story-box {
    padding: 12px 14px;
  }

  .story-desc {
    font-size: 0.82rem;
    line-height: 1.65;
  }

  .car-related-container {
    margin-top: 35px;
    padding-top: 25px;
  }

  .related-cars-grid {
    grid-template-columns: repeat(2, 1fr) !important;
    gap: 10px !important;
  }

  .related-more-btn-wrap {
    margin-top: 24px;
  }

  .btn-view-more-cars {
    width: 100%;
    padding: 12px 20px;
    font-size: 0.92rem;
  }
}

@media (max-width: 480px) {
  .fast-booking-box {
    padding: 16px 12px;
  }
  .booking-heading-text {
    font-size: 1.05rem;
  }
  .service-tab-btn {
    font-size: 0.78rem;
    padding: 7px 6px;
  }
  .field-label {
    font-size: 0.78rem;
  }
  .booking-input, .booking-select {
    height: 42px;
    font-size: 0.88rem;
    padding: 0 10px;
  }
  textarea.booking-input, #contact-msg {
    height: auto;
    min-height: 80px;
    padding: 16px 14px 12px 14px !important;
    line-height: 1.6;
  }
  .pricing-car-name {
    font-size: 1.25rem;
  }
}

/* Mobile Drawer */
.mobile-drawer {
  position: fixed;
  top: 0;
  right: -300px;
  width: 280px;
  height: 100%;
  background: #0A1128;
  border-left: 1px solid rgba(212, 175, 55, 0.3);
  z-index: 2100;
  padding: 24px 20px;
  transition: right 0.3s ease;
  display: flex;
  flex-direction: column;
}

.mobile-drawer.open {
  right: 0;
}

.drawer-close-btn {
  align-self: flex-end;
  background: transparent;
  border: none;
  color: #FFFFFF;
  font-size: 1.5rem;
  cursor: pointer;
  margin-bottom: 16px;
}

.drawer-links-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.drawer-links-list a {
  font-family: var(--font-heading);
  font-size: 1.05rem;
  font-weight: 600;
  color: #FFFFFF;
  display: block;
  padding: 6px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.06);
}

.drawer-links-list a:hover {
  color: #F5BE38;
}

/* Gallery Thumbnails Responsive Layout */
@media (max-width: 768px) {
  .gallery-thumbs-row {
    grid-template-columns: repeat(5, 1fr);
    gap: 6px;
    margin-top: 10px;
  }
  .gallery-thumb {
    border-radius: 6px;
  }
}
@media (max-width: 480px) {
  .gallery-thumbs-row {
    grid-template-columns: repeat(5, 1fr);
    gap: 5px;
  }
  .gallery-thumb {
    border-radius: 5px;
  }
}

/* Contact Page Mobile & Tablet Polish */
@media (max-width: 992px) {
  .contact-atelier-grid {
    grid-template-columns: 1fr !important;
  }
  .atelier-form-card {
    order: 1 !important;
  }
  .atelier-visual-card {
    order: 2 !important;
  }
}

@media (max-width: 768px) {
  .contact-atelier-hero {
    padding: 35px 0 25px !important;
  }
  .contact-quick-grid {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
    margin-bottom: 24px !important;
  }
  .contact-quick-card {
    padding: 18px 16px !important;
    border-radius: 16px !important;
  }
  .contact-form-row {
    grid-template-columns: 1fr !important;
    gap: 10px !important;
  }
  .contact-form-dates-grid {
    grid-template-columns: 1fr 1fr !important;
    gap: 10px 8px !important;
  }
  .atelier-form-card {
    padding: 20px 16px !important;
  }
  .atelier-badges-col {
    padding: 16px 14px !important;
    gap: 10px !important;
  }
  .terminal-badge-row {
    padding: 12px 14px !important;
    gap: 10px !important;
  }
  .atelier-image-wrap {
    height: 180px !important;
  }
  .field-label {
    flex-wrap: wrap;
    gap: 2px 8px;
  }
  .contact-map-card {
    margin-top: 24px;
    border-radius: 16px;
  }
  .contact-map-header {
    padding: 16px;
    flex-direction: column;
    align-items: stretch;
    gap: 14px;
  }
  .contact-map-title {
    font-size: 1.05rem;
  }
  .contact-map-btn {
    width: 100%;
    height: 44px;
    font-size: 0.92rem;
  }
  .contact-map-frame {
    height: 260px;
  }
}

@media (max-width: 480px) {
  .contact-submit-btn {
    font-size: 0.95rem !important;
    padding: 0 14px !important;
    height: 48px !important;
  }
  .contact-submit-btn svg {
    width: 18px !important;
    height: 18px !important;
  }
}
