html, body {
    min-height: 100%;
    height: auto;
    margin: 0;
    scroll-behavior: smooth;

    }

  body {

    font-family: Inter, system-ui, Arial, sans-serif;

    color: #111;

background-image: url('../SystemPhotos/Background.jpg');

    background-size: cover;

    background-position: center;

    background-repeat: no-repeat;

    background-attachment: fixed;

    position: relative;

  }

  body::before {

    content:"";

    position: fixed; top:0; left:0;

    width:100%; height:100%;

    background: rgba(0,0,0,0.3);

    z-index:-1;

  }

  /* --- Navigační lišta --- */

  .nav {

    display: flex;

    justify-content: center;

    gap: 30px;

    margin-bottom: 20px;

    padding: 10px 0;

    border-bottom: 1px solid #205593;

    flex-wrap: wrap;

  }

  .nav a {

    text-decoration: none;

    font-weight: 600;

    font-size: 25px;

    color: #205593;

    transition: color 0.3s ease;

  }

  .nav a:hover {

    color: #5ce1e6;

  }

  /* --- Hlavní rámeček s obsahem --- */

  .wrap {

    max-width: 1100px;
width: calc(100% - 40px);
box-sizing: border-box;
margin: 20px auto;
    margin: 20px auto;

    padding: 20px;

    background: rgba(240, 240, 240, 0.45); /* Poloprůhledná dominantní šedá */

    backdrop-filter: blur(12px);            /* Mírně zvýšené rozmazání pro lepší čitelnost textu */

    -webkit-backdrop-filter: blur(12px);

    border-radius: 12px;

    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);

  }

  /* --- Logo + nadpis --- */

  .header-inner {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 120px;
  margin-bottom: 0px;
  flex-wrap: wrap;
}

  .header-inner img.logo {

    height: 180px;

    width: auto;

  }

  .header-inner h1 {

    margin: 0;

    font-size: 3.5rem;

    color: #205593;

  }

  .logo {

    height: 60px;

    width: 60px;

    border: 0px solid #fff;

    border-radius: 50%;

    padding: 5px;

    transition: transform 1.1s ease-in-out;

  }


  /* --- Cookie lišta --- */

  .cookie-bar {

    position: fixed;

    bottom: 0;

    left: 0;

    right: 0;

    background: #205593;

    color: #ffffff;

    padding: 20px;

    box-shadow: 0 -5px 15px rgba(0,0,0,0.3);

    z-index: 9999;

    display: none; 

    align-items: center;

    justify-content: center;

  }

  .cookie-content {

    max-width: 1100px;

    display: flex;

    gap: 20px;

    align-items: center;

    flex-wrap: wrap;

    justify-content: space-between;

    width: 100%;

  }

  .cookie-text {

    flex: 1;

    font-size: 14px;

    line-height: 1.5;

    min-width: 300px;

    color: #ffffff;

  }

  .btn-accept {

    background-color: #5ce1e6;

    color: #000000;

    border: none;

    padding: 10px 25px;

    border-radius: 6px;

    cursor: pointer;

    font-weight: 700;

    transition: transform 0.2s;

  }

  .btn-accept:hover { 

    transform: scale(1.05);

  }

  .btn-decline {

    background-color: transparent;

    color: #ffffff;

    border: 1px solid #ffffff;

    padding: 10px 20px;

    border-radius: 6px;

    cursor: pointer;

    transition: background 0.3s;

  }

  .btn-decline:hover { 

    background: rgba(255,255,255,0.1);

  }

  .content {

    display: flex;

    gap: 12px;

  }

  /* --- UPRAVENO: Filtrační ovládací prvky s jemnou průhledností --- */

  .controls {

    flex: 0 0 250px;

    display: flex;

    flex-direction: column;

    gap: 12px;

  }

  .controls label {

    font-size: 13px;

    color: #222;

    font-weight: 600;

  }

  .controls select, .controls input[type=search], .controls input[type=number] {

    padding: 8px;

    border-radius: 6px;

    border: 1px solid rgba(32, 85, 147, 0.3); /* Jemný namodralý okraj */

    background: rgba(255, 255, 255, 0.4);      /* Poloprůhledné pozadí inputů */

    color: #111;

    font-family: inherit;

    width: 100%;

    box-sizing: border-box;

    transition: all 0.3s ease;

  }

  .controls select:focus, .controls input:focus {

    background: rgba(255, 255, 255, 0.85);     /* Při kliknutí input zbělá pro lepší psaní */

    border-color: #205593;

    outline: none;

    box-shadow: 0 0 8px rgba(32, 85, 147, 0.2);

  }

.grid {
  flex: 1;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
  align-content: start;
  grid-auto-rows: auto;
}

  /* --- UPRAVENO: Karty vozidel mají vrstvenou průhlednost (Glassmorphism) --- */

  .card {

    display: flex;

    flex-direction: row;

    gap: 12px;

    align-items: flex-start;

    border: 1px solid rgba(255, 255, 255, 0.4);

    border-radius: 10px;

    overflow: hidden;

    background: rgba(255, 255, 255, 0.55);     /* Poloprůhledná bílá karta */

    box-shadow: 0 4px 15px rgba(0,0,0,0.02);

    cursor: pointer;

    transition: all 0.3s ease;

  }

  .card:hover {

    background: rgba(230, 247, 255, 0.8);      /* Světle modrý průhledný hover efekt */

    box-shadow: 0 6px 16px rgba(0, 180, 255, 0.3);

    transform: translateY(-3px);

    border-color: rgba(92, 225, 230, 0.5);

  }

 .card img {

    width: 200px;

    height: 130px;

    object-fit: cover;

    border-radius: 8px 0 0 8px;

    background: rgba(0,0,0,0.05);

    opacity: 0.95;                              /* Mírné zjemnění jasu fotky do designu */

  }

  .card .body {padding:10px; flex:1;}
}

  .car-title {font-weight:600;margin-bottom:6px; color: #111;}

  .meta {font-size:13px;color:#333;margin-bottom:8px;}

  .price {font-weight:700;color:#205593;}

  .badge {

    display:inline-block;

    padding:4px 8px;

    border-radius:999px;

    font-size:12px;

    background: rgba(32, 85, 147, 0.1);         /* Průhledný badge */

    color:#205593;

    border:1px solid rgba(32, 85, 147, 0.2);

  }

  .no-results {

    padding:30px;

    text-align:center;

    color:#333;

  }

  /* --- UPRAVENO: Sekce pro kotvy sjednocena do průhledného stylu --- */

  .info-section {

    padding:18px;

    margin-top:20px;

    border-radius:10px;

    background: rgba(255, 255, 255, 0.35);     /* Průhledný podklad pro spodní sekce */

    border: 1px solid rgba(32, 85, 147, 0.15);

  }

  .info-section h2 {margin-top:0; color:#205593;}

  /* --- Modal --- */

  .modal {

    position: fixed; top:0; left:0; width:100%; height:100%;

    display:none; justify-content:center; align-items:center; z-index:1000;

    background: rgba(0,0,0,0.6);

  }
  
.modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    max-width: 750px;
    width: 90%;
    max-height: 90vh;
    overflow-y: auto;
    box-sizing: border-box;
    color: #111;
}

#modalImg {
    width: 100%;
    height: auto;
    max-height: 65vh !important;
    object-fit: contain !important;
    border-radius: 8px;
}

  .btn {

    background-color: #205593;

    color: #ffffff;

    padding: 10px 20px;

    border-radius: 6px;

    text-decoration: none;

    display: inline-block;

  }

  .btn:hover {

    background-color: #5ce1e6;

    color: #000000;

  }

  /* --- Responsivní --- */

  @media (max-width: 768px) {

.content {
  flex-direction: column;
}

.controls {
  flex: 1 1 auto;
  order: 1;
}

.grid {
  grid-template-columns: 1fr;
  order: 2;
}

    .card { flex-direction: column; align-items: center; }

    .card img { width: 100%; height: auto; border-radius: 8px 8px 0 0; }

    .nav a { font-size: 18px; }

    .header-inner h1 { font-size: 2rem; }

    .header-inner img.logo { height: 120px; }

  }

  #reservationForm label {

    display:block;

    margin:10px 0 4px;

    font-weight:600;

  }

  #reservationForm input,

  #reservationForm textarea {

    width:100%;

    padding:8px;

    border:1px solid #ddd;

    border-radius:6px;

    margin-bottom:8px;

  }

  #reservationForm button {

    margin-top:12px;

    width:100%;

  }

  #messageBox {

    display: none;

    position: fixed;

    top: 50%;

    left: 50%;

    transform: translate(-50%, -50%);

    background: rgba(255,255,255,0.95);

    border: 2px solid #205593;

    color: #205593;

    padding: 20px 30px;

    border-radius: 8px;

    z-index: 10001;

    box-shadow: 0 4px 15px rgba(0,0,0,0.2);

  }

  #modalImg {
  display: block;
  width: 100%;
  height: auto;
  max-height: 65vh;
  object-fit: contain !important;
  margin: 0 auto 15px;
  border-radius: 8px;
}

/* Zvětšení okna detailu vozidla */

.modal-content {
  max-width: 750px;
  box-sizing: border-box;
}