/* ============================================================================
   navs/css/tiles/tiles.css
   ----------------------------------------------------------------------------
   JEDYNE źródło stylów kafli wydarzeń (opodal.com). Podpinany przez KAŻDĄ
   podstronę renderującą kafle: index.php, ListOfEvents.php, przyszłe.

   WIERNE odwzorowanie wyglądu karty z index.php. Reguły pochodzą 1:1 z:
     • css/KafleSearch.css  → .wrap .Slab .SlabDesc .When .Where .FarAway
                               .ltle/.Itle .tinfo table .Slab img
     • css/gallery.css      → #gallery (obraz + link + hover)
     • index.php <style> inline → override .SlabDesc {z-index:20} + .smenu

   Ścieżki obrazów względne od TEGO pliku (navs/css/tiles/) → ../../img/...
   ============================================================================ */

* { box-sizing: border-box; }

/* =========================== KafleSearch.css =============================== */
.wrap {
    position: relative;
    float: left;
    min-width: 100%;
    margin: 0;
    padding: 0;
    text-decoration: none;
    color: white;
}
.Slab {
    background-color: #f9cf00;
    font-size: 16px;
    font-weight: 600;
    color: #202224;
    text-align: center;
    border: 2px solid #f9cf00;
    text-decoration: none;
    height: 380px;
    position: relative;
    overflow: hidden;
    padding: 0;
    margin: 0;
    border-radius: 20px;
}
.SlabDesc {
    font-family: 'Open Sans', sans-serif;
    background-color: #3b3b3b38;
    font-size: 13px;
    font-weight: 500;
    color: white;
    text-align: left;
    margin: 0;
    padding: 25px 5px 5px 5px;
    position: absolute;
    bottom: 1px;
    width: calc(100% - 0px);
    height: 80px;
    transition: .5s ease;
    z-index: 1;
    opacity: 0.80;
    clip-path: polygon(210px 50px, 272px 30px, 100% 50px, 100% 100%, 0px 100%, 0px 50px);
    border-radius: 20px;
}
.SlabDesc:hover {
    height: 113%;
    background-color: #3b3b3b;
    opacity: 0.95;
    bottom: 1px;
}
.Slab img {
    width: 100%;
    height: 290px;
    position: relative;
    /* transition: height 2s; — usunięto: rozjeżdżało layout */
    object-fit: cover;
}
.opis {
    text-align: center;
    top: 26px;
    position: relative;
    color: black;
    font-size: 10px;
    font-weight: 400;
    background-image: linear-gradient(to top, rgba(255,255,255,0.4), rgba(255,255,255,0.1)) !important;
}
.When {
    color: black;
    line-height: 15px;
    position: absolute;
    top: -50px;
    left: -30px;
    width: 105px;
    height: 105px;
    border-radius: 50%;
    background: linear-gradient(135deg, #ffd400, #ffe85c);
    border: 3px solid rgba(255,255,255,0.9);
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: flex-end;
    padding: 10px;
    z-index: 5;
    text-align: center;
}
.When .when-date { font-size: 17px; font-weight: 700; line-height: 1; }
.When .when-time { font-size: 15px; font-weight: 700; margin-top: 6px; margin-right: 12px; }
.Where {
    background-color: red;
    font-size: 14px;
    position: absolute;
    right: -1px;
    top: 71%;
    min-width: 150px;
    max-width: 350px;
    padding: 2px 90px 2px 5px;
    min-height: 30px;
    height: auto;
    color: white;
    line-height: 26px;
    border-radius: 50px 0 0 50px;
    transform-origin: top right;
    z-index: 1;
}
.FarAway {
    background-color: white;
    color: red;
    font-size: 12px;
    position: absolute;
    right: -1px;
    top: 72.5%;
    width: 80px;
    height: 18px;
    line-height: 26px;
    border-radius: 50px 0 0 50px;
    z-index: 1;
    display: flex;
    justify-content: center;
    align-items: center;
}
table {
    font-family: 'Open Sans', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #ffffffb7;
    text-align: left;
    border-bottom: 0;
    min-width: 100%;
}
table tr td {
    padding: 1px 2px 1px 4px;
    line-height: 12px;
    color: #ffffffb7;
    text-align: left;
    height: 40px;
}
table tr td img {
    width: 27px !important;
    height: 27px !important;
    vertical-align: middle;
    text-align: center;
    font-size: 12px;
}
.Itle, .ltle {
    height: 46px;
    display: flex;
    justify-content: center;
    align-items: center;
    line-height: 1.1;
    background-image: linear-gradient(to bottom, rgba(255,255,255,0.4), rgba(255,255,255,0.1)) !important;
}
.tinfo {
    text-align: right;
    position: absolute;
    z-index: 20;
    top: 36px;
    right: 45px;
}

/* =============================== gallery.css ================================ */
#gallery, .gallery {
    background-image: linear-gradient(to top, rgba(255,255,255,0.9), rgba(255,255,255,0.4));
    overflow: hidden;
    position: relative;
    z-index: 0;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}
#gallery > a, .gallery > a {
    opacity: 0;
    position: absolute;
    color: #202224;
    font-size: 34px;
    text-shadow: 0 -1px 5px #fff, -1px 0 5px #fff, 0 1px 5px #fff, 1px 0 5px #fff;
    transition: filter .6s ease;
    display: flex;
    justify-content: center;
    align-items: center;
    text-decoration: none;
}
#gallery > img, .gallery > img {
    height: 290px;
    min-width: 100%;
    transition: filter .6s ease;
    text-decoration: none;
    position: relative;
    overflow: hidden;
    object-fit: cover;
}
#gallery:hover img, .gallery:hover img { filter: blur(4px); }
#gallery:hover a,   .gallery:hover a   { opacity: 1 !important; border: 0; }

/* ===================== index.php <style> inline (patch) ==================== */
.SlabDesc { position: absolute; z-index: 20; }

.smenu {
    position: absolute;
    z-index: 41;
    width: 50px;
    height: 50px;
    top: 0;
    right: 0;
    transform: none;
    margin: 0;
    padding: 6px 8px;
    cursor: pointer;
    border-radius: 0 20px 0 50px;
    background: linear-gradient(135deg, #ffd400, #ffe85c);
    border: 3px solid rgba(255,255,255,0.95);
    display: flex;
    gap: 6px;
    box-shadow: 0 6px 14px rgba(0,0,0,0.12);
}
.smenu.open { z-index: 999999; }
.smenu::before {
    content: "";
    position: absolute;
    z-index: 21;
    width: 30px;
    height: 30px;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%) rotate(0deg);
    background: url('../../img/events/tile/share.png') center/contain no-repeat;
    transition: .2s ease;
    pointer-events: none;
}
.smenu.open::before { transform: translate(-70%, -80%) rotate(45deg) scale(2); }
.smenu .button {
    width: 46px;
    height: 46px;
    padding: 0;
    border-radius: 50%;
    cursor: pointer;
    position: absolute !important;
    bottom: 0;
    right: 0;
    opacity: 0;
    pointer-events: none;
    z-index: 20;
    background-color: #fff;
    background-repeat: no-repeat;
    background-position: center;
    background-size: cover;
    transition: .2s cubic-bezier(.18,.89,.32,1.28), .2s ease opacity;
    box-shadow: 0 0 0 2px #ffd400, 0 6px 14px rgba(0,0,0,0.12) !important;
}
.smenu .button:hover { transform: scale(1.5); opacity: 1; border: 0 !important; box-shadow: 0 0 !important; }
.smenu .button:first-of-type      { background-image: url('../../img/events/tile/x_b.png'); }
.smenu .button:nth-of-type(2)     { background-image: url('../../img/events/tile/insta_b.png'); }
.smenu .button:nth-of-type(3)     { background-image: url('../../img/events/tile/wapp_b.png'); }
.smenu .button:nth-of-type(4)     { background-image: url('../../img/events/tile/fb_b.png'); }
.smenu .button:nth-of-type(5)     { background-image: url('../../img/events/tile/email2_b.png'); }
.smenu .button:last-of-type       { background-image: url('../../img/events/tile/link3_b.png'); }
.smenu .button:first-of-type:hover  { background-image: url('../../img/events/tile/x.svg'); }
.smenu .button:nth-of-type(2):hover { background-image: url('../../img/events/tile/insta.png'); }
.smenu .button:nth-of-type(3):hover { background-image: url('../../img/events/tile/wapp.png'); }
.smenu .button:nth-of-type(4):hover { background-image: url('../../img/events/tile/fb.png'); }
.smenu .button:nth-of-type(5):hover { background-image: url('../../img/events/tile/email2.png'); }
.smenu .button:last-of-type:hover   { background-image: url('../../img/events/tile/link3.png'); }
.smenu.open .button { opacity: 1; pointer-events: auto; background-color: #fff; z-index: 999999; }
.smenu.open .button:first-of-type  { bottom: 40px;  right: 70px;  }
.smenu.open .button:nth-of-type(2) { bottom: 80px;  right: 0;     transition-delay: .05s; }
.smenu.open .button:nth-of-type(3) { bottom: -80px; right: 0;     transition-delay: .1s;  }
.smenu.open .button:nth-of-type(4) { bottom: -40px; right: 70px;  transition-delay: .1s;  }
.smenu.open .button:nth-of-type(5) { bottom: -40px; right: -70px; transition-delay: .1s;  }
.smenu.open .button:last-of-type   { bottom: 40px;  right: -70px; transition-delay: .05s; }

/* ============================================================
   Poprawa elementu .tinfo (trójkąt "info") — interaktywny
   ============================================================ */
.tinfo {
    text-align: right;
    position: absolute;
    z-index: 20;
    top: 34px;
    right: auto;
    left: 245px;
    width: 65px;
    font-weight: 800;
    font-size: 12px;
    letter-spacing: .06em;
    color: #fff;
    text-shadow: 0 1px 4px rgba(0,0,0,.5);
    cursor: pointer;
    animation: tinfo-bob 2.4s ease-in-out infinite;
}
.tinfo::after {
    content: " ▲";
    font-size: 9px;
    color: #ffd400;
}
@keyframes tinfo-bob {
    0%,100% { transform: translateY(0); opacity: .85; }
    50%      { transform: translateY(-4px); opacity: 1; }
}
.SlabDesc:hover .tinfo { animation: none; opacity: 0; pointer-events: none; }

/* ============================================================
   Kafel reklamowy (widok kafli) — używane przez index.php
   ("Polecane wydarzenia") i ListOfEvents.php. Wspólne, żeby obie
   strony wyglądały tak samo — patrz includes/ads_shared.php.
   ============================================================ */
.op-ad-slab{
  position:relative;
  overflow:hidden;
  display:flex;
  align-items:center;
  justify-content:center;
  background:#fff;
  height:380px;
  border-radius:18px;
  border:2px solid #f9cf00;
}
.op-ad-badge{
  position:absolute;
  top:-15px;
  left:0px;
  z-index:30;
  width:70px;
  height:34px;
  border-radius:60%;
  background: linear-gradient(135deg, #ffd400, #ffe85c);
  border: 3px solid rgba(255,255,255,0.9);
  box-shadow: 0 6px 14px rgba(0,0,0,0.12);
  pointer-events:none;
}
.op-ad-badge-text{
  position:absolute;
  top:14px;
  left:8.5px;
  color:#000;
  font-size:9px;
  font-weight:700;
  letter-spacing:.01em;
  line-height:1;
}
.op-ad-slab .op-ad-fill{
  display:block;
  width:100%;
  height:100%;
  text-decoration:none;
}
.op-ad-slab img{
  width:100%;
  height:100%;
  object-fit:cover;
  display:block;
  transition:transform .35s ease;
}
.op-ad-fill:hover img{
  transform:scale(1.08);
}
.op-ad-empty{
  padding:28px;
  font-weight:800;
  color:#1f1f1f;
}
