/* PerEA Luxury Apartments — glavni stilovi */

:root {
  --color-brand: #e61e4d;
  --color-brand-dark: #d70466;
  --color-text: #222222;
  --color-muted: #717171;
  --color-border: #dddddd;
  --color-bg: #ffffff;
  --color-bg-soft: #f7f7f7;
  --shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.08);
  --shadow-md: 0 6px 16px rgba(0, 0, 0, 0.12);
  --shadow-lg: 0 12px 40px rgba(0, 0, 0, 0.18);
  --radius: 12px;
  --radius-lg: 24px;
  --font: "DM Sans", system-ui, -apple-system, sans-serif;
  --header-h: 72px;
  /* Topla, neutralna akcent boja (telefon, e‑pošta, luksuzni tekst) — bez crvenog */
  --color-contact: #3d3830;
  --color-contact-hover: #7a6849;
  --color-contact-icon: #6b5f4c;
}

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

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font);
  font-size: 1rem;
  line-height: 1.5;
  color: var(--color-text);
  background: var(--color-bg);
}

img {
  max-width: 100%;
  height: auto;
  display: block;
}

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

a:hover {
  text-decoration: underline;
}

/* Header */
.site-header {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--color-bg);
  border-bottom: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

.header-inner {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0.55rem 1.25rem;
  min-height: var(--header-h);
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.logo-wrap {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}

.instagram-link {
  display: inline-flex;
  align-items: center;
  gap: 0.45rem;
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 0.625rem;
  font-weight: 600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: #6b6358;
  text-decoration: none;
  margin-left: calc(2px + 0.75rem);
}

.instagram-link:hover {
  color: #a67c32;
  text-decoration: none;
}

.instagram-link__icon {
  flex-shrink: 0;
  opacity: 0.85;
}

.instagram-link--footer {
  margin-left: 0;
  margin-top: 0.65rem;
  font-size: 0.6875rem;
}

.nav-mobile-instagram {
  margin-top: 0.5rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--color-border);
  font-weight: 600;
  color: var(--color-brand);
  text-decoration: none;
}

.nav-mobile-instagram:hover {
  text-decoration: underline;
}

.logo {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  text-decoration: none;
  color: inherit;
}

.logo:hover {
  text-decoration: none;
}

.logo:hover .logo-name {
  color: #0a0a0a;
}

.logo:hover .logo-name-accent {
  filter: brightness(1.08);
}

/* Vertikalna zlatna linija — diskretan luksuzni akcenat */
.logo-rule {
  width: 2px;
  height: 2.25rem;
  border-radius: 1px;
  flex-shrink: 0;
  background: linear-gradient(
    180deg,
    #d4b968 0%,
    #a67c32 45%,
    #8a6a2c 100%
  );
  box-shadow: 0 0 12px rgba(196, 165, 90, 0.35);
}

.logo-text {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.2rem;
  line-height: 1;
}

.logo-name {
  font-family: "Cormorant Garamond", "Times New Roman", Times, serif;
  font-size: clamp(1.3rem, 3.5vw, 1.7rem);
  font-weight: 600;
  letter-spacing: 0.1em;
  color: #141414;
}

.logo-name-accent {
  font-weight: 700;
  letter-spacing: 0.14em;
  background: linear-gradient(
    118deg,
    #7a5c20 0%,
    #c9a962 28%,
    #f0e6c8 42%,
    #c9a962 58%,
    #8b6914 100%
  );
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
}

.logo-line {
  font-family: "Montserrat", system-ui, sans-serif;
  font-size: 0.5625rem;
  font-weight: 500;
  letter-spacing: 0.38em;
  text-transform: uppercase;
  color: #5c564c;
}

@media (max-width: 380px) {
  .logo-line {
    letter-spacing: 0.22em;
    font-size: 0.5rem;
  }

  .logo-rule {
    height: 1.85rem;
  }
}

.nav-desktop {
  display: flex;
  align-items: center;
  gap: 1.75rem;
}

.nav-desktop a {
  font-size: 0.9375rem;
  font-weight: 500;
  color: var(--color-text);
  text-decoration: none;
}

.nav-desktop a:hover {
  color: var(--color-brand);
  text-decoration: none;
}

.nav-cta {
  padding: 0.5rem 1rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
}

.nav-cta:hover {
  box-shadow: var(--shadow-sm);
}

.menu-toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 44px;
  height: 44px;
  padding: 0;
  border: none;
  background: transparent;
  cursor: pointer;
}

.menu-toggle span {
  display: block;
  width: 22px;
  height: 2px;
  background: var(--color-text);
  margin: 0 auto;
}

.nav-mobile {
  display: none;
  flex-direction: column;
  padding: 1rem 1.25rem 1.25rem;
  border-top: 1px solid var(--color-border);
  background: var(--color-bg);
}

.nav-mobile a {
  padding: 0.75rem 0;
  font-weight: 500;
  border-bottom: 1px solid var(--color-bg-soft);
}

@media (max-width: 768px) {
  .site-header .nav-desktop {
    display: none;
  }

  .menu-toggle {
    display: flex;
  }

  .nav-mobile.is-open {
    display: flex;
  }
}

/* Hero */
.hero {
  position: relative;
  min-height: min(85vh, 640px);
  display: flex;
  align-items: flex-end;
  padding: 2rem 1.25rem 3rem;
}

.hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(
      180deg,
      rgba(0, 130, 160, 0.05) 0%,
      rgba(0, 90, 130, 0.12) 42%,
      rgba(0, 55, 85, 0.36) 100%
    ),
    url("https://images.unsplash.com/photo-1507525428034-b723cf961d3e?w=1920&q=85") center 62% / cover no-repeat;
  z-index: 0;
}

.hero-content {
  position: relative;
  z-index: 1;
  max-width: 1200px;
  margin: 0 auto;
  width: 100%;
  color: #fff;
}

.hero-eyebrow {
  font-size: 0.875rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.95;
  margin: 0 0 0.5rem;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 2px 16px rgba(0, 40, 60, 0.35);
}

.hero h1 {
  font-size: clamp(2rem, 5vw, 3.25rem);
  font-weight: 700;
  line-height: 1.15;
  margin: 0 0 0.75rem;
  max-width: 18ch;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 2px 16px rgba(0, 40, 60, 0.35);
}

.hero-sub {
  font-size: 1.125rem;
  max-width: 72ch;
  margin: 0 0 1.25rem;
  opacity: 0.95;
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.35), 0 2px 16px rgba(0, 40, 60, 0.35);
}

.hero-cta {
  display: inline-block;
  padding: 0.85rem 1.75rem;
  border-radius: var(--radius);
  background: #fff;
  color: var(--color-text);
  font-weight: 600;
  font-size: 0.9375rem;
  text-decoration: none;
  box-shadow: var(--shadow-lg);
}

.hero-cta:hover {
  text-decoration: none;
  filter: brightness(1.03);
}

.hero-cta:focus-visible {
  outline: 2px solid #fff;
  outline-offset: 3px;
}

/* Sections */
.section {
  padding: 4rem 1.25rem;
}

.section-alt {
  background: var(--color-bg-soft);
}

/* Kontakt: drugačija, topla pozadina u odnosu na belu sekciju sa recenzijama */
.contact-section.section-alt {
  background: linear-gradient(165deg, #f3efe8 0%, #e8e2d8 45%, #f0ebe3 100%);
  border-top: 1px solid rgba(0, 0, 0, 0.06);
}

.contact-section__container {
  max-width: 1120px;
}

.contact-section__grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
  gap: 2.5rem;
  align-items: center;
}

.contact-section__media {
  border-radius: var(--radius);
  overflow: hidden;
  box-shadow: var(--shadow-md);
  border: 1px solid rgba(0, 0, 0, 0.08);
}

.contact-section__img {
  display: block;
  width: 100%;
  height: auto;
  vertical-align: middle;
  aspect-ratio: 16 / 10;
  object-fit: cover;
}

.contact-section__body {
  text-align: left;
}

.contact-section__title {
  margin: 0 0 0.65rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.75rem, 3.5vw, 2.25rem);
  font-weight: 600;
  color: var(--color-text);
  line-height: 1.2;
}

.contact-section__subtitle {
  margin: 0 0 1.35rem;
  font-size: 1.05rem;
  line-height: 1.6;
  color: var(--color-muted);
  max-width: 36rem;
}

@media (max-width: 900px) {
  .contact-section__grid {
    grid-template-columns: 1fr;
    gap: 1.75rem;
  }

  .contact-section__media {
    max-height: 320px;
  }

  .contact-section__img {
    max-height: 320px;
    aspect-ratio: auto;
  }
}

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

.container.narrow {
  max-width: 560px;
}

.section-head {
  margin-bottom: 2rem;
}

.section-head h2 {
  font-size: clamp(1.5rem, 3vw, 1.75rem);
  margin: 0 0 0.5rem;
}

.section-head p {
  margin: 0;
  color: var(--color-muted);
}

/* Istaknut uvod ispod naslova sekcije (npr. apartmani) */
.section-head .section-head-lead {
  margin-top: 0.35rem;
  max-width: 38rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.2rem, 2.4vw, 1.55rem);
  font-weight: 600;
  font-style: italic;
  line-height: 1.45;
  letter-spacing: 0.02em;
  color: #1a1a1a;
  border-left: 3px solid #b8932a;
  padding-left: 1rem;
  margin-left: 0.05rem;
}

.section-head-note {
  max-width: 46rem;
  margin-top: 0.65rem !important;
  font-size: 0.9375rem;
  line-height: 1.55;
}

.section-head-note__link {
  font-weight: 600;
  color: var(--color-brand);
  text-decoration: none;
}

.section-head-note__link:hover {
  text-decoration: underline;
}

/* Listings */
.listings-grid {
  display: grid;
  gap: 1.5rem;
}

/* Početna: četiri apartmana u jednom redu */
.listings-grid--home {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

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

@media (max-width: 680px) {
  .listings-grid--home {
    grid-template-columns: 1fr;
  }
}

/* Stranica „Svi apartmani“: tri kolone */
.listings-grid--catalog {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

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

@media (max-width: 680px) {
  .listings-grid--catalog {
    grid-template-columns: 1fr;
  }
}

.listing-card {
  position: relative;
  border-radius: var(--radius);
  overflow: hidden;
  background: var(--color-bg);
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  transition: box-shadow 0.2s, transform 0.2s;
  text-align: left;
}

.listing-card:hover,
.listing-card:focus-within {
  box-shadow: var(--shadow-md);
  transform: translateY(-2px);
}

.listing-card__main {
  display: block;
  color: inherit;
  text-decoration: none;
}

.listing-card__main:hover {
  text-decoration: none;
}

.listing-card__main:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: -2px;
}

.listing-card--modal {
  cursor: pointer;
}

.listing-card--modal:focus-visible {
  outline: 2px solid var(--color-brand);
  outline-offset: 2px;
}

.listing-image-wrap {
  position: relative;
  aspect-ratio: 20 / 15;
  overflow: hidden;
}

.listing-image-wrap img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.listing-badge {
  position: absolute;
  top: 0.75rem;
  left: 0.75rem;
  background: rgba(255, 255, 255, 0.95);
  padding: 0.25rem 0.6rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 600;
}

.listing-favorite {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 2;
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.9);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.1rem;
  line-height: 1;
  transition: transform 0.15s;
}

.listing-favorite:hover {
  transform: scale(1.08);
}

.listing-favorite.is-saved {
  color: var(--color-brand);
}

.listing-body {
  padding: 1rem 1rem 1.15rem;
}

.listing-title-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.5rem;
}

.listing-title {
  font-weight: 600;
  font-size: 1rem;
  margin: 0;
}

.listing-rating {
  display: flex;
  align-items: center;
  gap: 0.2rem;
  font-size: 0.875rem;
  white-space: nowrap;
}

.listing-meta {
  margin: 0.35rem 0 0;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.listing-price {
  margin: 0.65rem 0 0;
  font-size: 0.9375rem;
}

.listing-price strong {
  font-weight: 600;
}

/* Lokacija */
.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 2.5rem;
  align-items: start;
}

@media (max-width: 768px) {
  .two-col {
    grid-template-columns: 1fr;
  }
}

.lead {
  font-size: 1.05rem;
  color: var(--color-muted);
}

.feature-list {
  margin: 1.25rem 0 0;
  padding: 0;
  list-style: none;
}

.feature-list li {
  padding: 0.65rem 0;
  border-bottom: 1px solid var(--color-border);
}

.map-card {
  background: var(--color-bg);
  border-radius: var(--radius);
  padding: 1rem;
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
}

/* Kartica lokacije: utisci gostiju + adresa */
.map-guest-spotlight {
  margin-top: 0;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--color-border);
  background: linear-gradient(165deg, #fdfcfa 0%, #f5f0e8 100%);
  box-shadow: var(--shadow-sm);
}

.map-guest-spotlight__photo {
  position: relative;
  aspect-ratio: 16 / 10;
  overflow: hidden;
}

.map-guest-spotlight__photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  display: block;
}

.map-guest-spotlight__photo-caption {
  margin: 0;
  padding: 0.55rem 0.85rem;
  font-size: 0.8125rem;
  line-height: 1.45;
  text-align: center;
  color: var(--color-muted);
  background: rgba(255, 255, 255, 0.92);
  border-top: 1px solid var(--color-border);
}

.map-guest-spotlight__instagram-handle {
  font-weight: 600;
  color: var(--color-brand);
  text-decoration: none;
}

.map-guest-spotlight__instagram-handle:hover {
  text-decoration: underline;
}

.map-guest-spotlight__content {
  padding: 1.15rem 1.2rem 1.25rem;
}

.map-guest-spotlight__title {
  margin: 0 0 0.65rem;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.15rem, 2.8vw, 1.4rem);
  font-weight: 600;
  line-height: 1.3;
  color: #1a1a1a;
}

.map-guest-spotlight__cta {
  margin: 0 0 0.85rem;
  font-size: 0.875rem;
}

.map-guest-spotlight__link {
  font-weight: 600;
  color: var(--color-brand);
  text-decoration: none;
}

.map-guest-spotlight__link:hover {
  text-decoration: underline;
}

.map-guest-spotlight__maps {
  margin: 0 0 0.85rem;
  font-size: 0.8125rem;
  font-weight: 500;
}

.map-guest-spotlight__maps-link {
  color: var(--color-muted);
  text-decoration: none;
}

.map-guest-spotlight__maps-link:hover {
  color: var(--color-brand);
  text-decoration: underline;
}

.map-guest-spotlight__maps-sep {
  margin: 0 0.4rem;
  color: var(--color-border);
  font-weight: 400;
}

.map-guest-spotlight__instagram-row {
  margin: 0 0 0.85rem;
}

.map-guest-spotlight__instagram-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.5rem 0.85rem;
  border-radius: 999px;
  border: 1px solid var(--color-border);
  background: var(--color-bg);
  font-size: 0.75rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  color: var(--color-text);
  text-decoration: none;
  box-shadow: var(--shadow-sm);
}

.map-guest-spotlight__instagram-btn:hover {
  border-color: #c9a962;
  color: #6b5420;
  text-decoration: none;
}

.map-guest-spotlight__instagram-icon {
  flex-shrink: 0;
  opacity: 0.9;
}

.map-guest-spotlight__address {
  margin: 0;
  padding-top: 0.75rem;
  border-top: 1px solid rgba(0, 0, 0, 0.08);
  font-style: normal;
  font-size: 0.875rem;
  line-height: 1.55;
  color: var(--color-muted);
}

.map-guest-spotlight__address-name {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1rem;
  font-weight: 600;
  color: var(--color-text);
  margin-bottom: 0.35rem;
}

.map-guest-spotlight__address-lines {
  display: block;
}

/* Reviews */
.reviews-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 1.25rem;
}

.review-card {
  margin: 0;
  padding: 1.5rem;
  background: var(--color-bg-soft);
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
}

.review-card p {
  margin: 0 0 1rem;
  font-style: italic;
}

.review-card footer {
  font-size: 0.875rem;
  color: var(--color-muted);
}

/* Kontakt — detalji */
.contact-details {
  text-align: left;
  max-width: none;
  margin: 0;
  padding: 1.15rem 1.25rem;
  background: var(--color-bg);
  border: 1px solid var(--color-border);
  border-radius: var(--radius);
  box-shadow: var(--shadow-sm);
}

.contact-details__title {
  margin: 0 0 0.85rem;
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--color-text);
}

.contact-details__list {
  margin: 0;
  padding: 0;
  list-style: none;
}

.contact-details__item {
  display: flex;
  flex-direction: row;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid var(--color-border);
}

.contact-details__icon-wrap {
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  margin-top: 0.15rem;
  color: var(--color-contact-icon);
  background: none;
  border: none;
  border-radius: 0;
}

.contact-details__icon {
  display: block;
}

.contact-details__item-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  min-width: 0;
  flex: 1;
}

.contact-details__item:last-child {
  border-bottom: none;
  padding-bottom: 0;
}

.contact-details__item:first-of-type {
  padding-top: 0;
}

.contact-details__label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--color-muted);
}

.contact-details__value {
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--color-contact);
  text-decoration: none;
  word-break: break-word;
}

.contact-details__value:hover {
  color: var(--color-contact-hover);
  text-decoration: underline;
}

.btn-primary {
  padding: 0.85rem 1.25rem;
  border: none;
  border-radius: var(--radius);
  background: linear-gradient(90deg, var(--color-brand), var(--color-brand-dark));
  color: #fff;
  font-weight: 600;
  font-size: 1rem;
  cursor: pointer;
}

.btn-primary:hover {
  filter: brightness(1.05);
}

a.btn-primary {
  text-decoration: none;
  display: inline-block;
  text-align: center;
  box-sizing: border-box;
}

.modal .btn-primary {
  width: auto;
}

/* Footer */
.site-footer {
  border-top: 1px solid var(--color-border);
  padding: 2rem 1.25rem;
  background: var(--color-bg-soft);
}

.footer-inner {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 1rem;
  align-items: start;
}

.footer-inner p {
  margin: 0.25rem 0 0;
  font-size: 0.875rem;
  color: var(--color-muted);
}

.footer-contact {
  margin: 0.65rem 0 0;
  font-size: 0.875rem;
  line-height: 1.5;
}

.footer-contact__link {
  font-weight: 600;
  color: var(--color-text);
  text-decoration: none;
}

.footer-contact__link:hover {
  color: var(--color-contact-hover);
  text-decoration: underline;
}

.footer-contact__sep {
  margin: 0 0.35rem;
  color: var(--color-muted);
  font-weight: 400;
}

.footer-brand {
  display: block;
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.125rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  color: #1a1a1a;
}

.footer-nav {
  flex-wrap: wrap;
  justify-content: flex-end;
  row-gap: 0.5rem;
}

.footer-copy {
  grid-column: 1 / -1;
  font-size: 0.8125rem;
  color: var(--color-muted);
  margin: 1rem 0 0;
}

/* Modal */
.modal-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: rgba(0, 0, 0, 0.45);
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 2rem 1rem;
  overflow-y: auto;
}

.modal-overlay[hidden] {
  display: none !important;
}

.modal-close {
  position: absolute;
  top: 0.75rem;
  right: 0.75rem;
  z-index: 5;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.95);
  font-size: 1.5rem;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--shadow-sm);
  color: var(--color-text);
}

.modal-gallery {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 0.35rem;
  height: clamp(200px, 34vh, 300px);
  max-height: 320px;
  overflow: hidden;
  background: #111;
  flex-shrink: 0;
}

.modal-gallery img {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  object-fit: cover;
}

.modal-gallery .main-img {
  grid-column: 1;
  grid-row: 1 / -1;
  border-radius: 0;
}

.modal-gallery .side-img:nth-child(2) {
  grid-column: 2;
  grid-row: 1;
}

.modal-gallery .side-img:nth-child(3) {
  grid-column: 2;
  grid-row: 2;
}

.modal {
  position: relative;
  background: var(--color-bg);
  border-radius: var(--radius-lg);
  max-width: 720px;
  width: 100%;
  box-shadow: var(--shadow-lg);
  overflow: hidden;
  margin: auto;
  display: flex;
  flex-direction: column;
  max-height: min(92vh, 900px);
}

.modal-body {
  padding: 1.5rem 1.5rem 2rem;
  flex: 1 1 auto;
  overflow-y: auto;
  min-height: 0;
  background: var(--color-bg);
}

.modal-body h2 {
  margin: 0 0 0.35rem;
  font-size: 1.35rem;
}

.modal-meta {
  margin: 0 0 0.5rem;
  color: var(--color-muted);
  font-size: 0.9375rem;
}

.modal-en-sub {
  margin: 0 0 1rem;
  font-size: 0.875rem;
  font-style: italic;
  color: #6b6560;
  line-height: 1.45;
}

.modal-en-sub[hidden] {
  display: none !important;
}

.modal-desc {
  margin: 0 0 1rem;
}

.modal-amenities {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0 0 1.25rem;
}

.modal-amenities li {
  font-size: 0.8125rem;
  padding: 0.35rem 0.65rem;
  background: var(--color-bg-soft);
  border-radius: 999px;
  border: 1px solid var(--color-border);
}

.modal-price {
  font-size: 1.25rem;
  margin: 0 0 1rem;
}

.modal-price .per-night {
  font-size: 1rem;
  font-weight: 400;
  color: var(--color-muted);
}

.listing-page-link {
  margin: 0.5rem 0 0;
}

.listing-page-link__a {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--color-contact-hover);
  text-decoration: none;
}

.listing-page-link__a:hover {
  text-decoration: underline;
}

@media (max-width: 540px) {
  .modal-gallery {
    display: block;
    height: auto;
    max-height: none;
    overflow: hidden;
  }

  .modal-gallery .main-img {
    grid-column: auto;
    grid-row: auto;
    aspect-ratio: 16 / 10;
    width: 100%;
    height: auto;
    max-height: min(48vh, 320px);
    min-height: 180px;
    object-fit: cover;
  }

  .modal-gallery .side-img {
    display: none;
  }
}

/* Toast */
.toast {
  position: fixed;
  bottom: 1.5rem;
  left: 50%;
  transform: translateX(-50%);
  z-index: 300;
  background: var(--color-text);
  color: #fff;
  padding: 0.75rem 1.25rem;
  border-radius: 999px;
  font-size: 0.9375rem;
  box-shadow: var(--shadow-md);
}

.toast[hidden] {
  display: none !important;
}

/* Stranica pojedinačnog apartmana (v2) */
.apartment-page-main {
  padding-top: 0;
  background: linear-gradient(180deg, #f7f4ef 0%, #fff 18rem);
}

.apartment-back {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
  font-weight: 600;
  color: var(--color-contact-hover);
  text-decoration: none;
}

.apartment-back:hover {
  text-decoration: underline;
}

.apartment-hero-band {
  padding: 1.5rem 1.25rem 2.5rem;
  max-width: 1180px;
  margin: 0 auto;
}

.apartment-showcase {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.75rem;
  align-items: start;
}

@media (min-width: 900px) {
  .apartment-showcase {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.15fr);
    gap: 2.5rem;
    align-items: center;
  }
}

.apartment-showcase__text h1 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(2rem, 4.5vw, 2.85rem);
  font-weight: 600;
  margin: 0 0 0.5rem;
  line-height: 1.15;
  color: #1c1917;
}

.apartment-showcase__text .apartment-tagline {
  margin: 0 0 0.35rem;
  font-size: 1.05rem;
  color: var(--color-muted);
  line-height: 1.5;
}

.apartment-showcase__text .apartment-tagline-en {
  margin: 0 0 1.25rem;
  font-size: 0.9rem;
  font-style: italic;
  color: #8a8174;
}

.apartment-meta-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

.apartment-meta-pills li {
  font-size: 0.78rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.4rem 0.75rem;
  border-radius: 999px;
  background: #fff;
  border: 1px solid rgba(0, 0, 0, 0.08);
  color: #4a453c;
}

.apartment-feature-frame {
  position: relative;
  border-radius: var(--radius-lg);
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.12);
  border: 1px solid rgba(0, 0, 0, 0.06);
  background: #e8e4dc;
}

.apartment-lightbox-trigger {
  display: block;
  width: 100%;
  padding: 0;
  margin: 0;
  border: none;
  cursor: zoom-in;
  background: transparent;
  line-height: 0;
}

.apartment-lightbox-trigger:focus-visible {
  outline: 3px solid var(--color-contact-hover);
  outline-offset: 3px;
}

.apartment-feature-frame .apartment-lightbox-trigger img {
  width: 100%;
  height: auto;
  max-height: min(72vh, 640px);
  object-fit: cover;
  display: block;
  vertical-align: middle;
}

.apartment-zoom-hint {
  position: absolute;
  bottom: 0.75rem;
  right: 0.75rem;
  padding: 0.35rem 0.65rem;
  font-size: 0.7rem;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #fff;
  background: rgba(0, 0, 0, 0.55);
  border-radius: 6px;
  pointer-events: none;
}

.apartment-thumbs-section {
  padding: 0 1.25rem 3rem;
  max-width: 1180px;
  margin: 0 auto;
}

.apartment-thumbs-section .apartment-thumbs-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.apartment-thumbs-section h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.5rem;
  font-weight: 600;
  margin: 0;
}

.apartment-thumbs-hint {
  font-size: 0.8125rem;
  color: var(--color-muted);
}

.apartment-thumbs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 0.65rem;
}

@media (min-width: 600px) {
  .apartment-thumbs-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.apartment-thumb-btn {
  position: relative;
  padding: 0;
  border: none;
  border-radius: 10px;
  overflow: hidden;
  cursor: zoom-in;
  aspect-ratio: 4 / 3;
  box-shadow: var(--shadow-sm);
  border: 1px solid var(--color-border);
  background: #eee;
}

.apartment-thumb-btn:focus-visible {
  outline: 2px solid var(--color-contact-hover);
  outline-offset: 2px;
}

.apartment-thumb-btn img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  transition: transform 0.25s ease;
}

.apartment-thumb-btn:hover img {
  transform: scale(1.04);
}

.apartment-about-v2 {
  padding: 2.5rem 1.25rem;
  max-width: 680px;
  margin: 0 auto;
  border-top: 1px solid var(--color-border);
}

.apartment-about-v2 h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.65rem;
  margin: 0 0 1rem;
}

.apartment-about-v2 p {
  margin: 0 0 1rem;
  line-height: 1.7;
  color: var(--color-text);
}

.apartment-amenities-v2 {
  padding: 2rem 1.25rem 2.5rem;
  max-width: 34rem;
  margin: 0 auto;
  background: linear-gradient(180deg, transparent, rgba(247, 244, 239, 0.6));
  border-radius: var(--radius-lg) var(--radius-lg) 0 0;
}

.apartment-amenities-v2 h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: 1.5rem;
  margin: 0 0 1.25rem;
  text-align: center;
}

.apartment-amenities-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (min-width: 420px) {
  .apartment-amenities-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

.apartment-amenity-card {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-sm);
  font-size: 0.9rem;
  font-weight: 500;
  color: var(--color-text);
}

.apartment-amenity-card__icon {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: linear-gradient(145deg, #f3efe8, #e8e2d8);
  color: var(--color-contact-icon);
}

.apartment-amenity-card__icon svg {
  width: 22px;
  height: 22px;
}

.apartment-pricing-v2 {
  padding: 2.25rem 1.25rem 3rem;
  max-width: 56rem;
  margin: 0 auto;
  border-top: 1px solid var(--color-border);
}

.apartment-pricing-v2 h2 {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.65rem, 3vw, 1.85rem);
  margin: 0 0 0.65rem;
  text-align: center;
}

.apartment-pricing-intro {
  margin: 0 auto 1.35rem;
  max-width: 32rem;
  text-align: center;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--color-muted);
}

.apartment-pricing-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 0.75rem;
  list-style: none;
  padding: 0;
  margin: 0;
}

@media (min-width: 640px) {
  .apartment-pricing-grid {
    grid-template-columns: repeat(4, 1fr);
  }
}

.apartment-pricing-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  padding: 1.35rem 0.85rem;
  background: #fff;
  border-radius: var(--radius);
  border: 1px solid var(--color-border);
  box-shadow: var(--shadow-md);
  text-align: center;
}

.apartment-pricing-month {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--color-muted);
}

.apartment-pricing-value {
  font-family: "Cormorant Garamond", Georgia, serif;
  font-size: clamp(1.5rem, 3.2vw, 1.95rem);
  font-weight: 600;
  color: #1c1917;
  white-space: nowrap;
}

.apartment-pricing-foot {
  margin: 1.25rem auto 0;
  max-width: 32rem;
  text-align: center;
  font-size: 0.8125rem;
  line-height: 1.55;
  color: var(--color-muted);
}

.apartment-cta-bar {
  padding: 2.5rem 1.25rem 3.5rem;
  background: #2c2825;
  color: #f5f2ed;
  text-align: center;
}

.apartment-cta-bar p {
  margin: 0 0 1.25rem;
  color: rgba(255, 255, 255, 0.75);
  max-width: 34rem;
  margin-left: auto;
  margin-right: auto;
  line-height: 1.6;
}

.apartment-cta-primary {
  display: inline-block;
  padding: 0.9rem 1.85rem;
  border-radius: var(--radius);
  background: linear-gradient(90deg, #ff385c, #e61e4d);
  color: #fff !important;
  font-weight: 600;
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.apartment-cta-primary:hover {
  filter: brightness(1.08);
  text-decoration: none;
}

.apartment-cta-secondary {
  display: block;
  margin-top: 1.1rem;
  font-weight: 600;
  color: #e8d5b0;
  text-decoration: none;
}

.apartment-cta-secondary:hover {
  text-decoration: underline;
  color: #fff;
}

/* Lightbox (fullscreen slike) */
.photo-lightbox {
  position: fixed;
  inset: 0;
  z-index: 500;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 3rem 1rem 1rem;
  background: rgba(10, 9, 8, 0.94);
  box-sizing: border-box;
}

.photo-lightbox[hidden] {
  display: none !important;
}

.photo-lightbox__img {
  max-width: 100%;
  max-height: calc(100vh - 5rem);
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 4px;
  box-shadow: 0 8px 40px rgba(0, 0, 0, 0.5);
}

.photo-lightbox__close,
.photo-lightbox__prev,
.photo-lightbox__next {
  position: absolute;
  z-index: 2;
  border: none;
  cursor: pointer;
  color: #fff;
  background: rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  width: 44px;
  height: 44px;
  font-size: 1.5rem;
  line-height: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s;
}

.photo-lightbox__close:hover,
.photo-lightbox__prev:hover,
.photo-lightbox__next:hover {
  background: rgba(255, 255, 255, 0.22);
}

.photo-lightbox__close {
  top: 0.75rem;
  right: 0.75rem;
  font-size: 1.75rem;
}

.photo-lightbox__prev {
  left: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.photo-lightbox__next {
  right: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
}

.photo-lightbox__counter {
  position: absolute;
  bottom: 0.75rem;
  left: 50%;
  transform: translateX(-50%);
  font-size: 0.8125rem;
  color: rgba(255, 255, 255, 0.7);
}

@media (max-width: 540px) {
  .photo-lightbox__prev,
  .photo-lightbox__next {
    width: 38px;
    height: 38px;
    font-size: 1.25rem;
  }
}
