/*
Theme Name: Brzi Oglasi Safe Child
Theme URI: https://brzioglasi.com/
Description: Safe child theme update for Brzi Oglasi. Fixes single ad critical error and improves gallery/card layout while keeping the parent theme intact.
Author: Brzi Oglasi
Template: brzioglasi-theme
Version: 1.0.0
Text Domain: brzioglasi-safe-child
*/

:root{
  --bo-navy:#071d33;
  --bo-orange:#ff5a00;
  --bo-soft:#f3f8fc;
  --bo-border:rgba(15,23,42,.10);
}

/* Safe single ad page polish */
.bo-safe-single-wrap{
  display:grid;
  grid-template-columns:minmax(0,1fr) 360px;
  gap:28px;
  align-items:start;
}

.bo-safe-card{
  background:#fff;
  border:1px solid var(--bo-border);
  border-radius:26px;
  box-shadow:0 18px 44px rgba(15,23,42,.08);
}

.bo-safe-pad{padding:26px;}

.bo-safe-gallery{
  padding:14px;
  overflow:hidden;
}

.bo-safe-main-image{
  position:relative;
  display:block;
  border-radius:20px;
  overflow:hidden;
  background:#eef4f8;
}

.bo-safe-main-image img{
  display:block!important;
  width:100%!important;
  height:auto!important;
  max-height:620px!important;
  object-fit:contain!important;
  background:#eef4f8;
  border-radius:20px!important;
}

.bo-safe-zoom{
  position:absolute;
  right:14px;
  bottom:14px;
  display:inline-flex;
  align-items:center;
  justify-content:center;
  gap:6px;
  background:rgba(15,23,42,.82);
  color:#fff;
  border-radius:999px;
  padding:8px 13px;
  font-size:13px;
  font-weight:800;
  line-height:1;
  box-shadow:0 8px 18px rgba(0,0,0,.20);
}

.bo-safe-thumbs{
  display:grid;
  grid-template-columns:repeat(auto-fill,minmax(120px,1fr));
  gap:12px;
  margin-top:14px;
}

.bo-safe-thumb{
  display:block;
  overflow:hidden;
  border-radius:15px;
  border:2px solid transparent;
  background:#eef4f8;
  cursor:pointer;
}

.bo-safe-thumb:first-child,
.bo-safe-thumb:hover{
  border-color:var(--bo-orange);
}

.bo-safe-thumb img{
  display:block!important;
  width:100%!important;
  height:90px!important;
  object-fit:cover!important;
  border-radius:13px!important;
}

.bo-safe-desc{
  margin-top:22px;
  font-size:18px;
  line-height:1.75;
  color:#415064;
}

.bo-safe-desc h2,
.bo-safe-contact h2{
  margin:0 0 16px;
  font-size:34px;
  line-height:1.08;
  color:#0f172a;
}

.bo-safe-desc p{
  margin:0 0 16px;
}

.bo-safe-contact{
  position:sticky;
  top:96px;
}

.bo-safe-price{
  color:var(--bo-orange);
  font-size:42px;
  font-weight:900;
  line-height:1;
  margin:8px 0 18px;
}

.bo-safe-meta{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
  margin:0 0 18px;
}

.bo-safe-pill{
  display:inline-flex;
  align-items:center;
  gap:6px;
  padding:9px 13px;
  border:1px solid var(--bo-border);
  border-radius:999px;
  background:#f8fbfd;
  color:#334155;
  font-weight:800;
}

.bo-safe-security{
  background:#fff7ed;
  border:1px solid rgba(255,90,0,.18);
  border-radius:18px;
  padding:14px;
  margin:16px 0;
  color:#334155;
  font-weight:700;
}

.bo-safe-btn{
  display:flex!important;
  width:100%;
  align-items:center;
  justify-content:center;
  text-align:center;
  text-decoration:none!important;
  border-radius:16px;
  padding:15px 18px;
  margin-top:12px;
  font-weight:900;
  border:1px solid transparent;
}

.bo-safe-btn-primary{
  background:linear-gradient(135deg,#ff7a00,#ff3d00);
  color:#fff!important;
  box-shadow:0 14px 28px rgba(255,90,0,.22);
}

.bo-safe-btn-secondary{
  background:#fff;
  color:#0f172a!important;
  border-color:var(--bo-border);
}

.bo-safe-share{
  margin-top:18px;
  padding:16px;
  background:#f8fbfd;
  border:1px solid var(--bo-border);
  border-radius:20px;
}

.bo-safe-share-title{
  font-size:20px;
  font-weight:900;
  margin-bottom:12px;
  color:#0f172a;
}

.bo-safe-share-row{
  display:flex;
  flex-wrap:wrap;
  gap:10px;
}

.bo-safe-share-row a{
  width:42px;
  height:42px;
  border-radius:999px;
  background:#fff;
  border:1px solid var(--bo-border);
  display:inline-flex;
  align-items:center;
  justify-content:center;
  text-decoration:none!important;
  color:#0f172a;
  font-weight:900;
  box-shadow:0 6px 14px rgba(15,23,42,.06);
}

.bo-safe-report{
  margin-top:16px;
  border:1px solid var(--bo-border);
  border-radius:18px;
  padding:0;
  overflow:hidden;
  background:#fff;
}

.bo-safe-report summary{
  cursor:pointer;
  padding:14px 16px;
  font-weight:900;
  color:#0f172a;
}

.bo-safe-report form{
  padding:0 16px 16px;
}

.bo-safe-report label{
  display:block;
  margin-top:12px;
  font-weight:800;
  color:#334155;
}

.bo-safe-report select,
.bo-safe-report input,
.bo-safe-report textarea{
  width:100%;
  box-sizing:border-box;
  margin-top:6px;
  border:1px solid var(--bo-border);
  border-radius:14px;
  padding:12px;
  font:inherit;
}

.bo-safe-related{
  margin-top:18px;
}
.bo-safe-related .bo-safe-explore{
  margin-bottom:18px;
}
.bo-safe-related .bo-ad-context-links{
  margin:0;
  padding:14px 16px;
}
.bo-safe-related > h2{
  font-size:34px;
  line-height:1.15;
  margin:0 0 18px!important;
}

@media (max-width: 900px){
  .bo-safe-single-wrap{
    grid-template-columns:1fr;
    gap:18px;
  }
  .bo-safe-contact{
    position:static;
  }
}

@media (max-width: 768px){
  .bo-safe-pad{padding:20px;}
  .bo-safe-gallery{padding:10px;border-radius:22px;}
  .bo-safe-main-image{border-radius:16px;}
  .bo-safe-main-image img{
    max-height:430px!important;
    border-radius:16px!important;
  }
  .bo-safe-thumbs{
    grid-template-columns:repeat(2,1fr);
    gap:10px;
  }
  .bo-safe-thumb img{
    height:106px!important;
  }
  .bo-safe-desc{
    font-size:17px;
    line-height:1.7;
    margin-bottom:0;
  }
  .bo-safe-desc + .bo-safe-contact,
  .bo-safe-contact + .bo-safe-related{
    margin-top:18px;
  }
  .bo-safe-desc h2,
  .bo-safe-contact h2{
    font-size:32px;
  }
  .bo-safe-related{
    padding:16px!important;
    margin-top:14px;
  }
  .bo-safe-related .bo-safe-explore{
    margin-bottom:16px;
  }
  .bo-safe-related .bo-ad-context-links{
    padding:14px;
    gap:8px;
    border-radius:14px;
  }
  .bo-safe-related > h2{
    font-size:30px;
    line-height:1.15;
    margin-bottom:16px!important;
  }
  .bo-safe-price{
    font-size:42px;
  }
  .bo-safe-zoom{
    right:10px;
    bottom:10px;
    font-size:12px;
    padding:7px 11px;
  }
}
/* Desktop typography polish for single ad */@media (min-width: 901px) {  .bo-page-hero.bo-ad-hero h1 {    font-size: 42px !important;    line-height: 1.12 !important;    max-width: 820px !important;    letter-spacing: -0.02em !important;  }  .bo-page-hero.bo-ad-hero {    padding-top: 54px !important;    padding-bottom: 34px !important;  }  .bo-safe-desc h2,  .bo-safe-contact h2 {    font-size: 30px !important;    line-height: 1.15 !important;  }  .bo-safe-desc {    font-size: 17px !important;    line-height: 1.65 !important;  }  .bo-safe-price {    font-size: 34px !important;  }  .bo-safe-main-image img {    max-height: 520px !important;  }  .bo-safe-thumb img {    height: 82px !important;  }  .bo-safe-zoom {    font-size: 12px !important;    padding: 7px 11px !important;  }}
/* Fix oversized "Klikni za veću sliku" labels on desktop gallery */@media (min-width: 901px) {  .bo-safe-gallery a span,  .bo-safe-gallery .bo-gallery-link span,  .bo-safe-gallery .bo-safe-thumb span,  .bo-safe-gallery .bo-safe-main-image span:not(.bo-safe-zoom) {    display: none !important;  }  .bo-safe-thumb::after,  .bo-gallery-link::after {    display: none !important;    content: none !important;  }  .bo-safe-thumb .bo-safe-zoom,  .bo-safe-thumb .bo-gallery-zoom-icon,  .bo-safe-thumb [class*="zoom"],  .bo-safe-thumb [class*="lightbox"] {    display: none !important;  }  .bo-safe-main-image .bo-safe-zoom {    display: inline-flex !important;    font-size: 12px !important;    padding: 7px 11px !important;    right: 12px !important;    bottom: 12px !important;  }}
/* Remove old gallery plugin "Klikni za veću sliku" overlay text */.bo-gallery-link::before,.bo-gallery-link::after,.bo-gallery-link *::before,.bo-gallery-link *::after,.bo-thumbs a::before,.bo-thumbs a::after,.bo-thumbs a *::before,.bo-thumbs a *::after,.bo-safe-gallery a::before,.bo-safe-gallery a::after,.bo-safe-gallery a *::before,.bo-safe-gallery a *::after {  content: none !important;  display: none !important;  opacity: 0 !important;  visibility: hidden !important;}/* Hide visible text badges inside gallery thumbnails */.bo-gallery-link span,.bo-gallery-link em,.bo-gallery-link small,.bo-gallery-link strong,.bo-thumbs span,.bo-thumbs em,.bo-thumbs small,.bo-thumbs strong {  display: none !important;  opacity: 0 !important;  visibility: hidden !important;  font-size: 0 !important;}/* Keep only our main Uvećaj button if needed */.bo-safe-main-image .bo-safe-zoom {  display: inline-flex !important;  opacity: 1 !important;  visibility: visible !important;  font-size: 12px !important;}/* If plugin uses dark pill as background element, hide it on thumbnails */.bo-thumbs [class*="zoom"],.bo-thumbs [class*="lightbox"],.bo-thumbs [class*="caption"],.bo-thumbs [class*="badge"],.bo-thumbs [class*="label"],.bo-safe-thumbs [class*="zoom"],.bo-safe-thumbs [class*="lightbox"],.bo-safe-thumbs [class*="caption"],.bo-safe-thumbs [class*="badge"],.bo-safe-thumbs [class*="label"] {  display: none !important;}