/*
  1. Use a more-intuitive box-sizing model.
*/
*,
*::before,
*::after {
  box-sizing: border-box;
}
/*
  2. Remove default margin
*/
* {
  margin: 0;
}
/*
  3. Allow percentage-based heights in the application
*/
html,
body {
  height: 100%;
}
/*
  Typographic tweaks!
  4. Add accessible line-height
  5. Improve text rendering
*/
body {
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}
/*
  6. Improve media defaults
*/
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}
/*
  7. Remove built-in form typography styles
*/
input,
button,
textarea,
select {
  font: inherit;
}
/*
  8. Avoid text overflows
*/
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}
/*
  9. Create a root stacking context
*/
#root,
#__next {
  isolation: isolate;
}

ul,
li {
  margin: 0;
  padding: 0;
}

:root {
  --h1-font-size: calc(clamp(32px, 28px + 1vw, 40px) * 0.9);
  --h2-font-size: clamp(22px, 19px + 0.75vw, 28px);
  --h3-font-size: calc(var(--h2-font-size) / 1.2);
  --p-font-size: clamp(14px, 13px + 0.25vw, 16px);

  /**/
  --color-main: #356378;
  --color-main2: #6a8b9b;
  --color-main3: #99bfc6;
  --color-sub: #94c83f;
  --color-sub-hover: #d7b06d;
  --font-header: 'Montserrat', sans-serif;
  --font-body: 'Montserrat', sans-serif;

  --h1-margin-bottom: clamp(32px, 24px + 2vw, 48px);
  --h2-margin-bottom: 24px;
  --h3-margin: 48px;

  --s_24_32: clamp(24px, 20px + 1vw, 32px);
  --s_16_32: clamp(16px, 8px + 2vw, 32px);

  --section-padding: clamp(48px, 40px + 2vw, 64px);

  --labela-prodano: #c9184a;
  --labela-rezervirano: #ff4d6d;
  --labela-prilika: #fff143;
  --labela-top: #ffca3a;
  --labela-ekskluziva: #2e86ab;
  --labela-prvi_red: #84d2f6;
  --labela-novo: #8ac926;
}

select {
  -moz-appearance: none;
  -webkit-appearance: none;
  cursor: pointer;
}

html {
  scroll-behavior: smooth;
  scroll-padding: 32px;
}

body {
  color: var(--font-color);
  font-size: 62.5%;
  font-family: var(--font-body);
  font-family: Montserrat, sans-serif;
  font-weight: 300;
  line-height: 1;
}

/**/

a.link {
  color: var(--color-main);
  text-decoration: underline;

  &.none {
    text-decoration: none;
  }

  &:hover {
    color: var(--color-sub);
    text-decoration: none;
  }
}

h1,
h2,
h3 {
  color: #000;
  font-family: var(--font-header);
  font-weight: 300;
  line-height: 120%;
  margin: 0 auto 48px;
  text-align: center;
  text-wrap: balance;
}

h1 {
  font-size: var(--h1-font-size);
  margin: 0 auto calc(var(--s_24_32) * 2);

  &.det {
    font-size: calc(var(--h1-font-size) * 0.8);
  }
}

h2 {
  font-size: var(--h2-font-size);
  margin: calc(var(--s_24_32) * 2) auto calc(var(--s_24_32) * 1.5);

  &.c {
    text-align: center;
  }
}

h3.admin {
  margin: 0 0 24px;
  text-transform: uppercase;
}

h3 {
  font-size: var(--h3-font-size);
}

p.text,
ul.text,
ol.text,
div.holder.text {
  line-height: 170%;
  font-size: var(--p-font-size);
  text-align: left;

  &.napomena {
    border-top: 1px solid rgba(0, 0, 0, 0.05);
    font-size: calc(var(--p-font-size) * 0.85);
    padding-top: 32px;
  }

  &.napomena_tmp {
    background-color: rgba(0, 0, 0, 0.05);
    border: 1px solid var(--color-sub);
    padding: 16px;
  }
}

p.text.c {
  text-align: center;
}

ul.text,
ol.text {
  padding-left: 24px;

  ul {
    padding-left: 24px;
  }
}

p.text + ul.text,
p.text + ol.text {
  margin-top: 8px;
}

p.text + p.text,
ul.text + p.text,
ol.text + p.text,
ul.text + ul.text {
  margin-top: 16px;
}

ul.text.admin {
  list-style: none;
  margin: 0 auto;
  padding: 0;
  text-align: center;
  width: min(100%, 400px);

  li + li {
    margin-top: 16px;
  }

  a {
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    display: flex;
    gap: 16px;
    padding: 16px;
    text-decoration: none;
    transition: all 0.5s;

    & span {
      &.icon {
        aspect-ratio: 1;
        flex: 0 0 24px;
      }
    }

    & svg {
      color: rgba(0, 0, 0, 0.25);
      stroke-width: 1.5;
      transition: all 0.5s;
    }

    &:hover {
      border: 1px solid var(--color-main);

      & svg {
        color: var(--color-sub);
      }
    }
  }
}

sup {
  font-size: 0.7em;
}

.display_none {
  display: none !important;
}

/**/

header {
  background-color: var(--color-main);
  margin: 0 auto;
  position: relative;

  @media screen and (max-width: 960px) {
    background-color: transparent;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    transition: all 0.25s;

    &.show {
      background-color: #fff;
    }
  }

  &.index {
    background-color: transparent;
    height: 100vh;
    max-height: 1400px;
    position: relative;
    overflow: hidden;

    &.s1 {
      background: url(images/hero1.jpg) no-repeat center center;
      background-size: cover;
    }

    &.s2 {
      background: url(images/hero2.jpg) no-repeat center center;
      background-size: cover;
    }

    &.s3 {
      background: url(images/hero3.jpg) no-repeat center center;
      background-size: cover;
    }

    &.s4 {
      background: url(images/hero4.jpg) no-repeat center center;
      background-size: cover;
    }

    &.s5 {
      background: url(images/hero5.jpg) no-repeat center center;
      background-size: cover;
    }

    & .hero-video {
      position: absolute;
      top: 50%;
      left: 50%;
      min-width: 100%;
      min-height: 100%;
      width: auto;
      height: auto;
      z-index: -1;
      transform: translate(-50%, -50%);
      object-fit: cover;
    }
  }

  & a {
    text-decoration: underline;

    &:hover {
      text-decoration: none;
    }
  }
}

header.index a.link {
  color: #fff;
}

div.header_bg {
  background: linear-gradient(to top, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.3) 100%);
  height: 50vh;
  position: absolute;
  width: 100%;
}

div.prvaLinija {
  background: #fff;
  font-size: 1.3em;
  height: 45px;
  padding: 10px 0;

  @media screen and (max-width: 960px) {
    background-color: rgba(0, 0, 0, 0.05);
  }
}

.index div.prvaLinija {
  background: none;
  animation: fade-in 1s 1s forwards;
  opacity: 0;
}

@keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes fade-inn {
  0% {
    opacity: 0;
  }
  75% {
    opacity: 1;
  }
  100% {
    opacity: 1;
  }
}
@keyframes fade-in-out {
  0% {
    opacity: 0;
  }
  50% {
    opacity: 1;
  }
  100% {
    opacity: 0;
  }
}

strong {
  font-weight: 400;
}

div.prvaLinija span {
  line-height: 25px;
  left: calc((100% - 1200px) / 2);
  position: absolute;
  top: 10px;

  @media screen and (max-width: 1333px) {
    left: 5%;
  }

  & em {
    font-style: normal;
    padding: 0 10px 0 0;

    & + em {
      border-left: 1px solid rgba(0, 0, 0, 0.1);
      padding: 0 10px 0 10px;
    }

    @media screen and (max-width: 1100px) {
      &.last {
        display: none;
      }
    }
  }
}

#ham {
  background: var(--color-main);
  border-bottom: 1px solid #fff;
  display: none;
  height: 45px;
  position: absolute;
  right: 0px;
  top: 0px;
  width: 45px;

  @media screen and (max-width: 960px) {
    display: block;
  }
}

.burger-container {
  cursor: pointer;
  display: inline-block;
  height: 45px;
  position: absolute;
  transform: rotate(0deg);
  transition: all 0.3s cubic-bezier(0.4, 0.01, 0.165, 0.99);
  width: 45px;
  user-select: none;
  -webkit-tap-highlight-color: transparent;
  z-index: 1000;

  & #burger {
    display: block;
    height: 8px;
    margin: -4px auto 0;
    position: relative;
    top: 50%;
    width: 18px;
  }

  &.open {
    transform: rotate(90deg);

    & #burger .bar {
      background: #fff;
      transition: all 0.4s cubic-bezier(0.4, 0.01, 0.165, 0.99);
      transition-delay: 0.2s;
    }

    & #burger .bar.topBar {
      transform: translateY(4px) rotate(45deg);
    }

    & #burger .bar.btmBar {
      transform: translateY(3px) rotate(-45deg);
    }
  }
}

.bar {
  background: #fff;
  display: block;
  height: 1px;
  position: relative;
  transition: all 0.3s cubic-bezier(0.4, 0.01, 0.165, 0.99);
  transition-delay: 0s;
  width: 100%;

  &.topBar {
    transform: translateY(0px) rotate(0deg);
  }

  &.btmBar {
    transform: translateY(6px) rotate(0deg);
  }
}

.index ul.zastave {
  animation: fade-in 1s 1s forwards;
  opacity: 0;
}

div.drugaLinija {
  height: 100px;
  margin: 0 auto;
  max-width: 1200px;
  transition: all 0.5s;
  width: 90%;

  &.admin {
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    height: 0px;
  }

  & #logo {
    background-color: #fff;
    border-radius: 2px;
    display: flex;
    left: 0;
    margin: 0 auto;
    position: absolute;
    right: 0;
    top: 44px;
    width: 180px;
    z-index: 100;

    .index & {
      top: 39px;
      width: 184px;
    }

    & a {
      display: flex;
      flex: 1;
      padding: 8px 32px;
      text-decoration: none;

      .index & {
        padding: 0 16px;
      }
    }

    & img {
      display: block;
      float: left;
      width: 100%;
    }

    .index & {
      background-color: transparent;
      border-color: transparent;
    }
  }

  & ul.zastave {
    display: flex;
    font-family: var(--font-header);
    font-size: 1.3em;
    gap: 2px;
    list-style: none;
    justify-content: space-between;
    position: absolute;
    right: calc((100% - 1200px) / 2);
    top: 10px;
    width: 194px;

    &.text {
      line-height: 25px;
    }

    & li {
      display: flex;
    }

    & a {
      display: flex;
    }

    & svg {
      height: 24px;
      width: 24px;
    }

    @media screen and (max-width: 1366px) {
      right: 5%;
    }

    @media screen and (max-width: 960px) {
      gap: 4px;
      width: 248px;

      & svg {
        height: 32px;
        width: 32px;
      }
    }
  }

  @media screen and (max-width: 960px) {
    display: flex;
    flex-direction: column;
    height: 120px;
    overflow: hidden;

    .show & {
      height: 500px;
      transition: all 0.5s;
    }

    & #logo {
      margin-top: 4px;
      position: static;
      width: 196px;
    }

    & ul.zastave {
      margin: 16px auto 0;
      position: static;
    }
  }
}

nav {
  border-bottom: 1px solid rgba(0, 0, 0, 0.1);
  border-top: 1px solid rgba(0, 0, 0, 0.1);
  border: none;
  float: right;
  margin-top: 20px;
  width: 100%;

  @media screen and (max-width: 960px) {
    margin-bottom: 16px;
  }
}

#mainNav {
  display: flex;
  font-family: var(--font-header);
  text-align: center;
  width: 100%;

  & > li {
    flex: 0 1 calc((100% - 0px) / 4);
    font-size: calc(var(--p-font-size) * 0.9);
    list-style: none;
    font-weight: 300;
    position: relative;

    & + li {
      margin-left: 1px;

      @media screen and (max-width: 960px) {
        margin-left: 0;
      }
    }
  }

  @media screen and (max-width: 960px) {
    flex-wrap: wrap;
    gap: 2px;

    & > li {
      flex: 0 0 100%;
      font-size: calc(var(--p-font-size) * 0.8);
    }
  }
}

.index #mainNav {
  animation: fade-in 1s 1s forwards;
  opacity: 0;
}

#mainNav > li:nth-child(2) {
  margin-right: 240px;
}

#mainNav a {
  border: 1px solid rgba(255, 255, 255, 0.05);
  border: none;
  border-radius: 4px;
  color: #fff;
  display: block;
  line-height: 60px;
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.5s;

  @media screen and (max-width: 960px) {
    background-color: var(--color-main);
    line-height: 40px;
  }

  .index & {
    color: rgba(255, 255, 255, 1);
    font-weight: 400;
  }

  &:hover {
    background-color: var(--color-sub);
  }

  &.sub {
    align-items: center;
    cursor: default;
    display: flex;
    justify-content: center;

    &::after {
      align-items: center;
      content: '\25BC';
      display: flex;
      font-size: 0.75em;
      justify-content: center;
      margin-left: 4px;
      transition: all 0.5s;
      width: 16px;
      height: 16px;
    }

    &:hover {
      background-color: rgba(255, 255, 255, 0.5);
      color: #fff;

      &::after {
        transform: rotate(180deg);
        opacity: 0;
      }
    }

    @media screen and (max-width: 960px) {
      display: none;
    }
  }
}

.index #mainNav a:hover {
  color: #fff;
}

#mainNav ul {
  background: none;
  display: none;
  margin-top: 0px;
  padding-top: 4px;
  position: absolute;
  width: 100%;
  z-index: 1000;

  @media screen and (max-width: 960px) {
    display: flex !important;
    flex-wrap: wrap;
    gap: 2px;
    padding-top: 0;
    position: static;
  }

  & li {
    flex: 0 0 100%;
    font-size: 0.9em;
    list-style: none;
    width: 100%;

    @media screen and (max-width: 960px) {
      font-size: 1em;
    }

    & + li {
      margin-top: 2px;

      @media screen and (max-width: 960px) {
        margin-top: 0;
      }
    }
  }

  & a {
    background: var(--color-main);
    color: #fff;
    line-height: 40px;
    padding: 0 5px;

    .index & {
    }

    &:hover {
      background-color: var(--color-sub);
      color: #fff;
    }
  }
}

#mainNav > li:hover ul {
  display: block;
}

#pretraga_holder {
  display: block;
  margin: 0 auto;
  padding: 20px 0;
  position: relative;
  width: min(90%, 1200px);

  & #index_search_btn {
    align-items: center;
    display: none;
    height: 32px;
    margin: 32px auto 0;
    width: fit-content;

    & span {
      align-items: center;
      background-color: var(--color-sub);
      color: #fff;
      display: flex;
      font-size: var(--p-font-size);
      height: 32px;
      justify-content: center;
      padding: 4px 8px;
    }

    & span.icon {
      aspect-ratio: 1;
      border-radius: 50%;
      padding: 4px;
      width: 32px;

      & svg {
        color: #fff;
        height: 32px;
        width: 32px;
      }
    }

    .active & {
      display: none;
    }

    @media screen and (max-width: 960px) {
      display: flex;
      gap: 4px;
    }
  }

  & #index_search_btn_close {
    display: none;
    position: absolute;
    top: 5vh;

    & span svg {
      color: #fff;
      height: 32px;
      width: 32px;
    }

    @media screen and (max-width: 960px) {
      .active & {
        display: flex;
      }
    }
  }

  &.index {
    animation: fade-in 1s 1s forwards;
    bottom: min(calc(7.5vh - 0px), 80px);
    left: 50%;
    padding: 0;
    position: absolute;
    transform: translate(-50%, 0);
    z-index: 100;
    opacity: 0;

    @media screen and (max-width: 960px) {
      &.active {
        align-items: center;
        background-color: var(--color-main);
        display: flex;
        height: 100vh;
        justify-content: center;
        top: 0;
        width: 100%;
        z-index: 2000;

        & div.h1_holder {
          display: none;
        }

        & > form {
          display: block;
          position: absolute;
          width: 100vw;
        }
      }

      & > form {
        display: none;
        position: absolute;
        width: 90vw;
      }
    }
  }

  & div.h1_holder {
    display: flex;
    justify-content: center;
    position: relative;
    width: 100%;

    & h1 {
      animation: fade-in 1s 1s forwards;
      background-color: var(--color-sub);
      border-radius: 2px 2px 0 0;
      color: #fff;
      display: flex;
      font-size: calc(var(--h2-font-size) * 0.8);
      font-weight: 300;
      justify-content: center;
      margin: 0;
      opacity: 0;
      padding: 12px 24px;
      text-transform: none;
      text-wrap: balance;
      width: auto;
      z-index: 100;
    }
  }
}

fieldset {
  border: none;
  margin: 0;
  padding: 0;
}

/*

#indexSearch {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 2px;
  box-shadow: 0 5px 5px rgba(0, 0, 0, 0.25);
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 24px;

  @media screen and (max-width: 700px) {
    background-color: transparent;
    box-shadow: none;
    gap: 4px 2px;
    padding: 0;
  }
}

*/

#indexSearch > li {
  background-color: rgba(0, 0, 0, 0);
  display: flex;
  flex: 0 0 calc((100% - 824px - 16px));
  justify-content: space-between;
  line-height: 50px;
  list-style: none;

  /*
  &.auto {
    flex: 0 0 324px;
  }

  &.cijena {
    flex: 0 0 300px;
  }

  &:nth-last-of-type(-n + 2) {
    flex: 0 0 100px;
  }

  @media screen and (max-width: 1200px) {
    flex: 0 0 calc((50% - 2px)) !important;

    &:nth-last-of-type(-n + 2) {
      flex: 0 0 calc((25% - 3px)) !important;
    }
  }

  @media screen and (max-width: 700px) {
    flex: 0 0 100% !important;

    &:nth-last-of-type(-n + 2) {
      flex: 0 0 calc((50% - 1px)) !important;
    }
  }
    */
}

#mainSearch,
#indexSearch {
  display: grid;
  gap: 2px;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  list-style: none;

  @media screen and (max-width: 960px) {
    grid-template-columns: 1fr 1fr;
  }

  @media screen and (max-width: 700px) {
    grid-template-columns: 1fr;
  }
}

#indexSearch {
  background-color: rgba(0, 0, 0, 0.5);
  border-radius: 2px;
  box-shadow: 0 4px 4px rgba(0, 0, 0, 0.25);
  padding: 24px;

  .active & {
    background-color: transparent;
    box-shadow: none;
    padding: 5vw;
  }
}

#mainSearch li {
  display: flex;
  justify-content: space-between;

  & ::placeholder {
    color: var(--color-main);
  }
}

::placeholder {
  color: var(--color-main);
  color: #fff;
}

#kontaktAgent ::placeholder,
#admin_search ::placeholder {
  color: #333;
}

.force-opaque::placeholder {
  opacity: 1;
}

#dropdownInput::placeholder {
  color: #000;
}

#pretraga_holder input,
#pretraga_holder select {
  background: #f7f7f7;
  background-color: #fff;
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.25);
  box-shadow: none;
  color: var(--color-main);
  font-size: calc(var(--p-font-size) * 0.8);
  font-weight: 300;
  height: 48px;
  line-height: 20px;
  margin: 0;
  padding: 12px 16px;
  position: relative;
  text-transform: uppercase;
  transition: all 0.5s;
  vertical-align: baseline;
  width: 100%;
  z-index: 5;

  .index & {
    background-color: transparent;
    border: 1px solid rgba(0, 0, 0, 0.5);
    color: #fff;

    @media screen and (max-width: 960px) {
      border: 1px solid rgba(0, 0, 0, 0.1);
    }
  }

  &.search-box {
    background: transparent;
    border: none !important;
    flex-grow: 1;
    font-size: calc(var(--p-font-size) * 0.8);
    height: 44px;
    margin: 1px auto;
    padding: 4px 4px 4px 16px;
    outline: none;

    :hover {
      border: none;
    }
  }

  &.has-value {
    border: 1px solid var(--color-sub);
  }
}

#pretraga_holder select option {
  color: var(--color-main);
}

#pretraga_holder select.mala,
#pretraga_holder input.mala {
  width: calc(50% - 1px);
}

#pretraga_holder input:hover,
#pretraga_holder select:hover {
  border: 1px solid var(--color-main);
}

#pretraga_holder input.submit {
  background-color: var(--color-sub);
  border: 1px solid var(--color-sub);
  color: #fff;
  cursor: pointer;
  transition: all 0.5s;
  width: calc(50% - 1px);

  &:hover {
    background-color: var(--color-main);
    border: 1px solid var(--color-sub);
  }
}

/**/

.custom-select {
  position: relative;
  width: 100%;

  .select-box {
    align-items: center;
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    display: flex;
    overflow: hidden;
    transition: all 0.5s;
    white-space: nowrap;

    .index & {
      background-color: transparent;
      border: 1px solid rgba(0, 0, 0, 0.5);

      @media screen and (max-width: 960px) {
        border: 1px solid rgba(0, 0, 0, 0.1);
      }
    }

    &:focus {
      outline: 2px solid #007bff;
    }

    &:hover {
      border: 1px solid var(--color-main);
    }

    .clear-button {
      background: none;
      border: none;
      color: var(--color-sub);
      cursor: pointer;
      display: none; /* Hidden by default */
      font-size: 16px;
      font-weight: 400;
      line-height: 46px;
      line-height: 40px;
      margin: auto;
      padding: 0 8px;

      &:hover {
        color: var(--color-main);

        .index & {
          color: #fff;
        }
      }
    }

    &.has-value {
      border: 1px solid var(--color-sub);
    }
  }

  .dropdown {
    background: white;
    border: 1px solid #ccc;
    display: none;
    margin-top: 0px;
    max-height: 150px;
    overflow-y: auto;
    position: absolute;
    width: 100%;
    z-index: 1000;

    &.show {
      border-radius: 8px;
      box-shadow: 0 2px 2px rgba(0, 0, 0, 0.25);
      display: block;
    }

    .options {
      border-radius: 4px;
      list-style: none;
      margin: 0;
      overflow: hidden;
      padding: 0;

      li {
        align-items: center;
        cursor: pointer;
        display: flex;
        justify-content: space-between;
        line-height: 22px;
        padding: 2px 18px;

        & + li {
          margin-top: 1px;
        }

        &:hover,
        &.highlighted {
          background-color: #1967d2;
          color: white;
        }

        &.selected {
          background-color: var(--color-sub);
          color: white;

          &:hover {
            background-color: var(--color-main);
          }

          .remove-icon {
            color: white;

            &:hover {
              color: #1967d2;
            }
          }
        }

        .remove-icon {
          color: #999;
          cursor: pointer;
          font-size: 12px;

          &:hover {
            color: #333;
          }
        }
      }
    }

    /* Scrollbar styling for WebKit-based browsers (Chrome, Safari, Edge) */
    &::-webkit-scrollbar {
      width: 8px;
    }

    &::-webkit-scrollbar-track {
      background: #f1f1f1;
      border-radius: 4px;
    }

    &::-webkit-scrollbar-thumb {
      background: #888;
      border-radius: 4px;
    }

    &::-webkit-scrollbar-thumb:hover {
      background: #555;
    }

    /* Scrollbar styling for Firefox */
    scrollbar-width: thin;
    scrollbar-color: #888 #f1f1f1;
  }
}

/*
############################################
*/

div.autocomplete_holder {
  display: flex;
  position: relative;
  width: 100%;

  div.selected_cities_holder {
    background-color: rgba(0, 0, 0, 0.025);
    border-radius: 4px;
    height: 48px;
    left: 102px;
    position: absolute;
    width: calc(100% - 102px);

    .admin & {
      left: 202px;
      width: calc(100% - 202px);
    }

    #selected-cities-container {
      display: flex;
      overflow-x: auto;
      scroll-snap-type: x mandatory;
      scrollbar-width: none;
      z-index: 10;
      scrollbar-gutter: stable; /* Ensures space for scrollbar on both edges */
      padding-bottom: 8px; /* To ensure space for the custom scrollbar */

      .tag {
        background-color: var(--color-main2);
        border-radius: 4px;
        color: #fff;
        cursor: pointer;
        display: inline-block;
        font-size: 1.2em;
        line-height: 32px;
        margin: 2px;
        padding: 4px 8px;
        transition: all 0.5s;
        white-space: nowrap;

        &:hover {
          background-color: var(--color-main3);
        }
      }
    }
  }
}

#selected-cities-container::-webkit-scrollbar {
  display: none; /* Hide default scrollbar for WebKit browsers */
}

.custom-scrollbar {
  background-color: rgba(0, 0, 0, 0.1); /* Track color */
  bottom: 0;
  height: 4px; /* Custom scrollbar height */
  left: 0;
  position: absolute;
  width: 100%;

  &.hidden {
    background-color: transparent; /* Make scrollbar track transparent when hidden */
  }
}

.custom-thumb {
  background-color: rgba(0, 0, 0, 0.5); /* Thumb color */
  background-color: var(--color-sub);
  border-radius: 6px;
  cursor: pointer;
  height: 4px; /* Custom thumb height */
  position: relative;
  width: 50px; /* Initial width of the thumb */
}

#search-input {
  border: 1px solid #ccc;
  border-radius: 4px;
  line-height: 22px !important;
  width: 100px !important;

  .admin & {
    border: 0;
    display: flex;
    font-size: 1.6em;
    line-height: 34px;
    padding: 0;
    width: 200px !important;

    &:hover,
    &:focus {
      background-color: initial;
      border: initial;
      color: initial;
      box-shadow: none;
      outline: none;
    }
  }
}

.dropdown {
  background: white;
  border: 1px solid #ccc;
  border-radius: 4px;
  color: var(--color-main);
  display: none;
  font-size: calc(var(--p-font-size) * 0.8);
  font-weight: 300;
  margin-top: calc(50px + 4px);
  max-height: 140px;
  overflow-y: auto;
  position: absolute;
  width: 100%;
  z-index: 1000;

  .admin & {
    left: 202px;
    width: calc(100% - 202px);
  }

  .upit.admin & {
    left: 0;
    width: 100%;
  }

  div {
    padding: 8px;
    cursor: pointer;
    line-height: 100%;
    padding-left: 16px;
  }

  div:hover,
  .active {
    background-color: #f0f0f0;
  }
}

/*
############################################
*/

/**/

main {
}

#gore {
  background: #eee;
  border-top: 0px solid #fff;
  padding: 0;
  position: relative;
  width: 100%;

  & > span {
    display: none;
  }

  #okvirFilter {
  }

  @media screen and (max-width: 960px) {
    bottom: 0;
    left: 0;
    position: fixed;
    top: auto;
    width: 100%;
    z-index: 150;

    & > span {
      align-items: center;
      background: var(--color-main);
      border-top: 1px solid #fff;
      color: #fff;
      display: flex;
      font-size: calc(var(--p-font-size) * 0.9);
      font-weight: 400;
      justify-content: center;
      padding: 16px 5vw;
      text-align: center;
      text-transform: uppercase;
      width: 100%;

      &:hover {
        background: #555;
      }

      & > span.filter {
        display: flex;
        height: 24px;
        margin-right: 12px;
        width: 24px;
      }
    }
  }
}

@media screen and (max-width: 960px) {
  #okvirFilter {
    align-items: center;
    border: 0;
    height: 0;
    transition: all 0.5s;
    overflow: hidden;
  }

  .show #okvirFilter {
    height: calc(143px + 40px);
  }
}

@media screen and (max-width: 700px) {
  .show #okvirFilter {
    height: calc(398px + 40px);
  }
}

/* breadcrumb */

#navTo {
  position: relative;
  margin: var(--s_24_32) auto 0;
  overflow: hidden;
  width: min(90%, 1200px);

  & ol {
    font-size: calc(var(--p-font-size) * 0.8);
    font-weight: 300;
    list-style-type: none;
    margin: 0;
    overflow: hidden;
    padding: 3px 0;
    width: auto;
  }

  & li {
    float: left;
    line-height: 22px;
    margin-right: 10px;

    &:after {
      content: ' > ';
    }

    &:last-of-type {
      margin-right: 0;

      & a {
        padding-left: 0;
      }

      &:after {
        content: '';
        padding: 1px 0;
      }
    }
  }

  & a {
    color: var(--link-color);
    display: block;
    float: left;
    line-height: 22px;
    padding: 0 10px 0 0;
    text-align: left;
    text-decoration: underline;

    &:hover {
      text-decoration: none;
    }
  }
}

section {
  margin: calc(var(--s_24_32) * 2) auto;
  width: min(90%, 1200px);

  &.index {
    margin: 0;
    padding: calc(var(--s_24_32) * 2) 0;
    width: 100%;

    & + section {
      border-top: 1px solid #ddd;
    }

    h2 {
      margin: 0 auto 48px;
      text-transform: uppercase;
    }
  }

  &.pretraga {
    div.heading {
      align-items: center;
      background-color: transparent;
      display: flex;
      gap: 32px;
      justify-content: center;
      margin: 0 auto 32px;
      width: min(90%, 1200px);

      h2 {
        margin: 0;
        text-align: center;
      }
    }

    #pretraga_holder {
      padding: 0;
    }

    @media screen and (min-width: 961px) {
      display: none;
    }
  }

  &.nekretnine {
    &.det {
      background-color: rgba(0, 0, 0, 0.05);
    }

    & div.heading {
      align-items: center;
      background-color: transparent;
      display: flex;
      gap: var(--s_16_32);
      justify-content: space-between;
      margin: 0 auto 32px;
      width: min(90%, 1200px);

      & h2 {
        margin: 0;
        text-align: left;
      }
    }

    & svg {
      height: 16px;
      width: 16px;
    }

    & #navButtons {
      display: grid;
      gap: clamp(12px, 10px + 0.5vw, 16px);
      grid-template-columns: 1fr 1fr;
      margin: 0 auto;
      min-width: 104px;

      & button {
        border: 1px solid var(--color-main);
        border-radius: 4px;
        color: var(--color-main);
        cursor: pointer;
        display: flex;
        justify-content: center;
        padding: clamp(8px, 6px + 0.5vw, 12px) clamp(12px, 10px + 0.5vw, 16px);
        transition: all 0.5s;

        & svg {
          color: var(--color-main);
          stroke-width: 2;
        }
      }

      & button:hover:not(:disabled) {
        background-color: var(--color-main);
        color: #fff;

        & svg {
          color: #fff;
        }
      }

      & #prevButton:disabled,
      & #nextButton:disabled {
        border-color: rgba(0, 0, 0, 0.1);
        cursor: not-allowed;

        & svg {
          color: rgba(0, 0, 0, 0.1);
        }
      }
    }

    & #scrollProgress {
      background: rgba(0, 0, 0, 0.05);
      height: 4px;
      margin: 0 auto 12px;
    }

    & #scrollProgressBar {
      background: var(--color-main);
      height: 100%;
      width: 0;
    }

    & ul {
      display: flex;
      gap: clamp(16px, 12px + 1vw, 24px);
      list-style: none;
      margin: 0 auto;
      overflow-x: auto;
      scrollbar-width: none;
      width: min(90%, 1200px);
      width: 100%;

      @media screen and (max-width: 1366px) {
        scroll-snap-type: x mandatory;
        width: 90%;
      }

      &::-webkit-scrollbar {
        display: none;
      }

      & li {
        border: 1px solid rgba(0, 0, 0, 0.05);
        border-radius: 4px;
        display: flex;
        flex-direction: column;
        flex-shrink: 0;
        overflow: hidden;
        scroll-snap-align: start;
        transition: all 0.5s;
        width: min(85%, 320px);

        &:hover {
          border: 1px solid var(--color-main2);

          & > div {
            background-color: transparent;
          }
        }

        &:first-child {
          margin-left: calc((100% - 1200px) / 2);

          @media screen and (max-width: 1333px) {
            margin-left: 0;
          }
        }

        &:last-child {
          margin-right: calc((100% - 1200px) / 2);
        }

        & a {
          display: block;
          position: relative;

          & > div.nekretnine_features {
            left: 8px;
            top: 8px;
            position: absolute;
            z-index: 10;

            & > span {
              border-radius: 4px;
              color: #000;
              display: block;
              font-size: calc(var(--p-font-size) * 0.75);
              font-weight: 400;
              padding: calc(var(--s_24_32) / 4);
              text-transform: uppercase;
              width: fit-content;

              & + span {
                margin-top: 4px;
              }

              &.prodano {
                background-color: var(--labela-prodano);
              }

              &.rezervirano {
                background-color: var(--labela-rezervirano);
              }

              &.prilika {
                background-color: var(--labela-prilika);
              }

              &.top {
                background-color: var(--labela-top);
              }

              &.ekskluziva {
                background-color: var(--labela-ekskluziva);
              }

              &.prvi_red {
                background-color: var(--labela-prvi_red);
              }

              &.napomena.novo {
                background-color: var(--labela-novo);
              }

              &.id {
                background-color: rgba(0, 0, 0, 0.25);
                right: 8px;
                bottom: 8px;
              }
            }
          }

          & img {
            aspect-ratio: 3 / 2;
            background-color: #f7f7f7;
            border-bottom: 1px solid rgba(0, 0, 0, 0.1);
            object-fit: cover;
            width: 100%;
          }
        }

        & > div {
          background-color: #fff;
          display: flex;
          flex-direction: column;
          height: 100%;
          justify-content: space-between;
          padding: 8px;
          transition: all 0.5s;
        }

        & h3 {
          font-size: calc(var(--p-font-size) * 1.05);
          margin: 8px auto 16px;

          & a {
            display: flex;
            justify-content: center;
            text-decoration: none;
          }
        }

        & h3 + div {
        }

        & div.data {
          display: flex;
          gap: 16px;
          justify-content: space-around;
          list-style: none;
          margin: 16px 8px;
          width: calc(100% - 20px);

          & > div {
            align-items: center;
            border: 0;
            display: flex;
            font-size: calc(var(--p-font-size) * 0.95);
            gap: 8px;
            line-height: 100%;
            margin: 0;

            & > span {
              align-items: center;
              display: flex;
              white-space: nowrap;

              &.icon {
                display: flex;
                height: 20px;
                width: 20px;

                & svg {
                  height: 20px;
                  width: 20px;
                }
              }
            }
          }
        }

        & div.price {
          align-items: center;
          border-top: 1px solid rgba(0, 0, 0, 0.05);
          display: flex;
          font-size: calc(var(--p-font-size) * 1.2);
          font-weight: 400;
          gap: 16px;
          justify-content: center;
          padding: 16px 8px 8px;
          text-align: center;

          & span {
            align-items: center;
            display: flex;
          }

          & span.akcija {
            color: red;
          }

          span.staro {
            color: #999;
            font-size: 0.8em;
            text-decoration: line-through;
          }
        }
      }
    }
  }

  &.onama {
    & > div {
      align-items: center;
      display: flex;
      gap: calc(var(--s_24_32) * 2);
      margin: 0 auto;
      width: min(90%, 1200px);

      & h2 {
        text-align: left;
        margin-bottom: var(--s_24_32);
      }

      & div {
        &.img {
          aspect-ratio: 1.5;
          border-radius: 8px;
          background-color: rgba(0, 0, 0, 0.05);
          flex: 0 0 calc(50% - 32px);
        }

        &.data {
          & a {
            display: flex;
            font-size: calc(var(--p-font-size) * 0.9);
            font-weight: 400;
            margin-top: var(--s_24_32);
          }
        }
      }

      @media screen and (max-width: 960px) {
        flex-wrap: wrap;

        & div.img {
          flex: 0 0 100%;
        }
      }
    }
  }

  &.investicije {
    & > div {
      align-items: center;
      display: flex;
      flex-direction: column;
      margin: 0 auto;
      width: min(90%, 800px);

      & a {
        display: flex;
        font-size: calc(var(--p-font-size) * 0.9);
        font-weight: 400;
        margin-top: 32px;
      }
    }
  }
}

/**/

div.img_holder {
  margin: 0 auto var(--s_24_32);
  width: min(100%, 900px);
}

div.text_holder {
  margin: 0 auto;
  width: min(100%, 800px);
}

/**/

#sortField {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: var(--s_16_32);
  justify-content: space-between;
  margin-bottom: var(--s_16_32);
  z-index: 10;

  &.admin {
    margin-top: var(--s_16_32);
  }

  & p {
    font-size: calc(var(--p-font-size) * 0.95);
    position: relative;
  }

  & select {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 4px;
    box-shadow: 0 1px 2px rgb(0 0 0 / 25%);
    box-shadow: none;
    color: #000;
    cursor: pointer;
    float: right;
    font-family: var(--font-body);
    font-size: calc(var(--p-font-size) * 0.8);
    font-weight: 300;
    line-height: 20px;
    margin: 0;
    padding: 10px 10px;
    position: relative;
    text-transform: uppercase;
    transition: all 0.5s;
    vertical-align: baseline;
    width: min(50%, 325px);
    z-index: 5;

    &:hover {
      border: 1px solid var(--color-sub);
    }
  }

  @media screen and (max-width: 600px) {
    & select {
      width: 100%;
    }
  }
}

#nekretnineList {
  color: #000;
  display: flex;
  flex-wrap: wrap;
  gap: 24px;
  list-style: none;

  & > li {
    display: flex;
    flex: 0 0 100%;
    gap: 16px;

    @media screen and (max-width: 800px) {
      flex-wrap: wrap;
      gap: 8px;
    }

    @media screen and (max-width: 500px) {
      flex-wrap: wrap;
      gap: 0px;
    }

    & > a {
      display: flex;
      flex: 0 0 650px;
      justify-content: space-between;
      position: relative;

      @media screen and (800px < width < 1200px) {
        flex: 0 0 321px;
      }

      @media screen and (max-width: 800px) {
        flex: 0 0 100%;
      }

      & > div.nekretnine_features {
        left: 8px;
        top: 8px;
        position: absolute;
        z-index: 10;

        & > span {
          border-radius: 4px;
          color: #000;
          display: block;
          font-size: calc(var(--p-font-size) * 0.75);
          font-weight: 400;
          padding: calc(var(--s_24_32) / 4);
          text-transform: uppercase;
          width: fit-content;

          & + span {
            margin-top: 4px;
          }

          &.prodano {
            background-color: var(--labela-prodano);
          }

          &.rezervirano {
            background-color: var(--labela-rezerviran);
          }

          &.prilika {
            background-color: var(--labela-prilika);
          }

          &.top {
            background-color: var(--labela-top);
          }

          &.ekskluziva {
            background-color: var(--labela-ekskluziva);
          }

          &.prvi_red {
            background-color: var(--labela-prvi_red);
          }

          &.novo {
            background-color: var(--labela-novo);
          }

          &.id {
            background-color: rgba(0, 0, 0, 0.25);
            right: 8px;
            bottom: 8px;
          }
        }
      }

      > img {
        border: 2px solid #eee;
        border-radius: 4px;
        width: calc(50% - 4px);
        transition: all 0.5s;
        aspect-ratio: 3 / 2;
        background-color: #eee;

        &:hover {
          border-color: var(--color-main);
        }

        @media screen and (800px < width < 1200px) {
          width: 100%;

          & + img {
            display: none;
          }
        }

        @media screen and (width < 501px) {
          width: 100%;

          & + img {
            display: none;
          }
        }
      }
    }

    & > div {
      background-color: rgba(0, 0, 0, 0.05);
      border: 1px solid rgba(0, 0, 0, 0.05);
      border-radius: 4px;
      align-items: center;
      display: flex;
      flex: 1;
      flex-direction: column;
      justify-content: space-between;
      padding: clamp(16px, 12px + 1vw, 20px) clamp(16px, 8px + 2vw, 24px);
      transition: all 0.5s;

      &:hover {
        background-color: rgba(0, 0, 0, 0);
        border: 1px solid rgba(0, 0, 0, 0.1);
      }

      & > h3 {
        align-items: flex-start;
        display: flex;
        font-size: calc(var(--p-font-size) * 1.15);
        font-weight: 400;
        margin: 0 0 24px;
        text-align: left;
        text-wrap: wrap;
        width: 100%;
      }

      & > div {
        width: 100%;

        & > div {
          display: flex;
          flex: 0 0 100%;
        }

        & div.data {
          flex-wrap: wrap;
          gap: 24px;

          & > div {
            align-items: center;
            display: flex;
            gap: 8px;

            & span {
              align-items: center;
              display: flex;
              font-size: calc(var(--p-font-size) * 1);

              &.icon {
                height: 20px;
                width: 20px;

                & svg {
                  height: 20px;
                  width: 20px;
                }
              }

              & sup {
                margin-bottom: auto;
              }
            }
          }
        }

        & > div.price {
          align-items: flex-end;
          border-top: 1px solid rgba(0, 0, 0, 0.05);
          font-size: calc(var(--p-font-size) * 1.25);
          font-weight: 400;
          justify-content: space-between;
          margin-top: 12px;
          padding-top: 12px;
          text-align: left;

          & span.akcija {
            color: red;
          }

          & span.staro {
            color: #999;
            font-size: 0.75em;
            text-decoration: line-through;
          }

          & span.id {
            font-size: 0.75em;
          }
        }
      }
    }
  }
}

/*

#nekretnineList2 {
  display: grid;
  gap: clamp(16px, 0.8245em + 2.1622vw, 32px);
  grid-auto-flow: row dense;
  grid-template-columns: repeat(auto-fill, minmax(324px, 1fr));
  inline-size: 100%;
  list-style: none;
  margin: 0 auto;

  > li {
    background-color: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    list-style: none;
    overflow: hidden;
    transition: all 0.5s;

    > a {
      aspect-ratio: 1.5;
      display: flex;
      flex: 1;
      position: relative;

      img {
        aspect-ratio: 1.5;
        background-color: #f7f7f7;
        object-fit: cover;

        & + img {
          display: none;
        }
      }

      span {
        border-radius: 4px;
        color: #fff;
        font-size: calc(var(--p-font-size) * 0.75);
        padding: calc(var(--s_24_32) / 4);
        position: absolute;
        text-transform: uppercase;

        &.napomena {
          background-color: red;
          left: 8px;
          top: 8px;
        }

        &.id {
          background-color: rgba(0, 0, 0, 0.5);
          right: 8px;
          bottom: 8px;
        }
      }
    }

    > div {
      > h3 {
        font-size: 1.9em;
        height: 80px;
        padding: 12px 16px 0;
      }

      > div {
        div.data {
          display: flex;
          gap: 16px;
          justify-content: space-around;
          list-style: none;
          margin: 16px 8px;
          width: calc(100% - 20px);

          > div {
            align-items: center;
            border: 0;
            display: flex;
            font-size: 1.7em;
            gap: 8px;
            line-height: 100%;
            margin: 0;

            > span {
              &.icon {
                display: flex;
                height: 20px;
                width: 20px;

                svg {
                  height: 20px;
                  width: 20px;
                }
              }
            }
          }
        }

        div.price {
          border-top: 1px solid rgba(0, 0, 0, 0.1);
          display: flex;
          font-size: 2.4em;
          font-weight: 400;
          justify-content: space-between;
          line-height: 130%;
          padding: 24px;
          width: 100%;
        }
      }
    }
  }
}

?/

/* pagination */

div.rez {
  align-items: center;
  color: #fff;
  display: flex;
  flex-wrap: wrap;
  font-size: calc(var(--p-font-size) * 0.8);
  gap: 16px 32px;
  justify-content: space-between;
  letter-spacing: -0.25px;
  line-height: 160%;
  margin: 32px auto 0;
  text-align: center;

  & > div {
    display: flex;
    gap: 4px;
    justify-content: flex-start;
  }

  & span.cur,
  & span.ukupno {
    background: var(--color-main);
    border: 0px solid #fff;
    border-radius: 4px;
    color: #fff;
    display: block;
    padding: 4px 8px;
    text-align: center;
  }

  & span.ukupno {
    background-color: transparent;
    color: #000;
    margin-right: 0;
    padding: 4px 0px;
  }

  & a.brz {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    display: block;
    padding: 3px 8px;
    transition: all 0.5s;

    &:link,
    &:visited {
      color: var(--color-main);
      text-decoration: none;
    }

    &:hover,
    &:active {
      border: 1px solid var(--color-main);
    }
  }
}

/* */

div.nekretnineDet {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: calc(var(--s_24_32) * 2);
  margin: 0 auto;
}

#nekretnineDetSlike {
  display: grid;
  gap: calc(var(--s_16_32) / 4);
  grid-template-columns: 1fr 1fr 1fr;
  flex: 0 0 60%;

  @media screen and (max-width: 960px) {
    flex: 0 0 100%;
  }

  & li {
    aspect-ratio: 3 / 2;
    background-color: #f7f7f7;
    border-radius: 2px;
    display: flex;
    list-style: none;
    overflow: hidden;

    &.hero {
      aspect-ratio: 3 / 2;
      grid-column: 1 / -1;
    }

    & > a {
      display: flex;
      position: relative;
      width: 100%;

      & > div.nekretnine_features {
        left: 8px;
        top: 8px;
        position: absolute;
        z-index: 10;

        & > span {
          border-radius: 4px;
          color: #000;
          display: block;
          font-size: calc(var(--p-font-size) * 0.75);
          padding: calc(var(--s_24_32) / 4);
          text-transform: uppercase;
          width: fit-content;

          & + span {
            margin-top: 4px;
          }

          &.prodano {
            background-color: var(--labela-prodano);
          }

          &.rezervirano {
            background-color: var(--labela-rezerviran);
          }

          &.prilika {
            background-color: var(--labela-prilika);
          }

          &.top {
            background-color: var(--labela-top);
          }

          &.ekskluziva {
            background-color: var(--labela-ekskluziva);
          }

          &.prvi_red {
            background-color: var(--labela-prvi_red);
          }

          &.novo {
            background-color: var(--labela-novo);
          }
        }
      }

      & > div.slike_count {
        align-items: center;
        background-color: rgba(0, 0, 0, 0.25);
        border-radius: 4px;
        bottom: 8px;
        display: flex;
        font-size: calc(var(--p-font-size) * 0.8);
        font-weight: 400;
        left: 8px;
        padding: calc(var(--s_24_32) / 4);
        position: absolute;

        & span {
          align-items: center;
          color: #fff;
          display: flex;

          &.icon {
            height: 16px;
            margin-right: 5px;
            width: 16px;

            & svg {
              stroke-width: 2;
            }
          }
        }
      }
    }

    & img {
      border: 2px solid #fff;
      border-radius: 4px;
      object-fit: cover;
      transition: all 0.5s;
      width: 100%;

      &:hover {
        border-color: var(--color-main);
      }
    }
  }
}

div.features {
  display: flex;
  gap: 2px;

  & span {
    border: 0px solid #fff;
    border-radius: 4px;
    color: #fff;
    font-size: calc(var(--p-font-size) * 0.8);
    padding: calc(var(--s_24_32) / 4);
    right: 8px;
    text-decoration: none;
    top: 8px;
    text-transform: uppercase;

    &.prodano {
      background-color: var(--labela-prodano);
    }

    &.rezervirano {
      background-color: var(--labela-rezerviran);
    }

    &.prilika {
      background-color: var(--labela-prilika);
    }

    &.top {
      background-color: var(--labela-top);
    }

    &.ekskluziva {
      background-color: var(--labela-ekskluziva);
    }

    &.prvi_red {
      background-color: var(--labela-prvi_red);
    }

    &.novo {
      background-color: var(--labela-novo);
    }
  }
}

#nekretnineDetData {
  flex: 1;
  font-size: var(--p-font-size);
  margin: 0 auto;
  max-width: 720px;

  & li {
    align-items: center;
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: flex;
    justify-content: space-between;
    list-style: none;
    padding-bottom: 8px;

    & + li {
      margin-top: 15px;
    }

    & > div {
      align-items: center;
      gap: 16px;
      display: flex;

      & span.icon {
        align-items: center;
        display: flex;
        height: 20px;
        justify-content: center;
        stroke-width: 1.5;
        width: 20px;
      }
    }

    & > span {
      font-weight: 400;
    }
  }
}

#nekretnineDetData {
  & #cijena_form {
    display: flex;
    flex-wrap: wrap-reverse;
    margin-top: calc(var(--s_16_32) / 1);

    & form {
      display: flex;
      flex: 1;

      & fieldset {
        display: flex;
        gap: 4px;

        & span {
          flex: 1;
        }

        & input.text.green {
          border-color: green;
        }

        & input.text.red {
          border-color: red;
        }

        & input.submit {
          background-color: #fff;
          border: 1px solid var(--color-main);
          color: var(--color-main);
          padding: 12px 15px;

          &:hover {
            background-color: var(--color-sub);
            border-color: var(--color-sub);
            color: #fff;
          }
        }
      }
    }
  }
}

/* cijena */

#nekretnineDetData p {
  font-weight: 400;
  margin-top: 40px;

  &.cijena {
    font-size: 2em;
    font-weight: 500;
  }

  & .akcija {
    color: red;
  }

  & .staro {
    float: right;
    margin-left: 20px;
    text-decoration: line-through;
  }

  &.opis {
    font-size: 1em;
    margin-top: 0;
  }
}

#nekretnineDetData div.kontakti {
  display: flex;
  flex-wrap: wrap;
  font-size: 0.8em;
  gap: calc(var(--s_16_32) / 1) calc(var(--s_16_32) / 2);
  margin-top: 32px;

  & > a {
    align-items: center;
    background-color: var(--color-main);
    border: 1px solid var(--color-main);
    border-radius: 4px;
    color: #fff;
    display: flex;
    flex: 1 1 auto;
    justify-content: center;
    line-height: 120%;
    padding: calc(var(--s_24_32) * 0.375) calc(var(--s_24_32) * 0.5);
    text-decoration: none;
    transition: all 0.5s;

    @media screen and (max-width: 960px) {
      padding: calc(var(--s_24_32) * 0.5);
    }

    & svg {
      color: #fff;
      height: 20px;
      transition: all 0.5s;
      width: 20px;
    }

    &:hover {
      background-color: var(--color-sub);

      & svg {
      }
    }

    & span {
    }
  }

  & > div {
    display: flex;
    gap: 8px;

    @media screen and (max-width: 400px) {
      flex: 0 0 100%;
      justify-content: center;
    }

    & > a {
      align-items: center;
      border: 1px solid var(--color-main);
      border-radius: 4px;
      display: flex;
      justify-content: center;
      padding: calc(var(--s_24_32) * 0.375) calc(var(--s_24_32) * 0.5);
      transition: all 0.5s;

      &:hover {
        border-color: rgba(0, 0, 0, 0.1);
      }

      & svg {
        color: var(--color-main);
        display: block;
        height: 20px;
        width: 20px;
      }
    }
  }

  & span.icon {
    align-items: center;
    aspect-ratio: 1 / 1;
    display: flex;
    flex: 0 0 20px;
    margin-right: 8px;
  }
}

.nekretnineDet2 {
  margin: calc(var(--s_24_32) * 2) auto;
  max-width: 720px;
}

section ul.karakteristike {
  display: grid;
  gap: 12px 10%;
  grid-template-columns: 1fr 1fr;
  list-style: none;
  margin: 0 auto 32px;
  max-width: 920px;

  @media screen and (max-width: 760px) {
    grid-template-columns: 1fr;
  }

  & li {
    border-bottom: 1px solid rgba(0, 0, 0, 0.05);
    display: block;
    font-size: var(--p-font-size);
    line-height: 150%;
    padding-bottom: 2px;

    &.none {
      border: 0;
    }
  }

  &.male {
    max-width: 720px;

    & li {
      border-bottom: 1px solid #777;
      margin: 0 0 10px 0;
      width: 100%;

      &.none {
        border-bottom: 1px solid #eee;
        margin-top: 10px;
      }
    }
  }

  & span {
    font-weight: 400;
    float: right;
  }
}

div.pomoc {
  align-items: center;
  border: 1px solid rgba(0, 0, 0, 0.05);
  box-shadow: 0 2px 4px 0px rgb(0, 0, 0, 0.25);
  display: flex;
  margin-top: 32px;
  padding: var(--s_24_32);

  & p {
    font-size: calc(var(--p-font-size) * 1);
    line-height: 150%;
  }
}

div.napomena {
  color: #777;
}

#map-canvas {
  aspect-ratio: 16 / 9;
  background-color: #f7f7f7;
  border-radius: 4px;
  margin-top: 32px;
  z-index: 5;
}

/**/

#agent_info {
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 48px;

  & > li {
    border: 1px solid #eee;
    border-radius: 4px;
    display: flex;
    flex: 1 0 calc(50% - 8px);
    font-size: calc(var(--p-font-size) * 0.85);
    gap: 16px;
    padding: 8px;

    @media screen and (max-width: 760px) {
      flex: 0 0 100%;
    }

    & div.photo {
      aspect-ratio: 1 / 1;
      display: flex;
      flex: 0 0 90px;

      & img {
        background-color: #eee;
        border-radius: 2px;
        display: flex;
        flex: 1;
      }
    }

    & div.data {
      display: flex;
      flex: 1;
      flex-direction: column;
      justify-content: space-evenly;

      & > div {
        align-items: center;
        display: flex;
        gap: 8px;
      }

      & span.icon {
        height: 16px;
        width: 16px;

        & svg {
          height: 16px;
          width: 16px;
        }
      }
    }
  }
}

/**/

#results_inner {
  flex: 0 0 100%;
  font-size: calc(var(--p-font-size) * 1);
  justify-content: center;

  &.ok {
    border: 1px solid green;
    color: green;
    margin-bottom: 20px;
    padding: 15px;
  }

  &.err {
    border: 1px solid red;
    color: red;
    margin-bottom: 20px;
    padding: 20px;
  }
}

fieldset.upit {
  padding: 0;
  width: 100%;

  &.admin {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: var(--s_16_32);

    & + fieldset.admin {
      border-top: 1px solid rgba(0, 0, 0, 0.1);
      margin-top: 32px;
    }
  }

  & span.admin.text {
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    display: flex;
    flex: 1;
    font-size: calc(var(--p-font-size) * 0.9);
    font-weight: 300;
    padding: 8px 12px;

    &.none {
      border: 0;
      height: 0;
      padding: 0;
    }

    &.green {
      border: 1px solid green;
      color: green;
    }

    &.red {
      border: 1px solid red;
      color: red;
    }

    @media screen and (max-width: 600px) {
      flex: 0 0 100%;
    }
  }

  & > ol {
    padding: 0;
    list-style: none;

    & > li {
      display: flex;
      justify-content: space-between;
      min-height: 44px;

      @media screen and (max-width: 600px) {
        flex-wrap: wrap;
      }

      & + li {
        margin-top: 10px;
      }

      &.provjera {
        align-items: center;
        flex-wrap: wrap;
        gap: 10px;
        justify-content: center;
        margin-top: 20px;
      }

      &.sbmt {
        justify-content: flex-end;
        margin-top: 20px;
      }

      &.chck {
        font-size: 0.9em;

        & > label {
          align-items: flex-start;
          display: flex;
          flex: 0 0 100% !important;
          line-height: 160%;
          line-height: 125%;
        }

        & input {
          margin: 5px 12px 5px;
        }

        & span {
          flex: 1 1 calc(100%);
          line-height: 150%;
        }
      }
    }
  }

  & label {
    display: flex;
    font-size: calc(var(--p-font-size) * 0.9);
    line-height: 34px;

    .upit.admin &:not(.spam, .provjera) {
      align-self: center;
      flex: 0 0 220px;
    }

    &.spam {
    }

    &.red {
      color: red;
    }
  }
}

/* */

/* prodavatelji */
fieldset.upit li.prodavatelj,
fieldset.upit li.p_form_result {
  display: none;
}

fieldset.upit li.provjera div {
  align-items: center;
  display: flex;
}

fieldset.upit li.provjera div label {
  align-items: center;
  display: flex;
}

fieldset.upit label.provjera img {
  border: 1px solid #aaa;
  height: 34px;
}

fieldset.upit label.provjera span {
  font-size: calc(var(--p-font-size) * 0.9);
  line-height: 34px;
  padding: 0 10px;
}

fieldset.upit label.note {
  width: 100%;
}

fieldset.upit li div.cca {
  align-items: center;
  display: flex;
  justify-content: space-between;
  width: 180px;
}

fieldset.upit li div.cca input.box {
}

fieldset.upit input.text,
fieldset.upit input.textx,
input.slike,
fieldset.upit select,
fieldset.upit textarea,
fieldset.upit input.submit,
#slikeBri,
.richText,
#napomena_tmp,
button.submit,
fieldset.upit .search-box {
  background: #f7f7f7;
  border: 1px solid #eee;
  border-radius: 4px;
  box-sizing: border-box;
  color: #000;
  float: right;
  font-family: var(--font-body);
  font-size: calc(var(--p-font-size) * 0.9);
  font-weight: 300;
  margin: 0;
  padding: 10px 15px;
  transition: all 0.5s;
  width: calc(100% - 220px);

  @media screen and (max-width: 600px) {
    width: 100%;
  }
}

fieldset.upit:not(.admin) input.text,
fieldset.upit:not(.admin) input.submit,
fieldset.upit .search-box {
  width: 100%;
}

fieldset.upit input.textx {
  padding: 10px 15px;
  width: 110px;
}

fieldset.upit input.err {
  border: 1px solid #f00;
}

fieldset.upit input.text.red,
fieldset.upit input.textx.red,
fieldset.upit select.red {
  border: 1px solid #f00;
}

fieldset.upit input.text[readonly],
fieldset.upit input.textx[readonly],
fieldset.upit input.text[disabled],
fieldset.upit input.textx[disabled],
fieldset.upit select[disabled],
fieldset.upit textarea[disabled] {
  background: #fff;
  border: 1px solid #eee;
  color: #000;
  font-weight: 300;
  opacity: 0.7;
}

input.slike_ {
  float: left;
  width: 50px;
}

fieldset.upit input:not([disabled]):hover,
fieldset.upit textarea:not([disabled]):hover,
fieldset.upit select:not([disabled]):hover {
  background: none;
  border: 1px solid var(--color-main);
}

fieldset.upit textarea,
#napomena_tmp {
  height: 250px;
  line-height: 150%;
  width: 100%;
}

fieldset.upit select.mala {
  width: 120px;
}

fieldset.upit input.box {
  margin: 0;
  font-size: calc(var(--p-font-size) * 0.9);
  font-weight: 300;
  border: 1px solid #d7d7d7;
  background: #f7f7f7;
  transform: scale(1.25);
}

fieldset.upit input.submit,
#slikeBris,
button.submit {
  background: var(--color-main);
  color: #fff;
  cursor: pointer;
  padding: 15px;
  transition: all 0.5s;
}

fieldset.upit input.submit:hover,
button.submit:hover {
  background: var(--color-sub);
  color: #fff;
}

button.submit {
  margin-top: 32px;
  width: 100%;
}

fieldset.upit ::placeholder {
  color: #000;
}

/* Footer */

footer {
  background-color: var(--color-main);
  color: #fff;
  font-size: calc(var(--p-font-size) * 0.8);
  line-height: 160%;
  padding: calc(var(--s_24_32) * 2) 0;

  @media screen and (max-width: 960px) {
    padding-bottom: calc((var(--s_24_32) * 2) + 57px);
  }

  & a {
    color: #fff;
    text-decoration: underline;

    &:hover {
      text-decoration: none;
    }
  }
}

#footHolder {
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: space-between;
  margin: 0 auto;
  width: min(90%, 1200px);
}

div.footHolder {
  @media screen and (max-width: 500px) {
    width: 100%;
  }

  & ul {
    line-height: 180%;
    list-style: none;
  }

  & > div.slike {
    & > div {
      width: 100px;

      & + div {
        margin-top: 16px;
      }
    }
  }
}

#copy {
  align-items: center;
  border-top: 1px solid rgba(255, 255, 255, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 16px 32px;
  justify-content: space-between;
  margin: 32px auto 0;
  padding-top: 32px;
  width: min(90%, 1200px);

  & p {
    font-size: 0.9em;

    & span + span {
      border-left: 1px solid rgba(255, 255, 255, 0.05);
      margin-left: 10px;
      padding-left: 10px;
    }
  }

  & > span {
    display: flex;
    height: 64px;
    order: 2;
    width: 64px;
  }
}

/**/

/**/

ul.admin_nav {
  display: grid;
  gap: 4px;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  font-size: calc(var(--p-font-size) * 0.9);
  list-style: none;
  margin: 40px 0 40px;
  text-align: center;

  @media screen and (max-width: 900px) {
    grid-template-columns: 1fr 1fr;
  }

  + li {
    display: block;
    list-style: none;
  }

  a {
    border: 1px solid var(--color-main);
    border-radius: 4px;
    background-color: var(--color-main);
    color: #fff;
    display: block;
    padding: calc(var(--s_24_32) / 2) 8px;
    text-decoration: none;
    transition: all 0.5s;

    &:hover {
      background-color: #fff;
      color: var(--color-main);
    }
  }
}

#admin_search {
  display: grid;
  gap: 4px;
  grid-template-columns: 1fr 1fr 1fr;
  list-style: none;

  @media screen and (max-width: 800px) {
    grid-template-columns: 1fr 1fr;
  }

  @media screen and (max-width: 500px) {
    grid-template-columns: 1fr;
  }

  li {
    display: flex;
    justify-content: space-between;
  }

  & input,
  & select {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    color: #333;
    cursor: pointer;
    float: right;
    font-family: var(--font-body);
    font-size: calc(var(--p-font-size) * 0.8);
    font-weight: 300;
    margin: 0;
    padding: 12px 16px;
    position: relative;
    text-transform: uppercase;
    transition: all 0.5s;
    width: 100%;
    z-index: 5;

    @media screen and (max-width: 500px) {
      padding: 10px 12px;
    }

    &:hover {
      border: 1px solid var(--color-main);
    }
  }

  & input.submit {
    background-color: var(--color-main);
    color: #fff;
    transition: all 0.5s;

    &:hover {
      background-color: #fff;
      color: var(--color-main);
    }
  }
}

/**/

#admin_list {
  &.interesenti {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    margin-top: 32px;
    padding-top: 32px;
  }

  div.nek {
    display: flex;
    gap: 16px;
    justify-content: space-between;
    margin: 0 0 8px 0;

    & + div.nek {
      border-top: 1px solid rgba(0, 0, 0, 0.1);
      padding-top: 8px;
    }

    & > div.img {
      display: flex;
      flex: 0 0 auto;

      > a {
        border: 1px solid rgba(0, 0, 0, 0.1);
        border-radius: 4px;
        position: relative;
        transition: all 0.5s;

        &:hover {
          border: 1px solid var(--color-main);
        }

        img {
          aspect-ratio: 4 / 3;
          border-radius: 4px;
          height: 90px;
          object-fit: cover;
          width: 120px;

          @media screen and (max-width: 440px) {
            aspect-ratio: 4 / 3;
            height: 48px;
            width: 64px;
          }
        }

        span {
          color: #fff;
          padding: 4px;
          position: absolute;
          top: 0;

          &.monika {
            background: var(--color-main);
          }

          &.katarina {
            background: var(--color-sub);
          }

          &.suradnja {
            background: orange;
          }
        }
      }
    }

    & > div.data {
      align-items: center;
      display: flex;
      flex: 0 0 calc(100% - 138px);
      flex-wrap: wrap;

      @media screen and (max-width: 440px) {
        flex: 0 0 calc(100% - 80px);
      }
    }

    p {
      align-items: center;
      display: flex;
      font-size: calc(var(--p-font-size) * 0.85);
      line-height: 25px;
      text-align: left;

      &.naziv {
        flex: 0 0 100%;
        max-height: 60px;
        overflow: hidden;
        white-space: nowrap;
      }

      &.posjeta {
        flex: 0 0 40px;
        justify-content: flex-end;
        text-align: right;
      }

      &.unos {
        display: flex;
        flex: 0 0 calc(100% - 270px);
        gap: 16px;
        padding-left: 20px;

        @media screen and (max-width: 440px) {
          padding-left: 10px;
        }

        > span {
          align-items: center;
          display: flex;
          gap: 4px;

          > span {
            display: flex;

            &.icon {
              height: 16px;
              width: 16px;

              svg {
                height: 16px;
                width: 16px;
              }
            }
          }
        }

        @media screen and (max-width: 1170px) {
          span {
            display: none;
          }
        }
      }

      &.ostalo {
        align-items: center;
        display: flex;
        flex: 0 0 100px;
        margin-left: 0px;

        @media screen and (max-width: 440px) {
          margin-left: 0px;
        }
      }

      &.del {
        display: flex;
        flex: 0 0 50px;
        justify-content: space-between;
        margin-left: 20px;
        text-align: right;

        @media screen and (max-width: 900px) {
          margin-left: auto;
        }

        svg {
          color: var(--color-main);
          height: 20px;
          stroke-width: 1.5;
          transition: all 0.5s;
          width: 20px;
        }

        a {
          align-items: center;
          display: flex;
          justify-content: flex-end;

          &.inactive {
            svg {
              color: rgba(0, 0, 0, 0.1);
            }
          }

          &:hover svg {
            color: var(--color-sub);
          }
        }
      }
    }
  }
}

span.admne,
span.admeks,
span.admprd,
span.admpr,
span.admrez,
span.admpri,
span.admpre,
span.admprv,
span.admnov,
span.none {
  align-items: center;
  border-radius: 4px;
  color: #fff;
  cursor: pointer;
  display: flex;
  font-size: 0.9em;
  font-weight: 400;
  height: 23px;
  justify-content: center;
  text-align: center;
  width: 20px;
}

span.none {
  border: 1px solid rgba(0, 0, 0, 0.05);
}

span.admne {
  background: #555;
}

span.admeks {
  background-color: var(--labela-ekskluziva);
}

span.admprd {
  background-color: var(--labela-prodano);
}

span.admrez {
  background-color: var(--labela-rezervirano);
}

span.admpri {
  background-color: var(--labela-prilika);
}

span.admpre {
  background-color: var(--labela-top);
}

span.admprv {
  background-color: var(--labela-prvi_red);
}

span.admnov {
  background-color: var(--labela-novo);
}

div.admin_holder {
  align-items: flex-start;
  display: flex;
  gap: min(5vw, 64px) calc(5 / 120 * 100%);
  margin: 0 auto;

  @media screen and (max-width: 960px) {
    flex-wrap: wrap;
  }
}

#slikaBris {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 8px;
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr 1fr;
  list-style: none;
  margin: 8px auto;
  padding: var(--s_16_32);

  &.det {
    flex: 0 0 60%;
  }

  @media screen and (max-width: 600px) {
    grid-template-columns: 1fr 1fr 1fr;
  }

  @media screen and (max-width: 450px) {
    grid-template-columns: 1fr 1fr;
  }

  li.dragging {
    background-color: #f0f0f0; /* Change this to your desired color */
  }

  div {
    align-items: center;
    display: flex;
    gap: 8px;
    margin-top: 8px;

    a.brisi {
      background-color: var(--color-main);
      border: 1px solid rgba(0, 0, 0, 0.1);
      border-radius: 4px;
      color: #fff;
      display: flex;
      flex: 1;
      font-size: calc(var(--p-font-size) * 0.9);
      justify-content: center;
      padding: 8px;
      text-align: center;
      text-decoration: none;
      transition: all 0.5s;

      &:hover {
        background-color: #fff;
        color: var(--color-main);
      }
    }

    input.box {
      margin: 0;
      font-size: calc(var(--p-font-size) * 0.9);
      font-weight: 300;
      border: 1px solid #d7d7d7;
      background: #f7f7f7;
      transform: scale(1.25);
    }
  }
}

#selectAllImgs {
  text-align: right;
}

/**/

div.admin_inner {
  margin-top: 64px;

  &.border {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    padding: 0 var(--s_16_32) var(--s_16_32);

    & > h2 {
      background-color: rgba(0, 0, 0, 0.05);
      padding: 8px;
    }
  }
}

#admin_main {
  flex: 0 0 calc(8 / 12 * 100%);
}

#admin_sub {
  flex: 0 0 calc(35 / 120 * 100%);
  font-size: 1.4em;
  position: sticky;
  top: 32px;
}

@media screen and (max-width: 960px) {
  #admin_main {
    flex: 0 0 100%;
    order: 2;
  }

  #admin_sub {
    flex: 0 0 100%;
    order: 1;
    position: static;
  }
}

#nekretnina_info {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;

  & > a {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    display: flex;
    flex: 1 1 auto;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 8px;
    text-decoration: none;
    transition: all 0.5s;

    &:hover {
      border: 1px solid var(--color-main);

      svg {
        color: var(--color-sub) !important;
      }
    }

    span {
      white-space: nowrap;
    }
  }

  span {
    align-items: center;
    display: flex;
    justify-content: center;

    &.icon {
      height: 16px;
      width: 16px;

      svg {
        color: var(--color-main);
        transition: all 0.5s;
      }
    }
  }
}

#oglas_status {
  align-items: center;
  display: flex;
  gap: 4px;
  justify-content: space-between;
  margin-top: 16px;

  & > div {
    align-items: center;
    border: 1px solid green;
    border-radius: 4px;
    color: green;
    display: flex;
    flex-wrap: nowrap;
    gap: 8px;
    padding: 8px;
    text-decoration: none;
    transition: all 0.5s;

    svg {
      color: green;
      height: 16px;
      width: 16px;
    }

    &.neaktivan {
      border-color: red;
      color: red;

      svg {
        color: red;
      }
    }

    &.nepostoji {
      border-color: #ccc;
      color: #000;

      svg {
        color: #000;
      }
    }
  }

  span {
  }
}

#nekretnina_akcija {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  margin: 16px 0 0;

  & > a {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    display: flex;
    flex: 1 1 auto;
    flex-wrap: nowrap;
    gap: 6px;
    padding: 8px;
    text-decoration: none;
    transition: all 0.5s;

    &:hover {
      border: 1px solid var(--color-main);

      svg {
        color: var(--color-sub) !important;
      }
    }
  }

  span {
    align-items: center;
    display: flex;
    justify-content: center;

    &.icon {
      height: 16px;
      width: 16px;

      svg {
        color: var(--color-main);
        transition: all 0.5s;
      }
    }
  }
}

#expose_list {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  margin: 16px 0 0;

  #nekretnineDetData & {
    font-size: 0.9em;
  }

  a {
    align-items: center;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    display: flex;
    flex: 1;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 4px;
    justify-content: center;
    padding: 8px;
    text-decoration: none;
    transition: all 0.5s;

    &:hover {
      border: 1px solid var(--color-main);

      svg {
        color: var(--color-sub) !important;
      }
    }
  }

  span {
    &.icon {
      flex: 0 0 16px;
      height: 16px;
      order: 1;
      width: 16px;

      svg {
        color: var(--color-main);
        transition: all 0.5s;
      }
    }
  }
}

#napomena_box {
  margin-top: 24px;
}

p.text.admin {
  border: 1px solid #eee;
  margin-bottom: 24px;
  padding: 16px;
  text-align: center;

  &.green {
    border: 1px solid green;
    border-radius: 4px;
    color: green;
  }

  &.red {
    border: 1px solid red;
    border-radius: 4px;
    color: red;
  }
}

#admin_baneri_listing {
  font-size: calc(var(--p-font-size) * 0.8);

  details {
    background: #fff;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;

    & + details {
      margin-top: 8px;
    }

    &:hover {
      border: 1px solid var(--color-sub);
    }

    summary {
      cursor: pointer;
      display: flex;
      gap: 8px;
      padding: 16px;

      &.neprocitana {
        background-color: rgba(0, 0, 0, 0.05);
      }

      .naziv {
        flex: 1 0 auto;
      }

      .datum {
        display: flex;
        flex: 0 0 75px;
        justify-content: flex-end;
      }

      .status {
        display: flex;
        flex: 0 0 20px;
        justify-content: flex-end;
      }
    }

    &:not([open]) summary:hover,
    &:not([open]) summary:focus {
      color: #000;
    }

    &[open] summary {
      border: 1px solid #003eff;
      background: #007fff;
      color: #ffffff;

      & + div {
        padding-top: 8px;
      }
    }

    & > div.upiti > div {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      justify-content: space-between;
      padding: 8px 16px;

      & + div {
        border-top: 1px dashed rgba(0, 0, 0, 0.1);
      }

      &.poruka {
        flex-wrap: wrap;
        gap: 8px 12px;

        span {
          flex: 0 0 100%;
          line-height: 150%;
        }
      }

      &.del {
        border-top: 1px solid rgba(0, 0, 0, 0.1) !important;
        flex-wrap: wrap;
        padding: 16px;
      }
    }
  }

  /*
  div.admin_baneri_listing .ukupno {
    border-top: 1px solid #eee;
    border-bottom: 1px solid #ddd;
    margin-top: 8px;
    padding: 12px 16px;
  }
  */

  /*
  div.admin_baneri_listing .trajanje {
    display: flex;
    flex: 0 0 120px;
    justify-content: flex-end;
  }

  div.admin_baneri_listing .info {
  background-color: #f7f7f7;
  border-bottom: 1px solid #eee;
  padding: 12px 8px;
}

div.admin_baneri_listing .period {
  flex: 1 0 auto;
}

div.admin_baneri_listing .prikaz {
  display: flex;
  flex: 0 0 60px;
  justify-content: flex-end;
}

div.admin_baneri_listing .klik {
  display: flex;
  flex: 0 0 40px;
  justify-content: flex-end;
}
  */
}

form + form {
  margin-top: 32px;
}

/**/
.dropdown-single {
  display: flex;
  position: relative;
  width: 100%;

  @media screen and (max-width: 600px) {
    flex-wrap: wrap;
  }

  #dropdownInput {
    background: #f7f7f7;
    border: 1px solid #eee;
    border-radius: 4px;
    box-sizing: border-box;
    color: #000;
    float: right;
    font-family: var(--font-body);
    font-size: calc(var(--p-font-size) * 0.9);
    font-weight: 300;
    line-height: 22px;
    margin: 0;
    padding: 10px 15px;
    width: 100%;
    transition: background 1s;

    &.invalid {
      border-color: red; /* Red border for invalid input */
    }
  }

  > div {
    position: relative;
    width: 100%;

    @media screen and (max-width: 600px) {
      flex: 0 0 100%;
    }
  }

  .dropdown-content {
    background-color: #f9f9f9;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 8px;
    display: none;
    font-size: calc(var(--p-font-size) * 1);
    max-height: 140px; /* Limit the height */
    min-width: 160px;
    overflow-y: auto; /* Make it scrollable */
    position: absolute;
    top: calc(44px + 0px);
    width: 100%;
    z-index: 1;

    div[role='option'] {
      color: black;
      display: block;
      padding: 12px 16px;
      text-decoration: none;

      &:hover {
        background-color: #f1f1f1;
      }

      &.active {
        background-color: #ddd; /* Highlight active option */
      }
    }

    &.show {
      display: block;
    }
  }
}

/* */

div.admin_jezici {
  display: flex;
  gap: 4px;
  justify-content: space-between;
  margin: 0 0 calc(var(--s_16_32) * 0.75);

  a {
    border: 1px solid #eee;
    border-radius: 4px;
    color: var(--color-main);
    display: block;
    flex: 1;
    font-size: calc(var(--p-font-size) * 0.9);
    padding: 8px 2px;
    text-align: center;
    text-decoration: none;
    transition: all 0.5s;

    &.active {
      border: 1px solid var(--color-sub);
      color: var(--color-sub);
    }

    &:hover {
      border: 1px solid var(--color-main);
      color: var(--color-main);
    }
  }

  & > a {
    flex: 0 0 auto;
    padding: 8px;
  }

  & > div {
    display: flex;
    flex: 0 0 calc(100% - 200px);
    gap: 8px;
  }

  @media screen and (max-width: 600px) {
    flex-wrap: wrap;
    gap: 16px;

    & > a {
      flex: 0 0 100%;
    }

    & > div {
      flex: 0 0 100%;
    }
  }
}

/**/

#admin_nekretnine {
  display: flex;
  flex-wrap: wrap;
  font-size: 1.4em;
  gap: 8px;

  li {
    flex: 0 0 100%;
    gap: 12px;

    & + li {
      border-top: 1px solid rgba(0, 0, 0, 0.05);
      margin-top: 0px;
      padding-top: 8px;
    }

    a.img {
      background-color: #ddd;
      display: flex;
      flex: 0 0 50px;

      img {
        aspect-ratio: 1;
        flex: 0 0 100%;
      }
    }

    & > div {
      align-items: center;
      display: flex;
      flex: 1 0 auto;
      gap: 12px;

      & > div {
        &.datum {
          flex: 0 0 75px;
        }
      }
    }

    input {
      transform: scale(1.25);
    }
  }
}

/**/

div.admin_baneri_listing {
  font-size: 1.4em;

  > p {
    text-align: center;
  }

  details {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    overflow: hidden;

    &:hover {
      border: 1px solid var(--color-main);
    }

    & + details {
      margin-top: 8px;
    }

    summary {
      cursor: pointer;
      display: flex;
      padding: calc(var(--s_24_32) / 2);

      &.neprocitana {
        background-color: rgba(0, 0, 0, 0.05);
      }
    }

    &:not([open]) summary:hover,
    &:not([open]) summary:focus {
      color: var(--color-main);
    }

    &[open] summary {
      background-color: var(--color-main);
      color: #fff;

      + div {
        padding-top: 8px;
      }
    }

    & > div > div {
      display: flex;
      justify-content: space-between;
      padding: 8px 16px;
    }

    & > div.upiti > div {
      flex-wrap: wrap;
      gap: 8px;

      &.poruka {
        flex-wrap: wrap;
        gap: 8px;
        text-align: left;

        span {
          flex: 0 0 100%;
          line-height: 150%;
          margin-top: 10px;
        }
      }

      &.del {
        border-top: 1px solid rgba(255, 255, 255, 0.2) !important;
        flex-wrap: wrap;
        padding: 16px;
      }

      & + div {
        border-top: 1px dashed rgba(255, 255, 255, 0.25);
      }
    }
  }

  & .ukupno {
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    margin-top: 8px;
    padding: 12px 16px;
  }

  & .naziv {
    flex: 1 0 auto;
    text-align: left;
  }

  & .datum {
    display: flex;
    flex: 0 0 75px;
    justify-content: flex-end;
  }

  & .status {
    display: flex;
    flex: 0 0 20px;
    justify-content: flex-end;
  }

  & .trajanje {
    display: flex;
    flex: 0 0 120px;
    justify-content: flex-end;
  }

  & .info {
    background-color: #f7f7f7;
    border-bottom: 1px solid rgba(255, 255, 255, 0.1);
    padding: 12px 8px;
  }

  & .period {
    flex: 1 0 auto;
  }

  & .prikaz {
    display: flex;
    flex: 0 0 60px;
    justify-content: flex-end;
  }

  & .klik {
    display: flex;
    flex: 0 0 40px;
    justify-content: flex-end;
  }
}

/**/

span.admin_text {
  align-items: center;
  display: flex;
  font-size: calc(var(--p-font-size) * 0.9);
}

ul.aside_nav {
  font-size: calc(var(--p-font-size) * 0.9);
  list-style: none;

  li {
    a {
      border: 1px solid rgba(0, 0, 0, 0.1);
      border-radius: 4px;
      color: var(--color-main);
      display: flex;
      padding: 16px 12px;
      text-decoration: none;
      transition: all 0.5s;

      &:hover {
        border-color: var(--color-main);
      }
    }

    & + li {
      margin-top: 8px;
    }
  }
}

#carousel_brzi {
  display: flex;
  flex: 0 0 60%;
  flex-wrap: wrap;
  position: relative;

  @media screen and (max-width: 960px) {
    flex: 0 0 100%;
  }

  div.photo {
    align-items: center;
    aspect-ratio: 1.5;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    display: flex;
    flex: 0 0 100%;
    justify-content: center;
    overflow: hidden;
    position: relative;
  }

  div.features {
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    display: flex;
    flex: 1 0 auto;
    margin-top: 16px;
    padding: 8px;

    span {
      position: static;
    }
  }

  img {
    display: none;
    max-height: 100%;
    max-width: 100%;

    &.active {
      display: block;
    }
  }

  button.prev,
  button.next {
    background-color: var(--color-main);
    border: 1px solid #fff;
    border-radius: 4px;
    color: white;
    cursor: pointer;
    font-weight: 400;
    padding: 16px;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    transition: all 0.5s;

    &:hover {
      background-color: var(--color-sub);
    }
  }

  button.prev {
    left: 10px;
  }

  button.next {
    right: 10px;
  }

  .counter {
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    bottom: 16px;
    color: white;
    font-size: var(--p-font-size);
    padding: 8px;
    position: absolute;
    right: 16px;
  }

  div.data {
    border: 1px solid rgba(0, 0, 0, 0.1);
  }
}

#prodavatelj_brzi {
  border: 1px solid rgba(0, 0, 0, 0.1);
  border-radius: 4px;
  display: grid;
  grid-template-columns: 1fr 1fr;
  flex-wrap: wrap;
  gap: 16px;
  font-size: calc(var(--p-font-size) * 0.9);
  justify-content: space-between;
  margin-top: 32px;
  padding: 16px;

  @media screen and (max-width: 600px) {
    flex: 0 0 100%;
  }

  > div {
    align-items: center;
    display: flex;
    gap: 8px;

    &.prodavatelj {
      grid-column: span 2;
    }

    span {
      &.icon {
        height: 16px;
        width: 16px;
      }
    }

    a {
      text-decoration: none;
    }
  }

  svg {
    height: 16px;
    width: 16px;
  }
}

.lazyload,
.lazyloading {
  opacity: 0;
}

.lazyloaded {
  opacity: 1;
  /*  transition is applied to lazyloaded not lazyload */
  transition: opacity 300ms;
}

/* cyrillic-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/montserrat/v29/JTUQjIg1_i6t8kCHKm459WxRxC7mw9c.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/montserrat/v29/JTUQjIg1_i6t8kCHKm459WxRzS7mw9c.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/montserrat/v29/JTUQjIg1_i6t8kCHKm459WxRxy7mw9c.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Montserrat';
  font-style: italic;
  font-weight: 100 900;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/montserrat/v29/JTUQjIg1_i6t8kCHKm459WxRyS7m.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}

/* cyrillic-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/montserrat/v29/JTUSjIg1_i6t8kCHKm459WRhyzbi.woff2) format('woff2');
  unicode-range: U+0460-052F, U+1C80-1C8A, U+20B4, U+2DE0-2DFF, U+A640-A69F, U+FE2E-FE2F;
}
/* cyrillic */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(https://fonts.gstatic.com/s/montserrat/v29/JTUSjIg1_i6t8kCHKm459W1hyzbi.woff2) format('woff2');
  unicode-range: U+0301, U+0400-045F, U+0490-0491, U+04B0-04B1, U+2116;
}
/* latin-ext */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(./fonts/JTUSjIg1_i6t8kCHKm459Wdhyzbi.woff2) format('woff2');
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF,
    U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF;
}
/* latin */
@font-face {
  font-family: 'Montserrat';
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
  src: url(./fonts/JTUSjIg1_i6t8kCHKm459Wlhyw.woff2) format('woff2');
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329,
    U+2000-206F, U+20AC, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD;
}
