/*
Theme Name: Uncode Child
Description: Child theme for Uncode theme
Author: Undsgn™
Author URI: http://www.undsgn.com
Template: uncode
Version: 1.0.0
Text Domain: uncode
*/

/* Spațiere sub H2 în text block */
body.single-obiectiv .post-content .uncode_text_column h2,
body.page .post-content .uncode_text_column h2{
  margin-top: 1.4em;
  margin-bottom: 0.8em;
}

/* Asigură că primul paragraf după H2 nu se lipește */
body.single-obiectiv .post-content .uncode_text_column h2 + p,
body.page .post-content .uncode_text_column h2 + p{
  margin-top: 0 !important;
}

body.single-obiectiv .post-content .uncode_text_column p,
body.page .post-content .uncode_text_column p {
  margin-top: 0 !important;
  margin-bottom: 0.4em !important;
  text-indent: 2em;
  line-height: 1.6;
}

body.single-obiectiv .post-content .uncode_text_column blockquote p,
body.single-obiectiv .post-content .uncode_text_column li p,
body.page .post-content .uncode_text_column blockquote p,
body.page .post-content .uncode_text_column li p {
  text-indent: 0;
}

/* Link-uri din text block – stil editorial */
body.single-obiectiv .post-content .uncode_text_column a,
body.page .post-content .uncode_text_column a{
  text-decoration: underline;
  text-decoration-color: currentColor;
  cursor: pointer;
}
/* Link editorial – culoare identică cu textul, inclusiv la hover */
body.single-obiectiv .post-content .uncode_text_column a,
body.single-obiectiv .post-content .uncode_text_column a:hover,
body.single-obiectiv .post-content .uncode_text_column a:visited,
body.single-obiectiv .post-content .uncode_text_column a:active,
body.page .post-content .uncode_text_column a,
body.page .post-content .uncode_text_column a:hover,
body.page .post-content .uncode_text_column a:visited,
body.page .post-content .uncode_text_column a:active {
  color: inherit !important;
  text-decoration-color: currentColor !important;
}

/* About Us: meniul sa fie alb ca pe celelalte pagini */
body.page-about-us .menu-wrapper,
body.page-about-us .menu-wrapper .menu-container,
body.page-about-us .menu-wrapper.menu-sticky .menu-container,
body.page-about-us .main-header,
body.page-about-us .main-header .menu-container,
body.page-about-us .main-header .menu-wrapper {
  background-color: #fff !important;
}

body.page-about-us .menu-container[class*="-bg"] {
  background: #fff !important;
}

body.page-about-us #masthead,
body.page-about-us #masthead .menu-container,
body.page-about-us #masthead .row-menu,
body.page-about-us #masthead .row-menu-inner {
  background: #fff !important;
  background-image: none !important;
}

body.page-id-44 .menu-wrapper,
body.page-id-44 .menu-wrapper .menu-container,
body.page-id-44 .menu-wrapper.menu-sticky,
body.page-id-44 .menu-wrapper.menu-sticky .menu-container,
body.page-id-44 #masthead,
body.page-id-44 #masthead .menu-container,
body.page-id-44 #masthead .row-menu,
body.page-id-44 #masthead .row-menu-inner {
  background: #fff !important;
  background-image: none !important;
}

body.page-about-us .menu-wrapper::before,
body.page-about-us .menu-container::before,
body.page-about-us .menu-wrapper::after,
body.page-about-us .menu-container::after {
  background: transparent !important;
}

body.home .menu-container[class*="-bg"],
body.front-page .menu-container[class*="-bg"] {
  background-color: #fff !important;
}

body.home .menu-wrapper,
body.home .menu-wrapper .menu-container,
body.home .menu-wrapper.menu-sticky .menu-container,
body.front-page .menu-wrapper,
body.front-page .menu-wrapper .menu-container,
body.front-page .menu-wrapper.menu-sticky .menu-container {
  background-color: #fff !important;
}

/* Home/About Us: fundal similar cu paginile de locatie */
body.home .page-body,
body.front-page .page-body,
body.page-about-us .page-body {
  background-color: #f7f7f7;
}

body.page-about-us .sections-container,
body.page-about-us .page-wrapper {
  background-color: #f7f7f7 !important;
}

body.page-about-us .page-body {
  background-color: #f7f7f7 !important;
}

body.page-about-us {
  background-color: #f7f7f7 !important;
}

body.page-id-44 article#post-44,
body.page-id-44 .page-body.style-light-bg {
  background-color: #f7f7f7 !important;
}

body.page-about-us .row-parent.double-top-padding {
  padding-top: 0 !important;
}

body.page-about-us .row-parent.double-bottom-padding {
  padding-bottom: 0 !important;
}

body.page-id-44 #post-44 .row.row-parent.double-top-padding.double-bottom-padding {
  padding-top: 0 !important;
  padding-bottom: 0 !important;
}

/* GTranslate lang icon next to search in navbar */
.menu-primary-inner .menu-item-gtranslate {
  display: none;
}

.navbar-extra-icons .menu-item-gtranslate {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  min-height: 24px;
  position: relative;
  visibility: visible;
  opacity: 1;
  margin-left: 0;
}

.navbar-extra-icons .menu-item-gtranslate > a {
  display: inline-flex;
  align-items: center;
}

.navbar-extra-icons .menu-item-gtranslate > .dropdown-menu {
  width: auto;
  min-width: 0;
  padding: 6px 6px;
}

.navbar-extra-icons .menu-item-gtranslate > .dropdown-menu > li > a {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px 6px;
}

.navbar-extra-icons .menu-item-gtranslate .menu-item-gtranslate-child > a:hover,
.navbar-extra-icons .menu-item-gtranslate .menu-item-gtranslate-child > a:focus,
.navbar-extra-icons .menu-item-gtranslate .menu-item-gtranslate-child:hover > a {
  background-color: #2b2b2b !important;
}

.navbar-extra-icons .menu-item-gtranslate .menu-item-gtranslate-child:hover,
.navbar-extra-icons .menu-item-gtranslate .menu-item-gtranslate-child:focus-within {
  background-color: #2b2b2b !important;
}

@media (max-width: 959px) {
  .navbar-extra-icons .menu-item-gtranslate > .dropdown-menu {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  .navbar-extra-icons .menu-item-gtranslate.gt-open > .dropdown-menu {
    display: block !important;
    visibility: visible !important;
    pointer-events: auto !important;
  }
}

@media (min-width: 960px) {
  .navbar-extra-icons .menu-item-gtranslate.gt-locked > .dropdown-menu {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}

@media (min-width: 960px) {
  .menu-horizontal ul.menu-smart > li > ul:not(.mega-menu-inner):not(.unmenu-inner-ul) {
    width: 195px !important;
  }

  .menu-horizontal .menu-horizontal-inner .navbar-extra-icons .menu-item-gtranslate > .dropdown-menu {
    width: auto !important;
    min-width: 80px !important;
    max-width: 80px;
    left: 50% !important;
    right: auto !important;
    margin-left: 0 !important;
    transform: translateX(-50%);
  }
}

.navbar-extra-icons .menu-icons {
  display: inline-flex;
  align-items: center;
  flex-wrap: nowrap;
  width: auto;
  overflow: visible;
  gap: 6px;
}

.navbar-extra-icons {
  overflow: visible;
}

.navbar-extra-icons .menu-item-gtranslate img,
.navbar-extra-icons .menu-item-gtranslate svg {
  display: block;
  height: 22px !important;
  width: 22px !important;
  max-width: 22px;
  max-height: 22px;
  object-fit: contain;
}

/* Lightbox overlay transparency */
.ilightbox-overlay {
  background: rgba(0, 0, 0, 0.72) !important;
  opacity: 1 !important;
}

.lg-backdrop {
  background: rgba(0, 0, 0, 0.72) !important;
  opacity: 1 !important;
}

/* Disable text selection site-wide */
body {
  -webkit-user-select: none;
  -moz-user-select: none;
  -ms-user-select: none;
  user-select: none;
}

img {
  -webkit-user-drag: none;
  user-drag: none;
}

/* Footer jos pe pagini cu continut scurt */
body:not(.uncode-fullpage):not(.uncode-fullpage-slide):not(.uncode-scroll-snap) .main-container {
  display: flex !important;
  flex-direction: column;
  min-height: 80vh;
}

body:not(.uncode-fullpage):not(.uncode-fullpage-slide):not(.uncode-scroll-snap) .sections-container,
body:not(.uncode-fullpage):not(.uncode-fullpage-slide):not(.uncode-scroll-snap) .page-wrapper,
body:not(.uncode-fullpage):not(.uncode-fullpage-slide):not(.uncode-scroll-snap) .page-body {
  display: block;
  height: auto;
}

body:not(.uncode-fullpage):not(.uncode-fullpage-slide):not(.uncode-scroll-snap) .page-wrapper {
  flex: 1 0 auto;
}

body:not(.uncode-fullpage):not(.uncode-fullpage-slide):not(.uncode-scroll-snap) footer#colophon {
  margin-top: auto;
  display: block;
  height: auto;
}

body.single-obiectiv .post-content .uncode_text_column a,
body.single-obiectiv .post-content .uncode_text_column a:hover,
body.page .post-content .uncode_text_column a,
body.page .post-content .uncode_text_column a:hover{
  color: inherit !important;
  text-decoration: underline;
  text-decoration-color: currentColor !important;
  cursor: pointer;
}

body.single-obiectiv .post-content .uncode_text_column a:hover,
body.page .post-content .uncode_text_column a:hover{
  text-decoration-thickness: 2px;
  opacity: 0.85;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--wp-admin--admin-bar--height, 0px) + 90px);
}

/* Locatie taxonomy cards */
body.tax-locatie .lookaround-locatie-wrap,
.lookaround-locatie-wrap {
  max-width: 1200px;
  margin: 0 auto;
  padding: 40px 24px 64px;
}

body.tax-locatie .lookaround-locatie-title,
.lookaround-locatie-title {
  margin: 0 0 32px;
}

body.page-about-us .lookaround-locatie-title {
  font-size: 2.625rem;
  line-height: 1.2;
}

body.tax-locatie .lookaround-locatie-subtitle,
.lookaround-locatie-subtitle {
  margin: 32px 0 16px;
}

body.tax-locatie .lookaround-locatie-breadcrumb,
.lookaround-locatie-breadcrumb {
  margin: 0;
}

body.tax-locatie .lookaround-locatie-wrap {
  padding-top: 32px;
}

.lookaround-locatie-wrap {
  padding-top: 32px;
}

body.tax-locatie .lookaround-locatie-wrap .row-breadcrumb,
.lookaround-locatie-wrap .row-breadcrumb {
  margin-top: 32px;
  margin-bottom: 32px;
}

.lookaround-locatie-breadcrumb .breadcrumb a,
.lookaround-locatie-breadcrumb .breadcrumb a:visited {
  color: #000;
}

.lookaround-locatie-breadcrumb .breadcrumb a:hover,
.lookaround-locatie-breadcrumb .breadcrumb a:focus {
  color: #006cff;
}

body.single-povestire .row-breadcrumb:not(.lookaround-povestire-breadcrumb) {
  display: none !important;
}

body.single-povestire .lookaround-povestire-breadcrumb {
  display: block !important;
}

body.single-povestire .lookaround-povestire-breadcrumb {
  background-color: #f7f7f7;
  border-top: 1px solid #eaeaea;
  border-bottom: 1px solid #eaeaea;
}

body.single-povestire .lookaround-povestire-breadcrumb-inner {
  margin: 0;
}

body.single-povestire .lookaround-povestire-breadcrumb .breadcrumb a,
body.single-povestire .lookaround-povestire-breadcrumb .breadcrumb a:visited {
  color: #000;
}

body.single-povestire .lookaround-povestire-breadcrumb .breadcrumb a:hover,
body.single-povestire .lookaround-povestire-breadcrumb .breadcrumb a:focus {
  color: #006cff;
}

body.tax-locatie .lookaround-locatie-grid,
.lookaround-locatie-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 24px;
}

.lookaround-povestiri {
  margin-top: 0;
}

.lookaround-povestiri .lookaround-card,
.lookaround-povestiri .lookaround-card:hover,
.lookaround-povestiri .lookaround-card:focus {
  color: inherit;
}

.lookaround-povestiri .lookaround-card-title,
.lookaround-povestiri .lookaround-card-title:hover,
.lookaround-povestiri .lookaround-card:hover .lookaround-card-title,
.lookaround-povestiri .lookaround-card:focus .lookaround-card-title {
  color: #000;
}

.lookaround-povestiri .lookaround-card-meta {
  color: #666;
}

body.tax-locatie .lookaround-card,
.lookaround-locatie-wrap .lookaround-card,
.lookaround-povestiri .lookaround-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 20px;
  background: #fff;
  border: 1px solid #e5e5e5;
  border-radius: 14px;
  text-decoration: none;
  color: inherit;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

body.tax-locatie .lookaround-card--post,
.lookaround-locatie-wrap .lookaround-card--post,
.lookaround-povestiri .lookaround-card--post {
  padding: 0;
  gap: 0;
  overflow: hidden;
}

body.tax-locatie .lookaround-card--term.lookaround-card--with-thumb,
.lookaround-locatie-wrap .lookaround-card--term.lookaround-card--with-thumb,
.lookaround-povestiri .lookaround-card--term.lookaround-card--with-thumb {
  padding: 0;
  gap: 0;
  overflow: hidden;
}

body.tax-locatie .lookaround-card-body,
.lookaround-locatie-wrap .lookaround-card-body,
.lookaround-povestiri .lookaround-card-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 16px 18px 20px;
}

body.tax-locatie .lookaround-card:hover,
.lookaround-locatie-wrap .lookaround-card:hover,
.lookaround-povestiri .lookaround-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 12px 26px rgba(0, 0, 0, 0.08);
}

body.tax-locatie .lookaround-card-title,
.lookaround-locatie-wrap .lookaround-card-title,
.lookaround-povestiri .lookaround-card-title {
  font-size: 18px;
  font-weight: 600;
  line-height: 1.3;
}

body.tax-locatie .lookaround-card-meta,
.lookaround-locatie-wrap .lookaround-card-meta,
.lookaround-povestiri .lookaround-card-meta {
  font-size: 13px;
  color: #666;
}

body.tax-locatie .lookaround-card-thumb img,
.lookaround-locatie-wrap .lookaround-card-thumb img,
.lookaround-povestiri .lookaround-card-thumb img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  object-position: center;
  border-radius: 10px;
  display: block;
}

body.tax-locatie .lookaround-card--post .lookaround-card-thumb img,
.lookaround-locatie-wrap .lookaround-card--post .lookaround-card-thumb img,
.lookaround-povestiri .lookaround-card--post .lookaround-card-thumb img {
  border-radius: 0;
}

body.tax-locatie .lookaround-card--term.lookaround-card--with-thumb .lookaround-card-thumb img,
.lookaround-locatie-wrap .lookaround-card--term.lookaround-card--with-thumb .lookaround-card-thumb img,
.lookaround-povestiri .lookaround-card--term.lookaround-card--with-thumb .lookaround-card-thumb img {
  border-radius: 0;
}

@media (max-width: 600px) {
  body.tax-locatie .lookaround-locatie-wrap,
  .lookaround-locatie-wrap {
    padding: 32px 16px 48px;
  }

  body.tax-locatie .lookaround-locatie-grid,
  .lookaround-locatie-grid {
    grid-template-columns: 1fr;
  }

  body.tax-locatie .lookaround-card-thumb img,
  .lookaround-locatie-wrap .lookaround-card-thumb img {
    height: 240px;
  }
}
