@import 'base.css';

/* ═══════════════════════════════════════════════════════
   PROJECT CSS — Euro Partner

   Base components (reset, tokens, buttons, modal, toast,
   toggle, gallery, upload, utilities) are in base.css.

   This file contains project-specific styles:

   1.  Tokens — project overrides
   2.  Typography — project-specific text styles
   3.  Layout — Header & Navigation
   4.  Layout — Search & Filters
   5.  Layout — Breadcrumbs
   6.  Property Labels
   7.  Layout — Sections (base + page variants)
   8.  Components — Index Page (FAQ, Testimonials, Cities, CTA)
   9.  Components — Property List
   10. Components — Property Detail
   11. Components — Forms
   12. Layout — Footer
   13. Admin — Navigation & Search
   14. Admin — Property List (.admin-list)
   15. Admin — AI Generator & Lang Tools
   16. Admin — Buttons (project-specific)
   17. Admin — Layout
   18. Admin — Property Form & Sidebar
   19. Admin — Notes, Searchable Select, Dropdowns
   20. Admin — Dashboard (cards, tables, logs)
   21. Admin — Inquiries, Sellers, Buyers
   22. Admin — Quick View (carousel, seller)
   23. Fonts (@font-face)
   ═══════════════════════════════════════════════════════ */

body.no-scroll {
  overflow: hidden;
}

/* ── Cookie Consent Banner ──────────────────── */

#cc-banner {
  align-items: center;
  background: #fff;
  border-top: 1px solid var(--alpha-10);
  bottom: 0;
  box-shadow: 0 -2px 8px rgba(0, 0, 0, 0.1);
  display: flex;
  gap: 16px;
  justify-content: center;
  left: 0;
  padding: 14px 24px;
  position: fixed;
  right: 0;
  z-index: 9999;

  &.cc-hidden {
    display: none;
  }

  & p {
    font-size: calc(var(--p-font-size) * 0.85);
    line-height: 130%;
    margin: 0;

    & a {
      color: var(--color-main);
      text-decoration: underline;
    }
  }

  & div {
    display: flex;
    flex-shrink: 0;
    gap: 8px;
  }

  & button {
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: calc(var(--p-font-size) * 0.85);
    padding: 8px 20px;
  }

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

  & #cc-reject {
    background: #eee;
    color: #333;
  }

  @media screen and (max-width: 600px) {
    flex-direction: column;
    gap: 12px;
    padding: 16px;
    text-align: center;
  }
}

/* ── 1. Tokens — project overrides ───────────── */

:root {
  --color-main2: #3a6be0;
  --color-main3: #7a9fef;
  --color-sub-hover: #00a00d;
  --font-body: 'Barlow', sans-serif;
  --font-header: 'Barlow', sans-serif;
  --h1-margin-bottom: clamp(32px, 24px + 2vw, 48px);
  --h2-margin-bottom: 24px;
  --h3-margin: 48px;
  --section-padding: clamp(48px, 40px + 2vw, 64px);

  /* Labels */
  --labela-ekskluziva: #6b21a8; /* tamnoljubičasta - premium */
  --labela-novo: #84cc16; /* lime - svježe, jasno različita od prilike */
  --labela-prilika: #10b981; /* smaragdno zelena - dobar deal */
  --labela-prodano: #dc2626; /* crvena - stop signal (admin konzistencija) */
  --labela-prvi_red: #0ea5e9; /* nebesko plava - asocijacija na more */
  --labela-rezervirano: #f59e0b; /* narančasta (admin konzistencija) */
  --labela-top: #eab308; /* zlatno-žuta - preporuka */
}

/* ── 2. Typography — project-specific ────────── */

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

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

h2 {
  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;
}

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

  &.napomena {
    font-size: calc(var(--p-font-size) * 0.85);
  }

  &.napomena_tmp {
    background-color: var(--alpha-5);
    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 var(--alpha-10);
    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: var(--alpha-25);
      stroke-width: 1.5;
      transition: all 0.5s;
    }

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

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

/* ── 3. Layout — Header & Navigation ─────────── */

header {
  background-color: var(--color-main);
  background: linear-gradient(90deg, rgb(13, 69, 211) 0%, rgb(0, 127, 10) 100%);
  margin: 0 auto;
  position: relative;

  @media screen and (max-width: 1150px) {
    background-color: transparent;
    border-bottom: 1px solid var(--alpha-10);
    transition: all 0.25s;

    &.show {
      background-color: #fff;
      padding-bottom: 16px;
    }
  }

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

    &.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-img {
      height: 100%;
      left: 0;
      object-fit: cover;
      position: absolute;
      top: 0;
      width: 100%;
      z-index: 0;
    }
  }

  & a {
    text-decoration: underline;

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

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

div.header_bg {
  background: linear-gradient(180deg, rgba(0, 0, 0, 0.3) 0%, rgba(0, 0, 0, 0) 100%);
  height: 30vh;
  position: absolute;
  top: 0;
  width: 100%;
  z-index: 1;
}

div.prvaLinija {
  background: #fff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  font-size: calc(var(--p-font-size) * 0.85);
  height: 45px;
  padding: 10px 0;

  @media screen and (max-width: 1150px) {
  }
}

header.index > *:not(.header_bg):not(.hero-img) {
  position: relative;
  z-index: 2;
}

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

@keyframes fade-in {
  0% {
    opacity: 0;
  }
  100% {
    opacity: 1;
  }
}
@keyframes search-overlay-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}
@keyframes search-form-in {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}
@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;
  }
}

div.prvaLinija span {
  left: calc((100% - 1200px) / 2);
  line-height: 25px;
  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 var(--alpha-10);
      border-left: 1px solid rgba(255, 255, 255, 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: 1150px) {
    display: block;
  }
}

.burger-container {
  cursor: pointer;
  display: inline-block;
  height: 45px;
  position: absolute;
  -webkit-tap-highlight-color: transparent;
  transform: rotate(0deg);
  transition: all 0.3s cubic-bezier(0.4, 0.01, 0.165, 0.99);
  user-select: none;
  width: 45px;
  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 {
  display: flex;
  gap: var(--s_16_32);
  height: 100px;
  justify-content: space-between;
  margin: 0 auto;
  max-width: 1200px;
  transition: all 0.5s;
  width: 90%;

  &.admin {
    border-bottom: 1px solid var(--alpha-10);
    height: 0px;
  }

  & #logo {
    display: flex;
    top: 44px;
    width: 234px;
    z-index: 100;

    & a {
      display: flex;
      flex: 0 0 234px;
      padding: 24px 0;
      text-decoration: none;

      @media screen and (max-width: 1150px) {
        padding-block: 12px 0;
      }
    }

    & img {
      aspect-ratio: 72 / 16;
      display: block;
      float: left;
      width: 100%;
    }

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

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

    .index & {
      top: -31px;
    }

    &.text {
      justify-content: flex-end;
      line-height: 25px;
      width: auto;
    }

    & li {
      display: flex;
    }

    & a {
      display: flex;
    }

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

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

    @media screen and (max-width: 1150px) {
      gap: 4px;
      width: 190px;

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

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

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

    & #logo {
      margin-inline: auto;
      margin-top: 0;
      padding-bottom: 0;
      position: static;
    }

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

nav {
  margin-left: auto;
  margin-top: 20px;

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

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

  & > li {
    font-size: calc(var(--p-font-size) * 0.9);
    font-weight: 500;
    list-style: none;
    position: relative;

    & + li {
      @media screen and (max-width: 1150px) {
        margin-left: 0;
      }
    }
  }

  @media screen and (max-width: 1150px) {
    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 a {
  border: 1px solid transparent;
  border-radius: 4px;
  color: #fff;
  display: block;
  line-height: 60px;
  padding-inline: var(--s_24_32);
  text-align: center;
  text-decoration: none;
  text-transform: uppercase;
  transition: all 0.5s;
  white-space: nowrap;

  @media screen and (max-width: 1150px) {
    background-color: var(--color-main);
    border: 1px solid rgba(255, 255, 255, 1);
    line-height: 38px;
  }

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

  &:hover {
    border-color: #fff;
  }

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

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

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

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

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

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

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

  @media screen and (max-width: 1150px) {
    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: 1150px) {
      font-size: 1em;
    }

    & + li {
      margin-top: 2px;

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

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

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

    @media screen and (max-width: 1150px) {
      border: 1px solid rgba(255, 255, 255, 1);
    }
  }
}

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

/* ── 4. Layout — Search & Filters ────────────── */

#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: 24px auto 0;
    width: fit-content;

    & span {
      align-items: center;
      background-color: var(--color-sub);
      background-color: transparent;
      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: 1150px) {
      border: 1px solid #fff;
      border-radius: 4px;
      display: flex;
      gap: 4px;
      height: 40px;
      padding: 0 4px;
    }
  }

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

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

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

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

    @media screen and (max-width: 1150px) {
      &.active {
        align-items: center;
        animation: search-overlay-in 0.3s ease-out;
        background-color: var(--color-main);
        bottom: 0;
        display: flex;
        height: 100vh;
        justify-content: center;
        left: 0;
        opacity: 1;
        position: fixed;
        top: 0;
        transform: none;
        width: 100%;
        z-index: 2000;

        & div.h1_holder {
          display: none;
        }

        & > form {
          animation: search-form-in 0.3s ease-out 0.1s both;
          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;
      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: 24px 0;
      text-transform: none;
      text-wrap: balance;
      width: auto;
      z-index: 100;
    }

    @media screen and (max-width: 1150px) {
      & h1 {
        padding: 0;
      }
    }
  }
}

fieldset {
  border: none;
  margin: 0;
  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;
}

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

  @media screen and (max-width: 1150px) {
    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: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 4px;
  padding: 24px;

  @media screen and (max-width: 1150px) {
    .active & {
      background-color: transparent;
      box-shadow: none;
      margin-inline: auto;
      padding: 5vw;
      width: 90%;
    }
  }
}

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

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

::placeholder {
  color: #fff;
}

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

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

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

#pretraga_holder input,
#pretraga_holder select {
  background-color: #fff;
  border: 1px solid var(--alpha-10);
  border-radius: 4px;
  box-shadow: none;
  color: var(--color-main);
  color: var(--color-sub);
  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: 1150px) {
      border: 1px solid var(--alpha-10);
    }
  }

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

    :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 rgba(255, 255, 255, 0.9);
  border: 1px solid var(--color-sub);
}

#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 var(--alpha-10);
    border-radius: 4px;
    cursor: pointer;
    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: 1150px) {
        border: 1px solid var(--alpha-10);
      }
    }

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

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

    .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: 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: 280px;
    overflow-y: auto;
    position: absolute;
    scrollbar-color: #888 #f1f1f1;
    scrollbar-width: thin;
    width: 100%;
    z-index: 1000;

    &.show {
      border-radius: 8px;
      box-shadow: 0 2px 2px var(--alpha-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: 8px 18px;

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

        &:hover,
        &.highlighted {
          background-color: var(--color-main);
          color: white;
        }

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

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

          .remove-icon {
            color: white;

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

        .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;
    }
  }
}

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

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;
      padding-bottom: 8px; /* To ensure space for the custom scrollbar */
      scroll-snap-type: x mandatory;
      scrollbar-gutter: stable; /* Ensures space for scrollbar on both edges */
      scrollbar-width: none;
      z-index: 10;

      .tag {
        background-color: var(--color-main2);
        border-radius: 4px;
        color: #fff;
        cursor: pointer;
        display: inline-block;
        font-size: calc(var(--p-font-size) * 0.8);
        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: var(--alpha-10); /* 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: 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: var(--p-font-size);
    line-height: 34px;
    padding: 0;
    width: 200px !important;

    &:hover,
    &:focus {
      background-color: initial;
      border: initial;
      box-shadow: none;
      color: initial;
      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 {
    cursor: pointer;
    line-height: 100%;
    padding: 8px;
    padding-left: 16px;
  }

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

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

/* Filter bar (sticky on mobile) */

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

  & > span {
    display: none;
  }

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

    & > span {
      align-items: center;
      background: var(--color-sub);
      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: var(--color-sub-hover);
      }

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

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

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

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

/* ── 5. Layout — Breadcrumbs ──────────────────── */

.breadcrumbs {
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  overflow: hidden;
  padding: calc(var(--s_24_32) / 2) 0;
  position: relative;

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

  & 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;
    }
  }
}

/* ── 6. Property Labels ──────────────────────── */

.nekretnine_features {
  left: 8px;
  position: absolute;
  top: 8px;
  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);
      color: #fff;
    }

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

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

    &.id {
      background-color: var(--alpha-15);
      bottom: 8px;
      right: 8px;
    }
  }
}

/* ── 7. Layout — Sections (base + page variants) ── */

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

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

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

  h2 {
    margin: 0 auto calc(var(--s_24_32) * 1.5);
    text-transform: uppercase;
  }
}

section.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;
  }
}

section.nekretnine {
  &.det {
    background-color: var(--alpha-5);
  }

  & 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: var(--alpha-10);
      cursor: not-allowed;

      & svg {
        color: var(--alpha-10);
      }
    }
  }

  & #scrollProgress {
    background: var(--alpha-5);
    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: 100%;

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

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

    & li {
      border: 1px solid var(--alpha-5);
      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;

        & img {
          aspect-ratio: 3 / 2;
          background-color: var(--surface-input);
          border-bottom: 1px solid var(--alpha-10);
          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;
        }
      }

      & 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 var(--alpha-5);
        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;
        }

      }
    }
  }
}

.property-id {
  background: rgba(0, 0, 0, 0.55);
  border-radius: 4px;
  bottom: 8px;
  color: #fff;
  font-size: calc(var(--p-font-size) * 0.75);
  padding: calc(var(--s_24_32) / 4);
  position: absolute;
  right: 8px;
  z-index: 10;
}

section.gradovi {
  h2 {
    margin-bottom: calc(var(--s_24_32) * 1.5);
  }
}

section.seo-text {
  border-top: 1px solid #ddd;

  & > div {
    margin: 0 auto;
    width: min(800px, 90%);
  }

  .seo-content {
    p {
      color: rgba(0, 0, 0, 0.7);
      font-size: var(--p-font-size);
      line-height: 1.7;
      margin-bottom: 16px;

      &:last-child {
        margin-bottom: 0;
      }
    }

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

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

section.faq {
  & > div {
    margin: 0 auto;
    width: min(800px, 90%);
  }
}

section.testimoniali {
  & > div {
    margin: 0 auto;
    width: min(1200px, 90%);
  }
}

section.mini-cta {
  padding: calc(var(--s_24_32) * 2) 0;

  & > div {
    align-items: center;
    display: flex;
    gap: 8px;
    justify-content: center;
    margin: 0 auto;
    width: min(90%, 1200px);

    & span {
      color: rgba(0, 0, 0, 0.5);
      font-size: var(--p-font-size);
    }

    & a {
      color: var(--color-main);
      font-size: var(--p-font-size);
      font-weight: 600;
      text-decoration: none;

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

section.zasto {
  background-color: var(--alpha-5);

  & > div {
    margin: 0 auto;
    width: min(90%, 1200px);
  }

  & .zasto-grid {
    display: grid;
    gap: 32px;
    grid-template-columns: repeat(4, 1fr);

    @media screen and (max-width: 850px) {
      grid-template-columns: repeat(2, 1fr);
    }

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

  & .zasto-card {
    text-align: center;

    & svg {
      color: #000;
      height: 36px;
      margin-bottom: 12px;
      margin-inline: auto;
      stroke-width: 1;
      width: 36px;
    }

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

    & p {
      color: rgba(0, 0, 0, 0.6);
      font-size: calc(var(--p-font-size) * 0.9);
      line-height: 1.5;
      margin: 0;
    }
  }
}

section.cta-section {
  & > div {
    margin: 0 auto;
    text-align: center;
    width: min(600px, 90%);
  }

  p {
    color: rgba(0, 0, 0, 0.6);
    font-size: var(--p-font-size);
    line-height: 1.6;
    margin-bottom: 24px;
  }
}

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

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

    & div {
      &.img {
        aspect-ratio: 1.5;
        background-color: var(--alpha-5);
        border-radius: 8px;
        flex: 0 0 calc(50% - 32px);
        overflow: hidden;

        & img {
          display: block;
          height: 100%;
          object-fit: cover;
          width: 100%;
        }
      }

      &.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%;
      }
    }
  }
}

/* ── 8. Components — Index Page (FAQ, Testimonials, Cities, CTA) ── */

.cta-buttons {
  display: flex;
  gap: 12px;
  justify-content: center;
}

.btn-cta {
  border-radius: 4px;
  font-size: var(--p-font-size);
  padding: 12px 28px;
  text-decoration: none;
  transition: all 0.2s;

  &.primary {
    background: var(--color-main);
    color: #fff;

    &:hover {
      opacity: 0.85;
    }
  }

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

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

/**/

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

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

/**/

.faq-list {
  display: flex;
  flex-direction: column;
}

.faq-item {
  border-bottom: 1px solid var(--alpha-8);

  summary {
    cursor: pointer;
    font-size: var(--p-font-size);
    font-weight: 500;
    list-style: none;
    padding: 16px 0;
    padding-right: 24px;
    position: relative;

    &::after {
      color: var(--color-main);
      content: '+';
      font-size: 20px;
      position: absolute;
      right: 0;
      top: 50%;
      transform: translateY(-50%);
    }

    &::-webkit-details-marker {
      display: none;
    }
  }

  &[open] summary::after {
    content: '\2212';
  }

  .faq-answer {
    padding: 0 0 16px;

    p {
      color: rgba(0, 0, 0, 0.7);
      font-size: calc(var(--p-font-size) * 0.95);
      line-height: 1.7;
    }

    a {
      color: var(--color-main);
    }
  }
}

.testimonial-grid {
  display: grid;
  gap: 24px;
  grid-template-columns: repeat(3, 1fr);

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

.testimonial-card {
  border: 1px solid var(--alpha-8);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 0;
  padding: 24px;

  p {
    color: rgba(0, 0, 0, 0.7);
    font-size: var(--p-font-size);
    font-style: italic;
    line-height: 1.6;
    margin: 0;
  }

  cite {
    color: rgba(0, 0, 0, 0.5);
    font-size: calc(var(--p-font-size) * 0.85);
    font-style: normal;
  }
}

.region-cities-wrap {
  align-items: center;
  display: flex;
  gap: 4px;
  margin-bottom: 24px;
  position: relative;

  &::before,
  &::after {
    content: '';
    height: 100%;
    pointer-events: none;
    position: absolute;
    top: 0;
    width: 32px;
    z-index: 1;
  }

  &::before {
    background: linear-gradient(to right, #fff 20%, transparent);
    left: 36px;
  }

  &::after {
    background: linear-gradient(to left, #fff 20%, transparent);
    right: 36px;
  }

  &.at-start::before {
    display: none;
  }
  &.at-end::after {
    display: none;
  }
}

.rc-arrow {
  align-items: center;
  background: #fff;
  border: 1px solid var(--alpha-12);
  border-radius: 50%;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
  color: var(--color-main);
  cursor: pointer;
  display: flex;
  flex-shrink: 0;
  height: 32px;
  justify-content: center;
  margin: 0;
  padding: 0;
  width: 32px;

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

.region-cities {
  display: flex;
  flex-wrap: nowrap;
  gap: 8px;
  margin-top: 0;
  -webkit-overflow-scrolling: touch;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: none;

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

  a {
    align-items: center;
    border: 1px solid var(--alpha-12);
    border-radius: 4px;
    color: var(--color-main);
    display: flex;
    flex-shrink: 0;
    font-size: calc(var(--p-font-size) * 0.9);
    gap: 4px;
    padding: 8px 16px;
    text-decoration: none;
    transition: all 0.2s;
    white-space: nowrap;

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

    span {
      color: rgba(0, 0, 0, 0.35);
      font-size: inherit;
      vertical-align: baseline;
    }

    &:hover span {
      color: rgba(255, 255, 255, 0.7);
    }
  }
}

.gradovi-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(4, 1fr);
  margin-inline: auto;
  width: min(90%, 1200px);

  .grad-card:nth-child(1) {
    grid-column: span 2;
    grid-row: span 2;
  }

  .grad-card:nth-child(4) {
    grid-column: span 2;
    grid-row: span 2;
  }

  @media screen and (max-width: 768px) {
    grid-template-columns: repeat(2, 1fr);
    grid-template-rows: auto;

    .grad-card:nth-child(n) {
      grid-column: span 1;
      grid-row: span 1;
    }
  }

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

    .grad-card:nth-child(n) {
      grid-column: span 1;
    }

    .grad-card img {
      aspect-ratio: 1.5;
    }
  }
}

.grad-card {
  border-radius: 8px;
  color: #fff;
  overflow: hidden;
  position: relative;
  text-decoration: none;

  &::after {
    background: linear-gradient(to top, rgba(0, 0, 0, 0.6) 0%, rgba(0, 0, 0, 0) 60%);
    content: '';
    inset: 0;
    position: absolute;
  }

  img {
    aspect-ratio: 4 / 3;
    display: block;
    object-fit: cover;
    transition: transform 0.3s;
    width: 100%;
  }

  &:hover img {
    transform: scale(1.05);
  }

  .grad-info {
    bottom: 0;
    color: #fff;
    left: 0;
    padding: 16px;
    position: absolute;
    z-index: 1;

    h3 {
      color: #fff;
      font-size: calc(var(--p-font-size) * 1.1);
      font-weight: 600;
      margin: 0;
    }

    span {
      color: #fff;
      font-size: 13px;
      opacity: 0.8;
    }
  }
}

/* ── 9. Components — Property List ───────────── */

.sort-field {
  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: none;
    color: #000;
    cursor: pointer;
    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%;
    }
  }
}

.property-list {
  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%;
      }

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

        &: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 {
      align-items: center;
      background-color: var(--alpha-5);
      border: 1px solid var(--alpha-5);
      border-radius: 4px;
      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 var(--alpha-10);
      }

      & > 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 var(--alpha-5);
          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;
          }
        }
      }
    }
  }
}

/* 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 var(--alpha-10);
    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);
    }
  }
}

/* ── 10. Components — Property Detail ───────── */

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

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

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

  & li {
    aspect-ratio: 3 / 2;
    background-color: var(--surface-input);
    border: 1px solid var(--alpha-10);
    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.slike_count {
        align-items: center;
        background-color: var(--alpha-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;
    text-transform: uppercase;
    top: 8px;

    &.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);
      color: #fff;
    }

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

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

.property-data {
  flex: 1;
  font-size: var(--p-font-size);
  margin: 0 auto;
  max-width: 720px;

  & li {
    align-items: center;
    border-bottom: 1px solid var(--alpha-5);
    display: flex;
    justify-content: space-between;
    list-style: none;
    padding-bottom: 8px;

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

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

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

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

.property-data {
  & #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 */

.property-data p {
  font-weight: 400;
  margin-top: 40px;

  &.cijena {
    display: flex;
    font-size: 2em;
    font-weight: 500;
    justify-content: space-between;
  }

  & .akcija {
    color: red;
  }

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

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

.property-data 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);
    }
  }

  & > 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: var(--alpha-10);
      }

      & 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;
}

h3.feature-group {
  border: 0;
  font-size: calc(var(--p-font-size) * 1.05);
  font-weight: 500;
  margin: 32px auto 24px;
  max-width: 920px;
  padding: 0;
  text-align: left;
  text-transform: uppercase;

  &:first-of-type {
    margin-top: 0;
  }
}

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 var(--alpha-5);
    display: flex;
    font-size: var(--p-font-size);
    justify-content: space-between;
    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;
  }
}

div.pomoc {
  align-items: center;
  border: 1px solid var(--alpha-5);
  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 {
  border-top: 1px solid var(--alpha-5);
  color: #777;
  font-size: calc(var(--p-font-size) * 0.85);
  line-height: 160%;
  margin-top: var(--s_16_32);
  padding-top: var(--s_16_32);
}

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

#video {
  background-color: var(--surface-input);
  overflow: hidden;
  padding-bottom: 56.25%;
  position: relative;

  & iframe {
    height: 100%;
    left: 0;
    position: absolute;
    top: 0;
    width: 100%;
  }
}

/**/

.agent-listing-info {
  display: flex;
  gap: 16px;
  margin-bottom: 48px;

  @media screen and (max-width: 760px) {
    flex-direction: column;
  }
}

.listing-info {
  border: 1px solid #eee;
  border-radius: 4px;
  display: flex;
  flex: 1;
  flex-direction: column;
  font-size: calc(var(--p-font-size) * 0.85);
  justify-content: center;
  list-style: none;
  padding: 12px 16px;

  & li {
    display: flex;
    justify-content: space-between;
    line-height: 200%;
  }

  & span {
    font-weight: 400;
  }
}

.agent-info {
  display: flex;
  flex: 1;
  flex-wrap: wrap;
  gap: 16px;

  & > 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;
      background-color: #eee;
      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;
        }
      }
    }
  }
}

/* ── 11. Components — Forms ──────────────────── */

#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 var(--alpha-10);
    border-radius: 4px;
    padding: var(--s_16_32);

    & + fieldset.admin {
      border-top: 1px solid var(--alpha-10);
      margin-top: 32px;
    }

    & ol + ol {
      border-top: 1px solid var(--alpha-10);
      margin-top: 16px;
      padding-top: 16px;
    }
  }

  & span.admin.text {
    align-items: center;
    border: 1px solid var(--alpha-10);
    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 {
    display: flex;
    flex-wrap: wrap;
    gap: 4px 16px;
    list-style: none;
    padding: 0;

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

      &.half {
        flex: 0 0 calc(50% - 8px);
      }

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

        &.half {
          flex: 0 0 100%;
        }
      }

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

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

      &.chck {
        font-size: calc(var(--p-font-size) * 0.85);

        & > label {
          align-items: flex-start;
          display: flex;
          flex: 0 0 100% !important;
          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;
    }

    &.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 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: var(--surface-input);
  border: 1px solid #eee;
  border-radius: 4px;
  box-sizing: border-box;
  color: #000;
  font-family: var(--font-body);
  font-size: calc(var(--p-font-size) * 0.9);
  font-weight: 300;
  margin: 0;
  padding: 8px 12px;
  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: 8px 12px;
  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]):not(.btn):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 {
  background: var(--surface-input);
  border: 1px solid #d7d7d7;
  font-size: calc(var(--p-font-size) * 0.9);
  font-weight: 300;
  margin: 0;
  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;
}

fieldset.upit.admin ::placeholder {
  color: #aaa;
  font-style: italic;
}

h2.with-action {
  align-items: baseline;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.toggle-all-btn {
  background: transparent;
  border: 0;
  color: #666;
  cursor: pointer;
  font-size: 12px;
  font-weight: normal;
  padding: 0;
  text-decoration: underline;
}

.toggle-all-btn:hover {
  color: #000;
}

/* ── 12. Layout — 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) {
    &.listing {
      padding-bottom: calc((var(--s_24_32) * 2) + 57px);
    }
  }

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

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

.foot-holder {
  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;
      }
    }
  }
}

.footer-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;
  }
}

/* ── 13. Admin — Navigation & Search ──────────── */

ul.admin_nav {
  display: grid;
  font-size: calc(var(--p-font-size) * 0.9);
  gap: 4px;
  grid-template-columns: 1fr 1fr 1fr 1fr;
  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 {
    background-color: var(--color-main);
    border: 1px solid var(--color-main);
    border-radius: 4px;
    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);
    }
  }
}

#adminSearch {
  display: grid;
  gap: 4px;
  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: 500px) {
    grid-template-columns: 1fr;
  }

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

  & input,
  & select {
    background: #fff;
    border: 1px solid var(--alpha-10);
    border-radius: 4px;
    color: #333;
    cursor: pointer;
    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);
    }
  }
}

/**/

/* ── 14. Admin — Property List (.admin-list) ── */

.admin-list .pagination.admin {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;
  padding: 16px 0;

  a {
    background: #fff;
    border: 1px solid var(--alpha-15);
    border-radius: 4px;
    color: var(--color-main);
    display: inline-block;
    font-size: 13px;
    min-width: 32px;
    padding: 4px 8px;
    text-align: center;
    text-decoration: none;

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

    &:hover:not(.active) {
      background: var(--alpha-5);
    }
  }
}

.admin-list .toolbar {
  border: 1px solid var(--alpha-10);
  border-radius: 6px;
  margin: 12px 0;
  padding: 12px;

  .toolbar-row {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    & + .toolbar-row {
      border-top: 1px solid var(--alpha-10);
      margin-top: 12px;
      padding-top: 12px;
    }
  }

  .toolbar-label {
    color: rgba(0, 0, 0, 0.4);
    font-size: 12px;
  }

  .date-filter {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px;

    input[type='date'],
    input[type='text'] {
      border: 1px solid var(--alpha-15);
      border-radius: 4px;
      font-family: var(--font-body);
      font-size: 13px;
      padding: 6px 10px;
    }
  }

  .toolbar-sep {
    border-left: 1px solid var(--alpha-10);
    height: 20px;
    margin: 0 4px;
  }

  .toolbar-select {
    background: #fff;
    border: 1px solid var(--alpha-10);
    border-radius: 3px;
    color: #333;
    cursor: pointer;
    font-size: 12px;
    height: 26px;
    padding: 0 8px;
  }

  .toolbar-select:hover {
    border-color: rgba(0, 0, 0, 0.3);
  }

  .pager {
    align-items: center;
    display: flex;
    gap: 4px;
    margin-left: auto;
  }

  .pager-arrow {
    align-items: center;
    border: 1px solid var(--alpha-15);
    border-radius: 4px;
    color: rgba(0, 0, 0, 0.5);
    display: inline-flex;
    font-size: 18px;
    height: 30px;
    justify-content: center;
    text-decoration: none;
    width: 30px;

    &:hover:not(.disabled) {
      background: var(--alpha-5);
      color: rgba(0, 0, 0, 0.8);
    }

    &.disabled {
      color: var(--alpha-15);
      cursor: default;
      pointer-events: none;
    }
  }

  .pager-info {
    color: rgba(0, 0, 0, 0.5);
    font-size: 13px;
    padding: 0 8px;
    white-space: nowrap;
  }

  .btn-deleted {
    align-items: center;
    border: 1px solid var(--alpha-10);
    border-radius: 6px;
    color: rgba(0, 0, 0, 0.35);
    display: inline-flex;
    gap: 4px;
    margin-left: auto;
    padding: 4px 10px;
    text-decoration: none;

    &:hover {
      color: rgba(0, 0, 0, 0.6);
    }

    .deleted-count {
      color: inherit;
      font-size: 12px;
    }
  }
}

.admin-list .chip {
  border: 1px solid var(--alpha-15);
  border-radius: 20px;
  color: rgba(0, 0, 0, 0.5);
  font-size: 12px;
  padding: 4px 12px;
  text-decoration: none;
  transition: all 0.2s;

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

  &.chip-active {
    background: var(--alpha-6);
    border-color: var(--alpha-25);
    color: rgba(0, 0, 0, 0.7);
  }

  &.chip-green.chip-active {
    background: color-mix(in srgb, var(--color-green) 10%, #fff);
    border-color: var(--color-green);
    color: var(--color-green);
  }

  &.chip-orange.chip-active {
    background: color-mix(in srgb, var(--color-orange) 10%, #fff);
    border-color: var(--color-orange);
    color: var(--color-orange);
  }

  &.chip-red.chip-active {
    background: color-mix(in srgb, var(--color-red) 10%, #fff);
    border-color: var(--color-red);
    color: var(--color-red);
  }
}

.admin-list .nek-header,
.admin-list div.nek {
  align-items: center;
  display: flex;
  gap: 12px;
  padding: 6px 0;

  a,
  a:visited {
    color: inherit;
  }

  .col-img {
    flex: 0 0 100px;
    position: relative;
  }

  .col-img a {
    display: block;
    position: relative;
  }

  .thumb-najam {
    align-items: center;
    background: var(--color-orange, #f59e0b);
    border-radius: 50%;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
    color: #fff;
    display: flex;
    font-size: 12px;
    font-weight: 700;
    height: 24px;
    justify-content: center;
    left: 4px;
    pointer-events: none;
    position: absolute;
    top: 4px;
    width: 24px;
  }

  .col-data {
    align-items: center;
    display: flex;
    flex: 1;
    gap: 12px;
    min-width: 0;
  }

  .col-fields {
    align-items: center;
    display: grid;
    flex: 1;
    gap: 0 12px;
    grid-template-columns: 70px 30px 1fr 60px 30px 30px 100px;
    min-width: 0;
  }

  .col-badges {
    flex: 0 0 150px;
  }

  @media screen and (max-width: 850px) {
    .col-img {
      align-self: start;
      flex: 0 0 80px;
    }

    .col-fields {
      display: grid;
      gap: 4px 8px;
      grid-template-columns: 60px 24px 1fr 60px 30px 30px;
      grid-template-rows: auto auto;
    }

    .col-id {
      grid-row: 1;
    }
    .col-kat {
      grid-row: 1;
    }
    .col-lokacija {
      grid-row: 1;
    }
    .col-povrsina {
      grid-row: 1;
    }
    .col-spavacih {
      grid-row: 1;
    }
    .col-kupaonica {
      grid-row: 1;
    }
    .col-cijena {
      grid-column: 1 / -1;
      grid-row: 2;
    }
  }

  @media screen and (max-width: 600px) {
    font-size: 13px;

    .col-img {
      flex: 0 0 60px;
    }

    .col-fields {
      grid-template-columns: 1fr 80px;
      grid-template-rows: auto;
    }

    .col-kat,
    .col-povrsina,
    .col-spavacih,
    .col-kupaonica {
      display: none;
    }

    .col-id {
      grid-column: 1 / -1;
    }
    .col-lokacija {
      grid-row: auto;
    }
    .col-cijena {
      grid-row: auto;
      justify-self: end;
    }
  }

  @media screen and (max-width: 420px) {
    .col-data {
      flex-wrap: wrap;
    }

    .col-fields {
      display: flex;
      flex-wrap: wrap;
      gap: 4px 8px;
    }

    .col-id {
      flex: 0 0 auto;
    }
    .col-lokacija {
      flex: 2;
    }
    .col-cijena {
      flex: 0 0 70px;
      text-align: right;
    }

    .col-badges {
      flex: 0 0 100%;
    }
  }
}

.admin-list .nek-header {
  background: rgba(0, 0, 0, 0.03);
  border-radius: 4px;
  color: rgba(0, 0, 0, 0.5);
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.05em;
  padding: 8px 0;
  text-transform: uppercase;

  .col-sort {
    text-decoration: none;
    white-space: nowrap;

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

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

  .col-povrsina,
  .col-spavacih,
  .col-kupaonica,
  .col-cijena {
    text-align: right;
  }
}

.admin-list div.nek {
  border-bottom: 1px solid var(--alpha-6);
  flex-wrap: wrap;
  font-size: 14px;

  @media screen and (max-width: 600px) {
    font-size: 13px;
  }

  &.active {
    background-color: rgba(0, 0, 0, 0.03);
  }

  .col-img {
    a {
      border: 1px solid var(--alpha-10);
      border-radius: 4px;
      display: block;
      overflow: hidden;
    }

    img {
      aspect-ratio: 4 / 3;
      border-radius: 4px;
      display: block;
      height: auto;
      object-fit: cover;
      width: 100%;
    }
  }

  .col-id {
    white-space: nowrap;
  }

  .col-lokacija {
    color: rgba(0, 0, 0, 0.6);
    white-space: nowrap;
  }

  .col-povrsina,
  .col-spavacih,
  .col-kupaonica {
    color: rgba(0, 0, 0, 0.6);
    text-align: right;
  }

  .col-cijena {
    font-weight: 600;
    text-align: right;
    white-space: nowrap;
  }

  .col-badges {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 2px;
    justify-content: flex-end;
    overflow: hidden;
  }

  .kat-badge {
    align-items: center;
    display: inline-flex;
    flex-shrink: 0;
    justify-content: flex-start;
    text-transform: uppercase;
  }
}

.admin-list .badge {
  align-items: center;
  background: var(--alpha-6);
  border: 1px solid var(--alpha-10);
  border-radius: 3px;
  color: rgba(0, 0, 0, 0.2);
  cursor: pointer;
  display: inline-flex;
  font-size: 11px;
  font-weight: 700;
  height: 22px;
  justify-content: center;
  min-width: 22px;
  padding: 0 3px;
  transition: all 0.15s;

  &:hover {
    border-color: rgba(0, 0, 0, 0.3);
  }
  &.on {
    background: var(--color-success);
    border-color: var(--color-success);
    color: #fff;
  }
  &.on.badge-e {
    background: #8b5cf6;
    border-color: #8b5cf6;
  }
  &.on.badge-p {
    background: var(--color-red);
    border-color: var(--color-red);
  }
  &.on.badge-r {
    background: var(--color-orange);
    border-color: var(--color-orange);
  }
  &.badge-del {
    background: none;
    border-color: rgba(0, 0, 0, 0.3);
    color: rgba(0, 0, 0, 0.3);
    font-size: 20px;
    &:hover {
      border-color: transparent;
      color: var(--color-danger);
    }
  }
  &.badge-agent {
    color: #fff;
    cursor: help;
    font-size: 11px;
    font-weight: 600;
    letter-spacing: 0.3px;
  }

  &.badge-restore {
    background: none;
    border-color: rgba(0, 0, 0, 0.3);
    color: rgba(0, 0, 0, 0.3);
    font-size: 16px;
    &:hover {
      border-color: transparent;
      color: var(--color-success);
    }
  }
}

input.color-picker {
  align-self: center;
  border: 1px solid var(--alpha-10);
  border-radius: 4px;
  cursor: pointer;
  height: 32px;
  padding: 2px;
  width: 60px;
}

.admin-list .badge-info {
  color: rgba(0, 0, 0, 0.35);
  display: inline-block;
  font-size: 11px;
  min-width: 24px;
  text-align: center;

  &.badge-info-orange {
    color: var(--color-orange);
    font-weight: 600;
  }

  &.badge-info-red {
    color: var(--color-red);
    font-weight: 600;
  }
}

/* ── 15. Admin — AI Generator & Lang Tools ──── */

.ai-generator {
  border: 1px solid var(--alpha-10);
  border-radius: 6px;
  transition:
    border-color 0.2s,
    background 0.2s;
  width: 100%;

  &:not([open]):has(> .ai-generator-summary:hover) {
    background: rgba(0, 0, 0, 0.03);
    border-color: var(--alpha-20, rgba(0, 0, 0, 0.15));
  }
}

.ai-generator-summary {
  border-radius: 6px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  list-style: none;
  padding: 12px 16px;
  transition: color 0.2s;

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

  &::-webkit-details-marker {
    display: none;
  }

  span::before {
    content: '+ ';
  }

  [open] > & span::before {
    content: '- ';
  }
}

.ai-divider {
  border: none;
  border-top: 1px solid var(--alpha-6);
  margin: 4px 0;
  width: 100%;
}

.ai-generator-config {
  border-top: 1px solid var(--alpha-10);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
}

.ai-row {
  display: flex;
  gap: 12px;

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

.ai-field {
  align-items: center;
  display: flex;
  flex: 1;
  gap: 8px;

  &.full {
    flex: 0 0 100%;
  }

  label {
    font-size: 12px;
    white-space: nowrap;
  }

  select,
  input[type='text'],
  textarea {
    border: 1px solid var(--alpha-15);
    border-radius: 4px;
    flex: 1;
    font-size: 13px;
    padding: 5px 8px;
    width: 100%;
  }

  textarea {
    height: 150px;
    resize: vertical;
  }

  input[type='checkbox'] {
    margin-right: 4px;
    vertical-align: middle;
  }
}

/* ── 16. Admin — Buttons (project-specific) ─── */

.btn {
  align-items: center;
  border-radius: 4px;
  cursor: pointer;
  display: inline-flex;
  font-family: var(--font-body);
  font-size: 13px;
  gap: 4px;
  justify-content: center;
  line-height: 1;
  padding: 12px 16px;
  text-decoration: none;
  transition: all 0.2s;
  white-space: nowrap;
}

.btn-sidebar {
  line-height: 18px;
  width: 100%;
}

.setting-field {
  margin-bottom: 16px;

  label {
    color: rgba(0, 0, 0, 0.5);
    display: block;
    font-size: 12px;
    font-weight: 600;
    letter-spacing: 0.05em;
    margin-bottom: 4px;
    text-transform: uppercase;
  }

  input[type='text'],
  textarea {
    border: 1px solid var(--alpha-15);
    border-radius: 4px;
    font-family: var(--font-body);
    font-size: 14px;
    padding: 10px 12px;
    width: 100%;

    &:focus {
      border-color: var(--color-main);
      outline: none;
    }
  }
}

.setting-actions {
  padding-top: 8px;
}

.admin-edit {
  align-items: center;
  background: rgba(255, 255, 255, 0.9);
  border-radius: 4px;
  bottom: 12px;
  color: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  display: none;
  height: 28px;
  justify-content: center;
  position: absolute;
  right: 8px;
  width: 28px;
  z-index: 10;

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

a:hover > .admin-edit {
  display: inline-flex;
}

.admin-title-link {
  color: inherit;
  text-decoration: none;

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

.btn-primary {
  background: var(--color-main);
  border: 1px solid var(--color-main);
  color: #fff;
  &:hover {
    opacity: 0.8;
  }
}

.btn-secondary {
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.2);
  color: rgba(0, 0, 0, 0.6);
  &:hover {
    background: rgba(0, 0, 0, 0.04);
    color: rgba(0, 0, 0, 0.8);
  }
}

.btn-outline {
  background: #fff;
  border: 1px solid var(--alpha-12);
  color: inherit;
  &:hover {
    background: rgba(0, 0, 0, 0.03);
  }
}

.btn-danger {
  background: var(--color-danger);
  border: 1px solid var(--color-danger);
  color: #fff;
  &:hover {
    opacity: 0.9;
  }
}

.btn-danger-outline {
  background: #fff;
  border: 1px solid var(--color-danger);
  color: var(--color-danger);
  &:hover {
    background: var(--color-danger);
    color: #fff;
  }
}

.delete-property {
  border-bottom: 1px solid var(--alpha-6);
  margin-bottom: 12px;
  padding-bottom: 12px;

  .btn-danger-outline {
    width: 100%;
  }
}

.required {
  color: var(--color-danger);
}

.field-error {
  border-color: var(--color-danger) !important;
  box-shadow: 0 0 0 2px rgba(239, 68, 68, 0.15);
}

.btn:disabled {
  cursor: wait;
  opacity: 0.6;
}

.btn-delete-upit {
  background: none;
  border: 1px solid var(--color-red);
  border-radius: 4px;
  color: var(--color-red);
  cursor: pointer;
  font-family: var(--font-body);
  font-size: 12px;
  padding: 6px 16px;

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

/* ── 17. Admin — Layout ──────────────────────── */

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

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

/**/

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

  &:only-child {
    flex: 0 0 100%;
  }
}

.narrow {
  margin-inline: auto;
  max-width: 800px;
}

#admin_sub {
  display: flex;
  flex: 0 0 calc(35 / 120 * 100%);
  flex-direction: column;
  gap: 16px;
  position: sticky;
  top: 32px;

  button.submit {
    margin-top: 0;
  }
}

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

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

/* ── 18. Admin — Property Form & Sidebar ─────── */

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

  .btn {
    flex: 1;
    text-align: center;
  }

  .btn-form {
    display: flex;
    flex: 1;

    .btn-outline {
      flex: 1;
    }
  }
}

.nekretnina-meta {
  border: 2px solid var(--color-success);
  border-radius: 6px;
  padding: 16px;
  transition: border-color 0.3s;

  &.meta-neutral,
  &.meta-neaktivna {
    border-color: var(--alpha-15);
  }

  &.meta-rezervirana {
    border-color: var(--color-orange);
  }

  &.meta-prodana {
    border-color: var(--color-red);
  }

  dl {
    display: grid;
    font-size: 13px;
    gap: 12px 24px;
    grid-template-columns: auto 1fr;
    margin: 0;
  }

  dt {
    color: rgba(0, 0, 0, 0.45);
    font-weight: 400;
  }

  dd {
    font-weight: 600;
    margin: 0;

    .link {
      font-size: 12px;
      font-weight: 400;
      margin-left: 8px;
    }
  }

  .status-toggle {
    align-items: center;
    border-top: 1px solid var(--alpha-6);
    display: flex;
    gap: 8px;
    margin-top: 12px;
    padding-top: 12px;
  }

  .status-label {
    font-size: 13px;
    font-weight: 600;
  }

  .pregled-toggle {
    align-items: center;
    border-bottom: 1px solid var(--alpha-6);
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 12px;
    margin-top: 8px;
    padding-bottom: 12px;
    transition: opacity 0.3s;

    &.disabled {
      opacity: 0.35;
      pointer-events: none;
    }
  }

  .pregled-label {
    cursor: pointer;
    font-size: 13px;
    font-weight: 600;
  }

  .pregled-info {
    color: rgba(0, 0, 0, 0.5);
    flex: 0 0 100%;
    font-size: 12px;
    margin: 0;
  }
}

.toggle-switch {
  display: inline-block;
  height: 20px;
  position: relative;
  width: 36px;

  input {
    height: 0;
    opacity: 0;
    width: 0;
  }

  .toggle-slider {
    background: rgba(0, 0, 0, 0.2);
    border-radius: 20px;
    bottom: 0;
    cursor: pointer;
    left: 0;
    position: absolute;
    right: 0;
    top: 0;
    transition: 0.2s;

    &::before {
      background: #fff;
      border-radius: 50%;
      bottom: 2px;
      content: '';
      height: 16px;
      left: 2px;
      position: absolute;
      transition: 0.2s;
      width: 16px;
    }
  }

  input:checked + .toggle-slider {
    background: var(--color-success);
  }

  input:checked + .toggle-slider::before {
    transform: translateX(16px);
  }
}

.sidebar-nav {
  display: flex;
  gap: 12px;

  a {
    color: var(--color-main);
    font-size: 13px;
    text-decoration: none;
    transition: color 0.2s;

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

#expose_list {
  border-top: 1px solid var(--alpha-6);
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
  padding-top: 12px;

  .expose-label {
    color: rgba(0, 0, 0, 0.45);
    flex: 0 0 100%;
    font-size: 12px;
    margin-bottom: 2px;
  }

  .expose-pill {
    background: #fff;
    border: 1px solid var(--alpha-12);
    border-radius: 4px;
    color: inherit;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: 13px;
    font-weight: 400;
    padding: 4px 12px;
    text-decoration: none;
    transition: all 0.2s;

    &:hover {
      background: rgba(0, 0, 0, 0.03);
    }

    &.copied {
      background: var(--color-success);
      border-color: var(--color-success);
      color: #fff;
    }
  }
}

.copy-url + label,
label:has(.copy-icon) {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding-right: 12px;
}

.copy-icon {
  opacity: 0.3;
}

.url-copy {
  align-items: center;
  color: rgba(0, 0, 0, 0.5);
  cursor: pointer;
  display: inline-flex;
  font-size: calc(var(--p-font-size) * 0.8);
  gap: 6px;
  overflow: hidden;
  padding: 8px 0;
  text-overflow: ellipsis;
  transition: color 0.2s;
  white-space: nowrap;
  width: calc(100% - 220px);

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

  svg {
    flex-shrink: 0;
    opacity: 0.4;
  }

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

    svg {
      opacity: 0.8;
    }
  }

  &.copied {
    color: var(--color-success);

    svg {
      opacity: 1;
    }
  }
}

.searchable-select {
  position: relative;
  width: calc(100% - 220px);

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

  input[type='text'] {
    background: var(--surface-input);
    border: 1px solid #eee;
    border-radius: 4px;
    box-sizing: border-box;
    color: #000;
    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: 100%;

    &:hover,
    &:focus {
      border-color: var(--color-main);
      outline: none;
    }
  }
}

/* ── 19. Admin — Modals, Toasts, Gallery, Upload ── */

.modal-overlay {
  align-items: center;
  background: rgba(0, 0, 0, 0.4);
  display: flex;
  inset: 0;
  justify-content: center;
  position: fixed;
  z-index: 1000;
}

.modal {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 8px 30px rgba(0, 0, 0, 0.2);
  max-width: 480px;
  width: 90%;
}

.modal-header {
  align-items: center;
  border-bottom: 1px solid var(--alpha-8);
  display: flex;
  justify-content: space-between;
  padding: 16px 20px;

  h3 {
    font-size: 16px;
    margin: 0;
  }
}

.modal-close {
  background: none;
  border: none;
  color: rgba(0, 0, 0, 0.4);
  cursor: pointer;
  font-size: 22px;
  padding: 0;

  &:hover {
    color: #000;
  }
}

.modal-body {
  padding: 20px;
}

.modal-field {
  margin-bottom: 12px;

  label {
    display: block;
    font-size: calc(var(--p-font-size) * 0.9);
    margin-bottom: 8px;
  }

  input,
  textarea {
    background: var(--surface-input);
    border: 1px solid #eee;
    border-radius: 4px;
    box-sizing: border-box;
    font-family: var(--font-body);
    font-size: 14px;
    padding: 8px 12px;
    width: 100%;

    &:focus {
      border-color: var(--color-main);
      outline: none;
    }
  }

  span.info {
    color: #0369a1;
    font-size: 13px;
  }
  span.success {
    color: #15803d;
    font-size: 13px;
  }
  span.error {
    color: #dc2626;
    font-size: 13px;
  }
}

.modal-footer {
  border-top: 1px solid var(--alpha-8);
  display: flex;
  justify-content: flex-end;
  padding: 12px 20px;

  .btn-primary {
    background: var(--color-main);
    border: none;
    border-radius: 4px;
    color: #fff;
    cursor: pointer;
    font-size: 14px;
    padding: 8px 20px;

    &:hover {
      opacity: 0.9;
    }
  }
}

.searchable-clear {
  align-items: center;
  color: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  display: flex;
  font-size: 18px;
  height: 38px;
  justify-content: center;
  position: absolute;
  right: 8px;
  top: 0;
  width: 24px;

  &:hover {
    color: rgba(0, 0, 0, 0.7);
  }
}

.searchable-options {
  background: #fff;
  border: 1px solid #ddd;
  border-radius: 0 0 4px 4px;
  border-top: none;
  box-shadow: 0 4px 12px var(--alpha-15);
  display: none;
  left: 0;
  max-height: 250px;
  overflow-y: auto;
  position: absolute;
  right: 0;
  z-index: 100;
}

.searchable-option {
  cursor: pointer;
  font-size: 13px;
  padding: 8px 12px;

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

.gallery-container {
  border: 1px solid var(--alpha-10);
  border-radius: 8px;
  margin-top: 16px;
  padding: 12px;
}

.galerija {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(5, 1fr);
  list-style: none;
  margin: 0 0 16px;
  padding: 0;

  li {
    position: relative;
  }

  .img-wrap {
    border: 2px solid transparent;
    border-radius: 6px;
    overflow: hidden;
    position: relative;
    transition: border-color 0.2s;

    &:has(.img-check:checked) {
      border-color: var(--color-danger);
    }

    img {
      aspect-ratio: 1;
      display: block;
      object-fit: cover;
      width: 100%;
    }

    a {
      display: block;
      position: relative;
    }
  }

  .img-check {
    cursor: pointer;
    height: 18px;
    position: absolute;
    right: 6px;
    top: 6px;
    width: 18px;
    z-index: 2;

    &:checked {
      accent-color: var(--color-danger);
    }
  }

  .img-zoom {
    align-items: center;
    background: rgba(0, 0, 0, 0.5);
    border-radius: 4px;
    bottom: 6px;
    color: #fff;
    display: flex;
    height: 28px;
    justify-content: center;
    opacity: 0;
    position: absolute;
    right: 6px;
    transition: opacity 0.2s;
    width: 28px;
  }

  .img-wrap:hover .img-zoom {
    opacity: 1;
  }

  li.dragging {
    opacity: 0.3;
  }

  li {
    cursor: grab;

    &:active {
      cursor: grabbing;
    }
  }
}

.gallery-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 12px;
}

.upload-zone {
  align-items: center;
  border: 2px dashed var(--alpha-15);
  border-radius: 8px;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
  margin-top: 16px;
  padding: 32px 16px;
  text-align: center;
  transition: all 0.2s;

  &:hover,
  &.dragover {
    background: rgba(0, 0, 0, 0.02);
    border-color: var(--color-main);
  }

  p {
    color: rgba(0, 0, 0, 0.5);
    font-size: 14px;
    margin: 0;
  }

  .upload-hint {
    color: rgba(0, 0, 0, 0.3);
    font-size: 12px;
  }

  a {
    color: var(--color-main);
  }
}

.upload-queue {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 12px;
}

.upload-item {
  align-items: center;
  border: 1px solid var(--alpha-8);
  border-radius: 6px;
  display: flex;
  gap: 12px;
  padding: 8px;

  .upload-thumb {
    border-radius: 4px;
    flex-shrink: 0;
    height: 48px;
    object-fit: cover;
    width: 64px;
  }

  .upload-info {
    flex: 1;
    min-width: 0;

    .upload-name {
      font-size: 13px;
      overflow: hidden;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .upload-size {
      color: rgba(0, 0, 0, 0.4);
      font-size: 11px;
    }
  }

  .upload-progress {
    background: var(--alpha-6);
    border-radius: 3px;
    flex: 0 0 120px;
    height: 6px;
    overflow: hidden;

    .upload-bar {
      background: var(--color-main);
      border-radius: 3px;
      height: 100%;
      transition: width 0.2s;
      width: 0%;
    }
  }

  .upload-status {
    flex-shrink: 0;
    font-size: 12px;
    text-align: center;
    width: 24px;
  }

  .upload-close {
    color: rgba(0, 0, 0, 0.3);
    cursor: pointer;
    font-size: 18px;

    &:hover {
      color: rgba(0, 0, 0, 0.7);
    }
  }

  &.done {
    opacity: 0.6;

    .upload-bar {
      background: var(--color-success);
      width: 100% !important;
    }
    .upload-status {
      color: var(--color-success);
    }
  }

  &.error {
    border-color: #fecaca;

    .upload-bar {
      background: var(--color-danger);
    }
    .upload-status {
      color: var(--color-danger);
    }
  }
}

.toast {
  align-items: center;
  border-radius: 6px;
  box-shadow: 0 4px 12px var(--alpha-15);
  display: flex;
  font-size: 14px;
  gap: 12px;
  padding: 12px 16px;
  position: fixed;
  right: -400px;
  top: 24px;
  transition: right 0.3s ease;
  z-index: 9999;

  .toast-close {
    background: none;
    border: none;
    color: inherit;
    cursor: pointer;
    font-size: 18px;
    opacity: 0.5;
    padding: 0;

    &:hover {
      opacity: 1;
    }
  }

  &.show {
    right: 24px;
  }

  &.toast-success {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    color: #15803d;
  }

  &.toast-error {
    background: #fef2f2;
    border: 1px solid #fecaca;
    color: #dc2626;
  }
}

#napomena_box {
  border-top: 1px solid var(--alpha-6);
  margin-top: 12px;
  padding-top: 12px;

  .napomena-label {
    color: rgba(0, 0, 0, 0.45);
    display: block;
    font-size: 12px;
    margin-bottom: 8px;
  }

  textarea {
    background: var(--surface-input);
    border: 1px solid #eee;
    border-radius: 4px;
    box-sizing: border-box;
    color: #000;
    font-family: var(--font-body);
    font-size: calc(var(--p-font-size) * 0.9);
    font-weight: 300;
    min-height: 80px;
    padding: 10px 15px;
    resize: vertical;
    transition: all 0.5s;
    width: 100%;

    &:hover,
    &:focus {
      border-color: var(--color-main);
      outline: none;
    }
  }
}

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;
  }
}

/* ── 20. Admin — Dashboard (cards, tables, logs) ── */

.okvir h1 a {
  color: var(--color-main);
  text-decoration: none;
  transition: opacity 0.2s;

  &:hover {
    opacity: 0.7;
  }
}

.okvir h2 {
  font-size: 14px;
  font-weight: 600;
  margin-block: 32px 24px;
  text-align: center;
  text-transform: uppercase;

  &:first-child {
    margin-top: 0;
  }
}

.dash-more {
  font-size: 13px;
  margin-top: 24px;
  text-align: center;
}

.dash-section {
  margin-bottom: 0;

  &.border {
    border: 1px solid var(--alpha-10);
    border-radius: 4px;
    padding: 0 var(--s_16_32) var(--s_16_32);
  }
}

.dash-hint {
  color: rgba(0, 0, 0, 0.4);
  font-size: 12px;
  margin: -8px 0 12px;
}

.pass-info {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 16px;

  p {
    color: rgba(0, 0, 0, 0.4);
    flex: 1;
    font-size: 12px;
  }
}

.pass-strength-wrap {
  align-items: center;
  display: flex;
  flex: 1;
  gap: 8px;
}

.pass-strength {
  background: var(--alpha-6);
  border-radius: 3px;
  flex: 1;
  height: 4px;
  overflow: hidden;
}

.pass-strength-bar {
  border-radius: 3px;
  height: 100%;
  transition:
    width 0.3s,
    background 0.3s;
  width: 0;
}

.pass-strength-label {
  font-size: 11px;
  min-width: 55px;
}

.pass-field {
  display: flex;
  position: relative;
  width: 100%;
}

.pass-field input {
  flex: 1;
  padding-right: 36px;
}

.pass-eye {
  background: none;
  border: none;
  color: rgba(0, 0, 0, 0.3);
  cursor: pointer;
  padding: 0 8px;
  position: absolute;
  right: 0;
  top: 50%;
  transform: translateY(-50%);

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

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

.dash-cards {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;

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

.dash-card {
  background: #fff;
  border: 1px solid var(--alpha-10);
  border-radius: 6px;
  color: inherit;
  display: flex;
  flex: 1 1 120px;
  flex-direction: column;
  gap: 4px;
  min-width: 100px;
  padding: 16px 20px;
  text-decoration: none;
  transition:
    border-color 0.2s,
    box-shadow 0.2s;

  &:hover {
    border-color: var(--color-main);
    box-shadow: 0 2px 8px var(--alpha-6);
  }

  .dash-number {
    font-size: 28px;
    font-weight: 700;
    line-height: 1;
  }

  .dash-label {
    color: rgba(0, 0, 0, 0.5);
    font-size: 13px;
  }

  &.card-green {
    .dash-number {
      color: var(--color-green);
    }
    &:hover {
      border-color: var(--color-green);
    }
  }

  &.card-orange {
    .dash-number {
      color: var(--color-orange);
    }
    &:hover {
      border-color: var(--color-orange);
    }
  }

  &.card-red {
    .dash-number {
      color: var(--color-red);
    }
    &:hover {
      border-color: var(--color-red);
    }
  }

  &.card-grey {
    .dash-number {
      color: var(--color-grey);
    }
    &:hover {
      border-color: var(--color-grey);
    }
  }
}

.dash-row {
  display: flex;
  gap: 24px;

  @media screen and (max-width: 600px) {
    flex-direction: column;
    gap: 0;
  }
}

.dash-half {
  flex: 1;
}

.dash-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.dash-table {
  border-collapse: collapse;
  font-size: 13px;
  width: 100%;

  th,
  td {
    border-bottom: 1px solid var(--alpha-6);
    padding: 8px 12px;
    text-align: left;
  }

  th {
    background: rgba(0, 0, 0, 0.03);
    color: rgba(0, 0, 0, 0.45);
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
  }

  tr:last-child td {
    border-bottom: none;
  }
}

.log-filters {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 32px;

  & input,
  & select,
  & button,
  & a {
    background: #fff;
    border: 1px solid var(--alpha-10);
    border-radius: 4px;
    color: #333;
    cursor: pointer;
    font-family: var(--font-body);
    font-size: calc(var(--p-font-size) * 0.8);
    font-weight: 300;
    line-height: normal;
    margin: 0;
    padding: 12px 16px;
    text-transform: uppercase;
    transition: all 0.5s;

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

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

  & input.submit {
    background-color: var(--color-main);
    color: #fff;
    line-height: normal;

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

  @media screen and (max-width: 800px) {
    .log-input {
      flex: 0 0 calc(33.33% - 6px);
    }
  }

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

.log-input {
  flex: 1;
  min-width: 0;
}

.log-footer {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 16px;
  justify-content: space-between;
  margin-top: 24px;
}

.log-count {
  color: rgba(0, 0, 0, 0.45);
  font-size: 13px;
}

.log-per-page {
  align-items: center;
  color: rgba(0, 0, 0, 0.45);
  display: flex;
  font-size: 13px;
  gap: 4px;

  a {
    border: 1px solid var(--alpha-15);
    border-radius: 4px;
    color: var(--color-main);
    padding: 4px 10px;
    text-decoration: none;

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

.log-table-wrap {
  -webkit-overflow-scrolling: touch;
  overflow-x: auto;
}

.log-table {
  border: 1px solid var(--alpha-6);
  min-width: 500px;

  th a.sort-link {
    color: inherit;
    text-decoration: none;
    white-space: nowrap;

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

  @media screen and (max-width: 700px) {
    min-width: 0;

    thead {
      display: none;
    }

    tbody tr {
      border-bottom: 1px solid var(--alpha-10);
      display: block;
      padding: 12px 0;
    }

    tbody td {
      border: none;
      display: flex;
      gap: 8px;
      padding: 4px 12px;

      &::before {
        color: rgba(0, 0, 0, 0.4);
        content: attr(data-label);
        flex: 0 0 70px;
        font-size: 11px;
        font-weight: 600;
        text-transform: uppercase;
      }
    }
  }
}

.log-badge {
  border-radius: 3px;
  font-size: 11px;
  font-weight: 600;
  padding: 2px 8px;
  text-transform: uppercase;

  &.log-ok {
    background: #f0fdf4;
    color: var(--color-green);
  }

  &.log-err {
    background: #fef2f2;
    color: var(--color-red);
  }

  &.log-out {
    background: #f5f5f5;
    color: var(--color-grey);
  }
}

.log-pagination {
  display: flex;
  flex-wrap: wrap;
  gap: 4px;

  a {
    background: #fff;
    border: 1px solid var(--alpha-15);
    border-radius: 4px;
    color: var(--color-main);
    font-size: 13px;
    min-width: 32px;
    padding: 4px 8px;
    text-align: center;
    text-decoration: none;

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

  .dots {
    color: rgba(0, 0, 0, 0.3);
    font-size: 13px;
    padding: 4px 4px;
  }
}

/* ── 21. Admin — Inquiries, Sellers, Buyers ──── */

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

  details {
    background: #fff;
    border: 1px solid var(--alpha-10);
    border-radius: 4px;
    overflow: hidden;

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

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

    &.neprocitano {
      border-color: var(--color-orange);
    }

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

      .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 {
      background: #007fff;
      border: 1px solid #003eff;
      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 var(--alpha-10);
      }

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

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

      &.del {
        border-top: 1px solid var(--alpha-10) !important;
        flex-wrap: wrap;
        padding: 16px;
      }
    }
  }
}

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

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

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

  #dropdownInput {
    background: var(--surface-input);
    border: 1px solid #eee;
    border-radius: 4px;
    box-sizing: border-box;
    color: #000;
    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;
    transition: background 1s;
    width: 100%;

    &.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 var(--alpha-10);
    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;
    }
  }
}

/* */

.ai-msg {
  font-size: 12px;
  &.green {
    color: #15803d;
  }
  &.red {
    color: #dc2626;
  }
}

.lang-bar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  font-size: calc(var(--p-font-size) * 0.9);
  gap: 16px;
  margin-block: 16px;
  width: 100%;
}

.ai-actions {
  align-items: center;
  display: flex;
  flex-shrink: 0;
  gap: 4px;
}

.lang-tabs {
  display: flex;
  flex: 1;
  gap: 4px;

  .lang-tab {
    align-items: center;
    border: 1px solid var(--alpha-12);
    border-radius: 4px;
    color: inherit;
    display: flex;
    flex: 1;
    font-size: 13px;
    justify-content: center;
    line-height: 1;
    max-width: 64px;
    min-width: 24px;
    padding: 6px 0;
    text-decoration: none;
    transition: all 0.2s;

    &:hover {
      background: rgba(0, 0, 0, 0.03);
    }

    &.active {
      border-color: var(--color-main);
      color: var(--color-main);
      font-weight: 600;
    }

    &[data-lang='all'] {
      flex: 1 0 24px;
      margin-right: calc(var(--s_24_32) / 2);
    }
  }
}

/**/

#admin_nekretnine {
  display: flex;
  flex-wrap: wrap;
  font-size: var(--p-font-size);
  gap: 8px;

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

    & + li {
      border-top: 1px solid var(--alpha-5);
      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: calc(var(--p-font-size) * 0.9);

  > p {
    text-align: center;
  }

  details {
    border: 1px solid var(--alpha-10);
    border-radius: 4px;
    overflow: hidden;

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

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

    &.neprocitano {
      border-color: var(--color-orange);

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

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

    &: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 var(--alpha-6) !important;
        flex-wrap: wrap;
        padding: 16px;
      }

      & + div {
        border-top: 1px solid var(--alpha-6) !important;
      }
    }
  }

  & .ukupno {
    border-bottom: 1px solid rgba(255, 255, 255, 0.2);
    border-top: 1px solid rgba(255, 255, 255, 0.1);
    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-start;
  }

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

  & .info {
    background-color: var(--surface-input);
    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;
  }
}

/**/

.kupnja-form {
  & > fieldset + fieldset {
    margin-top: 16px;
  }
}

#vlasnici_list li,
#interesenti_list li {
  border-bottom: 1px solid var(--alpha-6);
  margin: 0;
  padding: 6px 0;

  &:last-child {
    border-bottom: none;
  }
}

li.full + li.full:has(.admin_text) {
  border-top: 1px solid var(--alpha-6);
}

li.full.changed label {
  color: #f59e0b;
}

li.full.changed input,
li.full.changed textarea,
li.full.changed select {
  border-color: #f59e0b;
}

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

  button.link {
    background: none;
    border: none;
    color: var(--color-red);
    cursor: pointer;
    font-size: 12px;
    padding: 0;

    &:hover {
      opacity: 0.7;
    }
  }
}

ul.aside_nav {
  display: flex;
  flex-wrap: wrap;
  font-size: calc(var(--p-font-size) * 0.9);
  gap: 8px;
  list-style: none;

  li {
    flex: 1 1 calc(50% - 4px);
    min-width: 0;
  }

  li {
    a {
      border: 1px solid var(--alpha-10);
      border-radius: 4px;
      color: var(--color-main);
      display: flex;
      justify-content: space-between;
      padding: 16px 12px;
      text-decoration: none;
      transition: all 0.5s;

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

      &.aside-primary {
        background-color: var(--color-main);
        border-color: var(--color-main);
        color: #fff;

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

ul.aside_nav_settings {
  border: 1px solid var(--alpha-10);
  border-radius: 4px;
  flex-direction: column;
  gap: 0;
  padding: 16px;

  li {
    flex: 0 0 100%;
  }

  li a {
    border: 0;
    border-radius: 0;
    padding: 10px 0;
  }

  li + li {
    border-top: 1px solid var(--alpha-6);
  }

  li a:hover {
    border: 0;
  }
}

/* ── 22. Admin — Quick View (carousel, seller) ── */

#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 var(--alpha-10);
    border-radius: 4px;
    display: flex;
    flex: 0 0 100%;
    justify-content: center;
    overflow: hidden;
    position: relative;
  }

  div.features {
    border: 1px solid var(--alpha-10);
    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 var(--alpha-10);
  }
}

#prodavatelj_brzi {
  border: 1px solid var(--alpha-10);
  border-radius: 4px;
  display: grid;
  flex-wrap: wrap;
  font-size: calc(var(--p-font-size) * 0.9);
  gap: 16px;
  grid-template-columns: 1fr 1fr;
  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;
  }
}

/* ── 23. Utilities (project-specific, base in base.css) ── */

.display_none {
  display: none !important;
}

.lazyload,
.lazyloading {
  opacity: 0;
}

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

/* ── 24. Fonts (@font-face) ──────────────────── */

/* Barlow — italic */
/* latin-ext */
@font-face {
  font-display: swap;
  font-family: 'Barlow';
  font-style: italic;
  font-weight: 400;
  src: url(https://fonts.gstatic.com/s/barlow/v13/7cHrv4kjgoGqM7E_Cfs1wH8RnA.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-display: swap;
  font-family: 'Barlow';
  font-style: italic;
  font-weight: 400;
  src: url(https://fonts.gstatic.com/s/barlow/v13/7cHrv4kjgoGqM7E_Cfs7wH8.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;
}
/* latin-ext */
@font-face {
  font-display: swap;
  font-family: 'Barlow';
  font-style: italic;
  font-weight: 500;
  src: url(https://fonts.gstatic.com/s/barlow/v13/7cHsv4kjgoGqM7E_CfPI42ogvTobdw.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-display: swap;
  font-family: 'Barlow';
  font-style: italic;
  font-weight: 500;
  src: url(https://fonts.gstatic.com/s/barlow/v13/7cHsv4kjgoGqM7E_CfPI42ouvTo.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;
}
/* latin-ext */
@font-face {
  font-display: swap;
  font-family: 'Barlow';
  font-style: italic;
  font-weight: 600;
  src: url(https://fonts.gstatic.com/s/barlow/v13/7cHsv4kjgoGqM7E_CfPk5GogvTobdw.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-display: swap;
  font-family: 'Barlow';
  font-style: italic;
  font-weight: 600;
  src: url(https://fonts.gstatic.com/s/barlow/v13/7cHsv4kjgoGqM7E_CfPk5GouvTo.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;
}
/* latin-ext */
@font-face {
  font-display: swap;
  font-family: 'Barlow';
  font-style: italic;
  font-weight: 700;
  src: url(https://fonts.gstatic.com/s/barlow/v13/7cHsv4kjgoGqM7E_CfOA5WogvTobdw.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-display: swap;
  font-family: 'Barlow';
  font-style: italic;
  font-weight: 700;
  src: url(https://fonts.gstatic.com/s/barlow/v13/7cHsv4kjgoGqM7E_CfOA5WouvTo.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;
}

/* Barlow — normal */
/* latin-ext */
@font-face {
  font-display: swap;
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  src: url(../fonts/barlow-latin-ext-400.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-display: swap;
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 400;
  src: url(../fonts/barlow-latin-400.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;
}
/* latin-ext */
@font-face {
  font-display: swap;
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 500;
  src: url(../fonts/barlow-latin-ext-500.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-display: swap;
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 500;
  src: url(../fonts/barlow-latin-500.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;
}
/* latin-ext */
@font-face {
  font-display: swap;
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  src: url(../fonts/barlow-latin-ext-600.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-display: swap;
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 600;
  src: url(../fonts/barlow-latin-600.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;
}
/* latin-ext */
@font-face {
  font-display: swap;
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 700;
  src: url(../fonts/barlow-latin-ext-700.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-display: swap;
  font-family: 'Barlow';
  font-style: normal;
  font-weight: 700;
  src: url(../fonts/barlow-latin-700.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;
}
