/* === MARKER VERSIUNE: 1707-2200 === */
/* === MARKER STADIU FUNCȚIONAL: 1707-2323 === */

/* === PIAȚA SFATULUI - STILURI MODERNE === */
* {
  box-sizing: border-box;
}

body {
  overflow-x: auto;
  max-width: none;
}

.page-content {
  width: 960px;
  text-align: left;
}

.page-navigation {
  margin-left: 5px;
  background: url(../images/line.jpg) repeat-y -150px 0px;
}

.page-navigation h1.mainwrapper {
  margin-left: 1%;
  background: url(../images/line.jpg) repeat-y -150px 0px;
}

.page-navigation h1.mainwrapper:nth-child(2) {
  margin-top: 1%;
  margin-bottom: 1%;
}

.page-title-main {
  margin-left: 1%;
  margin-top: 1%;
  margin-bottom: 1%;
  font-weight: bold;
  color: #003;
}

.gallery-container {
  margin-left: 0.5%;
  margin-top: 3%;
  margin-bottom: 15px;
  width: 100%;
  max-width: 738px;
  height: auto;
  min-height: 198px;
  text-align: left;
  vertical-align: baseline;
}

.gallery-container::after {
  content: "";
  display: table;
  clear: both;
}

.section-separator {
  clear: both;
  height: 25px;
  display: block;
  width: 100%;
  margin: 10px 0;
}

.gallery-figure {
  float: left;
  width: 170px;
  height: auto;
  min-height: 144px;
  padding: 0;
  margin-right: 9px;
}

/* Spațiere specială între miniatura live și prima imagine din galerie */
.live.gallery-figure + figure.gallery-figure {
  margin-left: 11px;
}

.panorama-container,
#iframeHolder {
  width: 720px !important;
  height: 331px !important;
  max-width: 720px !important;
  max-height: 331px !important;
  min-width: 720px !important;
  min-height: 331px !important;
  margin: 15px 0px 15px 5px !important;
  display: block !important;
  clear: both;
  position: relative;
  z-index: 1;
  padding: 0 !important;
  overflow: hidden !important;
  box-sizing: border-box !important;
}

.panorama-image,
#panotour-img {
  width: 720px !important;
  height: 331px !important;
  max-width: 720px !important;
  max-height: 331px !important;
  min-width: 720px !important;
  min-height: 331px !important;
  margin: 0 !important;
  padding: 0 !important;
  cursor: pointer;
  transition: transform 0.3s ease;
  display: block !important;
  border: none !important;
  background: transparent !important;
  box-sizing: border-box !important;
  object-fit: cover;
}

.panorama-image:hover,
#panotour-img:hover {
  transform: scale(1.02);
}

#iframe,
#iframeHolder iframe {
  width: 720px !important;
  height: 331px !important;
  max-width: 720px !important;
  max-height: 331px !important;
  min-width: 720px !important;
  min-height: 331px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: none !important;
  display: block !important;
  box-sizing: border-box !important;
}

.interaction-guide {
  width: 720px !important;
  max-width: 720px !important;
  height: auto !important;
  clear: both;
  display: block !important;
  margin: 3px 0px 3px 5px !important;
  padding: 2px !important;
  text-align: left !important;
  box-sizing: border-box !important;
}

.interaction-guide.image-info-M {
  height: auto !important;
  min-height: 20px;
}

.interaction-guide::after {
  content: "";
  display: table;
  clear: both;
}

.interaction-guide div:first-child {
  float: left;
  width: 20px;
  padding: 0px;
}

.interaction-guide div:nth-child(2) {
  float: left;
  width: 20px;
  padding: 2px;
}

.interaction-guide div:last-child {
  float: left;
  padding: 2px;
  font-size: 14px;
}

.pano-title {
  width: 720px !important;
  max-width: 720px !important;
  height: auto !important;
  min-height: 33px;
  margin: 3px 0px 3px 5px !important;
  padding: 2px !important;
  text-align: left !important;
  box-sizing: border-box !important;
  clear: both;
  display: block !important;
}

.panorama-section {
  clear: both;
  margin-top: 15px;
  margin-bottom: 15px;
  display: block;
  width: 100%;
  position: relative;
}

.info-section {
  clear: both;
  margin-top: 15px;
  padding-top: 10px;
  display: block;
  width: 100%;
  position: relative;
  z-index: 2;
}

.piata-info {
  clear: both;
  display: block;
  margin-top: 10px;
  width: 100%;
}

.panorama-fullscreen-link {
  clear: both;
  margin-bottom: 15px;
  display: block;
  width: 100%;
}

.panorama-fullscreen-link .foto-line {
  float: none;
  width: auto;
  height: auto;
  display: block;
}

.webcam-info {
  margin-left: 1px;
  width: 720px;
  line-height: 1.4;
  clear: both;
  display: block;
}

.webcam-live-link {
  margin-left: 5px;
  margin-top: 15px;
  margin-bottom: 25px;
  font-weight: bold;
  color: #003;
}

.icon-inline {
  margin-top: -0px;
  margin-bottom: -5px;
}

.icon-large {
  margin-top: -0px;
  margin-bottom: -8px;
}

.icon-xlarge {
  margin-top: -0px;
  margin-bottom: -11px;
}

.icon-webcam {
  margin-top: -0px;
  margin-bottom: -18px;
}

.meteo-iframe {
  width: 800px;
  height: 272px;
  border: none;
  overflow: hidden;
  max-width: 100%;
  display: block;
  margin: 0 auto;
}

.gallery-container .live {
  float: left;
  margin: 0 1% 0 0;
  vertical-align: top;
}

.gallery-container .live .camlink {
  padding: 5px 0;
  font-size: 11px;
  line-height: 1.2;
  color: #fff;
  background-color: #36485c;
  background-image: none;
  border-radius: 0 0 3px 3px;
}

.smallIMG {
  width: 180px;
  height: 144px;
  border: none;
  display: block;
  margin: 0;
  padding: 0;
  object-fit: cover;
  box-shadow: 0 1px 5px rgba(0,0,0,0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.smallIMG:hover {
  transform: scale(1.02);
  box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

/* Webcam desktop - varianta funcțională */
.secondwrapper #camerawrapper {
  float: left;
  width: 720px;
  margin: 22px 0px 0px 0px;
}
.secondwrapper #camerawrapper iframe,
#camframe {
  width: 720px;
  height: 576px;
  overflow: hidden;
  border: 0;
  display: block;
  margin: 0;
}
/* --- PATCH 1707-1800: iOS gallery thumbnails fix --- */
@media not all and (min-resolution:.001dpcm) {
  @supports (-webkit-touch-callout: none) {
    .imagini-brasov .images-item img {
      width: 105px !important;
      height: 79px !important;
      max-width: 105px !important;
      max-height: 79px !important;
      object-fit: cover !important;
      display: block !important;
      margin: 0 auto !important;
    }
  }
}

/* === iOS FONT CONSISTENCY FIX === */
/* Dezactivează ajustarea automată a fonturilor pe iOS, ascuns de browserele non-WebKit ca să eliminăm avertismentele */
@supports (-webkit-touch-callout: none) {
  * {
    text-size-adjust: 100% !important;         /* modern spec */
    -webkit-text-size-adjust: 100% !important; /* iOS/Safari fallback */
  }
}

/* === GALERIE EFFECTS === */
/* Efect zoom pentru galerii foto */
.zoomin img {
  height: 128px;
  width: 170px;
  transition: all 1s ease;
}
.zoomin img:hover {
  width: 262px;
  height: 197px;
}

/* Efecte de rotație și scale pentru imagini */
.zoomr img {
  transition: transform .3s ease-in-out;
}
.zoomr:hover img {
  transform: scale(1.25) rotate(0deg);
}

.zoomrd img {
  transition: transform .3s ease-in-out;
}
.zoomrd:hover img {
  transform: scale(1.25) rotate(3deg);
}

.zoomrs img {
  transition: transform .3s ease-in-out;
}
.zoomrs:hover img {
  transform: scale(1.25) rotate(-3deg);
}

/* Forțează același font-rendering pe iOS */
body, 
.info, 
.foto-line,
.pano-title,
.info-title,
.nav-title,
.events-title-Ab,
.events-title-GAb,
.Info-9,
.Info-10,
.Info-11,
.Evenimente13 {
  -webkit-font-smoothing: antialiased !important;
  -moz-osx-font-smoothing: grayscale !important;
  -webkit-text-stroke: 0.01em transparent !important;
}

/* iOS specific font fixes */
@supports (-webkit-touch-callout: none) {
  /* iPhone și iPad - forțează exact aceleași dimensiuni */
  body {
    font-family: "Trebuchet MS", Verdana, "Bitstream Vera Sans", Arial, sans-serif !important;
    font-size: 12px !important;
    line-height: 1.8em !important;
    text-size-adjust: none !important;            /* modern spec */
    -webkit-text-size-adjust: none !important;    /* iOS/Safari fallback */
  }
  
  .info {
    font-family: "Trebuchet MS", Verdana, "Bitstream Vera Sans", Arial, sans-serif !important;
    font-size: 12px !important;
    line-height: 1.8em !important;
  }
  
  .Info-10 {
    font-family: "Trebuchet MS", Verdana, "Bitstream Vera Sans", Arial, sans-serif !important;
    font-size: 10px !important;
    line-height: 1.4em !important;
  }
  
  .events-title-Ab {
    font-family: "Trebuchet MS", Verdana, "Bitstream Vera Sans", Arial, sans-serif !important;
    font-size: 10pt !important;
    font-weight: bold !important;
    line-height: 20px !important;
  }
  
  .pano-title {
    font-family: "Trebuchet MS", Verdana, "Bitstream Vera Sans", Arial, sans-serif !important;
    font-size: 11pt !important;
    font-weight: 700 !important;
    line-height: 1.5em !important;
  }
  
  .info-title {
    font-family: "Trebuchet MS", Verdana, "Bitstream Vera Sans", Arial, sans-serif !important;
    font-size: 12pt !important;
    font-weight: 700 !important;
    line-height: 2.2em !important;
  }
  
  .nav-title {
    font-family: "Trebuchet MS", Verdana, "Bitstream Vera Sans", Arial, sans-serif !important;
    font-size: 12pt !important;
    font-weight: 700 !important;
    line-height: 2.5em !important;
  }
  
  /* === STILURI PENTRU PAGINI MODERNE (Piata-Sfatului-Brasov.php) === */
  .webcam-info {
    font-family: "Trebuchet MS", Verdana, "Bitstream Vera Sans", Arial, sans-serif !important;
    font-size: 12px !important;
    line-height: 1.6em !important;
  }
  
  .image-info-M {
    font-family: "Trebuchet MS", Verdana, "Bitstream Vera Sans", Arial, sans-serif !important;
    font-size: 10px !important;
    line-height: 1.3em !important;
  }
  
  .camlink {
    font-family: "Trebuchet MS", Verdana, "Bitstream Vera Sans", Arial, sans-serif !important;
    font-size: 11px !important;
    line-height: 1.4em !important;
  }
  
  .page-title-main {
    font-family: "Trebuchet MS", Verdana, "Bitstream Vera Sans", Arial, sans-serif !important;
    font-size: 13px !important;
    font-weight: bold !important;
    line-height: 1.5em !important;
  }
  
  .foto-line {
    font-family: "Trebuchet MS", Verdana, "Bitstream Vera Sans", Arial, sans-serif !important;
    font-size: 12px !important;
    line-height: 1.4em !important;
  }
  
  .webcam-live-link {
    font-family: "Trebuchet MS", Verdana, "Bitstream Vera Sans", Arial, sans-serif !important;
    font-size: 13px !important;
    line-height: 1.4em !important;
    display: flex !important;
    align-items: center !important;
  }
  
  .webcam-live-link a {
    display: flex !important;
    align-items: center !important;
    text-decoration: none !important;
    color: inherit !important;
  }
  
  .webcam-live-link .icon-webcam {
    margin-left: 8px !important;
    vertical-align: middle !important;
  }
  
  .footer-info,
  .footer-info p {
    font-family: "Trebuchet MS", Verdana, "Bitstream Vera Sans", Arial, sans-serif !important;
    font-size: 10px !important;
    line-height: 1.3em !important;
  }
  
  /* Navigare principală modernă */
  h1.mainwrapper {
    font-family: "Trebuchet MS", Verdana, "Bitstream Vera Sans", Arial, sans-serif !important;
    font-size: 15px !important;
    line-height: 1.4em !important;
  }
  
  h1.mainwrapper strong {
    font-size: 15px !important;
    font-weight: bold !important;
  }
  
  .page-navigation h1.mainwrapper {
    font-size: 16px !important;
  }
  
  .page-navigation h1.mainwrapper strong {
    font-size: 16px !important;
    font-weight: bold !important;
  }
  
  h2.page-title-main,
  h3.page-title-main {
    font-size: 13px !important;
    font-weight: bold !important;
    line-height: 1.5em !important;
  }
  
  /* Fix pentru headerele H1, H2, H3 pe iOS - DOAR pentru pagini moderne */
  .page-navigation h1, 
  .page-navigation h2, 
  .page-navigation h3,
  h1.mainwrapper,
  h2.page-title-main,
  h3.page-title-main {
    text-size-adjust: none !important;         /* modern spec */
    -webkit-text-size-adjust: none !important; /* iOS/Safari fallback */
    font-family: inherit !important;
    font-size: inherit !important;
    font-weight: inherit !important;
    line-height: inherit !important;
  }
  
  /* Fix pentru linkurile din calendar pe iOS */
  .Info-10 a {
    font-family: "Trebuchet MS", Verdana, "Bitstream Vera Sans", Arial, sans-serif !important;
    font-size: 10px !important;
    line-height: 1.4em !important;
  }
}
body, div, dl, dt, dd, ul, ol, li, h1, h2, h3, h4, h5, h6, h7, pre, form, fieldset, input, p, blockquote, table, th, td {
  padding: 0;
  margin: 0;
}

fieldset, img, abbr {
  border: none;
}

td {
  color: #00F;
  font-size: 12px;
}

address, caption, cite, code, dfn, em, h1, h2, h3, h4, h5, h6, h7, th, var {
  font-weight: 400;
  font-style: normal;
  line-height: 1.8em;
}

caption, th {
  text-align: center;
}

body {
background-color: #fff !important;
  background-repeat: repeat-x;
  background-position: center top;
}

p {
  font-size: 1em;
  line-height: 1.2em;
}
a {
  color: #00f;
  text-decoration: none;
}
a:link,
a:visited {
  color: #003;
  text-decoration: none;
}
a:hover {
  color: #00f;
  text-decoration: none;
  text-align: left;
  font-weight: normal;
  font-family: "Trebuchet MS", Verdana, "Bitstream Vera Sans", Arial, sans-serif;
}

/* Buton și form */
.form {
  border: none;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 10px;
  color: #000;
  height: 16px;
  background-color: #fff;
}
.buton {
  font-size: 12px;
  color: #191919;
  font-family: Arial, Helvetica, sans-serif;
  border: 1px solid #c7c1b7;
  background-color: #ececec;
  width: 80px;
  height: 20px;
}

/* Structură layout */
#wrapper {
  margin: 0 auto;
  text-align: center;
}
.mainwrapper {
  width: 960px;
}

/* ATENȚIE: clasele care încep cu cifre nu sunt valide CSS3/HTML5, folosește .secondwrapper în loc de .2ndwrapper! */
.secondwrapper {
  width: 720px;
  float: left;
}

.nav-bar {
  margin: 0 auto;
  text-align: center;
}

.header {
  /* width: 960px; */
  height: 144px;
  margin: 0 auto;
  text-align: center;
  display: block;
}

.header figure {
  margin: 0 auto;
  display: block;
  text-align: center;
}

.header img {
  display: block;
  margin-left: auto;
  margin-right: auto;
  width: 960px;
  max-width: 960px;
  height: 144px;
}

div#camerawrapper {
  overflow: hidden;
  border: 0;
  background-color: #2f3f55;
  background-image: none !important;
  float: left;
  width: 720px;
  max-width: 720px;
  margin: 22px 0 0 0;
  position: relative;
  z-index: 0;
}
#camerawrapper {
  background-color: #2f3f55 !important;
  background-image: none !important;
}
#camerawrapper::before {
  content: "";
  position: absolute;
  inset: -220%;
  transform: rotate(-30deg);
  transform-origin: center center;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='360' height='150' viewBox='0 0 360 150'%3E%3Ctext x='0' y='60' font-family='Verdana' font-size='30' font-weight='700' fill='%234b5d72' fill-opacity='0.22'%3ELINX%20%20LINX%20%20LINX%3C/text%3E%3Ctext x='0' y='135' font-family='Verdana' font-size='30' font-weight='700' fill='%234b5d72' fill-opacity='0.22'%3ELINX%20%20LINX%20%20LINX%3C/text%3E%3C/svg%3E");
  background-repeat: repeat;
  background-size: 360px 150px;
  pointer-events: none;
  -webkit-user-select: none; /* Safari fallback */
  user-select: none;
  z-index: 0;
  opacity: 1;
}
#camerawrapper::after {
  content: none;
}
#camframe {
  overflow: hidden;
  height: 576px;
  width: 720px;
  max-width: 720px;
  border: 0;
  display: block;
  margin-top: 0;
  margin-bottom: 0;
  position: relative;
  z-index: 1;
  background: transparent !important;
  background-image: none !important;
}

/* Patern de fundal pentru containerul Live (stil generat CSS, nu imagine externă) */

/* Stiluri pentru miniaturile camerelor live */
.live {
  width: 170px;
  height: auto;
  vertical-align: top;
}

#promo,
#foto-line,
#evenimente,
#info,
#nav {
  float: left;
  width: 720px;
  margin: 3px;
  line-height: 1.8em;
  font-family: "Trebuchet MS", Verdana, "Bitstream Vera Sans", Arial, sans-serif;
}
#evenimente,
#info,
#nav {
  margin: 5px 0;
}
#info,
#nav {
  line-height: 2.2em;
  font-weight: 700;
  color: #003;
}
#info {
  line-height: 2.5em;
}
#meteo {
  background-image: url(../images/Vremea-Brasov-Live.jpg);
  background-repeat: no-repeat;
  overflow: hidden;
  float: right;
  width: 105px;
  margin: 5px 0;
  color: #003;
  font-size: 9.5pt;
  line-height: 2.2em;
  font-family: "Trebuchet MS", Verdana, "Bitstream Vera Sans", Arial, sans-serif;
}
#thumbs {
  text-align: center;
  width: 190px;
  min-width: 190px;
  max-width: 190px;
  height: 100%;
  margin-left: 15px;
  float: left;
  overflow: visible;
  box-sizing: border-box;
}

.LinxEngine{
  position: absolute;
  top: 2px;
  left: 554px;
  border: 0px black;
  margin: 0px;
  float: left;
  display: block;
  margin-left: auto;
  margin-right: auto;
}
.info {
  float: left;
  width: 720px;
  margin: 5px 0;
  line-height: 1.8em;
  font-family: "Trebuchet MS", Verdana, "Bitstream Vera Sans", Arial, sans-serif;
}
.foto-line {
  float: left;
  width: 720px;
  height: 111px;
  margin: 5px 0;
  font-family: "Trebuchet MS", Verdana, "Bitstream Vera Sans", Arial, sans-serif;
}
.foto {
  width: 105px;    /* Adaugă px! */
  height: 79px;    /* Adaugă px! */
  padding: 0.5px;
}

/* Stări pentru live (folosește punct pentru clasă, nu spațiu pentru descendență!) */
.live {
  margin-top: 1px;
  margin-bottom: 1px;
  margin-left: 0;
  margin-right: 0;
  width: 180px;
  max-width: 180px;
  min-width: 180px;
  background-color: #fff;
  border: 0 solid #fff;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}
.live.online {
  margin-top: 1px;
  margin-bottom: 1px;
  margin-left: 0;
  margin-right: 0;
  width: 180px;
  max-width: 180px;
  min-width: 180px;
  background-color: #fff;
  border: 0 solid #fff;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}
.live.info {
  margin-top: 1px;
  margin-bottom: 1px;
  margin-left: 0;
  margin-right: 0;
  width: 180px;
  max-width: 180px;
  min-width: 180px;
  background-color: #f0f0f0;
  border: 0px solid #ccc;
  box-sizing: border-box;
  position: relative;
  overflow: hidden;
}

.camlink {
  overflow: hidden;
  color: #fff;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  display: block;
  background-attachment: scroll;
  background-image: none;
  width: 180px;
  background-color: #2f3f55;
  margin-top: 0;
  /* Elimină height:99% care nu funcționează corect pe block! */
}

.live.online .camlink {
  overflow: hidden;
  color: #fff;
  text-align: center;
  font-size: 12px;
  font-weight: 500;
  text-decoration: none;
  display: block;
  background-attachment: scroll;
  background-image: none;
  width: 180px;
  background-color: #2f3f55;
  margin-top: 0;
}

/* Elimină spațiul dintre imaginea din .live și .camlink */
.live a {
  display: block;
  margin: 0;
  padding: 0;
  line-height: 0;
}

.live img {
  display: block;
  margin: 0;
  padding: 0;
}

.live.online img {
  display: block;
  margin: 0;
  padding: 0;
}

iframe.noScrolling {
  overflow: hidden;
}

.title {
  display: block;
  height: 30px;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
}

#footer {
  font-family: "Trebuchet MS", Verdana, "Bitstream Vera Sans", Arial, sans-serif;
  width: 960px;
  max-width: 100%;
  clear: both;
  font-size: 9pt;
  color: #003;
  margin: 15px auto 24px;
  text-align: center;
  border-top: 1px solid #ccc;
  line-height: 1.2em;
  padding: 25px 0 10px 0;
  /* Atenție: "auto;" la final era invalid! */
}

#footer #Meteo {
  width: 100%;
  max-width: 960px;
  height: 272px;
  overflow: hidden;
  margin-bottom: 15px;
}

.webcam-info {
  font-size: 12pt;
  font-family: Verdana, Geneva, sans-serif;
  font-weight: 400;
  color: #000033;
  font-style: normal;
  line-height: 1.5em;
  display: inline-block;
}

.live-link {
  color: #fff;
  font-size: 12px;
}

.info-f {
  font-family: "Trebuchet MS", Verdana, "Bitstream Vera Sans", Arial, sans-serif;
  font-size: 12px;
  color: #000;
}

/* Diverse info și titluri */
.image-info-M {
  font-size: 10pt;
  color: #00f;
}
.info-events-yoo-yoo {
  font-style: normal;
  line-height: 1.8em;
  font-variant: small-caps;
  text-transform: none;
  text-decoration: none;
  letter-spacing: normal;
  text-align: center;
  word-spacing: normal;
  white-space: normal;
  display: block;
  float: none;
  height: auto;
  width: auto;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  color: #003;
  font-size: 12px;
  font-weight: 400;
}
.meteo,
.meteo,
.meteo-online,
.webcam-live-info {
  margin-top: 2px;
  font-style: normal;
  line-height: normal;
  font-variant: small-caps;
  text-transform: none;
  text-decoration: none;
  letter-spacing: normal;
  text-align: center;
  word-spacing: normal;
  white-space: normal;
  display: block;
  float: none;
  height: auto;
  width: auto;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  color: #003;
}
.meteo {
  font-size: 10px;
}
.meteo-online {
  font-size: 0.8em;
}
.webcam-live-info {
  font-size: 0.9em;
}
.info-Ab,
.info-Vi {
  font-style: normal;
  line-height: normal;
  font-variant: small-caps;
  text-transform: none;
  text-decoration: none;
  letter-spacing: normal;
  text-align: center;
  word-spacing: normal;
  white-space: normal;
  display: inline;
  float: none;
  height: auto;
  width: auto;
  font-family: Verdana, Arial, Helvetica, sans-serif;
  font-size: 13px;
  font-weight: 400;
}
.info-Ab {
  color: #00f;
}
.info-Vi {
  color: #90f;
}

.pano-title {
  font-family: "Trebuchet MS", Verdana, "Bitstream Vera Sans", Arial, sans-serif;
  font-size: 11pt;
  font-weight: 700;
  color: #003;
  line-height: 1.5em;
}
.info-title {
  font-family: "Trebuchet MS", Verdana, "Bitstream Vera Sans", Arial, sans-serif;
  font-size: 12pt;
  font-weight: 700;
  color: #003;
  line-height: 2.2em;
}
.nav-title {
  font-family: "Trebuchet MS", Verdana, "Bitstream Vera Sans", Arial, sans-serif;
  font-size: 12pt;
  font-weight: 700;
  color: #003;
  line-height: 2.5em;
}
.events-title-Ab {
  line-height: 20px !important;
  font-family: "Trebuchet MS", Verdana, "Bitstream Vera Sans", Arial, sans-serif;
  text-align: left;
  font-size: 10pt;
  font-weight: bold;
  color: #00c;
}
.events-title-GAb {
  font-family: "Trebuchet MS", Verdana, "Bitstream Vera Sans", Arial, sans-serif;
  text-align: left;
  font-size: 13px;
  font-weight: bold;
  color: #00c;
}

/* Info font-size */
.Info-9 {
  color: #003;
  line-height: 1.8em;
  font-weight: normal;
  font-size: 9pt;
  font-family: "Trebuchet MS", Verdana, "Bitstream Vera Sans", Arial, sans-serif;
}
.Info-10 {
  color: #003;
  line-height: 20px !important;
  font-weight: normal;
  font-size: 10pt;
  font-family: "Trebuchet MS", Verdana, "Bitstream Vera Sans", Arial, sans-serif;
}
.Info-11 {
  color: #003;
  line-height: 1.8em;
  font-weight: normal;
  font-size: 11pt;
  font-family: "Trebuchet MS", Verdana, "Bitstream Vera Sans", Arial, sans-serif;
}
.Info-12 {
  color: #003;
  line-height: 1.8em;
  font-weight: normal;
  font-size: 12pt;
  font-family: "Trebuchet MS", Verdana, "Bitstream Vera Sans", Arial, sans-serif;
}
.Info-14 {
  color: #003;
  line-height: 1.8em;
  font-weight: normal;
  font-size: 14pt;
  font-family: "Trebuchet MS", Verdana, "Bitstream Vera Sans", Arial, sans-serif;
}
.Info-16 {
  color: #003;
  line-height: 1.8em;
  font-weight: normal;
  font-size: 16pt;
  font-family: "Trebuchet MS", Verdana, "Bitstream Vera Sans", Arial, sans-serif;
}

/* Evenimente font-size */
.Evenimente11 {
  color: #003;
  line-height: 1.8em;
  font-weight: normal;
  font-size: 11px;
  font-family: "Trebuchet MS", Verdana, "Bitstream Vera Sans", Arial, sans-serif;
}
.Evenimente12 {
  color: #003;
  line-height: 1.8em;
  font-weight: normal;
  font-size: 12px;
  font-family: "Trebuchet MS", Verdana, "Bitstream Vera Sans", Arial, sans-serif;
}
.Evenimente13 {
  color: #00f;
  line-height: 1.8em;
  font-weight: bold;
  font-size: 13px;
  font-family: "Trebuchet MS", Verdana, "Bitstream Vera Sans", Arial, sans-serif;
}
/* Aliniere și float */
.alineaza-stanga {
  display: block;
  margin-left: 0;
  margin-right: auto;
}
.float-left {
  display: block;
  float: left;
  overflow: hidden; /* pentru float */
}

/* Vertical center (atenție: necesită parent cu position: relative) */
.vcenter, .ocenter {
  margin-top: 10%;
  margin-bottom: 10%;
  position: absolute;
  top: 50%;
  left: 0; /* sau lasă implicit dacă nu vrei centrare pe orizontală */
body {
  font-family: Arial, Helvetica, sans-serif;
  background: #f8f8f8;
  color: #222;
  margin: 0;
  padding: 0;
}
.header {
  width: 960px;
  margin: 0 auto;
  text-align: center;
}
.mainwrapper {
  width: 960px;
  margin: 0 auto;
}
.secondwrapper {
  width: 720px;
  margin: 0 auto;
}

.info {
  width: 720px;
  margin: 0 auto;
  padding: 10px 0;
}
.foto-line {
  width: 720px;
  margin: 0 auto;
  padding: 5px 0;
}
#footer {
  width: 960px;
  margin: 20px auto 0 auto;
  text-align: center;
  font-size: 0.9em;
  color: #666;
}
/* Zoom effect for gallery images */
.zoomin img {
  height: 128px;
  width: 170px;
  transition: all 1s ease;
}
.zoomin img:hover {
  width: 262px;
  height: 197px;
}
.zoomr img {
  transition: transform .3s ease-in-out;
}
.zoomr:hover img {
  transform: scale(1.25) rotate(-0deg);
}
.zoomrd img {
  transition: transform .3s ease-in-out;
}
.zoomrd:hover img {
  transform: scale(1.25) rotate(3deg);
}
.zoomrs img {
  transition: transform .3s ease-in-out;
}
.zoomrs:hover img {
  transform: scale(1.25) rotate(-3deg);
}
/* Nu există media queries mobile în versiunea originală */
  box-shadow: 0 1px 5px #0001;/* armonizare cu .smallIMG */
  object-fit: cover;          /* dacă vrei să nu se deformeze imaginea */
  background: #f8f8f8; /* transition: box-shadow 0.3s;  // dacă vrei efect la hover */
  transition: transform .3s ease-in-out, box-shadow 0.3s;
}
.images-item img.zoom:hover {
  transform: scale(1.11);
  box-shadow: 0 3px 12px #0064ff33;
}
/* ...existing code... */
/* === MARKER VERSIUNE: 170725-1255 === */
/* === MARKER VERSIUNE: 1707-1447 === */
/* === MARKER VERSIUNE: 1707-1545 === */
/* === MARKER VERSIUNE: 1707-1730 === */
/* === MARKER VERSIUNE: 1707-1650 === */
/* Galerie desktop: orizontal, mobil: simplu, fără modal */
/* Galerie clasică desktop: un singur rând, float left, overflow hidden, lățime fixă 555px */
.imagini-brasov {
  margin-bottom: 2rem; /* Spațiere verticală între galerie și următoarea secțiune */
}
.images-grid {
  width: auto;
  max-width: 720px;
  margin: 0;
  overflow: hidden;
  display: inline-block;
  /* desktop: un singur rând, fără scroll, lățime automată */
}
.images-item {
  float: left;
  width: 105px;
  margin: 2px;
  text-align: center;
  vertical-align: top;
  /* desktop: fără spațiu lateral */
}
.images-item:last-child {
  margin-right: 0;      /* ultima imagine din rând să nu aibă spațiu suplimentar */
}
 
.images-item img {
  width: 105px !important;
  height: 79px !important;
  object-fit: cover;
  border-radius: 3px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
  transition: transform 0.2s;
  cursor: pointer;
  /* desktop: dimensiuni fixe, fără spațiu */
}
.images-item img:hover {
  transform: scale(1.05);
  box-shadow: 0 4px 12px rgba(0,0,0,0.13);
}
@media (max-width: 600px) {
  .images-grid {
    width: 100vw;
    min-width: 340px;
    display: flex;
    flex-direction: row;
    flex-wrap: nowrap;
    overflow-x: auto;
    overflow-y: hidden;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    /* mobile: galerie orizontală, cu scroll orizontal dacă e nevoie */
  }
  .images-item {
    float: left;
    width: 85px;
    margin: 2px 2px 2px 2px; /* spațiere uniformă pe toate laturile */
    text-align: center;
    vertical-align: top;
  }
  .images-item img {
    width: 85px !important;
    height: 65px !important;
    object-fit: cover;
    border-radius: 3px;
    box-shadow: 0 1px 6px rgba(0,0,0,0.08);
    cursor: default;
  }
}

/* === iOS Portrait Responsive Fix === */
/* Optimizare pentru iOS în modul portrait */
@media screen and (max-width: 414px) and (orientation: portrait) {
  /* iOS iPhone în portrait - optimizează spațierea */
  .mainwrapper {
    max-width: 100% !important;
    width: 100% !important;
    padding: 0 5px !important;
    box-sizing: border-box !important;
  }
  
  .secondwrapper {
    max-width: 100% !important;
    width: 100% !important;
  }
  
  .info {
    max-width: 100% !important;
    width: 100% !important;
    font-size: 11px !important;
    line-height: 1.6em !important;
  }
  
  .Info-10 {
    font-size: 9px !important;
    line-height: 1.3em !important;
  }
  
  /* Iframe camera - ajustează pentru portrait */
  #camerawrapper,
  #camerawrapper iframe,
  #camframe {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
    aspect-ratio: 4/3 !important;
  }
  
  /* Aside cu miniaturi - optimizează pe portrait */
  #thumbs {
    float: none !important;
    width: 100% !important;
    overflow-x: auto !important;
    overflow-y: hidden !important;
    white-space: nowrap !important;
    -webkit-overflow-scrolling: touch !important;
  }
  
  #thumbs .live {
    display: inline-block !important;
    float: none !important;
    width: 140px !important;
    margin: 2px !important;
    vertical-align: top !important;
  }
  
  /* Header și imagini - responsive */
  .header img {
    max-width: 100% !important;
    width: 100% !important;
    height: auto !important;
  }
}

/* iOS specific font consistency pentru toate orientările */
@supports (-webkit-touch-callout: none) {
  /* Menține fix-urile pentru fonturi dar permite zoom în portrait */
  @media screen and (orientation: portrait) {
    body {
      text-size-adjust: 100% !important;         /* modern spec */
      -webkit-text-size-adjust: 100% !important; /* iOS/Safari fallback */
    }
    
    /* Permite transformări pe elementele importante */
    .mainwrapper,
    .secondwrapper {
      -webkit-transform: scale(1) !important;
      transform: scale(1) !important;
    }
  }
}

/* Galerie foto */
.imagini-brasov {
  margin: 1rem auto;
  /* max-width: 600px; */
  /* background: #fafaff; */
}
.imagini-brasov .images-grid {
  width: auto;
  max-width: 720px;
  margin: 0;
  overflow: hidden;
  background: #fff;
  border-radius: 1px;
  box-shadow: 0 1px 5px rgba(0,0,0,0.06);
  padding: 0;
  display: inline-block;
}
.imagini-brasov .images-item {
  text-align: center;
}
.imagini-brasov .images-item img {
  border-radius: 1px;
  cursor: pointer;
  transition: transform 0.2s;
  width: 100%;
  height: auto;
  max-width: 105px;
  max-height: 105px;
  box-shadow: 0 1px 6px rgba(0,0,0,0.08);
}
.imagini-brasov .images-item img:hover {
  transform: scale(1.05);
  box-shadow: 0 2px 8px rgba(0,0,0,0.13);
}
.imagini-brasov .image-info {
  margin-top: 0.1em;
  font-size: 0.8em;
  color: #00f;
}
.imagini-brasov .modal {
  display: none;
  position: fixed;
  z-index: 1000;
  left: 0; top: 0; width: 100vw; height: 100vh;
  background: transparent;
  align-items: center;
  justify-content: center;
}
.imagini-brasov .modal.open {
  display: flex;
}
.imagini-brasov .modal-content {
  background: #080808;
  padding: 0;
  border-radius: 5px;
  max-width: 90vw;
  max-height: 90vh;
  box-shadow: 0 4px 32px rgba(0,0,0,0.24);
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
}
.imagini-brasov .modal-content img {
  max-width: 80vw;
  max-height: 70vh;
  border-radius: 5px 5px 0 0;
}
.imagini-brasov .modal-caption {
  padding: 1rem;
  margin: 5px;
  text-align: left !important;
  align-self: flex-start;
  font-size: 2em;
  color: #f8f8f8;
  border: none;
  border-radius: 0 0 5px 5px;
}
.imagini-brasov .close-modal {
  position: absolute;
  bottom:10px; right: 16px;
  font-size: 3.3rem;
  background: none;
  border: none;
  color: #e60606;
  cursor: pointer;
  z-index: 1;
}
@media (max-width: 500px) {
  .imagini-brasov .images-grid { padding: 0.5rem; }
  .imagini-brasov .images-item img { max-width: 85px; }
}
  /* end galerie */

/* Override: galerie fix 720px, aliniată stânga, fără centrare automată */
.imagini-brasov {
  width: 720px !important;
  max-width: 720px !important;
  margin: 0 !important;
  padding: 0 !important;
  text-align: left !important;
  clear: both;
}

.imagini-brasov .images-grid {
  width: 720px !important;
  max-width: 720px !important;
  margin: 0 !important;
  padding: 0 !important;
  display: block !important;
  float: none !important;
  text-align: left !important;
  direction: ltr !important;
}

.gallery-row.disabled {
  display: none !important;
}

.fixed-720 {
  width: 100% !important;
  max-width: 720px !important;
  margin: 0 !important;
  box-sizing: border-box;
}

.fb-container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
  width: 720px;
  max-width: 720px;
}

/* Centrul Civic Page Specific Styles */
.zoomin {
  animation: zoomin 0.6s;
}

@keyframes zoomin {
  from {
    opacity: 0;
    transform: scale3d(0.3, 0.3, 0.3);
  }
  50% {
    opacity: 1;
  }
}

/* iOS Specific Fixes for Portrait Mode - All pages with meteo */
@media screen and (max-width: 800px) and (orientation: portrait) {
  @supports (-webkit-touch-callout: none) {
    body {
      text-size-adjust: 100% !important;         /* modern spec */
      -webkit-text-size-adjust: 100% !important; /* iOS/Safari fallback */
      overflow-x: auto !important;
    }
    
    /* iOS Font fixes for navigation and headers */
    .page-navigation h1, 
    .mainwrapper h1, 
    h1.mainwrapper,
    .page-navigation,
    .page-navigation *,
    h2.page-title-main,
    .page-title-main {
      font-size: 16px !important;
      line-height: 1.2 !important;
      -webkit-text-size-adjust: none !important;
      text-size-adjust: none !important;
      font-family: "Trebuchet MS", Verdana, "Bitstream Vera Sans", Arial, sans-serif !important;
    }
    
    /* Main titles should be larger */
    h1.mainwrapper strong,
    .page-navigation h1 strong {
      font-size: 18px !important;
      font-weight: bold !important;
    }
    
    /* H2 page titles should be visible */
    h2.page-title-main {
      font-size: 17px !important;
      font-weight: bold !important;
    }
    
    /* Meteo section in mainwrapper container (index.php, Piata-Sfatului-Brasov.php) */
    .mainwrapper #meteo-section {
      width: 100% !important;
      overflow-x: auto !important;
      -webkit-overflow-scrolling: touch !important;
      margin: 0 !important;
      padding: 0 !important;
    }
    
    .mainwrapper #meteo-section iframe {
      min-width: 800px !important;
      width: 800px !important;
      height: 272px !important;
      border: none !important;
      margin: 0 !important;
    }
    
    /* Meteo section for legacy pages (outside mainwrapper) */
    #meteo-section {
      width: 100% !important;
      overflow-x: auto !important;
      -webkit-overflow-scrolling: touch !important;
      margin: 0 !important;
      padding: 0 !important;
    }
    
    #meteo-section iframe {
      min-width: 800px !important;
      width: 800px !important;
      height: 272px !important;
      border: none !important;
      margin: 0 !important;
    }
    
    .container, .mainwrapper {
      overflow-x: auto !important;
      -webkit-overflow-scrolling: touch !important;
    }
  }
}
