/*
Theme Name: Hello Elementor Child
Theme URI: https://elementor.com/
Description: Child téma pre Hello Elementor – PZ Car
Author: Cityprint s.r.o.
Author URI: https://cityprint.sk
Template: hello-elementor
Version: 1.0
Text Domain: hello-elementor-child
*/

.vozidla-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 20px;
}

.vozidlo {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 10px;
  padding: 15px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.08);
  transition: all 0.2s ease-in-out;
}

.vozidlo:hover {
  transform: translateY(-3px);
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
}

.vozidlo .thumb img {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
}

.vozidlo-gallery {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 10px;
}

.vozidlo-gallery img {
  width: 60px;
  height: 60px;
  object-fit: cover;
  border-radius: 5px;
  border: 1px solid #ddd;
}
/* ===========================
   PZCAR – GALÉRIA V EDITÁCII
   =========================== */

/* Wrapper pre jednu fotku */
.pzcar-gallery-thumb {
    position: relative;
    display: inline-block;
    margin: 6px;
}

/* Kontajner pre ikony */
.pzcar-gallery-thumb .photo-actions {
    position: absolute;
    top: 6px;
    right: 6px;
    display: flex;
    gap: 6px;
    z-index: 10;
}

/* Krížik – odstránenie fotky */
.pzcar-gallery-thumb .remove-preview {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #d9534f;        /* červený podklad */
    color: #ffffff;             /* biely krížik */
    width: 22px;
    height: 22px;
    border-radius: 50%;         /* kruh */
    font-weight: bold;
    cursor: pointer;
    font-size: 15px;
    line-height: 1;
    border: 2px solid white;
    box-shadow: 0 1px 4px rgba(0,0,0,0.25);
    transition: 0.2s ease;
}

.pzcar-gallery-thumb .remove-preview:hover {
    background: #c9302c;         /* tmavšia červená */
    transform: scale(1.1);
}

/* Nastavenie hlavnej fotky – hviezdička */
.pzcar-gallery-thumb .set-main {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ffeb3b;         /* žltá */
    color: #222;
    width: 22px;
    height: 22px;
    border-radius: 50%;
    cursor: pointer;
    font-size: 14px;
    border: 2px solid white;
    transition: 0.2s ease;
}

.pzcar-gallery-thumb .set-main:hover {
    transform: scale(1.1);
}

/* Označenie hlavnej fotky */
.pzcar-gallery-thumb.main-photo {
    outline: 3px solid #ffeb3b;
    border-radius: 6px;
}

/* ==========================
   PZCAR – LIGHTBOX NA DETAILI VOZIDLA
   ========================== */

.pzcar-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    inset: 0;
    background: rgba(0,0,0,0.85);
    justify-content: center;
    align-items: center;
    padding: 20px;
}

.pzcar-lightbox.open {
    display: flex;
}

.pzcar-lightbox img {
    max-width: 95%;
    max-height: 95%;
    border-radius: 10px;
    box-shadow: 0 0 25px rgba(0,0,0,0.5);
}

.pzcar-lightbox-close {
    position: absolute;
    top: 20px;
    right: 30px;
    font-size: 40px;
    font-weight: bold;
    color: #fff;
    cursor: pointer;
    transition: 0.2s;
}

.pzcar-lightbox-close:hover {
    color: #ff6666;
    transform: scale(1.1);
}
