:root{
  --accent: #800000;
  --bg: #f6f6f7;
  --card: #fff;
  --text: #222;
}
*{box-sizing:border-box}
body{
  margin:0;
  font-family: Inter, Arial, sans-serif;
  background:var(--bg);
  color:var(--text);
  line-height:1.4;
}

/* Header */
.nav {
  display: flex;
  align-items: center; /* qendron vertikalisht */
  padding: 10px 20px;
  background-color: #fff; /* mund ta ndryshosh sipas dizajnit */
  box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

.logo-container {
  display: flex;
  align-items: center;
}

.logo-container img.logo {
  width: 60px;  /* madhësia e logos */
  height: auto;
  margin-right: 12px; /* hapësira mes logos dhe tekstit */
}

.logo-container h1 {
  font-size: 1.8rem;
  color: #333;
  margin: 0;
}

.nav h1{margin:0;font-size:1.15rem}
.nav .back{
  color:rgb(7, 6, 6);
  text-decoration:none;
  font-weight:600;
  padding-right:6px;
}



/* Grid on index */
.container{padding:18px}
.car-grid{
  display:grid;
  grid-template-columns:repeat(auto-fit,minmax(240px,1fr));
  gap:16px;
}
.car-card{
  background:var(--card);
  border-radius:12px;
  overflow:hidden;
  box-shadow:0 6px 18px rgba(0,0,0,0.08);
  cursor:pointer;
  transition:transform .18s ease, box-shadow .18s;
  display:flex;
  flex-direction:column;
}
.car-card:hover{transform:translateY(-6px);box-shadow:0 12px 26px rgba(0,0,0,0.12)}
.car-card img{width:100%;height:250px;object-fit:cover;display:block}
.card-body{padding:12px}
.card-body h2{font-size:1rem;margin:0 0 6px}
.card-body p{color:#555;margin:0 0 8px;font-size:.9rem}
.price-contact{display:flex;align-items:center;justify-content:space-between}
.price{color:var(--accent);font-weight:700}
.small{font-size:.85rem;color:#666}

/* Details layout */
.details-container{
  display:grid;
  grid-template-columns: 1fr 360px;
  gap:20px;
  padding:18px;
}
@media (max-width:980px){
  .details-container{grid-template-columns:1fr; padding:12px}
}

/* Gallery */
.main-photo-wrap{
  position:relative;
  background: #111;
  border-radius:10px;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  height:420px;
}
@media (max-width:600px){ .main-photo-wrap{height:260px} }

.main-photo{
  max-width:100%;
  max-height:100%;
  display:block;
  object-fit:contain;
  background:#111;
}

/* gallery buttons */
.gbtn{
  position:absolute;
  top:50%;
  transform:translateY(-50%);
  background:rgba(0,0,0,0.5);
  color:white;
  border:0;
  width:44px;height:44px;border-radius:50%;
  font-size:20px;cursor:pointer;
}
.prev{left:12px}
.next{right:12px}
.gbtn:hover{background:rgba(0,0,0,0.8)}

/* Thumbnails */
.thumbs{
  margin-top:10px;
  display:flex;
  gap:8px;
  flex-wrap:wrap;
}
.thumbs img{
  width:90px;height:60px;object-fit:cover;border-radius:6px;cursor:pointer;
  opacity:0.7;border:2px solid transparent;
}
.thumbs img.active{opacity:1;border-color:var(--accent)}

/* Specs aside */
.specs-section{
  background:var(--card);
  border-radius:12px;padding:16px;box-shadow:0 6px 18px rgba(0,0,0,0.06);
}
.specs-section h2{margin-top:0}
.spec-text{white-space:pre-wrap;color:#222}
.contact-box{margin-top:14px;background:#fafafa;padding:10px;border-radius:8px;border:1px solid #eee}

/* small screens */
@media (max-width:600px){
  .thumbs img{width:64px;height:44px}
  .specs-section{margin-top:12px}
}


/* Parandalon zoom-in në mobile */
input,
select,
textarea,
button {
  touch-action: manipulation;
  font-size: 16px; /* i mban madhësi konstante në iOS që të mos zmadhohet */
}

/* Mbulesa e modalit */
.filter-modal {
  display: none;
  position: fixed;
  z-index: 9999;
  left: 0;
  top: 0;
  width: 100%;
  height: 100%;
  overflow-y: auto;
  background-color: rgba(0, 0, 0, 0.5);
  backdrop-filter: blur(4px);
}

/* Përmbajtja brenda modalit */
.filter-content {
  background: #fff;
  margin: 5% auto;
  padding: 20px 24px;
  border-radius: 12px;
  width: 90%;
  max-width: 400px;
  box-shadow: 0 4px 16px rgba(0, 0, 0, 0.2);
  text-align: left;
}

.filter-content h2 {
  text-align: center;
  margin-bottom: 16px;
  color: var(--accent, #333);
}

.filter-content label {
  display: block;
  margin-bottom: 6px;
  font-weight: 600;
  color: #444;
}

.filter-content input,
.filter-content select {
  width: 100%;
  padding: 10px 12px;
  font-size: 16px;
  border: 1px solid #ccc;
  border-radius: 8px;
  margin-bottom: 16px;
  outline: none;
  transition: border-color 0.2s ease;
}

/* Efekt fokusimi */
.filter-content input:focus,
.filter-content select:focus {
  border-color: var(--accent, #007bff);
}

/* Butonat brenda filtrit */
.filter-buttons {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.filter-buttons button {
  flex: 1;
  padding: 10px 0;
  border: none;
  border-radius: 8px;
  cursor: pointer;
  font-weight: 600;
  transition: background 0.3s ease;
}

#applyFilter {
  background: var(--accent, #007bff);
  color: white;
}

.clear-btn {
  background: #eee;
  color: #333;
}

.clear-btn:hover {
  background: #ddd;
}

#applyFilter:hover {
  background: #0056b3;
}

/* Butoni Filter — anash djathtas dhe vertikalisht në qendër */
.filter-btn {
  background: var(--accent, #007bff);
  color: white;
  border: none;
  padding: 10px 16px;
  border-radius: 8px;
  margin-bottom: 8px;
  cursor: pointer;
  display: flex;
  justify-content: center;
  align-items: center;
  margin-left: auto;     /* e shtyn në anën e djathtë */
  margin-right: 0;
  height: 40px;
}

/* Responsive dizajni */
@media (max-width: 480px) {
  .filter-content {
    width: 90%;
    padding: 16px;
  }

  .filter-content input,
  .filter-content select {
    font-size: 16px; /* për të parandaluar zoom në iPhone */
  }
}
