/* 
 * AUTO-MOBIL V4 CSS
 * Completely isolated from app.css legacy styles.
 */

/* =========================================================================
   GLOBAL RESET & BASE
   ========================================================================= */
body,
h1,
h2,
h3,
h4,
h5,
h6,
p,
a,
div,
span,
label,
input,
select {
  font-family: "Montserrat", sans-serif !important;
}

body {
  background: linear-gradient(135deg, #051829 0%, #0a2e4f 100%) !important;
  background-size: cover !important;
  background-attachment: fixed !important;
  color: #ffffff !important;
  margin: 0;
  padding: 0;
}

/* Nuke old app.css structural backgrounds */
.box-main,
.box-vehicles,
.box-last-seen,
header,
.vehicle-view,
.details {
  background: transparent !important;
  background-color: transparent !important;
  background-image: none !important;
}

/* Force links to have a standard behavior without arbitrary underlines */
a {
  text-decoration: none;
  transition: all 0.3s ease;
}

/* =========================================================================
   HEADER & NAVBAR
   ========================================================================= */
.header-main {
  position: sticky;
  top: 0;
  z-index: 1000;
  background: rgba(5, 24, 41, 0.85) !important;
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  box-shadow: 0 4px 30px rgba(0, 0, 0, 0.5);
  padding: 15px 0;
}

.header-main nav ul li a {
  color: rgba(255, 255, 255, 0.8) !important;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 1px;
}

.header-main nav ul li a:hover,
.header-main nav ul li a.chosen {
  color: #e63946 !important;
  text-shadow: 0 0 15px rgba(230, 57, 70, 0.4);
}

/* LOGO FIX */
.header-logo img {
  max-height: 40px;
  width: auto;
}

/* =========================================================================
   HERO SEARCH SECTION (V4)
   ========================================================================= */
.am-hero-search {
  padding: 20px 0;
  background: transparent;
  margin-bottom: 30px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.form-vehicles-search {
  background: rgba(0, 0, 0, 0.3) !important;
  backdrop-filter: blur(15px) !important;
  -webkit-backdrop-filter: blur(15px) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  border-radius: 12px !important;
  padding: 10px 15px !important;
  box-shadow: 0 10px 40px 0 rgba(0, 0, 0, 0.5) !important;
}

.form-vehicles-search select,
.form-vehicles-search input {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  padding: 10px 12px !important;
  height: auto !important;
  font-size: 0.9rem !important;
  font-weight: 500 !important;
  width: 100%;
}

.form-vehicles-search select option {
  background: #0a2e4f !important;
  color: #ffffff !important;
}

.form-vehicles-search select:focus,
.form-vehicles-search input:focus {
  border-color: #e63946 !important;
  box-shadow: 0 0 0 2px rgba(230, 57, 70, 0.3) !important;
  outline: none !important;
}

/* Labels hidden for compactness */
.form-vehicles-search label:not(.am-toggle-btn) {
  display: none !important;
}

/* Radio status (Nowe/Uzywane) */
.radio-box {
  display: inline-flex;
  align-items: center;
  margin-right: 20px;
  margin-bottom: 0;
  cursor: pointer;
}
.radio-box label {
  display: inline-block !important; /* Force visible for radio text */
  font-size: 0.95rem;
  font-weight: 600;
  color: #ffffff !important;
  margin-left: 8px;
  margin-bottom: 0;
  text-transform: uppercase;
}

/* =========================================================================
   BUTTONS
   ========================================================================= */
.neon-btn {
  background: linear-gradient(45deg, #e63946, #c1121f) !important;
  border: none !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  font-weight: 700 !important;
  text-transform: uppercase !important;
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.4) !important;
  padding: 10px 20px !important;
  cursor: pointer;
  transition: all 0.3s ease !important;
}

.neon-btn:hover {
  transform: translateY(-2px);
  box-shadow: 0 8px 25px rgba(230, 57, 70, 0.6) !important;
}

/* =========================================================================
   SHOWROOM GRID (CAR CARDS V4)
   ========================================================================= */
.am-showroom {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 25px;
  padding: 20px 0;
}

.am-car-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  overflow: hidden;
  transition:
    transform 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275),
    box-shadow 0.3s ease;
  display: flex;
  flex-direction: column;
}

.am-car-card:hover {
  transform: translateY(-8px);
  border-color: rgba(230, 57, 70, 0.3);
  box-shadow:
    0 15px 35px rgba(0, 0, 0, 0.5),
    0 0 15px rgba(230, 57, 70, 0.15);
}

.am-car-img {
  width: 100%;
  height: 220px;
  background-size: cover;
  background-position: center;
  position: relative;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.am-badge-promo {
  position: absolute;
  top: 15px;
  left: 15px;
  background: #e63946;
  color: #fff;
  padding: 5px 12px;
  font-size: 0.75rem;
  font-weight: 800;
  border-radius: 6px;
  letter-spacing: 1px;
  box-shadow: 0 4px 10px rgba(230, 57, 70, 0.4);
}

.am-favourite {
  position: absolute;
  top: 15px;
  right: 15px;
  background: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(5px);
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  color: #fff;
  font-size: 1.1rem;
  transition: all 0.2s ease;
}

.am-favourite:hover {
  background: #e63946;
  color: #fff;
}

.am-favourite .fas {
  color: #e63946;
}
.am-favourite:hover .fas {
  color: #fff;
}

.am-car-content {
  padding: 20px;
  display: flex;
  flex-direction: column;
  flex-grow: 1;
}

.am-car-title {
  font-size: 1.15rem;
  font-weight: 700;
  line-height: 1.4;
  margin-bottom: 15px;
  color: #ffffff;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.am-car-title a {
  color: #ffffff !important;
}

.am-car-title a:hover {
  color: #e63946 !important;
}

.am-car-specs {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  margin-bottom: 20px;
}

.am-spec {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.7);
  display: flex;
  flex-direction: column;
}
.am-spec span {
  color: #ffffff;
  font-weight: 600;
  font-size: 0.9rem;
}

.am-car-footer {
  margin-top: auto;
  padding-top: 15px;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
}

.am-price-regular {
  color: #e63946;
  font-size: 1.6rem;
  font-weight: 800;
  line-height: 1;
}

.am-price-regular small {
  font-size: 0.8rem;
  color: rgba(255, 255, 255, 0.5);
  font-weight: 500;
}

.am-price-promo {
  color: rgba(255, 255, 255, 0.4);
  font-size: 0.9rem;
  text-decoration: line-through;
  margin-bottom: 2px;
}

.am-btn-outline {
  border: 1px solid rgba(255, 255, 255, 0.2);
  color: #fff;
  padding: 8px 16px;
  border-radius: 8px;
  font-size: 0.85rem;
  font-weight: 700;
  transition: all 0.2s ease;
}

.am-btn-outline:hover {
  background: #fff;
  color: #051829;
}

/* =========================================================================
   SINGLE VEHICLE VIEW (V4)
   ========================================================================= */
.am-vehicle-details {
  padding: 40px 0;
}

.am-details-title {
  font-size: 2.2rem;
  font-weight: 800;
  margin-bottom: 25px;
  color: #fff;
}

.am-details-card {
  background: rgba(255, 255, 255, 0.03);
  border: 1px solid rgba(255, 255, 255, 0.05);
  border-radius: 16px;
  padding: 30px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.4);
}

.am-details-price-box {
  background: rgba(0, 0, 0, 0.3);
  border-radius: 12px;
  padding: 20px;
  margin-bottom: 25px;
  text-align: center;
  border: 1px solid rgba(230, 57, 70, 0.3);
}

.am-details-price {
  font-size: 2.5rem;
  font-weight: 900;
  color: #e63946;
}
.am-details-price small {
  font-size: 1rem;
  color: rgba(255, 255, 255, 0.6);
}

.am-details-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.am-details-item {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
  padding-bottom: 10px;
}

.am-details-item small {
  display: block;
  color: rgba(255, 255, 255, 0.5);
  font-size: 0.75rem;
  margin-bottom: 3px;
  text-transform: uppercase;
}

.am-details-item span {
  color: #fff;
  font-size: 1.1rem;
  font-weight: 600;
}

/* =========================================================================
   FOOTER & CTA
   ========================================================================= */
footer,
.box-cta {
  background: #041220 !important;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.7);
}

footer h5 {
  color: #fff !important;
  font-weight: 700;
}

footer a {
  color: rgba(255, 255, 255, 0.6) !important;
}
footer a:hover {
  color: #e63946 !important;
}

footer .footer-rights {
  color: rgba(255, 255, 255, 0.3);
  font-size: 0.8rem;
  padding: 20px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.05);
  margin-top: 20px;
}

/* CTA Section (Nie znalazłeś...) */
.box-cta {
  padding: 40px 0 !important;
  text-align: center;
}
.box-cta .cta-title {
  color: #ffffff !important;
  font-size: 1.8rem;
  font-weight: 800;
  margin-bottom: 10px;
}
.box-cta .cta-text {
  color: rgba(255, 255, 255, 0.7) !important;
  margin-bottom: 25px;
}
.box-cta input[type="tel"] {
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  color: #fff !important;
  border-radius: 8px 0 0 8px !important;
  padding: 12px 15px !important;
}
.box-cta input[type="tel"]::placeholder {
  color: rgba(255, 255, 255, 0.5);
}

/* CTA Plus Button → RED not yellow */
.box-cta .button.yellowish,
.box-cta button.yellowish {
  background: #e63946 !important;
  color: #fff !important;
  border: none !important;
  border-radius: 0 8px 8px 0 !important;
  padding: 12px 20px !important;
  font-size: 1.2rem;
}
.box-cta .button.yellowish:hover,
.box-cta button.yellowish:hover {
  background: #c1121f !important;
}

/* =========================================================================
   TOGGLE BUTTONS (Nowe / Używane)
   ========================================================================= */
.am-toggle-group {
  display: inline-flex;
  background: rgba(0, 0, 0, 0.3);
  border-radius: 10px;
  padding: 4px;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.1);
}

.am-toggle-group input[type="radio"] {
  display: none !important;
}

.am-toggle-btn {
  display: inline-block !important;
  padding: 10px 30px !important;
  cursor: pointer;
  color: rgba(255, 255, 255, 0.6) !important;
  font-weight: 700 !important;
  font-size: 0.95rem !important;
  text-transform: uppercase !important;
  letter-spacing: 1px;
  border-radius: 8px !important;
  transition: all 0.3s ease;
  margin: 0 !important;
  border: none !important;
  background: transparent !important;
}

.am-toggle-btn:hover {
  color: #ffffff !important;
  background: rgba(255, 255, 255, 0.05) !important;
}

.am-toggle-group input[type="radio"]:checked + .am-toggle-btn {
  background: #e63946 !important;
  color: #ffffff !important;
  box-shadow: 0 4px 15px rgba(230, 57, 70, 0.5);
}

/* =========================================================================
   FAVOURITES HEART COLORS
   ========================================================================= */
/* Liked heart → RED (not green) */
.am-favourite .fas.fa-heart,
.favourites .fas.fa-heart {
  color: #e63946 !important;
}

.am-favourite:hover {
  background: #e63946 !important;
}

.am-favourite:hover .fas.fa-heart,
.am-favourite:hover .far.fa-heart {
  color: #fff !important;
}

/* =========================================================================
   SORT DROPDOWN STYLING
   ========================================================================= */
.form-vehicles-quick-search {
  background: transparent !important;
  border: none !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  padding: 0 !important;
  margin: 0 !important;
}

.form-vehicles-quick-search select {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.15) !important;
  color: #ffffff !important;
  border-radius: 8px !important;
  padding: 8px 35px 8px 12px !important;
  font-size: 0.9rem !important;
  font-weight: 600 !important;
  height: auto !important;
  cursor: pointer;
  -webkit-appearance: none;
  -moz-appearance: none;
  appearance: none;
  background-image: url("data:image/svg+xml;charset=UTF-8,%3csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3e%3cpolyline points='6 9 12 15 18 9'%3e%3c/polyline%3e%3c/svg%3e") !important;
  background-repeat: no-repeat !important;
  background-position: right 10px center !important;
  background-size: 14px !important;
}

.form-vehicles-quick-search select option {
  background: #0a2e4f !important;
  color: #ffffff !important;
}

.form-vehicles-quick-search select:focus {
  border-color: #e63946 !important;
  box-shadow: 0 0 0 2px rgba(230, 57, 70, 0.3) !important;
  outline: none !important;
}

/* =========================================================================
   MODAL / REVEAL POPUPS (O Firmie, etc.)
   ========================================================================= */
.reveal {
  background: #0a2e4f !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 16px !important;
  box-shadow: 0 25px 50px rgba(0, 0, 0, 0.7) !important;
  padding: 40px !important;
  max-width: 700px;
}

.reveal h1,
.reveal h2,
.reveal h3,
.reveal h4,
.reveal h5,
.reveal h6 {
  color: #ffffff !important;
  font-weight: 700;
}

.reveal p,
.reveal li,
.reveal span,
.reveal div {
  color: rgba(255, 255, 255, 0.85) !important;
}

.reveal a {
  color: #e63946 !important;
}

.reveal .close-button {
  color: rgba(255, 255, 255, 0.6) !important;
  font-size: 2rem;
  top: 15px;
  right: 20px;
}

.reveal .close-button:hover {
  color: #e63946 !important;
}

/* Reveal overlay */
.reveal-overlay {
  background: rgba(0, 0, 0, 0.7) !important;
  backdrop-filter: blur(5px);
}

/* =========================================================================
   STATIC PAGES (about us, serwis, ubezpieczenia, etc.)
   ========================================================================= */
.box-titles h1,
.box-titles h2,
.box-titles h3,
.box-titles h4 {
  color: #ffffff !important;
}

/* Vehicle description in detail view */
.vehicle-description-technical .cell small {
  color: rgba(255, 255, 255, 0.5) !important;
  display: block;
  text-transform: uppercase;
  font-size: 0.7rem;
}

.vehicle-description-technical .cell span {
  color: #ffffff !important;
  font-weight: 600;
}

.vehicle-description-optional ul li {
  color: rgba(255, 255, 255, 0.8) !important;
  padding: 5px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}

.vehicle-description-text {
  color: rgba(255, 255, 255, 0.8) !important;
  line-height: 1.8;
}

/* =========================================================================
   COOKIE BAR
   ========================================================================= */
.box-cookie {
  background: rgba(5, 24, 41, 0.95) !important;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}

.box-cookie p {
  color: rgba(255, 255, 255, 0.7) !important;
}

.box-cookie a {
  color: #e63946 !important;
}

/* =========================================================================
   PAGINATION
   ========================================================================= */
.vehicles-nav .pagination li a,
.vehicles-nav .pagination li button {
  background: rgba(255, 255, 255, 0.05) !important;
  color: #ffffff !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 6px !important;
  margin: 0 3px;
}

.vehicles-nav .pagination li a:hover,
.vehicles-nav .pagination li button:hover {
  background: rgba(230, 57, 70, 0.3) !important;
  border-color: #e63946 !important;
}

.vehicles-nav .pagination li.current a,
.vehicles-nav .pagination li.current button,
.vehicles-nav .pagination .current {
  background: #e63946 !important;
  color: #fff !important;
  border-color: #e63946 !important;
}

/* =========================================================================
   WHITIE BUTTON (map directions etc.)
   ========================================================================= */
.button.whitie {
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.3) !important;
  color: #fff !important;
  border-radius: 8px !important;
}
.button.whitie:hover {
  background: rgba(255, 255, 255, 0.1) !important;
}

/* =========================================================================
   MOBILE MENU (Off-canvas)
   ========================================================================= */
.off-canvas {
  background: #051829 !important;
}
.off-canvas-logo {
  padding: 20px;
  text-align: center;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}
.off-canvas-logo img {
  max-width: 150px;
}
.off-canvas-menu ul {
  list-style: none;
  margin: 0;
  padding: 0;
}
.off-canvas-menu ul li {
  border-bottom: 1px solid rgba(255, 255, 255, 0.05);
}
.off-canvas-menu ul li a {
  display: block;
  padding: 15px 20px;
  color: rgba(255, 255, 255, 0.8) !important;
  font-weight: 600;
  text-transform: uppercase;
}
.off-canvas-menu ul li a:hover {
  background: rgba(255, 255, 255, 0.05);
  color: #e63946 !important;
}

/* =========================================================================
   SOCIAL MEDIA ICONS
   ========================================================================= */

/* TikTok SVG inline icon — matches Font Awesome sizing */
.svg-icon-tiktok {
  width: 1em;
  height: 1em;
  vertical-align: -0.125em;
  display: inline-block;
}

/* Desktop header social icons */
.header-social-icons {
  display: flex;
  align-items: center;
  gap: 14px;
}
.header-social-icons a {
  color: rgba(255, 255, 255, 0.7);
  font-size: 18px;
  transition:
    color 0.3s ease,
    transform 0.3s ease;
}
.header-social-icons a:hover {
  color: #e63946;
  transform: translateY(-2px);
}

/* Mobile off-canvas social icons */
.off-canvas-social {
  display: flex;
  justify-content: center;
  gap: 20px;
  padding: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
}
.off-canvas-social a {
  color: rgba(255, 255, 255, 0.6);
  font-size: 22px;
  transition: color 0.3s ease;
}
.off-canvas-social a:hover {
  color: #e63946;
}

/* Footer social icons */
.footer-social-icons {
  display: flex;
  gap: 16px;
  margin-top: 10px;
}
.footer-social-icons a {
  color: rgba(255, 255, 255, 0.5);
  font-size: 20px;
  transition: color 0.3s ease;
}
.footer-social-icons a:hover {
  color: #e63946;
}
