.detail-layout {
  display: flex;
  flex-direction: column;   /* výchozí: sloupce pod sebou (na mobilu) */
  gap: 20px;                /* mezera mezi sloupci */
}

/* Sidebar */
.sidebar {
  width: 100%;              /* na mobilu zabírá celou šířku rodiče */
}

/* od určité šířky (tablet/desktop) přepneme do řádků */
@media (min-width: 768px) {
  .detail-layout {
    flex-direction: row;    /* vedle sebe */
    align-items: flex-start;
  }
  .detail-container {
    flex: 1;                /* hlavní obsah zabere zbytek prostoru */
  }
  .sidebar {
    flex: 0 0 300px;        /* přesně 300 px */
  }
}




.detail-container {
    max-width: 890px;
}

h1 {
    font-size: 24px;
    margin: 10px 0;
}

.carousel-container {
    position: relative;
    max-width: 800px;
    margin: 0 auto 20px;
    overflow: hidden;
}

.carousel-track {
    display: flex;
    transition: transform 0.3s ease-in-out;
}

/* Každý slide má position relative, aby se .enlarge-icon dala umístit do rohu */
.carousel-slide {
    position: relative; 
    min-width: 100%;
    text-align: center;
}
.carousel-slide img {
    display: block;
    max-height: 400px;
    width: auto;
    margin: 0 auto;
    object-fit: cover;
}

@media only screen and (max-width: 768px) {
    .carousel-slide img {
        display: block;
        width: 100%;
        height: auto;
        max-height: 200px;
        margin: 0 auto;
        object-fit: contain;
    }
}

/* VŠECHNY ovládací šipky (carousel i modal) - sjednocený vzhled */
.carousel-arrow,
.modal-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1; /* zamezí dodatečnému svislému posunu */
    font-weight: bold;
    font-size: 2em;
    /* Zde děláme bílé pozadí s 30% krytím, tmavě hnědou barvu šipky */
    background-color: rgba(255, 255, 255, 0.5);
    color: #654321;
    width: 40px;  /* velikost čtverce */
    height: 40px;
    border-radius: 6px; /* lehce zakulacené rohy */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
}
.carousel-arrow:hover,
.modal-arrow:hover {
    background-color: rgba(255, 255, 255, 1); /* hover = plná bílá */
}

/* Konkrétně levá a pravá šipka v carouselu */
.carousel-arrow.left {
    left: 10px;
}
.carousel-arrow.right {
    right: 10px;
}

/* Lightbox */
.modal-overlay {
    position: fixed;
    display: none;
    top: 0; left: 0; right: 0; bottom: 0;
    background: rgba(0, 0, 0, 0.8);
    justify-content: center;
    align-items: center;
    z-index: 9999;
}
.modal-overlay.active {
    display: flex;
}
.modal-content {
    position: relative;
    max-width: 90%;
    max-height: 90%;
}
.modal-content img {
    max-width: 100%;
    max-height: 100%;
    display: block;
    margin: 0 auto;
}

/* Levá a pravá šipka v modalu */
.modal-arrow.left {
    left: 10px;
}
.modal-arrow.right {
    right: 10px;
}

/* Zavírací tlačítko vpravo nahoře (stejný styl – bílá s 30% opacitou, hnědá barva) */
.modal-close {
    position: absolute;
    top: 10px;
    right: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1; /* zamezí dodatečnému svislému posunu */
    font-size: 2em;
    color: #654321;
    background-color: rgba(255, 255, 255, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
}
.modal-close:hover {
    background-color: rgba(255, 255, 255, 1);
}

.inzerat-info {
    margin-top: 20px;
    margin-left: 10px;
    margin-right: 10px;
}
.inzerat-info p {
    margin: 5px 0;
    margin-top: 15px;
}

.inzerat-contact {
    margin-top: 30px;
    margin-left: 20px;
    margin-right: 10px;
} 
.inzerat-label {
    font-weight: bold;
}

.phone-wrapper {
    margin-top: 5px;
}
.phone-link {
    color: blue;
    text-decoration: underline;
    cursor: pointer;
}

/* Ikonka pro zvětšení v rohu každého slidu */
/* Ikonka pro zvětšení v rohu každého slidu */
.enlarge-icon {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 30px; 
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    font-size: 1.6em;
    background-color: rgba(255, 255, 255, 0.5);
    color: #654321;
    border-radius: 6px;
    cursor: pointer;
    user-select: none;
    transition: background-color 0.2s ease;
}

.enlarge-icon:hover {
    background-color: rgba(255, 255, 255, 1);
}

/* Pro max. šířku 1024px se .enlarge-icon skryje */
@media (max-width: 1024px) {
    .enlarge-icon {
        display: none !important;
    }
}


.share-print-container {
    margin-top: 20px;
    margin-left: 20px;
}

.share-print-container a {
    /* Pokud chcete mezeru mezi oběma ikonami */
    margin-right: 15px;
    text-decoration: none; /* případně, pokud nechcete podtržené odkazy */
}

/* Poslední ikona (tisk) už nebude mít margin-right, 
   pokud nechcete - existuje víc cest, jak to řešit.
   Třeba: .share-print-container a:last-child { margin-right: 0; } 
*/

/* Ikona samotná (obrázek) */
.icon-image {
    vertical-align: middle;
    width: 25px;  /* Zvýšená šířka (ikona bude větší) */
    height: auto; /* Zachová proporce podle SVG (nebo nastavte výšku pevně, např. 32px) */
}

.teldetail {
    display: inline-block;
    background-color: #ff5a00;
    font-weight: 300;
    color: #fff;
    min-width: 80px;   /* volitelné, aby mělo aspoň nějakou šířku */
    min-height: 20px;  /* výška tlačítka */
    padding: 5px 10px;
    margin-left: 8px;  /* lehká mezera za "Telefon:" */
    border-radius: 5px;
    box-sizing: border-box;
    border: none;      /* odstranění okraje */
    cursor: pointer;
    transition: background-color 0.3s ease;
    text-align: center;
    line-height: 1.2;
}

.teldetail:hover {
    background-color: #ff7b33; /* světlejší odstín */
}

.teldetail:focus {
    outline: none;    /* odstranění outline při kliku/fokusu */
}

/* Obal kontakt. formuláře */
.contact-form-wrapper {
    margin-top: 30px;
    margin-left: 10px;
    margin-right: 10px;
    background-color: #cedbfe;
    padding: 15px;
}

/* Úspěšná zpráva */
.message-ok {
    color: green;
}

/* Chybová zpráva */
.message-error {
    color: red;
}

/* Emailové pole */
.contact-form-wrapper input[type="email"] {
    width: 100%;
    max-width: 400px;
    min-height: 20px;
    padding: 5px;
}

/* Textarea */
.contact-form-wrapper textarea {
    width: 100%;
    max-width: 600px;
    padding: 5px;
}




