/**
 * CUSTOM CSS - Kormoran Project
 * Organized by logical sections for easy navigation
 */

/* ═══════════════════════════════════════════════════════════
   TABLE OF CONTENTS
   ═══════════════════════════════════════════════════════════

   01. FOUNDATION .................. CSS variables, base styles
   02. LAYOUT PRIMITIVES ........... Container, grid utilities
   03. CORE COMPONENTS ............. Buttons, cards
   04. SITE HEADER ................. Navigation, mobile menu
   05. SITE FOOTER ................. Footer, social links
   06. PROPERTY SYSTEM ............. Listings, filters, cards
   07. HOMEPAGE SECTIONS ........... Hero, search, testimonials
   08. SPECIFIC PAGES .............. Contact, kupnja, prodaja
   09. UTILITIES ................... Animations, helpers

   ═══════════════════════════════════════════════════════════ */

/* ╔═══════════════════════════════════════════════════════════╗
   ║  01 - FOUNDATION                                          ║
   ║  CSS Variables, base element overrides, typography        ║
   ╚═══════════════════════════════════════════════════════════╝ */

:root {
  /* Project-specific max width */
  --max: 90%;
  --mid: 1500px;
  --sem: 1200px;
  --sml: 960px;

  --font-heading: 'Oswald', sans-serif;
  --font-body: 'Source Sans 3', sans-serif;

  --section-padding: 4rem 0;

  --color-text: #0a1432;
  --color-bg: #eee9e4;
  --color-bg-light: #f5f7fa;
  --color-bg-dark: #ced6e0;
  --color-menu: #e0e4e9;
  --color-icon: #d9dfe6;
  --color-icon-bg: #ced6e0;

  --font-size-base: var(--font-size-lg);
}

body {
  background-color: #fff;
  color: var(--color-text);
  font-family: var(--font-body);
}

h1,
h2,
h3,
h4,
h5,
h6 {
  color: var(--color-text);
  font-family: var(--font-body);
  font-weight: var(--font-weight-medium);
  margin-bottom: 0;
}

h1,
h2 {
  font-family: var(--font-heading);
  font-weight: var(--font-weight-normal);
}

h1 {
  font-size: var(--font-size-6xl);
}

h2 {
  font-size: var(--font-size-4xl);
  margin-bottom: var(--space-12);
}

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

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

input,
textarea,
select {
  &:focus {
    outline: none;
  }
}

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

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

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

section {
  padding: var(--section-padding);
}

main {
  margin-bottom: var(--space-24);
}

/* ╔═══════════════════════════════════════════════════════════╗
   ║  02 - LAYOUT PRIMITIVES                                   ║
   ║  Container system, grid utilities, responsive overrides   ║
   ╚═══════════════════════════════════════════════════════════╝ */

.container {
  max-width: var(--max);
  margin-inline: auto;
  padding: 0;

  &.mid {
    width: var(--mid);
  }

  &.sem {
    width: var(--sem);
  }

  &.sml {
    max-width: var(--sml);
  }
}

@media (max-width: 960px) {
  .container.mid {
    width: auto;
  }
}

.grid {
}

.hero-grid,
.footer-grid {
  grid-template-columns: 1fr;
}

@media (max-width: 900px) {
  .grid-4 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .grid-3 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }

  .grid-2 {
    grid-template-columns: repeat(1, minmax(0, 1fr));
  }
}

/* ╔═══════════════════════════════════════════════════════════╗
   ║  03 - CORE COMPONENTS                                     ║
   ║  Reusable components: buttons, cards                      ║
   ╚═══════════════════════════════════════════════════════════╝ */

.btn {
  background-color: var(--color-bg-dark);
  border-radius: var(--radius-md);
  display: inline-block;
  font-weight: 600;
  padding: var(--space-4) var(--space-8);
  text-decoration: none;

  &.block {
    display: block;
    margin-top: var(--space-12);
    width: fit-content;
  }

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

.btn.primary {
  background: #0f172a;
  border-color: #0f172a;
  color: #fff;
}

.card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: var(--radius-lg);
  overflow: hidden;
}

.card-content {
  background-color: var(--color-bg-light);
  border-radius: var(--radius-lg);
  padding: var(--space-8);

  &.dark {
    background-color: var(--color-bg-dark);
  }

  h3 {
    margin-bottom: var(--space-4);
    text-transform: uppercase;
  }

  p {
    font-size: var(--font-size-base);
  }

  img {
    aspect-ratio: 3;
    border-radius: var(--radius-lg);
    margin-top: var(--space-8);
    object-fit: cover;
  }
}

/* ╔═══════════════════════════════════════════════════════════╗
   ║  04 - SITE HEADER                                         ║
   ║  Logo, navigation, language selector, mobile menu         ║
   ╚═══════════════════════════════════════════════════════════╝ */

/* Mobile menu overlay */
body.menu-open {
  overflow: hidden;
}

body.menu-open::before {
  content: '';
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--color-black) 50%, transparent);
  z-index: 900;
}

header {
  background: var(--color-menu);
  font-size: var(--font-size-lg);
  position: relative;
  z-index: 1000;

  & .bar {
    align-items: center;
    display: flex;
    height: 120px;
    justify-content: space-between;

    & > div {
      display: flex;
      gap: var(--space-16);
    }
  }

  & a.logo {
    width: 460px;

    @media (max-width: 1500px) {
      width: 30%;
    }
  }

  /* Language selector */
  #zastave {
    display: flex;
    flex-direction: column;
    gap: 2px;
    height: 48px;
    position: absolute;
    right: 5vw;
    top: 36px;
    width: calc(48px + 12px);
    z-index: 100;

    li {
      align-items: center;
      display: none;
      flex-shrink: 0;
      height: 48px;
      justify-content: center;
      width: 48px;

      &.active {
        display: flex;
      }

      @media (max-width: 1230px) {
        display: flex;
      }

      a {
        align-items: center;
        background-color: var(--color-menu);
        display: flex;
        height: 48px;
        justify-content: center;
        width: 48px;

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

    &:hover {
      height: 248px;
      overflow-y: auto;
      -ms-overflow-style: none;
      scrollbar-width: none;

      li {
        display: flex;
      }
    }

    &:hover::-webkit-scrollbar {
      width: 0;
      height: 0;
    }

    &::after {
      content: '\25BC';
      font-size: 0.75em;
      position: absolute;
      right: 0;
      top: 24px;
      transform: translateY(-50%) rotate(0deg);
      transition: transform 0.3s ease;
      line-height: 1;
      color: var(--color-text);
      pointer-events: none;
      z-index: 2;
    }

    &:hover::after {
      transform: translateY(-50%) rotate(180deg);
    }
  }

  /* Navigation (exclude #zastave which is also a <nav>) */
  nav:not(#zastave) {
    margin-right: calc(var(--space-12) + 48px);

    & ul {
      display: flex;
      font-weight: var(--font-weight-semibold);
      gap: var(--space-8);
      list-style: none;
      margin: 0 0 0 auto;
      padding: 0;

      & > li {
        position: relative;

        & > a {
          display: block;
          line-height: 60px;
          text-align: center;
          text-decoration: none;
          transition: all 0.5s;

          &:hover {
            color: #576574;
          }

          &.sub,
          &.sub-link {
            align-items: center;
            display: flex;
            justify-content: center;
            text-decoration: none;

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

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

          &.sub {
            cursor: default;
            pointer-events: none;
          }
        }

        &:hover > ul {
          display: block;
        }
      }

      /* submenu */
      & ul {
        display: none;
        margin-top: 0px;
        min-width: 220px;
        padding-top: 4px;
        position: absolute;
        z-index: 1000;

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

          & + li {
            margin-top: 2px;

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

        & a {
          background-color: var(--color-bg-light);

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

          @media (max-width: 1230px) {
            background-color: #fff;
          }
        }
      }
    }
  }

  /* Hamburger menu */
  .hamburger {
    background: none;
    border: none;
    cursor: pointer;
    display: none;
    height: 44px;
    padding: 0;
    position: absolute;
    right: 5vw;
    top: calc((120px - 44px) / 2);
    width: 44px;
    z-index: 1100;

    & span {
      background-color: #333;
      border-radius: 2px;
      height: 3px;
      left: 10px;
      position: absolute;
      right: 10px;
      transition:
        transform 0.3s ease,
        top 0.3s ease,
        opacity 0.2s ease;
      transform-origin: 50% 50%;
    }

    & span:nth-child(1) {
      top: 14px;
    }
    & span:nth-child(2) {
      top: 21px;
    }
    & span:nth-child(3) {
      top: 28px;
    }

    &.active {
      & span {
        &:nth-child(1) {
          top: 21px;
          transform: rotate(45deg);
        }

        &:nth-child(2) {
          opacity: 0;
        }

        &:nth-child(3) {
          top: 21px;
          transform: rotate(-45deg);
        }
      }
    }
  }

  /* Responsive - Mobile menu */
  @media (max-width: 1230px) {
    font-size: var(--font-size-xl);

    a.logo {
      width: 240px;
    }

    & .bar {
      > div {
        background-color: #fff;
        border-radius: var(--radius-md) 0 0 var(--radius-md);
        flex-direction: column;
        gap: var(--space-4);
        padding: var(--space-8);
        position: absolute;
        right: 0;
        top: 100px;
        width: 320px;
        z-index: 1100;

        display: flex;
        display: none;
        opacity: 0;
        pointer-events: none;
        transform: translateX(110%);
        visibility: hidden;
        will-change: transform, opacity;

        transition:
          transform 0.3s ease,
          opacity 0.2s ease,
          visibility 0s linear 0.3s;
      }
    }

    body.menu-open & .bar > div {
      display: flex;
      opacity: 1;
      pointer-events: auto;
      transform: translateX(0);
      visibility: visible;
      transition:
        transform 0.3s ease,
        opacity 0.2s ease,
        visibility 0s;
    }

    #zastave {
      flex-direction: row;
      gap: 2px;
      position: static;
      width: 240px;

      &::after {
        content: none;
      }

      & > li {
        display: flex;
      }

      @media (max-width: 1230px) {
        ul {
          background-color: #fff;
          display: flex;
          flex: 0 0 256px;
          flex-direction: row;
          justify-content: space-between;
        }
      }
    }

    nav:not(#zastave) {
      margin-right: 0;

      ul {
        flex-direction: column;
        gap: 0;

        & > li {
          & + li {
            border-top: 1px solid rgba(0, 0, 0, 0.25);
          }

          & > a {
            align-items: center;
            display: flex;
            font-weight: var(--font-weight-normal);
            line-height: 40px;
            text-align: left;

            &.sub {
              display: none;
            }

            &.sub-link {
              align-items: center;
              display: flex;
              justify-content: flex-start;

              &::after {
                display: none;
              }

              & + ul > li:first-child {
                border-top: 1px solid rgba(0, 0, 0, 0.25);
              }
            }
          }

          & > ul {
            display: flex;
            flex-wrap: wrap;
            padding-top: 0;
            position: static;

            & > li {
              font-size: 1em;

              li {
                margin-top: 0;
              }
            }

            & a {
              min-height: 40px;
              line-height: 40px;
            }
          }
        }
      }
    }

    .hamburger {
      display: flex;
    }
  }

  @media (max-width: 420px) {
    font-size: calc(var(--font-size-xl) * 0.9);

    nav:not(#zastave) ul > li > a,
    nav:not(#zastave) ul > li > ul a {
    }
  }
}

/* ╔═══════════════════════════════════════════════════════════╗
   ║  04.5 - BREADCRUMBS                                       ║
   ║  Breadcrumb navigation styling                            ║
   ╚═══════════════════════════════════════════════════════════╝ */

nav[aria-label='Breadcrumb'] {
  background-color: var(--color-bg-light);

  .breadcrumb {
    flex-wrap: wrap;
    font-size: calc(var(--font-size-base) * 0.9);
    padding: var(--space-4) 0;
  }

  .breadcrumb-item {
    min-height: 24px;

    a {
      align-items: center;
      color: var(--color-link);
      display: flex;
      font-weight: var(--font-weight-medium);
      min-height: 24px;
      min-width: auto;
      text-decoration: underline;

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

/* ╔═══════════════════════════════════════════════════════════╗
   ║  04.6 - CUSTOM MULTI-SELECT                               ║
   ║  Custom multi-select component for city filter            ║
   ╚═══════════════════════════════════════════════════════════╝ */

.multi-select-wrapper {
  position: relative;
  width: 100%;
}

.multi-select-display {
  background-color: var(--color-bg-light);
  border: 1px solid var(--color-bg-light);
  border-radius: var(--radius-md);
  color: inherit;
  cursor: pointer;
  font-size: var(--font-size-base);
  padding: var(--space-4) var(--space-4);
  position: relative;
  user-select: none;
  width: 100%;
  transition: border-color 0.2s ease;

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

  &::after {
    content: '▼';
    font-size: 0.75em;
    position: absolute;
    right: var(--space-4);
    top: 50%;
    transform: translateY(-50%);
    transition: transform 0.2s ease;
  }
}

.multi-select-wrapper.open .multi-select-display::after {
  transform: translateY(-50%) rotate(180deg);
}

.multi-select-dropdown {
  background-color: #fff;
  border: 1px solid var(--color-bg-dark);
  border-radius: var(--radius-md);
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
  display: none;
  max-height: 300px;
  overflow-y: auto;
  position: absolute;
  top: calc(100% + 4px);
  width: 100%;
  z-index: 100;
}

.multi-select-option {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: var(--space-3);
  padding: var(--space-3) var(--space-4);
  transition: background-color 0.2s ease;

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

  input[type='checkbox'] {
    cursor: pointer;
    flex-shrink: 0;
    height: 16px;
    margin: 0;
    width: 16px;
  }

  span {
    flex: 1;
    font-size: var(--font-size-base);
  }
}

/* ╔═══════════════════════════════════════════════════════════╗
   ║  05 - SITE FOOTER                                         ║
   ║  Footer layout, social links, contact info, footer CTA    ║
   ╚═══════════════════════════════════════════════════════════╝ */

footer {
  background-color: var(--color-bg-light);
  font-size: var(--font-size-base);
  padding: calc(var(--space-24) * 1) 0;

  div.container {
    align-items: center;
    display: flex;
    flex-direction: column;
  }

  div.logo {
    display: flex;
    width: min(100%, 480px);

    a {
      flex: 1;

      img {
        width: 100%;
      }
    }
  }

  ul.social {
    justify-content: center;
    display: flex;
    gap: var(--space-2);
    margin-block: var(--space-4) var(--space-8);

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

      a {
        align-items: center;
        aspect-ratio: 1;
        border: 1px solid var(--color-text);
        border-radius: 50%;
        display: flex;
        justify-content: center;
        transition: all 0.3s ease;
        width: 48px;

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

    & + span {
      font-weight: var(--font-weight-semibold);
      text-transform: uppercase;
    }
  }

  ul.kontakt {
    display: grid;
    gap: var(--space-4);
    grid-template-columns: 1fr 1fr;
    margin-top: var(--space-2);

    li {
      align-items: center;
      display: flex;
      gap: var(--space-2);

      span {
        font-weight: var(--font-weight-semibold);

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

  nav {
    font-size: 0.9em;
    margin-block: var(--space-12);
    max-width: 100%;

    ul {
      border-radius: var(--radius-md);
      display: flex;
      gap: 2px;
      overflow: hidden;

      li {
        display: flex;
        flex: 1 0 auto;
      }

      a {
        align-items: center;
        background-color: var(--color-bg-dark);
        display: flex;
        flex: 1;
        letter-spacing: -0.25px;
        padding: var(--space-4) var(--space-6);
        transition: all 0.3s ease;

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

        @media (max-width: 640px) {
          padding: var(--space-2) var(--space-3);
        }
      }
    }
  }

  p {
    max-width: 1100px;
    text-align: center;
  }
}

.site-footer {
  background-color: var(--color-gray-900);
  color: var(--color-white);
  padding: 3rem 0;
}

/* Footer contact CTA */
#footer-contact {
  background-color: var(--color-bg-dark);
  display: flex;
  flex-direction: column;
  padding: calc(var(--space-20) * 1.5) 0;
  position: relative;

  &::before {
    content: '';
    position: absolute;
    left: 50%;
    top: 15%;
    width: 50%;
    height: 85%;
    background-image: url('/images/cta_icon.png');
    background-position: left 100%;
    background-repeat: no-repeat;
    background-size: contain;
    pointer-events: none;
    z-index: 0;
  }

  p {
    font-family: var(--font-heading);
    line-height: 1;
    margin-bottom: 0;
    position: relative;
    text-align: center;
    z-index: 1;

    &.headline {
      font-size: var(--font-size-5xl);
      font-weight: var(--font-weight-light);
      text-wrap: balance;
      text-wrap: unset;
      margin-inline: auto;
      max-width: var(--sml);

      em {
        font-style: normal;
        font-weight: var(--font-weight-medium);
      }
    }

    &.director {
      font-size: var(--font-size-4xl);
      margin-top: var(--space-8);
    }

    &.role {
      font-size: var(--font-size-3xl);
      font-weight: var(--font-weight-light);
      margin-top: var(--space-2);
    }
  }

  form {
    display: flex;
    flex-direction: column;
    gap: var(--space-4);
    margin-top: calc(var(--space-20) * 1);
    position: relative;
    z-index: 1;

    fieldset {
      background-color: #fff;
      border-radius: var(--radius-lg);
      display: grid;
      gap: 8vw;
      grid-template-columns: 1fr 1fr 1fr;
      padding: var(--space-4) var(--space-8);

      input {
        color: var(--color-text);
        border: 0;
        border-bottom: 1px solid var(--color-text);
        font-size: var(--font-size-base);
        padding: 0;

        &[type='submit'] {
          background-color: var(--color-bg-dark);
          border: none;
          border-radius: var(--radius-md);
          color: var(--color-text);
          cursor: pointer;
          font-weight: var(--font-weight-medium);
          padding: var(--space-3);
          text-transform: uppercase;
          transition: all 0.3s ease;

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

      &:focus {
        outline: none;
      }

      &:focus-visible {
        outline: none;
      }

      @media (max-width: 960px) {
        gap: var(--space-8);
        grid-template-columns: 1fr;
        padding: var(--space-8);
      }
    }

    span {
      font-size: calc(var(--font-size-base) * 0.8);
      margin: 0 var(--space-8) 0 auto;
    }

    .form-message {
      display: none;
      padding: var(--space-4);
      border-radius: var(--radius-md);
      font-size: 1.75rem;
      font-weight: 500;
      text-align: center;
      margin-bottom: var(--space-4);

      &.success {
        background-color: #d4edda;
        color: #155724;
        border: 1px solid #c3e6cb;
      }

      &.error {
        background-color: #f8d7da;
        color: #721c24;
        border: 1px solid #f5c6cb;
      }
    }

    label.error {
      color: #dc3545;
    }
  }
}

/* 
   ╔═══════════════════════════════════════════════════════════╗
   ║  06 - PROPERTY SYSTEM                                     ║
   ║  Listings, filters, property cards, detail pages          ║
   ╚═══════════════════════════════════════════════════════════╝
*/

/* Filter modal overlay */
body.filters-open {
  overflow: hidden;
}

body.filters-open::after {
  content: '';
  position: fixed;
  inset: 0;
  background: color-mix(in srgb, var(--color-black) 50%, transparent);
  z-index: 950;
}

/* Property listing header */
#nekretnine-head {
  gap: var(--space-12);
  grid-template-columns: 1fr 1fr 1fr;
  margin: calc(var(--space-24) * 1) auto;

  & > div {
    grid-column: span 2;

    h1 {
      margin-bottom: var(--space-8);
    }
  }

  & > nav {
    display: flex;
    justify-content: flex-end;

    ul {
      display: flex;
      flex: 0 0 320px;
      flex-direction: column;
      gap: var(--space-4);

      li {
        list-style: none;

        & a {
          background-color: var(--color-bg-dark);
          border-radius: var(--radius-md);
          color: var(--color-text);
          display: block;
          font-size: var(--font-size-base);
          font-weight: var(--font-weight-semibold);
          padding: var(--space-4) var(--space-4);
          text-decoration: none;
          text-transform: uppercase;

          &.active,
          &:hover {
            text-decoration: underline;
          }
        }
      }
    }
  }

  p {
    font-size: calc(var(--font-size-base) * 1.2);
    max-width: 760px;
  }

  @media (max-width: 960px) {
    display: flex;
    flex-direction: column;

    & > nav {
      ul {
        flex: 0 0 100%;
        display: grid;
        grid-template-columns: 1fr 1fr 1fr;
      }
    }
  }

  @media (max-width: 640px) {
    & > nav {
      ul {
        grid-template-columns: 1fr;
      }
    }
  }
}

/* Property listing container */
#nekretnine-list {
  gap: var(--space-12);
  grid-template-columns: 1fr 1fr 1fr;

  & > div {
    &.search,
    &.listing-container {
      grid-column: span 2;
    }
  }

  div.sort,
  div.search {
    align-items: center;
    display: flex;
    gap: var(--space-8);

    label {
      font-size: var(--font-size-base);
      white-space: nowrap;
    }

    @media (max-width: 500px) {
      label.grad {
        display: none;
      }
    }

    select {
      background-color: var(--color-bg-light);
      border: 1px solid var(--color-bg-light);
      border-radius: var(--radius-md);
      color: inherit;
      cursor: pointer;
      flex: 1;
      font-size: var(--font-size-base);
      padding: var(--space-4) var(--space-4);
      transition: border-color 0.2s ease;

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

    .multi-select-submit {
      background-color: var(--color-bg-dark);
      border: none;
      border-radius: var(--radius-md);
      color: var(--color-text);
      cursor: pointer;
      font-size: var(--font-size-base);
      font-weight: var(--font-weight-semibold);
      padding: var(--space-4) var(--space-8);
      transition: all 0.3s ease;
      white-space: nowrap;

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

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

  /* Property filters */
  .filters-controls {
    display: flex;
    gap: var(--space-4);
    align-items: center;

    .btn-reset {
      background-color: transparent;
      border: 1px solid var(--color-bg-dark);
      border-radius: var(--radius-md);
      color: var(--color-text);
      cursor: pointer;
      font-size: var(--font-size-base);
      font-weight: var(--font-weight-semibold);
      padding: var(--space-4) var(--space-8);
      transition: all 0.3s ease;
      white-space: nowrap;

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

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

  .filters-toggle {
    display: none;
  }

  form.filters {
    display: flex;
    flex-direction: column;
    gap: var(--space-8);

    .filters-close {
      display: none;
    }

    & > fieldset {
      background-color: var(--color-bg-light);
      border-radius: var(--radius-lg);
      display: flex;
      flex-direction: column;
      gap: var(--space-4);
      padding: var(--space-6) var(--space-6);

      legend {
        background-color: #0f172a;
        font-size: var(--font-size-lg);
        transform: translateY(calc(var(--space-6) * -1));
      }

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

      ul {
        font-size: var(--font-size-base);
        display: flex;
        flex-direction: column;
        gap: var(--space-2);

        /* Scrollable for long lists (e.g., cities) */
        &:has(> li:nth-child(10)) {
          max-height: 300px;
          overflow-y: auto;
          padding-right: var(--space-2);
        }

        li {
          display: flex;

          &.fields {
            flex-wrap: wrap;
            justify-content: space-between;

            label {
              margin-bottom: var(--space-2);
            }

            & + &.fields {
              margin-top: var(--space-2);
            }
          }

          &.field-select {
            flex-direction: column;
            gap: var(--space-2);

            label {
              font-weight: 500;
            }

            select {
              background-color: #fff;
              border: 1px solid transparent;
              border-radius: var(--radius-lg);
              color: inherit;
              font-size: var(--font-size-base);
              padding: var(--space-2) var(--space-3);
              transition: border-color 0.2s ease;
              width: 100%;

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

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

        label {
          align-items: center;
          display: flex;
          flex: 0 0 100%;
        }

        input[type='checkbox'],
        input[type='radio'] {
          margin-right: var(--space-6);
          min-height: 16px;
          min-width: 16px;
        }

        input[type='text'] {
          color: inherit;
          border: 1px solid transparent;
          border-radius: var(--radius-lg);
          font-size: var(--font-size-base);
          padding: var(--space-2) var(--space-3);
          width: calc(50% - 2px);
          transition: border-color 0.2s ease;

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

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

    input[type='submit'],
    button {
      color: var(--color-text);
      font-size: var(--font-size-base);

      &:hover {
        color: #fff;
      }
    }

    .filters-actions {
      display: flex;
      gap: var(--space-4);
      margin-top: var(--space-4);

      .btn-reset {
        background-color: transparent;
        border: 1px solid var(--color-bg-dark);
        color: var(--color-text);
        font-size: var(--font-size-base);
        text-decoration: none;
        transition: all 0.2s ease;

        &:hover {
          background-color: var(--color-bg-dark);
          color: var(--color-text);
        }
      }
    }
  }

  /* Reset and Clear buttons - top-level */
  .btn-reset,
  .btn-clear {
    background-color: transparent;
    border: 1px solid var(--color-bg-dark);
    color: var(--color-text);
    text-decoration: none;
    transition: all 0.2s ease;

    &:hover {
      background-color: var(--color-bg-dark);
      color: var(--color-text);
    }
  }

  /* Pagination */
  nav.pagination {
    display: flex;
    font-size: var(--font-size-base);
    justify-content: center;
    gap: var(--space-4);
    margin-top: var(--space-16);

    a {
      align-items: center;
      aspect-ratio: 1 / 1;
      background-color: var(--color-bg-dark);
      border-radius: 50%;
      display: flex;
      flex: 0 0 40px;
      justify-content: center;
      transition: all 0.3s ease;

      &[aria-current='page'] {
        border: 1px solid var(--color-text);
        color: #fff;
        transform: scale(1.2);
        font-weight: var(--font-weight-semibold);
      }

      &:hover:not([aria-current='page']) {
        background-color: var(--color-text);
        color: #fff;
      }
    }

    @media (max-width: 960px) {
      gap: var(--space-2);

      a {
        flex: 0 0 36px;
        min-height: 36px;
        min-width: 36px;
      }
    }
  }

  /* Responsive - Mobile filters */
  @media (max-width: 960px) {
    gap: var(--space-4);
    grid-template-columns: 1fr;

    & > div {
      &.listing-container,
      &:nth-child(even) {
        grid-column: span 1;
      }

      &.listing-container {
        margin-top: var(--space-12);
        order: 3;
      }
    }

    form.filters {
      display: none;
      background-color: #fff;
      left: 50%;
      max-height: calc(100vh - 4vw);
      overflow-y: auto;
      padding: var(--space-12);
      position: fixed;
      top: 2vw;
      transform: translateX(-50%);
      width: min(calc(100vw - calc(2vw * 2)), 720px);
      z-index: 1000;

      .filters-close {
        background: none;
        border: 0;
        color: var(--color-text);
        cursor: pointer;
        display: block;
        font-size: 28px;
        line-height: 1;
        padding: 0;
        position: absolute;
        right: var(--space-4);
        right: 0;
        top: var(--space-4);
        top: 0;
      }

      span {
      }
    }

    body.filters-open & form.filters {
      display: flex;
    }

    .filters-toggle {
      display: inline-flex;
      font-size: var(--font-size-base);
      order: 3;
      width: fit-content;

      span.icon {
        height: 16px;
        margin-right: var(--space-4);
        width: 16px;

        svg {
          stroke-width: 2;
        }
      }

      &:hover {
        svg {
          color: #fff;
        }
      }
    }

    div.sort,
    div.search {
      grid-column: span 1;
      min-width: 100%;

      label {
        font-size: var(--font-size-base);
        width: 160px;
      }
    }

    div.sort {
      order: 2;
    }

    div.search {
      order: 1;
    }
  }

  @media (max-width: 500px) {
    div.sort {
      label {
        display: none;
      }
    }
  }
}

/* Property cards */
.results-count {
  font-size: var(--font-size-xl);
  font-weight: var(--font-weight-semibold);
  margin-bottom: var(--space-6);
}

.listing-meta {
  color: #475569;
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  font-size: 0.9rem;
}

#listing {
  display: grid;
  gap: var(--space-12);
  grid-template-columns: 1fr 1fr;

  & > li {
    aspect-ratio: 1;
    position: relative;

    &:hover .card-overlay .adm-card-actions {
      opacity: 1;
      pointer-events: auto;
    }

    & > a {
      border: 1px solid #aaa;
      border-radius: var(--radius-lg);
      display: flex;
      flex-direction: column;
      height: 100%;
      justify-content: space-between;
      overflow: hidden;
      padding: var(--space-6);
      position: relative;
      transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;

      &:hover {
        border-color: #000;

        & div.image img {
          transform: scale(1.05);
        }
      }

      & div.image {
        height: 100%;
        left: 0;
        position: absolute;
        top: 0;
        width: 100%;
        z-index: -1;

        img {
          height: 100%;
          object-fit: cover;
          transition: transform 0.3s ease;
          width: 100%;
        }
      }

      & div.location {
        align-items: center;
        color: #fff;
        display: flex;
        font-size: var(--font-size-base);
        gap: var(--space-2);

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

          svg {
            color: #fff;
            height: 20px;
            width: 20px;
          }
        }
      }

      & div.data {
        background-color: rgba(0, 0, 0, 0.5);
        display: flex;
        flex-direction: column;
        gap: var(--space-4);
        margin: 0 calc(var(--space-6) * -1) calc(var(--space-6) * -1);
        padding: var(--space-4) var(--space-6) var(--space-6);

        h3 {
          color: #fff;
          font-family: var(--font-heading);
        }

        & > div {
          align-items: center;
          color: #fff;
          display: flex;
          flex-wrap: wrap;
          gap: var(--space-4);
          justify-content: space-between;
          line-height: 1;

          div.price {
            align-items: baseline;
            display: flex;
            font-family: var(--font-heading);
            font-size: var(--font-size-2xl);
            gap: var(--space-2);

            .price-discounted {
            }

            .price-original {
              font-size: var(--font-size-sm);
              font-weight: var(--font-weight-normal);
              opacity: 0.7;
              text-decoration: line-through;
            }
          }

          ul {
            display: flex;
            font-size: var(--font-size-base);
            gap: var(--space-4);

            li {
              display: flex;
              align-items: center;
              gap: var(--space-2);

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

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

                  svg {
                    color: #fff;
                    height: 20px;
                    width: 20px;
                  }
                }
              }
            }
          }
        }
      }
    }

    .card-overlay {
      align-items: flex-end;
      display: flex;
      flex-direction: column;
      gap: var(--space-2);
      pointer-events: none;
      position: absolute;
      right: var(--space-6);
      top: var(--space-6);
      z-index: 6;

      .adm-card-actions {
        display: flex;
        gap: var(--space-1);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.2s ease;

        .adm-card-edit,
        .adm-card-select {
          align-items: center;
          background-color: rgba(15, 23, 42, 0.85);
          border: 1px solid rgba(255, 255, 255, 0.5);
          border-radius: var(--radius-md);
          cursor: pointer;
          display: inline-flex;
          padding: var(--space-2);
          pointer-events: auto;
          transition: background-color 0.2s ease;

          svg {
            color: #fff;
            height: 20px;
            stroke-width: 2;
            width: 20px;
          }
        }

        .adm-card-edit:hover {
          background-color: var(--color-bg-dark);

          svg {
            color: rgba(15, 23, 42);
          }
        }

        .adm-card-select:hover {
          background-color: var(--color-bg-dark);

          svg {
            color: rgba(15, 23, 42);
          }
        }

        .adm-card-select.added {
          background-color: #dc2626;
          border-color: #dc2626;

          svg {
            transform: rotate(45deg);
          }

          &:hover {
            background-color: #b91c1c;
            border-color: #b91c1c;

            svg {
              color: #fff;
            }
          }
        }
      }
    }
  }

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

  & .no-results {
    grid-column: 1 / -1;
    text-align: center;

    p {
      font-size: var(--font-size-base);
      margin: 0;
    }
  }
}

/* Property detail page */
#info-data {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-12) var(--space-8);
  margin-block: var(--space-16);
  padding-inline: var(--space-4);

  div.price {
    align-items: center;
    display: flex;
    font-size: var(--font-size-5xl);
    font-weight: var(--font-weight-semibold);
    gap: var(--space-4);
    margin-left: auto;

    .price-original {
      display: block;
      font-size: var(--font-size-xl);
      font-weight: var(--font-weight-normal);
      color: var(--color-gray-400, #9ca3af);
      text-decoration: line-through;
    }

    .price-discounted {
      display: block;
      color: #dc2626;
    }
  }

  ul {
    display: flex;
    flex-wrap: wrap;
    gap: var(--space-8);

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

    li {
      display: flex;
      flex-wrap: wrap;

      @media (max-width: 480px) {
        flex: 1 0 100%;
      }

      span {
        &.label {
          flex: 0 0 100%;
          font-size: calc(var(--font-size-base) * 0.9);
          margin: 0;
          text-transform: uppercase;
        }

        &.icon {
          align-items: center;
          border-radius: 50%;
          display: flex;
          height: 24px;
          justify-content: center;
          margin-right: var(--space-2);
          width: 24px;
        }

        &.value {
          font-size: calc(var(--font-size-base) * 1.1);

          a.print-link {
            text-decoration: underline;

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

#main-data {
  display: grid;
  gap: var(--space-16);
  grid-template-columns: 1fr 1fr;

  h2 {
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-6);
  }

  & > div {
    background-color: var(--color-bg-light);
    border-radius: var(--radius-lg);
    padding: var(--space-8);
  }

  div.data {
    display: flex;
    flex-direction: column;

    ul.highlights {
      display: flex;
      flex-wrap: wrap;
      gap: var(--space-8);

      li {
        align-items: center;
        display: flex;
        flex: 1 0 150px;
        flex-wrap: wrap;

        span.icon {
          align-items: center;
          background-color: var(--color-icon-bg);
          border-radius: 50%;
          display: flex;
          height: 40px;
          justify-content: center;
          margin-right: var(--space-2);
          width: 40px;

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

          svg {
            color: var(--color-icon);
          }
        }

        span.value {
          display: flex;
          font-family: var(--font-heading);
          font-size: var(--font-size-4xl);
        }

        span.label {
          color: var(--color-text);
          flex: 0 0 100%;
          font-size: calc(var(--font-size-base) * 0.9);
          margin: var(--space-2) 0 0 0;
          text-transform: uppercase;
        }
      }

      @media (max-width: 640px) {
        display: grid;
        grid-template-columns: 1fr 1fr;
      }
    }

    h2 {
      margin-top: var(--space-8);
    }

    ul.data {
      display: grid;
      font-size: var(--font-size-base);
      gap: var(--space-1) var(--space-8);
      grid-template-columns: 1fr 1fr;
      list-style: disc;
      padding-left: var(--space-6);

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

  div.desc {
    align-self: start;
    position: sticky;
    top: var(--space-8);
  }

  div.text {
    font-size: var(--font-size-base);
  }

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

  @media (max-width: 640px) {
    max-width: 100%;

    div.data {
      max-width: 90vw;
      margin-inline: auto;
    }

    div.desc {
    }
  }
}

#gallery {
  display: grid;
  gap: var(--space-2);
  grid-template-columns: 1fr 1fr 1fr 1fr;
  margin-block: var(--space-24);

  & > div {
    aspect-ratio: 3 / 2;
    background-color: var(--color-icon-bg);
    border-radius: var(--radius-md);
    display: flex;
    overflow: hidden;

    &.main {
      grid-column: span 2;
      grid-row: span 2;
    }

    a {
      display: flex;
      flex: 1;
      position: relative;

      &::after {
        background: rgba(0, 0, 0, 0.28);
        content: '';
        inset: 0;
        opacity: 0;
        position: absolute;
        transition: opacity 0.2s;
      }

      &:hover::after {
        opacity: 1;
      }
    }
  }

  img {
    object-fit: cover;
    width: 100%;
  }

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

    & > div.main {
      grid-column: span 2;
      grid-row: span 1;
    }
  }

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

    & > div.main {
      grid-column: span 1;
    }
  }
}

#contact-block {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-16);
  margin-top: var(--space-24);

  & > div {
    background-color: #eee;
    border-radius: var(--radius-lg);
    padding: var(--space-12);
  }

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

    #map {
      min-height: 60vh;
    }
  }

  @media (max-width: 640px) {
    gap: var(--space-2);
    margin-inline: 0;
    max-width: 100%;
  }
}

/* ╔═══════════════════════════════════════════════════════════╗
   ║  07 - HOMEPAGE SECTIONS                                   ║
   ║  Hero, search, categories, services, offer, testimonials  ║
   ╚═══════════════════════════════════════════════════════════╝ */

/* Hero section */
section.hero {
  margin-inline: auto;
  padding-block: 0;
  width: min(90%, 1920px);

  & > div {
    display: grid;
    gap: calc(var(--space-24) * 1.5);
    grid-template-columns: 1.5fr 1fr;
    margin: var(--space-24) auto;
    max-width: var(--mid);

    & > h1 {
      font-size: var(--font-size-6xl);
      max-width: 860px;
    }

    & > div {
      display: flex;
      flex-direction: column;
      justify-content: space-between;

      & > p {
        font-family: var(--font-heading);
        font-size: var(--font-size-4xl);
        line-height: var(--line-height-tight);
        margin-bottom: 0;
        max-width: 420px;
      }

      & > a {
        font-size: var(--font-size-base);
        padding: var(--space-4) var(--space-8);
        text-transform: uppercase;
        width: fit-content;
      }
    }
  }

  & figure {
    img {
      aspect-ratio: 2.25;
      background-color: #0f172a;
      object-fit: cover;
      border-radius: var(--radius-xl);
      width: 100%;

      @media (max-width: 640px) {
        aspect-ratio: 2;
      }

      @media (max-width: 420px) {
        aspect-ratio: 1.75;
      }
    }
  }

  @media screen and (max-width: 960px) {
    & > div {
      gap: var(--space-8);
      grid-template-columns: 1fr;

      & > div {
        gap: var(--space-8);
      }
    }
  }
}

/* Main search form */
#main-search-form {
  display: flex;
  gap: var(--space-12);

  & select,
  & input,
  & button {
    background-color: #fff;
    border: 1px solid var(--color-bg-dark);
    border-radius: var(--radius-md);
    color: var(--color-text);
    font-size: var(--font-size-base);
    font-weight: 500;
    padding: var(--space-4);
    transition: all 0.3s ease;
    width: 100%;

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

    &:focus {
      border-color: #0f172a;
      outline: none;
    }
  }

  & button {
    align-items: center;
    background-color: var(--color-bg-light);
    display: flex;
    font-weight: 600;
    padding-inline: var(--space-8);
    text-transform: uppercase;
    transition: all 0.3s ease;
    width: fit-content;

    svg {
      height: 16px;
      margin-right: var(--space-2);
      stroke-width: 2;
      width: 16px;
    }

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

      svg {
        color: #fff;
      }
    }

    &:disabled {
      cursor: not-allowed;
      opacity: 0.4;
    }
  }

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

    & button {
      justify-content: center;
      width: 100%;
    }
  }
}

#main-search {
  flex: 1;
  gap: 1px;
  grid-template-columns: 1fr 1fr 1fr 1fr 1fr;
  width: calc(80%);

  & label {
    display: block;
  }

  @media (max-width: 960px) {
    display: grid;
    flex: 0 0 100%;
    grid-template-columns: 1fr 1fr;

    & label {
      grid-column: span 2;

      &:nth-child(3),
      &:nth-child(4) {
        grid-column: span 1;
      }
    }
  }
}

/* Categories grid */
#index_kategorije {
  flex: 1;
  gap: var(--space-6) var(--space-12);
  margin-top: var(--space-6);

  & > a {
    align-items: center;
    border-radius: var(--radius-lg);
    display: flex;
    font-size: var(--font-size-xl);
    justify-content: center;
    text-transform: uppercase;
    white-space: break-spaces;

    @media (max-width: 960px) {
      padding-block: var(--space-6);
    }
  }

  @media (max-width: 640px) {
    gap: var(--space-6);
    margin-top: 0;
    padding: 5vw;
  }
}

/* Search section */
section.search {
  background-color: var(--color-bg-dark);
  border-radius: var(--radius-xl);
  margin: var(--space-24) auto;
  padding: var(--space-12);

  h2 {
    font-family: var(--font-body);
    font-size: var(--font-size-3xl);
    font-weight: var(--font-weight-medium);
    margin-bottom: var(--space-6);
    text-transform: uppercase;
  }

  @media (max-width: 960px) {
    h2 {
      margin-bottom: 5vw;
    }
  }

  @media (max-width: 640px) {
    margin-inline: 0;
    max-width: 100%;
    padding-inline: 5vw;
  }
}

/* Services section */
section.services {
  margin-block: calc(var(--space-24) * 1.5);

  #help-title {
    font-size: var(--font-size-5xl);
  }

  & > div {
    gap: var(--space-12);

    & > div {
      display: flex;
      flex-direction: column;
    }
  }

  @media (max-width: 960px) {
    & > div {
      grid-template-columns: 1fr;
    }

    #help-title {
      padding-inline: 5vw;
    }
  }

  @media (max-width: 640px) {
    margin-inline: 0;
    max-width: 100%;
  }
}

/* Offer section */
section.offer {
  margin-block: calc(var(--space-24) * 1.5) var(--space-24);

  h2 {
    font-size: var(--font-size-6xl);
    margin-bottom: var(--space-8);
    text-align: center;
  }

  p.muted {
    font-family: var(--font-heading);
    font-size: var(--font-size-3xl);
    font-weight: 300;
    margin: 0 auto calc(var(--space-8) * 1.5);
    max-width: 960px;
    text-align: center;
  }

  p.muted + a {
    display: block;
    font-size: var(--font-size-base);
    margin-inline: auto;
    white-space: break-spaces;
    width: fit-content;
  }
}

#index-ponuda {
  gap: var(--space-12);
  margin-top: calc(var(--space-24) * 1);

  & > article {
    background-color: var(--color-bg-light);
  }

  /* 2-column items (1, 4, 5, 7, 10, 11...) - define row height */
  & > article:nth-child(6n + 1),
  & > article:nth-child(6n + 4),
  & > article:nth-child(6n + 5) {
    grid-column: span 2;
    aspect-ratio: 2;
  }

  /* 1-column items (2, 3, 6, 8, 9, 12...) - stretch to fill row height */
  & > article:nth-child(6n + 2),
  & > article:nth-child(6n + 3),
  & > article:nth-child(6n) {
    grid-column: span 1;
    /* No aspect-ratio - stretches to match row height automatically */
  }

  & > article {
    & > a {
      border: 1px solid #aaa;
      border-radius: var(--radius-lg);
      display: flex;
      flex-direction: column;
      height: 100%;
      isolation: isolate;
      justify-content: space-between;
      overflow: hidden;
      padding: var(--space-6);
      position: relative;
      transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        border-color 0.2s ease;

      &:hover {
        border-color: #000;

        picture img {
          transform: scale(1.05);
        }
      }

      & div.image {
        position: absolute;
        inset: 0;
        z-index: -1;
      }

      picture {
        height: 100%;
        width: 100%;

        img {
          height: 100%;
          object-fit: cover;
          transition: transform 0.3s ease;
          width: 100%;
        }
      }

      & div.location {
        align-items: center;
        color: #fff;
        display: flex;
        font-size: var(--font-size-base);
        gap: var(--space-2);
        position: relative;
        z-index: 1;

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

          svg {
            color: #fff;
            height: 20px;
            width: 20px;
          }
        }
      }

      & div.data {
        background-color: rgba(0, 0, 0, 0.5);
        color: #fff;
        position: relative;
        z-index: 1;
        display: flex;
        flex-direction: column;
        gap: var(--space-4);
        margin: 0 calc(var(--space-6) * -1) calc(var(--space-6) * -1);
        padding: var(--space-4) var(--space-6) var(--space-6);

        h3 {
          color: #fff;
          font-family: var(--font-heading);
          font-size: var(--font-size-3xl);
        }

        & > div {
          align-items: center;
          display: flex;
          flex-wrap: wrap;
          gap: var(--space-4) var(--space-8);
          justify-content: space-between;
          line-height: 1;

          div {
            font-family: var(--font-heading);
            font-size: var(--font-size-3xl);
          }

          ul {
            align-items: center;
            display: flex;
            font-size: calc(var(--font-size-base) * 1.2);
            gap: var(--space-6);

            li {
              display: flex;
              align-items: center;
              gap: var(--space-2);

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

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

                  svg {
                    color: #fff;
                  }
                }

                img {
                  height: 24px;
                  width: 24px;
                }
              }
            }
          }
        }
      }
    }
  }

  @media (max-width: 1080px) {
    gap: var(--space-8);
    grid-template-columns: 1fr 1fr;

    & > article {
      aspect-ratio: 1.25 !important;
      grid-column: span 1 !important;
    }
  }

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

/* About section */
section.about {
  background: var(--color-bg-light);
  margin-block: calc(var(--space-24) * 1);
  padding-block: var(--space-24);

  & > div {
    gap: calc(var(--space-24) * 1.5);
    grid-template-columns: 1fr 40%;
  }

  div.data {
    display: flex;
    flex-direction: column;
    justify-content: center;
    max-width: 760px;

    h2 {
      max-width: 420px;
    }

    p {
      font-size: calc(var(--font-size-base) * 1.2);

      & + a {
        font-size: var(--font-size-base);
        margin-top: var(--space-8);
        text-transform: uppercase;
      }
    }

    a:not(.btn) {
      position: relative;
      text-decoration: none;

      &::after {
        content: '→';
        margin-left: var(--space-2);
        text-decoration: none;
        transition: margin-left 0.3s ease;
      }

      &:hover::after {
        margin-left: var(--space-4);
      }
    }

    a.btn {
      width: fit-content;
    }
  }

  figure {
    border-radius: var(--radius-md);

    img {
      aspect-ratio: 1;
      border-radius: var(--radius-lg);
    }
  }

  @media (max-width: 960px) {
    & > div {
      grid-template-columns: 1fr;
    }
  }
}

/* Testimonials section */
section.testimonials {
  margin-block: calc(var(--space-24) * 1);

  h2 {
    font-size: var(--font-size-5xl);
    margin-bottom: var(--space-16);
    text-align: center;
  }

  .carousel-container {
    margin: 0 auto;
    max-width: 1500px;
    position: relative;
  }

  .carousel {
    overflow: hidden;
  }

  .carousel-track {
    display: flex;
    gap: var(--space-12);
    transition: transform 0.4s ease-in-out;
  }

  .carousel-card {
    background: var(--color-bg-dark);
    border-radius: var(--radius-lg);
    flex: 0 0 calc((100% - (2 * var(--space-12))) / 3);
    overflow: hidden;
    transition:
      transform 0.3s ease,
      box-shadow 0.3s ease;

    &:hover {
    }

    & .card-content {
      display: flex;
      flex-direction: column;
      height: 100%;
      padding: var(--space-10);

      p {
        margin-bottom: 0;

        &.muted {
          background-color: #fff;
          border-radius: var(--radius-md);
          line-height: 120%;
          padding: var(--space-2) var(--space-4);

          span {
            display: block;
          }
        }
      }
    }
  }

  .btns {
    display: flex;
    gap: var(--space-4);
    margin-top: var(--space-12);

    .carousel-btn {
      align-items: center;
      background: var(--color-bg-dark);
      border: none;
      border-radius: 50%;
      cursor: pointer;
      display: flex;
      font-size: 24px;
      height: 50px;
      justify-content: center;
      transition: all 0.3s ease;
      width: 50px;
      z-index: 10;
    }

    .carousel-btn:hover:not(:disabled) {
      background: var(--color-text);
      color: #fff;
      transform: scale(1.1);
    }

    .carousel-btn:disabled {
      opacity: 0.3;
      cursor: not-allowed;
    }
  }

  @media (max-width: 1020px) {
    .carousel-card {
      flex: 0 0 calc((100% - (1 * var(--space-12))) / 2);
    }

    .card-image {
      height: 180px;
      font-size: 42px;
    }
  }

  @media (max-width: 640px) {
    .carousel-card {
      flex: 0 0 100%;
    }

    .card-image {
      height: 200px;
      font-size: 48px;
    }

    .carousel-btn {
      width: 40px;
      height: 40px;
      font-size: 20px;
    }
  }

  h3 {
    font-family: var(--font-heading);
    font-size: var(--font-size-2xl);
    margin-bottom: 0;
    text-transform: none;
  }

  blockquote {
    border-left: none;
    color: var(--color-text);
    font-size: calc(var(--font-size-base) * 1);
    font-style: italic;
    margin: var(--space-6) 0;
    padding-left: 0;
  }
}

/* Question CTA */
#question-cta {
  margin-block: var(--space-24);

  h2 {
    font-size: var(--font-size-5xl);
    text-align: center;
  }

  p {
    font-size: calc(var(--font-size-base) * 1.1);
    margin-inline: auto;
    max-width: 1100px;
    text-align: center;
  }

  a {
    font-size: var(--font-size-base);
    margin-inline: auto;
    text-transform: uppercase;
  }
}

/* ╔═══════════════════════════════════════════════════════════╗
   ║  08 - SPECIFIC PAGES                                      ║
   ║  Contact, kupnja, prodaja, FAQ, o meni, shared elements   ║
   ╚═══════════════════════════════════════════════════════════╝ */

/* Shared page elements */
div.head {
  display: grid;
  gap: var(--space-8) var(--space-24);
  grid-template-columns: 1fr 1fr 1fr 1fr;
  margin: calc(var(--space-24) * 1) auto;

  &.half {
    grid-template-columns: 1fr 1fr;

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

    div.button {
      align-items: center;
      display: flex;
      font-size: var(--font-size-base);
      justify-content: flex-end;

      @media (max-width: 960px) {
        justify-content: flex-start;
      }
    }
  }

  &.full {
    grid-template-columns: 1fr;
  }

  div.h1 {
  }

  span.heading {
    display: block;
    font-family: var(--font-heading);
    font-size: var(--font-size-4xl);
    margin-bottom: var(--space-8);
  }
}

div.hero {
  aspect-ratio: 2.75;
  background-color: #eee;
  border-radius: var(--radius-xl);
  margin-bottom: var(--space-16);
  overflow: hidden;
  position: relative;

  & > .status-badge {
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    font-size: var(--font-size-base);
    padding: 8px 12px 7px;
    position: absolute;
    right: var(--space-6);
    top: var(--space-6);
    z-index: 6;
  }

  @media (max-width: 640px) {
    aspect-ratio: 2;
  }

  @media (max-width: 420px) {
    aspect-ratio: 1.75;
  }

  a.hero-gallery-link {
    display: block;
    position: relative;

    .photo-count {
      align-items: center;
      background: rgba(0, 0, 0, 0.55);
      border-radius: var(--radius-md);
      bottom: var(--space-4);
      color: #fff;
      display: flex;
      font-size: var(--font-size-2xl);
      font-weight: var(--font-weight-semibold);
      gap: var(--space-3);
      padding: var(--space-3) var(--space-4);
      pointer-events: none;
      position: absolute;
      right: var(--space-4);
      z-index: 3;

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

      svg {
        color: #fff;
        height: 24px;
        width: 24px;
      }
    }

    &::after {
      background: rgba(0, 0, 0, 0.28);
      content: '';
      inset: 0;
      opacity: 0;
      position: absolute;
      transition: opacity 0.2s;
    }

    &:hover::after {
      opacity: 1;
    }

    picture {
      display: block;
    }
  }

  img {
    aspect-ratio: 2.75;
    cursor: pointer;
    object-fit: cover;
    width: 100%;

    @media (max-width: 640px) {
      aspect-ratio: 2;
    }

    @media (max-width: 420px) {
      aspect-ratio: 1.75;
    }
  }

  &.koraci {
    align-items: center;
    aspect-ratio: auto;
    background-color: #fff;
    display: grid;
    gap: var(--space-24);
    grid-template-columns: 1fr 1fr;

    span.heading {
      display: block;
      font-family: var(--font-heading);
      font-size: var(--font-size-4xl);
      margin-bottom: var(--space-8);
    }

    ul {
      font-size: calc(var(--font-size-base) * 1.2);

      li {
        list-style: none;
        padding-left: var(--space-8);
        position: relative;

        &::before {
          background-color: var(--color-icon-bg);
          background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%230a1432' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
          background-position: center;
          background-repeat: no-repeat;
          background-size: 16px 16px;
          border-radius: 50%;
          content: '';
          height: var(--space-6);
          left: 0;
          position: absolute;
          top: 0.2em;
          width: var(--space-6);
        }
      }
    }

    img {
      aspect-ratio: 1.25;
      border-radius: var(--radius-xl);
    }

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

      img {
        aspect-ratio: 1.5;
      }
    }
  }
}

div.form {
  h2 {
    font-weight: var(--font-weight-light);
    max-width: 360px;
    margin-bottom: var(--space-4);
    text-wrap: balance;

    em {
      font-style: normal;
      font-weight: var(--font-weight-medium);
    }
  }

  p {
    font-size: var(--font-size-base);
    max-width: 380px;
    margin-bottom: var(--space-16);
  }

  .form-message {
    border-radius: var(--radius-md);
    display: none;
    font-size: 1.5rem;
    font-weight: 500;
    margin-bottom: var(--space-8);
    padding: var(--space-4);
    text-align: center;

    &.success {
      background-color: #d4edda;
      border: 1px solid #c3e6cb;
      color: #155724;
    }

    &.error {
      background-color: #f8d7da;
      border: 1px solid #f5c6cb;
      color: #721c24;
    }
  }

  span {
    display: block;
    font-size: calc(var(--font-size-base) * 0.8);
    margin: var(--space-4) auto;
    text-align: right;
    width: 100%;
  }
}

.form-container {
  .input-group {
    margin-top: var(--space-6);
    position: relative;

    .input-field {
      background: white;
      border: none;
      border-radius: 12px;
      color: #000;
      font-family: inherit;
      font-size: 16px;
      outline: none;
      padding: 20px 20px 24px 20px;
      transition: all 0.3s ease;
      width: 100%;

      &:focus {
      }
    }

    .input-label {
      bottom: 12px;
      color: #666;
      font-size: 14px;
      left: 20px;
      pointer-events: none;
      position: absolute;
      transition: all 0.3s ease;
    }

    .input-field:focus ~ .input-label,
    .input-field:not(:placeholder-shown) ~ .input-label {
      bottom: 8px;
      color: #999;
      font-size: 10px;
    }
  }

  .button-group {
    margin-top: var(--space-8);

    button {
      font-size: var(--font-size-base);
    }
  }
}

/* Kupnja page */
div.kupnja {
  div.heading {
    margin-bottom: var(--space-8);

    h2 {
      font-size: var(--font-size-5xl);
      margin-bottom: var(--space-2);
      max-width: var(--mid);
    }

    span {
      font-family: var(--font-heading);
      font-size: var(--font-size-4xl);
    }
  }

  div.box {
    background-color: var(--color-bg-light);
    font-size: calc(var(--font-size-base) * 1.1);
    padding-block: var(--space-20);

    & > div {
      display: grid;
      gap: var(--space-24);
      grid-template-columns: 1fr 1fr;

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

    div.data {
      display: flex;
      flex-direction: column;
      justify-content: space-between;

      div.content {
        h3 {
          margin-bottom: var(--space-8);
          font-size: var(--font-size-3xl);
        }

        a {
          margin-top: var(--space-8);
          text-transform: uppercase;
        }
      }

      div.status-bar {
        margin-top: 2rem;

        .status-numbers {
          display: flex;
          align-items: center;
          justify-content: center;
          gap: var(--space-4);
        }

        .numbers-container {
          display: flex;
          flex: 1;
          font-family: var(--font-heading);
          font-size: var(--font-size-4xl);
        }
      }
    }

    div.img {
      background-color: #fff;
      border-radius: var(--radius-md);
      aspect-ratio: 1;
    }
  }
}

.step-number {
  border-bottom: 4px solid var(--color-bg-dark);
  color: var(--color-bg-dark);
  cursor: pointer;
  flex: 0 0 25%;
  padding-block: var(--space-2);
  transition: all 0.3s ease;

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

.nav-arrow {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0.5rem;
  transition: opacity 0.3s;

  &:disabled {
    opacity: 0.3;
    cursor: not-allowed;
  }
}

.steps > div {
  display: none;
  max-width: 600px;
}

.img {
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
  transition: background-image 0.3s ease;
}

/* Ekskluzivna page*/

div.ekskluzivna_head {
  & > p {
    font-family: var(--font-heading);
    font-size: var(--font-size-3xl);
    line-height: var(--line-height-tight);
    margin-bottom: 0;
  }
}

div.ekskluzivna_intro {
  display: grid;
  gap: var(--space-16);
  grid-template-columns: 1fr 1fr;
  max-width: var(--sem);
  padding: var(--space-20) 0 0;
  width: 90%;

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

  span {
    display: block;
    font-family: var(--font-heading);
    font-size: var(--font-size-4xl);
  }
}

#ekskluzivna {
  aspect-ratio: auto;
  background-color: #fff;
  display: grid;
  gap: var(--space-16);
  grid-template-columns: 1fr 1fr;
  max-width: var(--sem);
  padding: var(--space-20) 0 0;
  width: 90%;

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

  & > div {
    background-color: var(--color-bg-light);
    border-radius: var(--radius-lg);
    padding: var(--space-12);
  }

  h2 {
    font-family: var(--font-body);
    font-size: var(--font-size-3xl);
    font-weight: 500;
    margin-bottom: var(--space-2);
  }

  h3 {
    margin-block: var(--space-12) var(--space-8);
    text-transform: uppercase;
  }

  span.headline {
    display: block;
    font-size: var(--font-size-2xl);
    margin-bottom: var(--space-12);
  }

  p,
  ul {
    font-size: calc(var(--font-size-base) * 1);
  }

  ul {
    & li {
      &::before {
        content: '';
        background-color: var(--color-icon-bg);
        background-position: center;
        background-repeat: no-repeat;
        background-size: 16px 16px;
        border-radius: 50%;
        content: '';
        height: 24px;
        left: 0;
        position: absolute;
        top: 4px;
        width: 24px;
      }
    }
  }

  ul.ekskluzivna {
    li {
      list-style: none;
      padding-left: var(--space-8);
      position: relative;

      &::before {
        background-color: var(--color-icon-bg);
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%230a1432' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='20 6 9 17 4 12'%3E%3C/polyline%3E%3C/svg%3E");
        background-position: center;
        background-repeat: no-repeat;
        background-size: 16px 16px;
        border-radius: 50%;
        content: '';
        height: var(--space-6);
        left: 0;
        position: absolute;
        top: 0.2em;
        width: var(--space-6);
      }
    }
  }

  ul.otvorena {
    li {
      list-style: none;
      padding-left: var(--space-8);
      position: relative;

      &::before {
        background-color: #fdecea;
        background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none' stroke='%23dc3545' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cline x1='18' y1='6' x2='6' y2='18'%3E%3C/line%3E%3Cline x1='6' y1='6' x2='18' y2='18'%3E%3C/line%3E%3C/svg%3E");
        background-position: center;
        background-repeat: no-repeat;
        background-size: 16px 16px;
        border-radius: 50%;
        content: '';
        height: var(--space-6);
        left: 0;
        position: absolute;
        top: 0.2em;
        width: var(--space-6);
      }
    }
  }
}

/* Prodaja page */
#prodaja-intro {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--space-24);

  div.photo {
    aspect-ratio: 1.75;

    img {
      aspect-ratio: 1.75;
      border-radius: var(--radius-md);
      object-fit: cover;
      width: 100%;
    }
  }

  div.data {
    p {
      font-size: calc(var(--font-size-base) * 1.2);
      max-width: 360px;
    }
  }

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

#prodaja-form {
  margin-top: var(--space-24);

  h2 {
    margin-bottom: var(--space-8);
  }

  h3 {
    font-family: var(--font-heading);
    font-weight: 500;
    margin-block: var(--space-16) var(--space-12);
  }

  p {
    font-size: var(--font-size-base);
    max-width: 460px;
  }

  form {
    margin-right: auto;
    max-width: 1200px;

    .form-message {
      border-radius: var(--radius-md);
      display: none;
      font-size: 1.75rem;
      font-weight: 500;
      margin-top: var(--space-8);
      padding: var(--space-4);
      text-align: center;

      &.success {
        background-color: #d4edda;
        border: 1px solid #c3e6cb;
        color: #155724;
      }

      &.error {
        background-color: #f8d7da;
        border: 1px solid #f5c6cb;
        color: #721c24;
      }
    }

    label.error {
      color: #dc3545;
    }

    fieldset {
      ol {
        display: grid;
        gap: var(--space-8) var(--space-16);
        grid-template-columns: 1fr 1fr 1fr;

        li {
          display: flex;
          flex-direction: column;

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

          label {
            font-size: var(--font-size-base);
            margin-bottom: var(--space-2);
          }

          input,
          select,
          textarea {
            border: 0;
            border-bottom: 1px solid var(--color-bg-dark);
            color: var(--color-text);
            font-size: var(--font-size-base);
            padding: var(--space-2) var(--space-4);
            width: 100%;

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

          input[type='checkbox'] {
            margin-right: auto;
            max-height: 16px !important;
            max-width: 16px !important;
          }

          button {
            font-size: var(--font-size-base);
            width: fit-content;
          }
        }

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

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

/* Contact page */
#kontakt-head {
  div.social {
    display: flex;
    justify-content: flex-end;

    @media (max-width: 960px) {
      justify-content: flex-start;
    }
  }

  ul {
    justify-content: center;
    display: flex;
    gap: var(--space-2);
    margin-block: var(--space-4) var(--space-8);

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

      a {
        align-items: center;
        aspect-ratio: 1;
        border: 1px solid var(--color-text);
        border-radius: 50%;
        display: flex;
        justify-content: center;
        transition: all 0.3s ease;
        width: 48px;

        @media (max-width: 640px) {
          height: 40px;
          min-height: 40px;
          min-width: 40px;
          width: 40px;

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

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

    & + span {
      font-weight: 500;
      text-transform: uppercase;
    }
  }
}

#contact {
  display: flex;
  flex-direction: column;
  gap: var(--space-24);

  h2 {
    text-wrap: balance;
  }
}

div.kontakt-data {
  display: grid;
  gap: var(--space-16);
  grid-template-columns: 4fr 2fr;

  div.photo {
    aspect-ratio: 2;

    img {
      aspect-ratio: 2;
      border-radius: var(--radius-md);
      object-fit: cover;
      width: 100%;
    }
  }

  address.data {
    font-size: var(--font-size-base);
    font-style: normal;

    span {
      font-size: var(--font-size-2xl);
      font-weight: 500;
    }
  }

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

    address.data {
      display: grid;
      grid-template-columns: 1fr 1fr 1fr;
    }
  }

  @media (max-width: 480px) {
    address.data {
      grid-template-columns: 1fr;
    }
  }
}

div.kontakt-form {
  display: grid;
  gap: var(--space-16);
  grid-template-columns: 4fr 2fr;

  > * {
    min-width: 0;
  }

  form {
    .form-message {
      border-radius: var(--radius-md);
      display: none;
      font-size: 1.75rem;
      font-weight: 500;
      margin-bottom: var(--space-8);
      padding: var(--space-4);
      text-align: center;

      &.success {
        background-color: #d4edda;
        border: 1px solid #c3e6cb;
        color: #155724;
      }

      &.error {
        background-color: #f8d7da;
        border: 1px solid #f5c6cb;
        color: #721c24;
      }
    }

    fieldset {
      ol {
        display: grid;
        gap: var(--space-8) var(--space-16);
        grid-template-columns: 1fr 1fr;
        min-width: 0;

        li {
          display: flex;
          flex-direction: column;

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

          label {
            font-size: var(--font-size-base);
            margin-bottom: var(--space-2);
          }

          input,
          textarea {
            border: 1px solid transparent;
            border-bottom: 1px solid var(--color-bg-dark);
            color: var(--color-text);
            font-size: var(--font-size-base);
            padding: var(--space-2) var(--space-4);
            transition: all 0.3s ease;

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

          button {
            font-size: var(--font-size-base);
            width: fit-content;
          }
        }
      }
    }
  }

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

@media (max-width: 768px) {
  div.kontakt-form form fieldset ol {
    display: flex;
    flex-direction: column;
  }
}

div.kontakt-map {
  display: grid;
  grid-template-columns: 2fr 4fr;

  div.data {
    p {
      font-size: calc(var(--font-size-base) * 1);
    }

    a {
      font-size: var(--font-size-base);
      margin-top: var(--space-16);
    }
  }

  div.photo {
    aspect-ratio: 2;

    img {
      aspect-ratio: 2;
      border-radius: var(--radius-md);
      object-fit: cover;
      width: 100%;
    }
  }

  @media (max-width: 960px) {
    gap: var(--space-8);
    grid-template-columns: 1fr;
  }
}

/* O meni page */
div.trust-stats {
  margin-block: var(--space-16);

  ul {
    display: grid;
    gap: var(--space-12);
    grid-template-columns: 1fr 1fr 1fr;

    li {
      display: flex;
      flex-direction: column;
      font-size: var(--font-size-base);
      text-align: center;

      span.value {
        font-family: var(--font-heading);
        font-size: var(--font-size-5xl);
        font-weight: var(--font-weight-normal);
      }

      span.label {
        color: var(--color-icon-bg);
      }
    }

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

div.director {
  background-color: var(--color-bg-light);

  & > div {
    display: grid;
    gap: var(--space-24);
    grid-template-columns: 1fr 1fr;
    margin-inline: auto;
    max-width: var(--sem);
    padding: var(--space-20) 0;
    width: 90%;

    div.photo {
      aspect-ratio: 1;
      border-radius: var(--radius-md);
      overflow: hidden;
    }

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

      p {
        font-size: calc(var(--font-size-base) * 1.2);
      }

      & > div {
        p {
          font-size: var(--font-size-4xl);
          margin-bottom: 0;
        }

        span {
          font-size: var(--font-size-2xl);
        }
      }
    }

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

div.history {
  h2 {
    font-size: var(--font-size-5xl);
    margin-block: var(--space-20);
    text-align: center;
  }

  & > div {
    display: flex;
    flex-direction: column;
    gap: var(--space-20);
    margin-bottom: var(--space-20);
  }

  div.history-item {
    display: grid;
    gap: var(--space-24);
    grid-template-columns: 1fr 2fr;

    &.inverse {
      grid-template-columns: 2fr 1fr;
    }

    div.photo {
      aspect-ratio: 1;
      border-radius: var(--radius-md);
      background-color: #ced6e0;
      overflow: hidden;
    }

    div.data {
      p {
        font-size: calc(var(--font-size-base) * 1.2);
      }

      a {
        font-size: calc(var(--font-size-base) * 1);
        margin-top: var(--space-16);
        text-transform: uppercase;
      }
    }

    @media (max-width: 960px) {
      grid-template-columns: 1fr !important;

      &.inverse {
        & > div {
          &:first-child {
            order: 2;
          }

          &:last-child {
            order: 1;
          }
        }
      }
    }
  }
}

/* FAQ page */
div.faq-list {
  display: grid;
  gap: var(--space-16);
  grid-template-columns: 1fr 1fr;
  margin-bottom: var(--space-20);

  div.intro {
    margin-bottom: var(--space-20);

    p {
      max-width: 400px;
    }
  }

  p {
    font-size: var(--font-size-base);
  }

  div.lists {
    display: flex;
    flex-direction: column;
    gap: var(--space-2);
  }

  details.faq {
    background-color: var(--color-bg-light);
    border: 2px solid transparent;
    border-radius: var(--radius-lg);
    padding: var(--space-4);
    transition: border-color 0.3s ease;

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

    & summary {
      align-items: center;
      cursor: pointer;
      display: flex;
      font-size: calc(var(--font-size-base) * 1.1);
      font-weight: var(--font-weight-medium);
      padding-right: var(--space-8);
      position: relative;

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

      &::after {
        content: '+';
        font-size: 1.2em;
        position: absolute;
        right: 0;
        top: 0;
        transition: transform 0.3s ease;
      }
    }

    &[open] {
      border-color: var(--color-text);
      background-color: #f8f9fa;
    }

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

    & div {
      margin-top: var(--space-4);

      p,
      ul {
        font-size: var(--font-size-base);
        margin: 0;
      }
    }
  }

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

/* ╔═══════════════════════════════════════════════════════════╗
   ║  09 - UTILITIES                                           ║
   ║  Animations, utility classes, helper styles               ║
   ╚═══════════════════════════════════════════════════════════╝ */

/* Animations */
@keyframes fadeIn {
  from {
    opacity: 0;
    transform: translateY(20px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.fade-in {
  animation: fadeIn 0.6s ease-out;
}

/* Utility classes */
.strtoupper {
  text-transform: uppercase !important;
}

.mw90 {
  max-width: 90vw;
}

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

.privacy-content {
  max-width: 780px;
  padding-bottom: var(--space-24, 48px);

  h2 {
    margin-top: var(--space-16);
  }

  p,
  li {
    font-size: var(--font-size-base, 16px);
    line-height: 1.7;
  }

  ul {
    list-style: disc;
    margin-bottom: var(--space-4, 16px);
    padding-left: var(--space-6);
  }

  li {
    margin-bottom: var(--space-1, 4px);
  }

  a {
    text-decoration: underline;

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

/* ── Admin: fixed selection box ──────────────────────────── */

.adm-box {
  bottom: 24px;
  display: none;
  flex-direction: column;
  gap: 6px;
  position: fixed;
  right: 24px;
  z-index: 9000;
}

.adm-box.visible {
  display: flex;
}

.adm-box-add {
  background: #fff;
  border: 2px solid var(--color-text);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.12);
  color: var(--color-text);
  display: block;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.02em;
  padding: 10px 20px;
  text-align: center;
  text-decoration: none;
  transition: all 0.2s ease;

  &:hover {
    background: var(--color-text);
    color: #fff;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.2);
    transform: translateY(-1px);
  }

  &.active {
    background: #dc2626;
    border-color: #dc2626;
    color: #fff;

    &:hover {
      background: #b91c1c;
      border-color: #b91c1c;
    }
  }
}

.adm-box-toggle {
  align-items: center;
  background: var(--color-text);
  border-radius: var(--radius-lg);
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.15);
  color: #fff;
  display: inline-flex;
  font-family: var(--font-body);
  font-size: 13px;
  font-weight: 600;
  gap: 8px;
  justify-content: center;
  letter-spacing: 0.02em;
  padding: 10px 20px;
  text-decoration: none;
  transition: all 0.2s ease;

  &:hover {
    background: #162044;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.25);
    transform: translateY(-1px);
  }
}

.adm-box-count {
  align-items: center;
  background: #e11d48;
  border-radius: 10px;
  display: inline-flex;
  font-size: 11px;
  font-weight: 700;
  height: 20px;
  justify-content: center;
  min-width: 20px;
  padding: 0 6px;
}

/* ── Status badge (global) ─────────────────────────────── */

.status-badge {
  border-radius: var(--radius-md);
  color: #fff;
  font-size: calc(var(--font-size-base) * 0.75);
  font-weight: 600;
  letter-spacing: 0.03em;
  line-height: 1;
  padding: 6px 8px 5px;
  text-transform: uppercase;

  &.reserved {
    background-color: #fff;
    border: 1px solid var(--color-text);
    color: var(--color-text);
  }

  &.sold {
    background-color: var(--color-text);
  }
}

/* ═══════════════════════════════════════════════════════════
   10. COOKIE CONSENT
   ═══════════════════════════════════════════════════════════ */

.cookie-consent {
  background: var(--color-text, #0f172a);
  bottom: 0;
  color: #fff;
  left: 0;
  position: fixed;
  right: 0;
  z-index: 9999;
}

.cookie-consent-inner {
  align-items: center;
  display: flex;
  gap: 16px 24px;
  justify-content: space-between;
  padding-block: 16px;
}

.cookie-consent-text {
  font-size: 14px;
  line-height: 1.5;
  margin: 0;
}

.cookie-consent-link {
  color: #93c5fd;
  text-decoration: underline;
  white-space: nowrap;
}

.cookie-consent-link:hover {
  color: #bfdbfe;
}

.cookie-consent-buttons {
  display: flex;
  flex-shrink: 0;
  gap: 10px;
}

.cookie-consent-btn {
  border: none;
  border-radius: var(--radius-md, 6px);
  cursor: pointer;
  font-size: 14px;
  font-weight: 600;
  padding: 10px 20px;
  white-space: nowrap;
}

.cookie-consent-accept {
  background: var(--color-accent, #c8a456);
  color: #fff;
}

.cookie-consent-accept:hover {
  filter: brightness(1.1);
}

.cookie-consent-reject {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
}

.cookie-consent-reject:hover {
  border-color: #fff;
}

.cookie-consent-settings {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.4);
  color: #fff;
}

.cookie-consent-settings:hover {
  border-color: #fff;
}

/* Modal overlay */
.cookie-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.6);
  z-index: 10000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}

.cookie-modal {
  background: var(--color-text, #0f172a);
  color: #fff;
  border-radius: var(--radius-lg, 12px);
  padding: 28px 32px;
  max-width: 520px;
  width: 100%;
  max-height: 90vh;
  overflow-y: auto;
  position: relative;
}

.cookie-modal-close {
  position: absolute;
  top: 0;
  right: 0;
  background: var(--color-accent, #c8a456);
  border: none;
  color: #fff;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  min-width: 32px;
  min-height: 32px;
  width: 24px;
  height: 24px;
  border-radius: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}

.cookie-modal-close:hover {
  filter: brightness(1.15);
}

.cookie-modal .cookie-consent-text {
  margin: 0 20px 20px 0;
}

.cookie-consent-options {
  border-top: 1px solid rgba(255, 255, 255, 0.15);
  padding-top: 8px;
}

.cookie-consent-option {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 12px 0;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

.cookie-consent-option:last-of-type {
  border-bottom: none;
}

.cookie-consent-option-info {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.cookie-consent-option-title {
  font-size: 14px;
  font-weight: 600;
}

.cookie-consent-option-desc {
  font-size: 12px;
  color: rgba(255, 255, 255, 0.6);
  line-height: 1.4;
}

.cookie-consent-always-active {
  font-size: 12px;
  font-weight: 600;
  color: #4ade80;
  white-space: nowrap;
}

.cookie-toggle {
  position: relative;
  display: inline-block;
  width: 44px;
  height: 24px;
  flex-shrink: 0;
  cursor: pointer;
}

.cookie-toggle input {
  opacity: 0;
  width: 0;
  height: 0;
}

.cookie-toggle-slider {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  bottom: 0;
  background: rgba(255, 255, 255, 0.2);
  border-radius: 24px;
  transition: background 0.2s;
}

.cookie-toggle-slider::before {
  content: '';
  position: absolute;
  width: 18px;
  height: 18px;
  left: 3px;
  bottom: 3px;
  background: #fff;
  border-radius: 50%;
  transition: transform 0.2s;
}

.cookie-toggle input:checked + .cookie-toggle-slider {
  background: var(--color-accent, #c8a456);
}

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

.cookie-modal-buttons {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

.cookie-modal-buttons .cookie-consent-btn {
  flex: 1;
}

@media (max-width: 640px) {
  .cookie-consent-inner {
    flex-direction: column;
    text-align: center;
  }

  .cookie-consent-buttons {
    width: 100%;
    flex-direction: column;
  }

  .cookie-consent-btn {
    width: 100%;
  }

  .cookie-modal {
    padding: 20px;
    border-radius: var(--radius-md, 8px);
  }

  .cookie-modal-buttons {
    flex-direction: column;
  }
}
