/* ============================================
   Vila Trta — main stylesheet
   ============================================ */

:root {
  --font-sans: "Inter", "Segoe UI", Arial, sans-serif;
  --font-serif: "Playfair Display", Georgia, serif;

  --wine-900: #2b0a18;
  --wine-800: #4e122c;
  --wine-700: #7a1f3d;
  --wine-500: #9e3155;
  --wine-050: #f8eef2;
  --gold-500: #c08a3e;

  --ink: #221a1d;
  --ink-soft: #3d3236;
  --ink-muted: #6d5c62;

  --surface: #ffffff;
  --surface-alt: #faf5f6;
  --surface-sand: #f5ece2;

  --line: #ece1e4;
  --line-strong: #d7c3c9;

  --radius-sm: 4px;
  --radius: 10px;
  --shadow-sm: 0 1px 2px rgba(43, 10, 24, 0.07);
  --shadow-md: 0 6px 22px rgba(43, 10, 24, 0.1);
  --shadow-lg: 0 16px 44px rgba(43, 10, 24, 0.18);

  --header-h: 58px;
  --section-y: 72px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

html {
  scroll-behavior: smooth;
  scroll-padding-top: calc(var(--header-h) + 16px);
}

body {
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.65;
  color: var(--ink);
  background: var(--surface);
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    transition-duration: 0.01ms !important;
  }
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  margin: -1px;
  padding: 0;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

.icon {
  width: 1em;
  height: 1em;
  flex-shrink: 0;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 13px 30px;
  border-radius: var(--radius-sm);
  border: 1px solid transparent;
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition:
    background 0.2s,
    border-color 0.2s,
    color 0.2s,
    transform 0.15s;
}

.btn:hover {
  transform: translateY(-1px);
}

.btn-primary {
  background: var(--wine-700);
  border-color: var(--wine-700);
  color: #fff;
}

.btn-primary:hover {
  background: var(--wine-800);
  border-color: var(--wine-800);
}

.btn-ghost {
  border-color: rgba(255, 255, 255, 0.65);
  color: #fff;
}

.btn-ghost:hover {
  background: rgba(255, 255, 255, 0.14);
  border-color: #fff;
}

.section-alt {
  background: var(--surface-alt);
}

.container {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 24px;
}

a {
  color: inherit;
  text-decoration: none;
}

a:focus-visible,
button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible,
.apt-gallery-thumb:focus-visible {
  outline: 2px solid var(--wine-700);
  outline-offset: 2px;
}

h1,
h2,
h3,
h4 {
  font-family: var(--font-serif);
  font-weight: 400;
  line-height: 1.25;
}

/* ============================================
   HEADER / NAV
   ============================================ */

.header {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: blur(8px);
  border-bottom: 1px solid var(--line);
  z-index: 100;
}

.header .container {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: var(--header-h);
}

.logo a {
  font-family: var(--font-serif);
  font-size: 1.25rem;
  letter-spacing: 0.02em;
  color: var(--wine-800);
}

.nav > ul {
  display: flex;
  list-style: none;
  gap: 0;
}

.nav > ul > li {
  position: relative;
}

.nav > ul > li > a {
  display: flex;
  align-items: center;
  gap: 5px;
  padding: 0 16px;
  height: var(--header-h);
  font-size: 0.875rem;
  color: var(--ink);
  transition: color 0.2s;
  white-space: nowrap;
}

.nav > ul > li > a:hover {
  color: var(--wine-700);
}

.nav-dropdown-arrow {
  font-size: 0.75em;
  stroke-width: 2.4;
}

/* dropdown */
.dropdown-menu {
  display: none;
  position: absolute;
  top: 100%;
  left: 0;
  background: #fff;
  border: 1px solid var(--line);
  border-top: 2px solid var(--wine-700);
  border-radius: 0 0 var(--radius-sm) var(--radius-sm);
  box-shadow: var(--shadow-md);
  list-style: none;
  min-width: 200px;
  z-index: 200;
  overflow: hidden;
}

.nav-dropdown:hover .dropdown-menu,
.nav-dropdown:focus-within .dropdown-menu {
  display: block;
}

.dropdown-menu li a {
  display: block;
  padding: 10px 18px;
  font-size: 0.875rem;
  color: var(--ink);
  border-bottom: 1px solid var(--line);
  transition: background 0.15s;
}

.dropdown-menu li:last-child a {
  border-bottom: none;
}

.dropdown-menu li a:hover {
  background: var(--wine-050);
  color: var(--wine-800);
}

/* mobile toggle */
.mobile-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  background: none;
  border: none;
  font-size: 1.4rem;
  color: var(--ink);
  padding: 8px;
  min-width: 44px;
  min-height: 44px;
}

/* ============================================
   HERO
   ============================================ */

.hero {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: min(78vh, 680px);
  color: #fff;
  padding: 160px 24px 72px;
  overflow: hidden;
}

.hero-media {
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(
      to top,
      rgba(43, 10, 24, 0.78) 0%,
      rgba(43, 10, 24, 0.34) 45%,
      rgba(43, 10, 24, 0.26) 100%
    ),
    url("slike/splosne/_DSC2194-1600.webp");
  background-size: cover;
  background-position: center 50%;
}

.hero-content {
  position: relative;
  width: 100%;
  max-width: 1120px;
  margin: 0 auto;
  padding: 0 24px;
}

.hero h1 {
  font-size: clamp(2.4rem, 6vw, 4.2rem);
  letter-spacing: 0.02em;
  margin-bottom: 14px;
  text-shadow: 0 2px 18px rgba(0, 0, 0, 0.35);
}

.hero-tagline {
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  opacity: 0.85;
  margin-bottom: 12px;
}

.hero-lead {
  max-width: 480px;
  margin-bottom: 32px;
  font-size: 1.05rem;
  opacity: 0.92;
}

.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

/* ============================================
   INTRO SECTION
   ============================================ */

.intro-section {
  padding: var(--section-y) 0;
}

.intro-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 64px;
  align-items: start;
}

.intro-text h2 {
  font-size: 1.75rem;
  margin-bottom: 18px;
  color: var(--wine-800);
}

.intro-text p {
  margin-bottom: 14px;
  color: var(--ink-soft);
}

.intro-facts {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  background: var(--surface);
  padding: 26px;
}

.fact-row {
  display: flex;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid var(--line);
  font-size: 0.875rem;
}

.fact-row:last-child {
  border-bottom: none;
}

.fact-row span {
  color: var(--ink-muted);
  min-width: 120px;
  flex-shrink: 0;
}

.fact-row strong {
  color: var(--ink);
  font-weight: 600;
}

/* ============================================
   APARTMENTS
   ============================================ */

.apartments {
  padding: var(--section-y) 0;
}

.apartments h2 {
  font-size: 1.75rem;
  color: var(--wine-800);
  margin-bottom: 6px;
}

.section-intro {
  color: var(--ink-muted);
  font-size: 0.9rem;
  margin-bottom: 36px;
}

.apt-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
  gap: 24px;
}

.apt-card {
  display: flex;
  flex-direction: column;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-sm);
  transition:
    box-shadow 0.25s,
    transform 0.25s,
    border-color 0.25s;
}

.apt-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-3px);
  border-color: var(--line-strong);
}

.apt-card-img {
  position: relative;
  aspect-ratio: 4 / 3;
  background: var(--wine-050);
  overflow: hidden;
}

.apt-card-img img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.4s ease;
}

.apt-card:hover .apt-card-img img {
  transform: scale(1.04);
}

.apt-card-badge {
  position: absolute;
  top: 12px;
  left: 12px;
  background: var(--wine-700);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  padding: 4px 10px;
  border-radius: 999px;
}

.apt-card-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  padding: 20px 22px 22px;
}

.apt-card-body h3 {
  font-size: 1.2rem;
  color: var(--wine-800);
  margin-bottom: 4px;
}

.apt-card-meta {
  font-size: 0.78rem;
  color: var(--ink-muted);
  letter-spacing: 0.01em;
  margin-bottom: 10px;
}

.apt-card-desc {
  font-size: 0.9rem;
  color: var(--ink-soft);
  margin-bottom: 16px;
}

.apt-card-link {
  margin-top: auto;
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--wine-700);
}

.apt-card-link::after {
  content: " \2192";
  display: inline-block;
  transition: transform 0.2s;
}

.apt-card:hover .apt-card-link::after {
  transform: translateX(4px);
}

.apt-card-featured {
  border-color: var(--wine-500);
}

/* ============================================
   HIŠA IN OKOLICA
   ============================================ */

.house-section {
  padding: var(--section-y) 0;
}

.house-section h2 {
  font-size: 1.75rem;
  color: var(--wine-800);
  margin-bottom: 32px;
}

.house-gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 22px;
}

.house-photo {
  margin: 0;
}

.house-photo img {
  width: 100%;
  height: auto;
  aspect-ratio: 4 / 3;
  object-fit: cover;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.house-photo figcaption {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

/* ============================================
   EXPERIENCES / OKOLICA
   ============================================ */

.experiences-section {
  padding: var(--section-y) 0;
}

.experiences-section h2 {
  font-size: 1.75rem;
  color: var(--wine-800);
  margin-bottom: 32px;
}

.exp-layout {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 40px;
}

.exp-col h3 {
  font-size: 1rem;
  color: var(--wine-700);
  margin-bottom: 12px;
  padding-bottom: 8px;
  border-bottom: 2px solid var(--wine-700);
}

.exp-col ul {
  list-style: none;
  padding: 0;
}

.exp-col ul li {
  font-size: 0.9rem;
  color: var(--ink-soft);
  padding: 6px 0;
  border-bottom: 1px solid var(--line);
}

.exp-col ul li:last-child {
  border-bottom: none;
}

.exp-tip {
  margin-top: 16px;
  font-size: 0.85rem;
  color: var(--ink-muted);
  font-style: italic;
}

/* ============================================
   POGOSTA VPRAŠANJA
   ============================================ */

.faq-section {
  padding: var(--section-y) 0;
}

.faq-section h2 {
  font-size: 1.75rem;
  color: var(--wine-800);
  margin-bottom: 32px;
}

.faq-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px 32px;
  align-items: start;
}

.faq-item {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
}

.faq-item summary {
  cursor: pointer;
  list-style: none;
  padding: 14px 44px 14px 18px;
  position: relative;
  font-weight: 500;
  font-size: 0.95rem;
  color: var(--wine-800);
}

.faq-item summary::-webkit-details-marker {
  display: none;
}

.faq-item summary::after {
  content: "";
  position: absolute;
  right: 18px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid var(--wine-700);
  border-bottom: 2px solid var(--wine-700);
  transform: translateY(-70%) rotate(45deg);
  transition: transform 0.2s;
}

.faq-item[open] summary::after {
  transform: translateY(-30%) rotate(-135deg);
}

.faq-item summary:hover {
  color: var(--wine-500);
}

.faq-item p {
  margin: 0;
  padding: 0 18px 16px;
  font-size: 0.9rem;
  line-height: 1.7;
  color: var(--ink-soft);
}

/* ============================================
   DOSTOPNA POT
   ============================================ */

.access-section {
  background: var(--surface-sand);
  padding: var(--section-y) 0;
}

.access-layout {
  display: grid;
  grid-template-columns: 1.15fr 1fr;
  gap: 44px;
  align-items: center;
}

.access-photo {
  margin: 0;
}

.access-photo img {
  width: 100%;
  height: auto;
  display: block;
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
}

.access-photo figcaption {
  margin-top: 10px;
  font-size: 0.82rem;
  color: var(--ink-muted);
}

.access-text h2 {
  font-size: 1.75rem;
  color: var(--wine-800);
  position: relative;
  padding-bottom: 16px;
  margin-bottom: 20px;
}

.access-text h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--gold-500);
}

.access-text p {
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.access-steps {
  counter-reset: access;
  list-style: none;
  padding: 0;
  margin: 20px 0;
}

.access-steps li {
  counter-increment: access;
  position: relative;
  padding: 0 0 14px 42px;
  font-size: 0.9375rem;
  color: var(--ink-soft);
}

.access-steps li::before {
  content: counter(access);
  position: absolute;
  left: 0;
  top: 0;
  width: 26px;
  height: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: var(--wine-700);
  color: #fff;
  font-size: 0.78rem;
  font-weight: 600;
}

.access-address {
  margin-bottom: 20px;
}

/* ============================================
   CONTACT
   ============================================ */

.contact {
  padding: var(--section-y) 0;
}

/* ============================================
   NEWSLETTER
   ============================================ */

.newsletter-section {
  background: var(--surface-sand);
  padding: 72px 0;
}

.newsletter-inner {
  display: flex;
  gap: 48px;
  align-items: flex-start;
}

.newsletter-text {
  flex: 1 1 260px;
}

.newsletter-text h2 {
  font-size: 1.75rem;
  color: var(--wine-700);
  margin-bottom: 12px;
}

.newsletter-text p {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.7;
}

.newsletter-form {
  flex: 1 1 320px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.nf-field-group input[type="email"],
.nf-field-group input[type="text"] {
  width: 100%;
  padding: 12px 14px;
  border: 1px solid #dfd0c4;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.9rem;
  background: #fff;
  outline: none;
  transition: border-color 0.2s;
}

.nf-field-group input:focus {
  border-color: var(--wine-700);
}

.nf-note {
  margin: 0;
  font-size: 0.8125rem;
  line-height: 1.6;
  color: var(--ink-muted);
}

.nf-submit {
  align-self: flex-start;
  padding: 12px 32px;
  background: var(--wine-700);
  color: #fff;
  border: none;
  border-radius: var(--radius-sm);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 500;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.2s;
}

.nf-submit:hover {
  background: var(--wine-800);
}

@media (max-width: 700px) {
  .newsletter-inner {
    flex-direction: column;
    gap: 28px;
  }

  /* v stolpcu flex-basis velja za višino, zato ga razveljavimo */
  .newsletter-text,
  .newsletter-form {
    flex: 0 0 auto;
    width: 100%;
  }

  .nf-field-group input[type="email"],
  .nf-field-group input[type="text"] {
    padding: 13px 14px;
    font-size: 1rem;
  }

  .nf-submit {
    align-self: stretch;
    padding: 14px;
    font-size: 1rem;
    text-align: center;
  }
}

/* ============================================
   FOOTER
   ============================================ */

.footer {
  background: var(--wine-900);
  color: #e0cbd3;
  padding-top: 48px;
}

.footer-inner {
  display: grid;
  grid-template-columns: 1.4fr 1fr 1fr;
  align-items: start;
  gap: 32px;
  padding-bottom: 32px;
  font-size: 0.875rem;
  line-height: 1.7;
  word-break: break-word;
  overflow-wrap: anywhere;
  min-width: 0;
}

.footer-col {
  min-width: 0;
}

.footer-inner strong {
  display: block;
  color: #fff;
  margin-bottom: 8px;
}

.footer-inner address {
  font-style: normal;
}

.footer-inner ul {
  list-style: none;
  padding: 0;
  margin: 0;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2px 16px;
}

.footer-links-single ul {
  grid-template-columns: 1fr;
}

.footer-inner a {
  color: #d3aebc;
  text-decoration: none;
  transition: color 0.2s;
}

.footer-inner address a {
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-inner a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.footer-bottom {
  border-top: 1px solid rgba(255, 255, 255, 0.2);
  padding: 14px 0;
}

.footer-bottom .container {
  display: flex;
  flex-wrap: wrap;
  gap: 6px 20px;
  align-items: center;
  justify-content: space-between;
}

.footer-bottom p {
  font-size: 0.8rem;
  color: #c3a1af;
}

.footer-legal a {
  color: #c3a1af;
}

.footer-legal a:hover {
  color: #fff;
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================
   LEGAL / GDPR PAGE
   ============================================ */

.legal {
  padding: 48px 0 var(--section-y);
}

.legal-inner {
  max-width: 820px;
}

.legal-updated {
  font-size: 0.8rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
  margin-bottom: 20px;
}

.legal-lead {
  font-size: 1.05rem;
  color: var(--ink-soft);
  padding-bottom: 24px;
  border-bottom: 1px solid var(--line);
}

.legal-inner h2 {
  font-family: var(--font-serif);
  font-size: 1.5rem;
  font-weight: 500;
  color: var(--wine-800);
  margin: 36px 0 12px;
}

.legal-inner h3 {
  font-size: 1.05rem;
  font-weight: 600;
  margin: 24px 0 8px;
}

.legal-inner p {
  margin-bottom: 12px;
  color: var(--ink-soft);
}

.legal-inner ul {
  margin: 0 0 16px 20px;
  color: var(--ink-soft);
}

.legal-inner li {
  margin-bottom: 6px;
}

.legal-inner a:not(.btn) {
  color: var(--wine-700);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.legal-inner code {
  font-size: 0.9em;
  background: var(--wine-050);
  border-radius: var(--radius-sm);
  padding: 1px 5px;
}

.legal-address {
  font-style: normal;
  background: var(--surface-alt);
  border-left: 3px solid var(--wine-700);
  border-radius: var(--radius-sm);
  padding: 14px 18px;
  margin-bottom: 16px;
  color: var(--ink-soft);
}

.legal-back {
  margin-top: 40px;
}

/* ============================================
   APARTMENT SUBPAGE (apt-*)
   ============================================ */

.apt-hero {
  position: relative;
  background-image:
    linear-gradient(to bottom, rgba(43, 10, 24, 0.68), rgba(43, 10, 24, 0.82)),
    url("slike/splosne/_DSC8981-1600.webp");
  background-size: cover;
  background-position: center 60%;
  color: #fff;
  text-align: center;
  padding: 108px 24px 60px;
}

.apt-hero h1 {
  font-size: clamp(1.9rem, 4vw, 3rem);
  margin-bottom: 8px;
  text-shadow: 0 2px 16px rgba(0, 0, 0, 0.35);
}

.apt-hero .apt-hero-sub {
  opacity: 0.85;
  font-size: 0.8rem;
  letter-spacing: 0.22em;
  text-transform: uppercase;
}

.apt-content {
  padding: 36px 0 var(--section-y);
}

.apt-content-layout {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 40px;
  align-items: start;
}

.apt-gallery {
  margin-bottom: 0;
}

.apt-gallery-main {
  aspect-ratio: 3/2;
  width: 100%;
  overflow: hidden;
  margin-bottom: 8px;
  cursor: zoom-in;
  background: var(--wine-050);
  border-radius: var(--radius);
}

.apt-gallery-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: opacity 0.2s;
}

.apt-gallery-main.is-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f8eef2;
  border: 1px solid #ecdae1;
  cursor: default;
  margin-bottom: 0;
}

.apt-gallery-main.is-empty span {
  font-size: 0.8rem;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #a5808d;
}

.apt-gallery-thumbs {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: calc((100% - 3 * 8px) / 4);
  gap: 8px;
  overflow-x: auto;
  overflow-y: hidden;
  padding-bottom: 6px;
  scroll-snap-type: x proximity;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.apt-gallery-thumbs::-webkit-scrollbar {
  height: 6px;
}

.apt-gallery-thumbs::-webkit-scrollbar-thumb {
  background: var(--wine-700);
  border-radius: 3px;
}

.apt-gallery-thumb {
  background: var(--wine-050);
  aspect-ratio: 4/3;
  cursor: pointer;
  opacity: 0.72;
  transition: opacity 0.2s;
  overflow: hidden;
  border-radius: var(--radius-sm);
  scroll-snap-align: start;
}

.apt-gallery-thumb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.apt-gallery-thumb:hover {
  opacity: 1;
}

.apt-gallery-thumb.active {
  opacity: 1;
  outline: 2px solid var(--wine-700);
  outline-offset: -2px;
}

/* Lightbox */
.lightbox {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.92);
  z-index: 2000;
  align-items: center;
  justify-content: center;
}

.lightbox.open {
  display: flex;
}

.lightbox-img {
  max-width: 90vw;
  max-height: 90vh;
  object-fit: contain;
  display: block;
}

.lightbox-close {
  position: absolute;
  top: 16px;
  right: 24px;
  font-size: 2.2rem;
  color: #fff;
  cursor: pointer;
  background: none;
  border: none;
  line-height: 1;
  opacity: 0.85;
}

.lightbox-close:hover {
  opacity: 1;
}

.lightbox-prev,
.lightbox-next {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  font-size: 2.4rem;
  cursor: pointer;
  padding: 14px 20px;
  line-height: 1;
  transition: background 0.2s;
}

.lightbox-prev:hover,
.lightbox-next:hover {
  background: rgba(255, 255, 255, 0.25);
}

.lightbox-prev {
  left: 12px;
}
.lightbox-next {
  right: 12px;
}

.apt-sidebar > * {
  margin-bottom: 24px;
}

/* O apartmaju / podatki / oprema */
.apt-about {
  margin-top: 28px;
  padding: 28px 28px 26px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.apt-about-intro h2 {
  font-size: clamp(1.4rem, 2.4vw, 1.8rem);
  color: var(--wine-900);
  margin-bottom: 14px;
}

.apt-about-intro h2::after {
  content: "";
  display: block;
  width: 52px;
  height: 2px;
  margin-top: 12px;
  background: var(--gold-500);
}

.apt-about-intro p {
  max-width: 70ch;
  font-size: 0.9375rem;
  color: var(--ink-soft);
  margin-bottom: 12px;
}

.apt-about-intro p:last-child {
  margin-bottom: 0;
}

.apt-about-intro .apt-lead {
  font-size: 1.0625rem;
  color: var(--ink);
}

.apt-block {
  margin-top: 30px;
  padding-top: 26px;
  border-top: 1px solid var(--line);
}

.apt-block-title {
  display: flex;
  align-items: center;
  gap: 14px;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--wine-700);
  margin-bottom: 16px;
}

.apt-block-title::after {
  content: "";
  flex: 1;
  height: 1px;
  background: var(--line);
}

.apt-spec-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 10px;
}

.apt-spec {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  background: var(--wine-050);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
}

.apt-spec .icon {
  width: 20px;
  height: 20px;
  margin-top: 3px;
  color: var(--wine-700);
}

.apt-spec-label {
  display: block;
  font-size: 0.75rem;
  font-weight: 500;
  text-transform: uppercase;
  letter-spacing: 0.09em;
  color: var(--ink-muted);
  line-height: 1.5;
}

.apt-spec-value {
  display: block;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--ink);
  line-height: 1.45;
}

.apt-equip-list {
  list-style: none;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
  gap: 0 28px;
}

.apt-equip-list li {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 9px 0;
  font-size: 0.875rem;
  color: var(--ink-soft);
  border-bottom: 1px solid var(--line);
}

.apt-equip-list .icon {
  width: 17px;
  height: 17px;
  margin-top: 4px;
  stroke-width: 2.2;
  color: var(--wine-500);
}

.apt-book-box {
  overflow: hidden;
  border: 1px solid var(--wine-700);
  border-radius: var(--radius);
  box-shadow: var(--shadow-md);
  scroll-margin-top: calc(var(--header-h) + 16px);
}

.apt-book-head {
  background: var(--wine-700);
  color: #fff;
  padding: 16px 20px;
}

.apt-book-head h2 {
  font-family: var(--font-sans);
  font-size: 1rem;
  font-weight: 600;
  letter-spacing: 0.02em;
  margin: 0 0 4px;
}

.apt-book-head p {
  font-size: 0.8125rem;
  opacity: 0.88;
  margin: 0;
}

.apt-book-widget {
  padding: 8px;
  background: var(--surface);
}

.apt-back-link {
  display: inline-block;
  padding: 0 0 16px;
  font-size: 0.875rem;
  color: var(--wine-700);
}

.apt-back-link:hover {
  text-decoration: underline;
}

/* ============================================
   FEATURES STRIP
   ============================================ */

.features-strip {
  background: #fff;
  border-bottom: 1px solid var(--line);
}

.features-strip-inner {
  display: flex;
  align-items: stretch;
}

.feat-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 24px 16px;
  flex: 1;
  border-right: 1px solid var(--line);
  text-align: center;
  transition: background 0.15s;
}

.feat-item:last-child {
  border-right: none;
}

.feat-item:hover {
  background: var(--wine-050);
}

.feat-item .icon {
  font-size: 1.5rem;
  color: var(--wine-700);
}

.feat-item span {
  font-size: 0.8rem;
  color: var(--ink-soft);
  letter-spacing: 0.02em;
  line-height: 1.35;
}

/* ============================================
   SECTION HEADING ACCENT
   ============================================ */

.intro-text h2,
.apartments h2,
.experiences-section h2,
.house-section h2,
.contact h2 {
  position: relative;
  padding-bottom: 16px;
  margin-bottom: 24px;
}

.intro-text h2::after,
.apartments h2::after,
.experiences-section h2::after,
.house-section h2::after,
.contact h2::after {
  content: "";
  position: absolute;
  bottom: 0;
  left: 0;
  width: 40px;
  height: 2px;
  background: var(--gold-500);
}

.house-section h2 {
  margin-bottom: 32px;
}

.contact h2 {
  margin-bottom: 10px;
}

/* ============================================
   CONTACT CARDS
   ============================================ */

.contact-intro {
  color: var(--ink-muted);
  font-size: 0.95rem;
  margin-bottom: 40px;
  max-width: 560px;
}

.contact-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  max-width: 660px;
}

.contact-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
  padding: 30px 22px;
  text-align: center;
  transition:
    box-shadow 0.2s,
    transform 0.2s;
}

.contact-card:hover {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.contact-card-icon {
  width: 48px;
  height: 48px;
  background: var(--wine-700);
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 0 auto 14px;
}

.contact-card-icon .icon {
  color: #fff;
  font-size: 1.35rem;
}

.contact-card strong {
  display: block;
  font-family: var(--font-sans);
  font-size: 0.72rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.1em;
  color: var(--wine-700);
  margin-bottom: 8px;
}

.contact-card p {
  font-size: 0.875rem;
  color: var(--ink-soft);
  line-height: 1.65;
}

.contact-card a {
  color: var(--wine-700);
  text-decoration: underline;
  text-underline-offset: 2px;
}

/* ============================================
   RESPONSIVE
   ============================================ */

@media (max-width: 1000px) {
  :root {
    --section-y: 64px;
  }

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

@media (max-width: 900px) {
  .intro-layout,
  .apt-content-layout {
    grid-template-columns: 1fr;
    gap: 36px;
  }

  .access-layout {
    grid-template-columns: 1fr;
    gap: 28px;
  }

  .apt-about {
    margin-top: 36px;
    padding: 26px 22px 24px;
  }

  .exp-layout {
    grid-template-columns: 1fr 1fr;
    gap: 28px;
  }

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

  .features-strip-inner {
    flex-wrap: wrap;
  }

  .feat-item {
    flex: 0 0 33.333%;
    border-bottom: 1px solid var(--line);
  }
}

@media (max-width: 768px) {
  .nav {
    display: none;
    position: absolute;
    top: var(--header-h);
    left: 0;
    right: 0;
    background: #fff;
    border-bottom: 2px solid var(--wine-700);
    box-shadow: var(--shadow-md);
    padding: 12px 0;
  }

  .nav.open {
    display: block;
  }

  .nav > ul {
    flex-direction: column;
    gap: 0;
  }

  .nav > ul > li > a {
    height: auto;
    line-height: 1.4;
    padding: 12px 24px;
  }

  .dropdown-menu {
    position: static;
    border: none;
    border-radius: 0;
    box-shadow: none;
    border-left: 3px solid var(--wine-700);
    margin-left: 24px;
    display: none;
  }

  .nav-dropdown.open .dropdown-menu {
    display: block;
  }

  .mobile-menu-toggle {
    display: flex;
  }

  .exp-layout {
    grid-template-columns: 1fr;
    gap: 24px;
  }

  .contact-cards {
    grid-template-columns: repeat(2, 1fr);
    gap: 12px;
  }

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

  .faq-list {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .apt-spec-list {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .apt-equip-list {
    grid-template-columns: 1fr;
  }

  .newsletter-section {
    padding: 52px 0;
  }

  .hero {
    min-height: 62vh;
    padding: 120px 20px 56px;
  }

  .hero-content {
    padding: 0 20px;
  }

  .apt-hero {
    padding: 96px 20px 52px;
  }

  .feat-item {
    flex: 0 0 50%;
    border-bottom: 1px solid var(--line);
  }

  .footer-inner {
    grid-template-columns: 1fr;
    gap: 20px;
    padding-bottom: 28px;
  }

  .footer-inner ul a,
  .footer-inner address a {
    display: inline-block;
    padding: 13px 0;
  }

  .footer {
    padding-top: 36px;
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  .footer-bottom {
    padding: 14px 0 calc(14px + env(safe-area-inset-bottom, 0px));
  }
}

@media (max-width: 500px) {
  :root {
    --section-y: 44px;
  }

  .apt-grid {
    grid-template-columns: 1fr;
    gap: 20px;
  }

  .hero {
    min-height: 58vh;
    padding: 104px 16px 44px;
  }

  .hero-content {
    padding: 0 16px;
  }

  .hero-actions .btn {
    flex: 1 1 auto;
  }

  .contact-cards {
    grid-template-columns: 1fr;
  }

  .feat-item {
    flex: 0 0 50%;
  }

  .apt-gallery-thumbs {
    grid-auto-columns: calc((100% - 2 * 8px) / 3);
  }

  .container {
    padding: 0 16px;
  }

  .intro-layout {
    gap: 24px;
  }

  .newsletter-inner {
    gap: 28px;
  }
}

/* Enostolpčne kartice apartmajev postanejo vodoravne, da stran ni predolga */
@media (max-width: 600px) {
  .apt-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .apt-card {
    flex-direction: row;
  }

  .apt-card:hover {
    transform: none;
  }

  .apt-card-img {
    flex: 0 0 128px;
    aspect-ratio: auto;
    align-self: stretch;
  }

  /* slika ne sme določati višine vrstice, sicer pokončne fotke kartico raztegnejo */
  .apt-card-img img {
    position: absolute;
    inset: 0;
  }

  .apt-card-body {
    padding: 14px 16px;
  }

  .apt-card-body h3 {
    font-size: 1.05rem;
  }

  .apt-card-desc {
    display: none;
  }

  .apt-card-badge {
    top: 8px;
    left: 8px;
    font-size: 0.6rem;
    padding: 3px 8px;
  }

  .apt-card-link {
    margin-top: 10px;
  }
}

/* Rezervacija section (Bentral widget) */
.rezervacija-section {
  padding: var(--section-y) 0;
  background: var(--surface-sand);
  border-top: 1px solid var(--line);
}

.rezervacija-section h2 {
  font-size: 1.75rem;
  color: var(--wine-800);
  margin-bottom: 32px;
}
