*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

    :root {
      --green:       #4AAE58;
      --green-dark:  #3a9446;
      --green-xdark: #2d7537;
      --green-light: #e8f7eb;
      --green-pale:  #f0fdf4;
      --host:        #8e3fd0;
      --prg:         #c92b65;
      --ink:         #1b2338;
      --ink-2:       #374151;
      --ink-3:       #68758d;
      --ink-4:       #9ca3af;
      --line:        #e4ebe6;
      --white:       #ffffff;
      --bg:          #f3f7f4;
      --soft:        #f7faf8;
      --shadow-sm:   0 2px 10px rgba(15,23,42,0.05);
      --shadow-md:   0 8px 24px rgba(15,23,42,0.08);
      --shadow-lg:   0 20px 50px rgba(15,23,42,0.11);
      --shadow-green: 0 6px 20px rgba(74,174,88,0.32);
      --r-sm: 10px; --r-md: 16px; --r-lg: 22px; --r-xl: 28px;
      --ease: cubic-bezier(0.22, 1, 0.36, 1);
    }

    html { scroll-behavior: smooth; }

    body {
      font-family: 'DM Sans', system-ui, sans-serif;
      font-size: 16px;
      color: var(--ink);
      line-height: 1.6;
      overflow-x: hidden;
      background:
        radial-gradient(circle at top right, rgba(74,174,88,0.07) 0%, transparent 40%),
        radial-gradient(circle at bottom left, rgba(96,165,250,0.05) 0%, transparent 30%),
        linear-gradient(180deg, #edf6ef 0%, #f7faf8 60%, #eef4f0 100%);
      min-height: 100vh;
    }

    a { color: inherit; text-decoration: none; }
    img { display: block; max-width: 100%; }


    .hidden { display: none; }

    .nav {
      position: fixed; top: 0; left: 0; right: 0; z-index: 200;
      height: 68px; padding: 0 2.5rem;
      display: flex; align-items: center; justify-content: space-between;
      background: rgba(247,250,248,0.9);
      backdrop-filter: blur(16px) saturate(180%);
      -webkit-backdrop-filter: blur(16px) saturate(180%);
      border-bottom: 1px solid var(--line);
      box-shadow: 0 4px 20px rgba(15,23,42,0.04);
    }
    .nav-logo img { height: 26px; width: auto; }
    .nav-links { display: flex; align-items: center; gap: 0.25rem; list-style: none; }
    .nav-links a { font-size: 0.88rem; font-weight: 600; color: var(--ink-3); padding: 0.4rem 0.85rem; border-radius: 2rem; transition: color 0.14s, background 0.14s; }
    .nav-links a:hover { color: var(--green-dark); background: var(--green-light); }
    .nav-cta { background: linear-gradient(135deg, var(--green), var(--green-dark)) !important; color: white !important; padding: 0.55rem 1.25rem !important; border-radius: var(--r-md) !important; font-weight: 700 !important; box-shadow: var(--shadow-green); }
    .nav-burger { display: none; flex-direction: column; gap: 5px; cursor: pointer; padding: 0.5rem; background: none; border: none; }
    .nav-burger span { display: block; width: 22px; height: 2px; background: var(--ink); border-radius: 2px; }

    .page-wrapper { padding-top: 68px; }

    .search-hero {
      min-height: calc(100vh - 68px);
      display: flex; flex-direction: column;
      align-items: center; justify-content: center;
      padding: 3rem 1.5rem 2rem;
      position: relative;
    }

    .search-hero-text {
      text-align: center;
      margin-bottom: 2.5rem;
    }

    .hero-eyebrow {
      display: inline-flex; align-items: center; gap: 0.5rem;
      background: var(--green-light); color: var(--green-dark);
      font-size: 0.78rem; font-weight: 700; letter-spacing: 0.07em; text-transform: uppercase;
      padding: 0.35rem 1rem; border-radius: 2rem;
      border: 1px solid rgba(74,174,88,0.25);
      margin-bottom: 1.25rem;
      animation: fadeUp 0.6s var(--ease) both;
    }
    .hero-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: blink 1.5s ease-in-out infinite; }
    @keyframes blink { 0%,100%{opacity:1} 50%{opacity:0.3} }

    .search-hero h1 {
      font-family: 'DM Serif Display', Georgia, serif;
      font-size: clamp(2rem, 5vw, 3.5rem);
      font-weight: 400;
      line-height: 1.12;
      color: var(--ink);
      margin-bottom: 0.75rem;
      animation: fadeUp 0.7s 0.1s var(--ease) both;
    }
    .search-hero h1 em { font-style: italic; color: var(--green-dark); }
    .search-hero-sub {
      font-size: 1rem; color: var(--ink-3); max-width: 480px; margin: 0 auto;
      animation: fadeUp 0.7s 0.2s var(--ease) both;
    }
    .search-hero-sub a { color: var(--green-dark); font-weight: 700; text-decoration: underline; }

    .search-card {
      width: min(820px, 100%);
      background: rgba(255,255,255,0.88);
      backdrop-filter: blur(14px);
      border: 1px solid rgba(255,255,255,0.7);
      border-radius: var(--r-xl);
      box-shadow: var(--shadow-lg);
      padding: 2rem;
      display: grid;
      grid-template-columns: 1fr 1fr auto;
      gap: 1.25rem;
      align-items: end;
      animation: fadeUp 0.7s 0.25s var(--ease) both;
    }

    .search-field { display: flex; flex-direction: column; gap: 0.45rem; }
    .search-field label { font-size: 0.78rem; font-weight: 700; letter-spacing: 0.06em; text-transform: uppercase; color: var(--ink-3); }
    .search-field input {
      height: 52px; width: 100%;
      border: 1.5px solid var(--line);
      border-radius: var(--r-md);
      background: var(--white);
      text-align: center;
      font-family: 'DM Sans', sans-serif;
      font-size: 1rem;
      font-weight: 600;
      color: var(--ink);
      cursor: pointer;
      transition: border-color 0.14s, box-shadow 0.14s;
    }
    .search-field input:hover { border-color: var(--green); }
    .search-field input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(74,174,88,0.12); }

    #search-button {
      height: 52px;
      padding: 0 2rem;
      border: none;
      border-radius: var(--r-md);
      background: linear-gradient(135deg, var(--green), var(--green-dark));
      color: white;
      font-family: 'DM Sans', sans-serif;
      font-weight: 700;
      font-size: 1rem;
      cursor: pointer;
      white-space: nowrap;
      box-shadow: var(--shadow-green);
      transition: transform 0.14s var(--ease), box-shadow 0.14s;
    }
    #search-button:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(74,174,88,0.42); }

    #back-to-search {
      display: none;
      margin: 1.5rem auto 0;
      padding: 0.6rem 1.5rem;
      border: none; border-radius: var(--r-md);
      background: linear-gradient(135deg, var(--green), var(--green-dark));
      color: white;
      font-family: 'DM Sans', sans-serif;
      font-weight: 700;
      font-size: 0.9rem;
      cursor: pointer;
      box-shadow: var(--shadow-green);
      transition: transform 0.14s;
    }
    #back-to-search:hover { transform: translateY(-2px); }

    .results-section {
      padding: 2rem 1.5rem 5rem;
      max-width: 1180px;
      margin: 0 auto;
    }

    .form-boxes {
      opacity: 0;
      transition: opacity 0.4s ease;
      flex-direction: column;
      gap: 0;
    }

    .results-header {
      margin-bottom: 2rem;
    }

    .results-tag {
      display: inline-block;
      font-size: 0.75rem; font-weight: 700; letter-spacing: 0.1em; text-transform: uppercase;
      color: var(--green-dark); background: var(--green-light);
      padding: 0.3rem 0.85rem; border-radius: 2rem; margin-bottom: 0.75rem;
    }

    .results-title {
      font-family: 'DM Serif Display', Georgia, serif;
      font-size: clamp(1.6rem, 3vw, 2.4rem);
      font-weight: 400; color: var(--ink); line-height: 1.2;
    }

    .parkings-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 1.25rem;
    }

    .parking-card {
      background: rgba(255,255,255,0.9);
      border: 1.5px solid var(--line);
      border-radius: var(--r-xl);
      overflow: hidden;
      box-shadow: var(--shadow-sm);
      transition: transform 0.22s var(--ease), box-shadow 0.22s var(--ease), border-color 0.22s;
      display: flex;
      flex-direction: column;
      cursor: default;
    }

    .parking-card:hover {
      transform: translateY(-3px);
      box-shadow: var(--shadow-md);
      border-color: rgba(74,174,88,0.2);
    }

    .parking-card.active {
      border-color: rgba(74,174,88,0.4);
      box-shadow: var(--shadow-lg);
    }

    .parking-card-photo {
      height: 220px;
      position: relative;
      overflow: hidden;
      background: #e0ebe3;
      flex-shrink: 0;
    }

    .carousel-track {
      display: flex;
      height: 100%;
      transition: transform 0.38s var(--ease);
    }

    .carousel-image {
      width: 100%;
      height: 100%;
      object-fit: cover;
      flex-shrink: 0;
    }

    .carousel-prev, .carousel-next {
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      width: 36px; height: 36px;
      border: none; border-radius: 50%;
      background: rgba(255,255,255,0.9);
      backdrop-filter: blur(4px);
      color: var(--ink);
      font-size: 1rem; font-weight: 700;
      cursor: pointer; z-index: 3;
      box-shadow: var(--shadow-sm);
      display: flex; align-items: center; justify-content: center;
      transition: background 0.14s, transform 0.14s;
    }
    .carousel-prev { left: 10px; }
    .carousel-next { right: 10px; }
    .carousel-prev:hover, .carousel-next:hover { background: white; transform: translateY(-50%) scale(1.1); }

    .parking-card-badge {
      position: absolute; top: 12px; left: 12px; z-index: 3;
      background: rgba(255,255,255,0.96);
      backdrop-filter: blur(6px);
      border-radius: 2rem;
      padding: 0.3rem 0.8rem;
      font-size: 0.75rem; font-weight: 800;
      color: var(--ink);
      box-shadow: var(--shadow-sm);
    }

  
    .parking-card-body { padding: 1.4rem 1.5rem 1.5rem; display: flex; flex-direction: column; flex: 1; }

    .parking-card-topline {
      display: flex; align-items: flex-start; justify-content: space-between;
      gap: 0.75rem; margin-bottom: 0.75rem;
    }

    .parking-card-name {
      font-family: 'DM Serif Display', serif;
      font-size: 1.75rem; font-weight: 400; line-height: 1.05;
      margin: 0;
    }
    .brand-host { color: var(--host); }
    .brand-fix  { color: var(--green); }
    .brand-prg  { color: var(--prg); }

    .box-price {
      height: 44px; min-width: 100px;
      border: 1.5px solid var(--line);
      border-radius: var(--r-sm);
      background: linear-gradient(180deg, #fff 0%, var(--soft) 100%);
      text-align: center;
      font-family: 'DM Sans', sans-serif;
      font-weight: 800; font-size: 0.95rem;
      color: var(--ink);
      padding: 0 0.5rem;
    }

    .parking-card-desc {
      font-size: 0.88rem; color: var(--ink-3);
      line-height: 1.7; margin-bottom: 1rem;
      flex: 1;
    }

    .parking-card-meta {
      display: flex; flex-wrap: wrap; gap: 0.5rem;
      margin-bottom: 1.1rem;
    }

    .parking-meta-item {
      display: inline-flex; align-items: center; gap: 0.4rem;
      padding: 0.4rem 0.8rem;
      background: var(--soft);
      border: 1px solid var(--line);
      border-radius: 2rem;
      font-size: 0.82rem; font-weight: 600;
      color: var(--ink-2);
    }

    .parking-card-footer {
      display: flex; align-items: center; justify-content: space-between;
      gap: 1rem;
      padding-top: 1rem;
      border-top: 1px solid var(--line);
    }

    .parking-price-wrap {}
    .parking-price-label { font-size: 0.7rem; font-weight: 700; text-transform: uppercase; letter-spacing: 0.05em; color: var(--ink-4); }
    .parking-price { font-family: 'DM Serif Display', serif; font-size: 1.75rem; color: var(--ink); line-height: 1; }
    .parking-price small { font-family: 'DM Sans', sans-serif; font-size: 0.8rem; color: var(--ink-4); font-weight: 400; }


    .box-button {
      display: inline-flex; align-items: center; gap: 0.4rem;
      padding: 0.7rem 1.4rem;
      border: none; border-radius: var(--r-md);
      font-family: 'DM Sans', sans-serif;
      font-weight: 700; font-size: 0.9rem;
      color: white; cursor: pointer;
      transition: transform 0.14s var(--ease), box-shadow 0.14s, filter 0.14s;
      box-shadow: 0 4px 12px rgba(0,0,0,0.12);
    }
    .box-button:hover { transform: translateY(-2px); box-shadow: 0 8px 20px rgba(0,0,0,0.16); filter: brightness(1.07); }
    .btn-host   { background: linear-gradient(135deg, #a055e8, #8432cd); }
    .btn-fix    { background: linear-gradient(135deg, var(--green), var(--green-dark)); }
    .btn-prg    { background: linear-gradient(135deg, #d53d7a, #b82662); }
    .btn-valet  { background: linear-gradient(135deg, var(--green), var(--green-xdark)); }

    .parking-info-open {
      display: none;
      grid-template-columns: 1fr 340px;
      gap: 1.25rem;
      padding: 0 1.5rem 1.5rem;
      border-top: 1px solid var(--line);
      margin-top: 4px;
    }

    .form-box.active .parking-info-open {
      display: grid;
    }

    .desc-container {
      background: var(--white);
      border: 1px solid var(--line);
      border-radius: var(--r-lg);
      padding: 1.25rem;
    }

    .parking-description {
      margin: 0;
      color: var(--ink-3);
      font-size: 0.9rem;
      line-height: 1.8;
    }
    .parking-description a { color: var(--green-dark); font-weight: 700; text-decoration: underline; }

    .carousel-container {
      position: relative; overflow: hidden;
      min-height: 280px;
      background: var(--bg);
      border: 1px solid var(--line);
      border-radius: var(--r-lg);
    }


    body.modal-open { overflow: hidden; }

    .flip-card-container {
      position: fixed !important;
      inset: 0 !important;
      z-index: 1200 !important;
      display: none;
      opacity: 0;
      visibility: hidden;
      transition: opacity 0.28s ease, visibility 0s linear 0.28s;
      padding: 24px 16px;
      overflow-y: auto;
      align-items: flex-start;
      justify-content: center;
    }

    .flip-card-container::before {
      content: "";
      position: fixed;
      inset: 0;
      background: rgba(14, 20, 36, 0.65);
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
      z-index: -1;
    }

    body.modal-open .flip-card-container {
      display: flex !important;
      opacity: 1 !important;
      visibility: visible !important;
      transition-delay: 0s !important;
    }

    .modal-close-btn {
      position: fixed;
      top: 20px;
      right: 20px;
      z-index: 1300;
      width: 44px;
      height: 44px;
      border-radius: 50%;
      background: white;
      color: var(--ink);
      border: none;
      font-size: 1.2rem;
      font-weight: 900;
      cursor: pointer;
      box-shadow: 0 4px 16px rgba(0,0,0,0.15);
      display: none;
      align-items: center;
      justify-content: center;
      transition: transform 0.14s, box-shadow 0.14s;
      line-height: 1;
    }
    .modal-close-btn:hover { transform: scale(1.08); box-shadow: 0 6px 20px rgba(0,0,0,0.2); }
    body.modal-open .modal-close-btn { display: flex; }

.flip-card {
      width: min(860px, 100%);
      margin: 0 auto;
      transform-style: preserve-3d;
      transition: transform 0.8s ease;
      position: relative;
      z-index: 2;
    }
    
    .flip-card-inner { 
      width: 100%; 
      position: relative; 
      transform-style: preserve-3d; 
      transition: transform 0.8s; 
      min-height: 680px; 
    }

    /* THIS IS THE MISSING LINE THAT ACTUALLY SPINS THE CARD */
    .flip-card.flipped .flip-card-inner { 
      transform: rotateY(180deg); 
    }
    
    /* Base styles for both sides - NO backface-visibility used! */
    .flip-card-front, .flip-card-back {
      position: absolute; 
      inset: 0; 
      width: 100%;
      border-radius: var(--r-xl);
      background: rgba(255,255,255,0.99);
      border: 1px solid var(--line);
      transition: opacity 0.3s ease, visibility 0.3s ease;
    }

/* 1. FRONT SIDE (Visible by default) */
.flip-card-front {
  transform: rotateY(0deg);
  z-index: 2;
  opacity: 1;
  visibility: visible;
}

/* 2. BACK SIDE (Hidden by default, pre-rotated so it isn't mirrored) */
.flip-card-back { 
  display: flex; 
  flex-direction: column; 
  padding: 1.5rem; 
  gap: 1rem; 
  z-index: 1;
  opacity: 0;
  visibility: hidden;
}

/* 3. WHEN FLIPPED: Hide the Front */
.flip-card.flipped .flip-card-front {
  opacity: 0;
  visibility: hidden;
  z-index: 1;
}

/* 4. WHEN FLIPPED: Show the Back */
.flip-card.flipped .flip-card-back {
  opacity: 1;
  visibility: visible;
  z-index: 2;
}

    .valetFormFront form {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 1.1rem;
      padding: 1.75rem;
    }

    .form-group { display: flex; flex-direction: column; gap: 0.4rem; }

    .valetFormFront .form-group label {
      font-size: 0.75rem; font-weight: 700; letter-spacing: 0.05em;
      text-transform: uppercase; color: var(--ink-3);
    }

    .valetFormFront input, #finalPrice2 {
      width: 100%; min-height: 3rem;
      padding: 0.75rem 0.9rem;
      font-family: 'DM Sans', sans-serif;
      font-size: 0.95rem;
      border: 1.5px solid var(--line);
      border-radius: var(--r-sm);
      background: var(--soft);
      color: var(--ink);
      transition: border-color 0.14s, box-shadow 0.14s;
    }
    .valetFormFront input:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(74,174,88,0.12); background: white; }
    .valetFormFront input[readonly]:focus { box-shadow: none; border-color: var(--line); }

    #telefon-group, #email-group { grid-column: span 2; }
    #jmeno-group, #model-group, #pas-count-group { grid-column: span 4; }

    #cena-dnu-wrapper {
      display: flex; align-items: center; justify-content: center; gap: 1rem;
      grid-column: span 2; grid-row: span 2;
      padding: 1rem; border-radius: var(--r-lg);
      background: linear-gradient(135deg, #f0fdf4, #ecfdf5);
      border: 1.5px solid rgba(74,174,88,0.18);
    }
    #cena-dnu-wrapper div { display: flex; flex-direction: column; width: 100%; }
    #cena-dnu-wrapper .form-group label { color: var(--green-dark); }
    #cena-dnu-wrapper input { text-align: center; background: white; border-color: rgba(74,174,88,0.2); font-weight: 700; color: var(--green-dark); }

    .valetFormFront .next-button-container {
      grid-column: span 4;
      display: flex; justify-content: center;
      padding-top: 0.25rem;
    }

    .next-button {
      display: inline-flex; align-items: center; justify-content: center;
      min-width: 160px; min-height: 50px; padding: 0 1.5rem;
      border: none; border-radius: var(--r-md);
      background: linear-gradient(135deg, var(--green), var(--green-dark));
      color: white;
      font-family: 'DM Sans', sans-serif;
      font-weight: 700; font-size: 1rem;
      cursor: pointer;
      box-shadow: var(--shadow-green);
      transition: transform 0.14s var(--ease), box-shadow 0.14s;
    }
    .next-button:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(74,174,88,0.4); }

    .valetForm { 
      display: flex; 
      flex-direction: column; 
      gap: 0.75rem; 
      flex: 1; 
      overflow-y: auto; 
      -webkit-transform: translateZ(0);
      transform: translateZ(0);
    }
    .valetForm::-webkit-scrollbar { width: 4px; }
    .valetForm::-webkit-scrollbar-thumb { background: var(--line); border-radius: 4px; }

    .checkbox-container-default,
    .fixparking-checkboxes,
    .prgparking-checkboxes,
    .hostparking-checkboxes,
    .unavailable-services-box {
      background: rgba(255,255,255,0.85);
      border: 1px solid var(--line);
      border-radius: var(--r-lg);
      padding: 1rem;
    }

    .valetForm label, .checkbox-container {
      display: flex; align-items: flex-start; gap: 0.75rem; padding: 0.2rem 0;
      cursor: pointer;
    }

    .valetForm input[type="checkbox"] {
      margin: 0.35rem 0 0; accent-color: var(--green);
      transform: scale(1.2); flex-shrink: 0;
    }

    .valetForm .label-text {
      width: 100%;
      padding: 0.75rem 1rem;
      border-radius: var(--r-sm);
      background: var(--soft);
      border: 1px solid var(--line);
      font-size: 0.88rem;
      line-height: 1.55;
      color: var(--ink);
      transition: background 0.14s, border-color 0.14s;
    }
    .valetForm label:hover .label-text { background: var(--green-light); border-color: rgba(74,174,88,0.3); }

    .services-note { text-align: center; color: var(--ink-3); font-size: 0.85rem; font-weight: 600; }

    .unavailable-services-box { max-height: 16rem; overflow-y: auto; }
    .unavailable-services-box ul { list-style: none; }
    .unavailable-services-box .label-text { opacity: 0.5; cursor: not-allowed; }

    .consent-row .label-text { background: rgba(255,245,245,0.9); }

    .form-finish {
      display: flex; flex-direction: column; gap: 1rem;
      align-self: center; width: min(500px,100%);
      margin-top: auto;
    }

    .finalPrice2-container { display: flex; flex-direction: column; align-items: center; }
    .finalPrice2-container label { margin-bottom: 0.5rem; color: var(--green-dark); font-weight: 700; font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.05em; }
    .finalPrice2-container input { text-align: center; width: 100%; min-height: 3.25rem; font-size: 1.05rem !important; font-weight: 800 !important; color: var(--green-dark) !important; border-color: rgba(74,174,88,0.25) !important; background: var(--green-pale) !important; }

    #finalPrice2 { font-family: 'DM Sans', sans-serif; }

    .back-send-button-container {
      display: flex; gap: 1rem; justify-content: center; flex-wrap: wrap;
    }
    .back-send-button-container input[type="submit"] {
      display: inline-flex; align-items: center; justify-content: center;
      min-width: 140px; min-height: 50px; padding: 0 1.5rem;
      border: none; border-radius: var(--r-md);
      background: linear-gradient(135deg, var(--green), var(--green-dark));
      color: white;
      font-family: 'DM Sans', sans-serif;
      font-weight: 700; font-size: 1rem;
      cursor: pointer; box-shadow: var(--shadow-green);
      transition: transform 0.14s, box-shadow 0.14s;
    }
    .back-send-button-container input[type="submit"]:hover { transform: translateY(-2px); }

    #contact-background {
      z-index: 999; opacity: 0;
      width: 340px; max-width: calc(100vw - 2rem);
      padding: 1.25rem;
      background: rgba(255,255,255,0.97);
      border: 1px solid var(--line);
      border-radius: var(--r-xl);
      position: fixed; right: 1rem; top: 5.5rem;
      box-shadow: var(--shadow-lg);
      backdrop-filter: blur(12px);
    }
    .infolink-title { margin: 0 0 1rem; font-size: 1.1rem; font-weight: 700; }
    #close { background-image: url(/assets/close-x.svg); position: absolute; width: 1.5rem; height: 1.5rem; background-size: contain; background-position: center; background-repeat: no-repeat; display: block; cursor: pointer; top: 1rem; right: 1rem; }
    #contact-form { display: grid; gap: 0.75rem; grid-template-columns: 1fr 1fr; }
    #contact-form input[type="text"], #contact-form input[type="email"] { grid-column: span 1; padding: 0.75rem; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--soft); font-family: 'DM Sans', sans-serif; font-size: 0.9rem; width: 100%; }
    #contact-form textarea { grid-column: span 2; min-height: 6rem; padding: 0.75rem; border: 1.5px solid var(--line); border-radius: var(--r-sm); background: var(--soft); font-family: 'DM Sans', sans-serif; font-size: 0.9rem; resize: vertical; }
    #contact-form input:focus, #contact-form textarea:focus { outline: none; border-color: var(--green); box-shadow: 0 0 0 3px rgba(74,174,88,0.1); background: white; }
    #contact-form-submit { grid-column: span 2; width: 100%; height: 2.75rem; margin-top: 0.25rem; border: none; border-radius: var(--r-md); background: linear-gradient(135deg, var(--green), var(--green-dark)); color: white; font-family: 'DM Sans', sans-serif; font-weight: 700; font-size: 0.9rem; cursor: pointer; box-shadow: var(--shadow-green); transition: transform 0.14s; }
    #contact-form-submit:hover { transform: translateY(-1px); }

    footer { margin-top: 3rem; }
    .footer-content {
      display: grid; grid-template-columns: 1fr auto 1fr;
      align-items: center; gap: 1rem;
      padding: 1.25rem 2rem;
      background: rgba(255,255,255,0.92);
      border-top: 1px solid var(--line);
    }
    #footer-logo { grid-column: 2; width: 9rem; justify-self: center; }
    .copyright { grid-column: 1; text-align: center; font-size: 0.82rem; color: var(--ink-3); }
    .footer-nav { grid-column: 3; text-align: center; }
    .footer-link { color: var(--green-dark); margin: 0 0.75rem; font-weight: 700; font-size: 0.85rem; transition: color 0.14s; }
    .footer-link:hover { text-decoration: underline; }

    .modal-parking-header {
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 1.25rem 1.75rem 0;
      border-bottom: 1px solid var(--line);
      padding-bottom: 1rem;
      margin-bottom: 0;
      background: linear-gradient(135deg, rgba(247,250,248,0.9), rgba(255,255,255,1));
      border-radius: var(--r-xl) var(--r-xl) 0 0;
    }

    .modal-parking-header-inner {
      display: flex;
      flex-direction: column;
      gap: 0.2rem;
    }

    .modal-parking-kicker {
      font-size: 0.72rem;
      font-weight: 700;
      text-transform: uppercase;
      letter-spacing: 0.08em;
      color: var(--ink-3);
    }

    .modal-parking-name {
      font-family: 'DM Serif Display', Georgia, serif;
      font-size: 1.6rem;
      font-weight: 400;
      line-height: 1.1;
      color: var(--brand-color, var(--green-dark));
    }

    .modal-step-indicator {
      display: flex;
      align-items: center;
      gap: 0.4rem;
    }

    .modal-step {
      width: 32px; height: 32px;
      border-radius: 50%;
      display: flex; align-items: center; justify-content: center;
      font-size: 0.8rem; font-weight: 800;
      background: var(--soft);
      color: var(--ink-3);
      border: 2px solid var(--line);
      transition: background 0.2s, color 0.2s, border-color 0.2s;
    }

    .modal-step.active {
      background: var(--green);
      color: white;
      border-color: var(--green);
    }

    .modal-step-line {
      width: 28px; height: 2px;
      background: var(--line);
      border-radius: 2px;
    }

    @keyframes fadeUp { from{opacity:0;transform:translateY(20px)} to{opacity:1;transform:translateY(0)} }

    @media (max-width: 900px) {
      .parkings-grid { grid-template-columns: 1fr; }
      .parking-info-open { grid-template-columns: 1fr; }
    }

    @media (max-width: 768px) {
      .nav { padding: 0 1.25rem; }
      .nav-links {
        display: none; position: fixed; top: 68px; left: 0; right: 0;
        background: white; flex-direction: column;
        padding: 1rem; border-bottom: 1px solid var(--line);
        gap: 0.25rem; z-index: 199;
      }
      .nav-links.open { display: flex; }
      .nav-links a { padding: 0.75rem 1rem; border-radius: var(--r-sm); font-size: 0.95rem; }
      .nav-burger { display: flex; }

      .search-card { grid-template-columns: 1fr; gap: 1rem; padding: 1.5rem; }
      #search-button { width: 100%; }

      .parking-card-topline { flex-direction: column; }
      .box-price { width: 100%; max-width: 160px; }
      .parking-card-footer { flex-direction: column; align-items: stretch; }
      .box-button { width: 100%; justify-content: center; }

      .flip-card-container {
        padding: 0 !important;
        align-items: flex-end !important;  
        background: rgba(14, 20, 36, 0.55) !important;
      }

      .flip-card-container::before {
        backdrop-filter: none !important;
        -webkit-backdrop-filter: none !important;
        background: rgba(14, 20, 36, 0.55) !important;
      }

      .flip-card {
        width: 100% !important;
        max-height: 95vh;
        margin: 0 !important;
        border-radius: 20px 20px 0 0 !important;
        overflow-y: auto !important; /* Changed from hidden to auto */
        overflow-x: hidden !important;
        transform-style: flat !important;   
        perspective: none !important;
      }

      .flip-card-inner {
        transform-style: flat !important;
        transition: none !important;
        min-height: auto !important;
        position: relative;
        height: max-content; /* Let it grow naturally so the parent card scrolls */
        background: #ffffff;
        border-radius: 20px 20px 0 0;
      }
      
      /* Disable the nested scroll trap on mobile so the whole card flows smoothly */
      .valetForm {
        overflow-y: visible !important; 
        height: auto !important;
      }

      .flip-card-front,
      .flip-card-back {
        position: relative !important;
        inset: auto !important;
        background: #ffffff !important;
        border-radius: 0 !important;
        box-shadow: none !important;
        border: none !important;
        backface-visibility: visible !important;
        transform: none !important;
      }

      .flip-card-back {
        display: none !important;
      }

      .flip-card.flipped .flip-card-front {
        display: none !important;
      }
      .flip-card.flipped .flip-card-back {
        display: flex !important;
        transform: none !important;
      }
      .flip-card.flipped .flip-card-inner {
        transform: none !important;
      }

      .modal-parking-header {
        padding: 1rem 1.25rem 0.75rem;
        border-radius: 20px 20px 0 0;
        background: white;
      }
      .modal-parking-name { font-size: 1.3rem; }

      .valetFormFront form {
        grid-template-columns: 1fr 1fr !important;
        padding: 1rem 1.25rem 1.5rem !important;
        gap: 0.85rem !important;
      }
      #startDate-group, #endDate-group { grid-column: span 1; }
      #arriveTime-group, #DepartureTime-group { grid-column: span 1; }
      #cena-dnu-wrapper { grid-column: span 2 !important; grid-row: span 1 !important; flex-direction: row !important; }
      #telefon-group, #email-group { grid-column: span 1; }
      #jmeno-group, #model-group, #pas-count-group { grid-column: span 2; }
      .valetFormFront .next-button-container { grid-column: span 2; }

      .modal-close-btn {
        top: auto !important;
        bottom: calc(95vh + 8px) !important;
        right: 12px !important;
        background: white !important;
      }

      .carousel-prev, .carousel-next { display: none; }

      .footer-content { grid-template-columns: 1fr; text-align: center; }
      #footer-logo, .copyright, .footer-nav { grid-column: 1; }
    }

    @media (max-width: 480px) {
      .search-hero h1 { font-size: 1.9rem; }
      .parking-card-name { font-size: 1.5rem; }
      .valetFormFront form {
        grid-template-columns: 1fr !important;
      }
      #startDate-group, #endDate-group,
      #arriveTime-group, #DepartureTime-group,
      #cena-dnu-wrapper, #telefon-group, #email-group,
      #jmeno-group, #model-group, #pas-count-group,
      .valetFormFront .next-button-container {
        grid-column: span 1 !important;
      }
    }