@import url('https://fonts.googleapis.com/css2?family=Cormorant+Garamond:wght@400;500;600;700&family=DM+Sans:wght@300;400;500;600&display=swap');

:root {
  --navy:    #0C3547;
  --sea:     #1B6CA8;
  --sea-l:   #3B8FD0;
  --accent:  #C17F3E;
  --accent-l:#E8D49E;
  --cream:   #F8F3EC;
  --sand:    #EDE5D3;
  --white:   #FFFFFF;
  --text:    #1A2632;
  --muted:   #607080;
  --border:  #DDD5C4;
  --green:   #0D7A5F;
  --radius:  12px;
  --shadow:  0 2px 16px rgba(0,0,0,0.08);
  --shadow-lg: 0 8px 40px rgba(0,0,0,0.14);
}

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

html { scroll-behavior: smooth; }

body {
  font-family: 'DM Sans', sans-serif;
  background: var(--white);
  color: var(--text);
  line-height: 1.6;
  overflow-x: hidden;
}

/* ─── TYPOGRAPHY ─────────────────────────────────── */
h1, h2, h3 {
  font-family: 'Cormorant Garamond', serif;
  line-height: 1.2;
  color: var(--navy);
}

/* ─── NAV ────────────────────────────────────────── */
.nav {
  position: sticky; top: 0; z-index: 100;
  background: var(--navy);
  padding: 0 32px;
  display: flex; align-items: center; justify-content: space-between;
  height: 64px;
  box-shadow: 0 2px 12px rgba(0,0,0,0.2);
}
.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.4rem; font-weight: 600;
  color: var(--accent-l);
  text-decoration: none;
  letter-spacing: 0.02em;
}
.nav-logo span { font-weight: 300; color: rgba(255,255,255,0.6); font-size: 0.9rem; display: block; letter-spacing: 0.1em; }
.nav-links { display: flex; align-items: center; gap: 24px; }
.nav-link { color: rgba(255,255,255,0.7); text-decoration: none; font-size: 0.875rem; transition: color 0.15s; }
.nav-link:hover { color: #fff; }
.nav-btn {
  background: var(--accent);
  color: #fff;
  padding: 8px 18px; border-radius: 6px;
  font-size: 0.875rem; font-weight: 500;
  text-decoration: none; transition: background 0.15s;
  border: none; cursor: pointer;
}
.nav-btn:hover { background: #a3682e; }

/* ─── HERO ───────────────────────────────────────── */
.hero {
  min-height: 540px;
  background:
    linear-gradient(to bottom, rgba(12,53,71,0.55) 0%, rgba(12,53,71,0.3) 50%, rgba(12,53,71,0.7) 100%),
    url('../images/sukosan-palac.jpg') center/cover no-repeat;
  display: flex; flex-direction: column;
  align-items: center; justify-content: center;
  text-align: center;
  padding: 60px 20px 80px;
  position: relative;
}

.hero-badge {
  display: inline-flex; align-items: center; gap: 6px;
  background: rgba(255,255,255,0.15);
  backdrop-filter: blur(8px);
  border: 1px solid rgba(255,255,255,0.25);
  color: var(--accent-l);
  padding: 6px 16px; border-radius: 20px;
  font-size: 0.78rem; letter-spacing: 0.1em; text-transform: uppercase;
  margin-bottom: 18px;
}
.hero h1 {
  font-size: clamp(2.2rem, 5vw, 3.6rem);
  color: #fff;
  font-weight: 600;
  text-shadow: 0 2px 12px rgba(0,0,0,0.3);
  margin-bottom: 8px;
}
.hero-sub {
  color: rgba(255,255,255,0.8);
  font-size: 1rem; margin-bottom: 36px;
  display: flex; align-items: center; gap: 6px; justify-content: center;
}

.search-box {
  background: rgba(255,255,255,0.97);
  backdrop-filter: blur(12px);
  border-radius: var(--radius);
  padding: 24px 28px;
  display: flex; gap: 14px; align-items: flex-end; flex-wrap: wrap;
  box-shadow: var(--shadow-lg);
  max-width: 780px; width: 100%;
}
.search-field { display: flex; flex-direction: column; gap: 5px; flex: 1; min-width: 140px; }
.search-label { font-size: 0.7rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.search-input {
  padding: 10px 14px;
  border: 1.5px solid var(--border);
  border-radius: 8px; font-size: 0.9rem;
  font-family: 'DM Sans', sans-serif;
  color: var(--text); background: #fff;
  outline: none; transition: border-color 0.15s;
  width: 100%;
}
.search-input:focus { border-color: var(--sea); }
.search-btn {
  background: var(--navy); color: #fff;
  padding: 11px 24px; border-radius: 8px;
  font-size: 0.9rem; font-weight: 500; font-family: 'DM Sans', sans-serif;
  border: none; cursor: pointer; white-space: nowrap;
  transition: background 0.15s;
  display: flex; align-items: center; gap: 8px;
}
.search-btn:hover { background: #0a2b3a; }

/* ─── PERKS BAR ──────────────────────────────────── */
.perks {
  background: var(--navy);
  padding: 14px 32px;
  display: flex; gap: 0; justify-content: center; flex-wrap: wrap;
}
.perk {
  display: flex; align-items: center; gap: 8px;
  color: rgba(255,255,255,0.75); font-size: 0.83rem;
  padding: 8px 20px;
  border-right: 1px solid rgba(255,255,255,0.12);
}
.perk:last-child { border-right: none; }
.perk svg { width: 16px; height: 16px; opacity: 0.8; flex-shrink: 0; }

/* ─── SECTIONS ───────────────────────────────────── */
.section { padding: 64px 32px; max-width: 1100px; margin: 0 auto; }
.section-sm { padding: 40px 32px; }

.section-label {
  font-size: 0.72rem; font-weight: 600;
  letter-spacing: 0.15em; text-transform: uppercase;
  color: var(--accent); margin-bottom: 8px;
}
.section-title { font-size: clamp(1.6rem, 3vw, 2.2rem); color: var(--navy); margin-bottom: 12px; }
.section-desc { color: var(--muted); max-width: 580px; line-height: 1.7; }

/* ─── APARTMENT CARDS ────────────────────────────── */
.apt-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 24px; margin-top: 36px; }

.apt-card {
  background: var(--white); border-radius: var(--radius);
  border: 1px solid var(--border);
  overflow: hidden; transition: box-shadow 0.2s, transform 0.2s;
  display: flex; flex-direction: column;
}
.apt-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); }

.apt-card-img {
  height: 200px;
  position: relative; overflow: hidden;
}
.apt-card-img img { width: 100%; height: 100%; object-fit: cover; }
.apt-card-img-placeholder {
  width: 100%; height: 100%;
  display: flex; align-items: center; justify-content: center;
  font-size: 3rem;
}
.apt-floor-badge {
  position: absolute; top: 12px; left: 12px;
  background: rgba(12,53,71,0.85); color: var(--accent-l);
  font-size: 0.7rem; font-weight: 600; letter-spacing: 0.08em;
  padding: 4px 10px; border-radius: 20px; text-transform: uppercase;
}
.apt-avail-badge {
  position: absolute; top: 12px; right: 12px;
  padding: 4px 10px; border-radius: 20px;
  font-size: 0.7rem; font-weight: 600;
}
.badge-avail { background: #D1FAE5; color: #065F46; }
.badge-taken { background: #FEE2E2; color: #991B1B; }
.badge-check { background: rgba(255,255,255,0.9); color: var(--muted); }

.apt-card-body { padding: 20px; flex: 1; display: flex; flex-direction: column; }
.apt-card-name { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; font-weight: 600; color: var(--navy); margin-bottom: 4px; }
.apt-card-desc { font-size: 0.83rem; color: var(--muted); line-height: 1.6; margin-bottom: 14px; }

.apt-meta { display: flex; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; }
.apt-meta-item { display: flex; align-items: center; gap: 4px; font-size: 0.8rem; color: var(--muted); }
.apt-meta-item svg { width: 14px; height: 14px; }

.apt-amenities { display: flex; gap: 5px; flex-wrap: wrap; margin-bottom: 16px; }
.amenity-tag { background: var(--cream); color: var(--navy); font-size: 0.72rem; padding: 3px 9px; border-radius: 20px; font-weight: 500; }

.apt-card-footer { display: flex; align-items: center; justify-content: space-between; margin-top: auto; padding-top: 14px; border-top: 1px solid var(--sand); }
.apt-price { font-family: 'Cormorant Garamond', serif; font-size: 1.5rem; font-weight: 600; color: var(--navy); }
.apt-price span { font-family: 'DM Sans', sans-serif; font-size: 0.78rem; color: var(--muted); font-weight: 400; }
.apt-book-btn {
  background: var(--accent); color: #fff;
  padding: 9px 20px; border-radius: 8px;
  font-size: 0.875rem; font-weight: 500;
  border: none; cursor: pointer; transition: background 0.15s;
  font-family: 'DM Sans', sans-serif;
}
.apt-book-btn:hover { background: #a3682e; }
.apt-book-btn:disabled { background: var(--border); cursor: not-allowed; color: var(--muted); }

/* ─── GALLERY STRIP ──────────────────────────────── */
.gallery-bg { background: var(--cream); padding: 48px 0; }
.gallery-grid { display: grid; grid-template-columns: 2fr 1fr 1fr; grid-template-rows: 240px 200px; gap: 8px; max-width: 1100px; margin: 24px auto 0; padding: 0 32px; }
.gallery-item { border-radius: 8px; overflow: hidden; }
.gallery-item:first-child { grid-row: span 2; }
.gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.gallery-item:hover img { transform: scale(1.03); }

/* ─── INFO STRIP ─────────────────────────────────── */
.info-strip { background: var(--navy); padding: 48px 32px; }
.info-strip-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 32px; }
.info-block {}
.info-block-label { font-size: 0.7rem; letter-spacing: 0.12em; text-transform: uppercase; color: rgba(255,255,255,0.45); margin-bottom: 6px; }
.info-block-value { font-size: 1rem; color: #fff; font-weight: 500; }
.info-block-sub { font-size: 0.82rem; color: rgba(255,255,255,0.55); margin-top: 2px; }

/* ─── MODAL ──────────────────────────────────────── */
.modal-backdrop {
  position: fixed; inset: 0; z-index: 200;
  background: rgba(0,0,0,0.5); backdrop-filter: blur(4px);
  display: none; align-items: center; justify-content: center;
  padding: 20px;
}
.modal-backdrop.open { display: flex; }

.modal {
  background: #fff; border-radius: var(--radius);
  width: 100%; max-width: 560px;
  max-height: 90vh; overflow-y: auto;
  box-shadow: var(--shadow-lg);
  animation: popIn 0.22s ease;
}
@keyframes popIn { from { transform: scale(0.95); opacity: 0; } to { transform: scale(1); opacity: 1; } }

.modal-header {
  padding: 24px 28px 16px;
  border-bottom: 1px solid var(--sand);
  display: flex; align-items: center; justify-content: space-between;
  background: var(--navy);
}
.modal-header h2 { font-size: 1.2rem; font-weight: 600; color: var(--accent-l); margin: 0; }
.modal-header p { font-size: 0.8rem; color: rgba(255,255,255,0.55); margin-top: 2px; }
.modal-close {
  width: 32px; height: 32px; border-radius: 50%;
  background: rgba(255,255,255,0.1); border: none; cursor: pointer;
  color: #fff; font-size: 1rem; display: flex; align-items: center; justify-content: center;
  flex-shrink: 0; transition: background 0.15s;
}
.modal-close:hover { background: rgba(255,255,255,0.2); }

.modal-body { padding: 24px 28px; }
.modal-footer { padding: 16px 28px 24px; border-top: 1px solid var(--sand); display: flex; gap: 10px; justify-content: flex-end; }

.apt-summary {
  display: flex; align-items: center; gap: 14px;
  background: var(--cream); border-radius: 8px;
  padding: 12px 16px; margin-bottom: 20px;
}
.apt-summary-dot { width: 12px; height: 12px; border-radius: 50%; flex-shrink: 0; }
.apt-summary-name { font-weight: 600; font-size: 0.95rem; color: var(--navy); }
.apt-summary-sub { font-size: 0.8rem; color: var(--muted); }
.apt-summary-price { margin-left: auto; text-align: right; }
.apt-summary-price .amount { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; font-weight: 600; color: var(--navy); }
.apt-summary-price .per { font-size: 0.75rem; color: var(--muted); }

/* ─── FORMS ──────────────────────────────────────── */
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.form-full { grid-column: 1 / -1; }
.fg { display: flex; flex-direction: column; gap: 5px; }
.fg label { font-size: 0.72rem; font-weight: 600; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; }
.fg input, .fg select, .fg textarea {
  padding: 10px 14px;
  border: 1.5px solid var(--border); border-radius: 8px;
  font-size: 0.9rem; font-family: 'DM Sans', sans-serif;
  color: var(--text); background: #fff; outline: none;
  transition: border-color 0.15s; width: 100%;
}
.fg input:focus, .fg select:focus { border-color: var(--sea); }
.fg .hint { font-size: 0.75rem; color: var(--muted); }
.price-preview {
  background: var(--cream); border-radius: 8px; padding: 12px 16px;
  margin-top: 4px; font-size: 0.85rem; color: var(--navy);
  display: none;
}
.price-preview.show { display: block; }
.price-preview strong { font-size: 1.2rem; font-family: 'Cormorant Garamond', serif; }
.error-msg { color: #B91C1C; font-size: 0.82rem; margin-top: 8px; display: none; }

/* ─── BUTTONS ────────────────────────────────────── */
.btn { padding: 10px 22px; border-radius: 8px; font-size: 0.9rem; font-weight: 500; font-family: 'DM Sans', sans-serif; cursor: pointer; border: none; display: inline-flex; align-items: center; gap: 8px; transition: all 0.15s; }
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: #0a2b3a; }
.btn-accent { background: var(--accent); color: #fff; }
.btn-accent:hover { background: #a3682e; }
.btn-ghost { background: transparent; color: var(--muted); border: 1.5px solid var(--border); }
.btn-ghost:hover { background: var(--cream); }
.btn:disabled { opacity: 0.6; cursor: not-allowed; }

/* ─── SUCCESS STATE ──────────────────────────────── */
.success-panel { text-align: center; padding: 16px 0; }
.success-icon { width: 64px; height: 64px; background: #D1FAE5; border-radius: 50%; display: flex; align-items: center; justify-content: center; margin: 0 auto 16px; }
.success-icon svg { width: 32px; height: 32px; color: #065F46; }
.success-panel h3 { font-size: 1.4rem; color: var(--navy); margin-bottom: 8px; }
.success-panel p { color: var(--muted); font-size: 0.9rem; margin-bottom: 4px; }
.res-number { display: inline-block; background: var(--cream); border-radius: 8px; padding: 6px 18px; font-size: 0.9rem; font-weight: 600; color: var(--navy); margin: 12px 0; }

/* ─── FOOTER ─────────────────────────────────────── */
footer {
  background: var(--navy); color: rgba(255,255,255,0.65);
  padding: 48px 32px 32px;
}
.footer-inner { max-width: 1100px; margin: 0 auto; display: grid; grid-template-columns: 2fr 1fr 1fr; gap: 40px; }
footer h3 { font-family: 'Cormorant Garamond', serif; font-size: 1.2rem; color: var(--accent-l); margin-bottom: 12px; }
footer p, footer a { font-size: 0.85rem; line-height: 1.8; color: rgba(255,255,255,0.6); text-decoration: none; }
footer a:hover { color: var(--accent-l); }
.footer-divider { border: none; border-top: 1px solid rgba(255,255,255,0.1); margin: 28px 0 18px; }
.footer-bottom { max-width: 1100px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.footer-bottom p { font-size: 0.78rem; }
.footer-admin-link { font-size: 0.75rem; color: rgba(255,255,255,0.25) !important; }

/* ─── TOAST ──────────────────────────────────────── */
.toast-wrap { position: fixed; top: 80px; right: 20px; z-index: 300; display: flex; flex-direction: column; gap: 8px; }
.toast { padding: 12px 18px; border-radius: 8px; font-size: 0.875rem; font-weight: 500; color: #fff; animation: slideIn 0.3s ease; max-width: 320px; }
.toast-success { background: var(--green); }
.toast-error { background: #DC2626; }
@keyframes slideIn { from { transform: translateX(20px); opacity: 0; } to { transform: translateX(0); opacity: 1; } }

/* ─── RESPONSIVE ─────────────────────────────────── */
@media (max-width: 768px) {
  .nav { padding: 0 16px; }
  .nav-links .nav-link { display: none; }
  .hero { min-height: 400px; }
  .search-box { padding: 16px; }
  .section { padding: 40px 16px; }
  .form-grid { grid-template-columns: 1fr; }
  .form-full { grid-column: auto; }
  .gallery-grid { grid-template-columns: 1fr 1fr; grid-template-rows: auto; }
  .gallery-item:first-child { grid-row: auto; grid-column: span 2; }
  .footer-inner { grid-template-columns: 1fr; gap: 24px; }
  .perks { justify-content: flex-start; overflow-x: auto; flex-wrap: nowrap; padding: 8px 16px; }
  .perk { flex-shrink: 0; }
}

/* ─── LIGHTBOX ───────────────────────────────────── */
.lightbox {
  position: fixed; inset: 0; z-index: 400;
  background: rgba(10,20,28,0.94);
  display: none; align-items: center; justify-content: center;
  padding: 40px;
}
.lightbox.open { display: flex; }
.lightbox img {
  max-width: 90vw; max-height: 86vh;
  border-radius: 8px; object-fit: contain;
  box-shadow: 0 8px 60px rgba(0,0,0,0.5);
  animation: popIn 0.2s ease;
}
.lightbox-close {
  position: absolute; top: 20px; right: 24px;
  width: 44px; height: 44px; border-radius: 50%;
  background: rgba(255,255,255,0.12); border: none; cursor: pointer;
  color: #fff; font-size: 1.3rem; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.lightbox-close:hover { background: rgba(255,255,255,0.25); }
.lightbox-nav {
  position: absolute; top: 50%; transform: translateY(-50%);
  width: 52px; height: 52px; border-radius: 50%;
  background: rgba(255,255,255,0.12); border: none; cursor: pointer;
  color: #fff; font-size: 2rem; line-height: 1; display: flex; align-items: center; justify-content: center;
  transition: background 0.15s;
}
.lightbox-nav:hover { background: rgba(255,255,255,0.25); }
.lightbox-prev { left: 20px; }
.lightbox-next { right: 20px; }
.lightbox-counter {
  position: absolute; bottom: 24px; left: 50%; transform: translateX(-50%);
  color: rgba(255,255,255,0.7); font-size: 0.85rem;
  background: rgba(0,0,0,0.4); padding: 5px 14px; border-radius: 20px;
}
.gallery-item { cursor: pointer; }

/* Gumb za galeriju na kartici */
.apt-gallery-btn {
  display: inline-flex; align-items: center; gap: 5px;
  background: rgba(255,255,255,0.92); color: var(--navy);
  border: none; cursor: pointer;
  position: absolute; bottom: 12px; right: 12px;
  padding: 5px 12px; border-radius: 20px;
  font-size: 0.74rem; font-weight: 600; font-family: 'DM Sans', sans-serif;
  transition: background 0.15s;
}
.apt-gallery-btn:hover { background: #fff; }
.apt-gallery-btn svg { width: 13px; height: 13px; }

@media (max-width: 768px) {
  .lightbox { padding: 16px; }
  .lightbox-nav { width: 42px; height: 42px; font-size: 1.5rem; }
}

/* ─── NAČIN PLAĆANJA ─────────────────────────────── */
.pay-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.pay-option {
  display: flex; align-items: center; gap: 10px;
  padding: 12px 14px; border: 1.5px solid var(--border);
  border-radius: 8px; cursor: pointer; transition: all 0.15s;
  background: #fff;
}
.pay-option:hover { border-color: var(--sea); }
.pay-option.selected { border-color: var(--sea); background: #F0F7FF; }
.pay-option input { display: none; }
.pay-icon { font-size: 1.3rem; }
.pay-text { font-size: 0.875rem; font-weight: 500; color: var(--text); }

/* Razrada avansa u price preview */
.advance-breakdown { margin-top: 10px; border-top: 1px dashed var(--border); padding-top: 10px; }
.advance-row { display: flex; justify-content: space-between; font-size: 0.85rem; padding: 3px 0; }
.advance-row.accent { color: var(--accent); font-weight: 700; }
.advance-row.muted { color: var(--muted); }
.advance-note { font-size: 0.78rem; color: var(--muted); margin-top: 8px; line-height: 1.5; }

/* ─── JEZIČNI PREKIDAČ ───────────────────────────── */
.lang-switch { position: relative; }
.lang-btn {
  background: rgba(255,255,255,0.1); border: 1px solid rgba(255,255,255,0.2);
  color: #fff; padding: 7px 14px; border-radius: 6px;
  font-size: 0.83rem; cursor: pointer; font-family: 'DM Sans', sans-serif;
  display: flex; align-items: center; gap: 6px; transition: background 0.15s;
}
.lang-btn:hover { background: rgba(255,255,255,0.2); }
.lang-menu {
  position: absolute; top: calc(100% + 6px); right: 0;
  background: #fff; border-radius: 8px; box-shadow: var(--shadow-lg);
  padding: 6px; min-width: 160px; display: none; z-index: 200;
}
.lang-menu.open { display: block; }
.lang-opt {
  display: block; width: 100%; text-align: left;
  padding: 8px 12px; border: none; background: none; cursor: pointer;
  font-size: 0.85rem; color: var(--text); border-radius: 6px;
  font-family: 'DM Sans', sans-serif;
}
.lang-opt:hover { background: var(--cream); }

@media (max-width: 768px) {
  .lang-switch { display: block; }
  .lang-btn { padding: 6px 10px; font-size: 0.78rem; }
}

/* ─── IZBOR IZNOSA (avans/cijeli) ────────────────── */
#amount-choice .pay-option { flex-direction: column; align-items: flex-start; text-align: left; }
#amount-choice .pay-text { font-size: 0.82rem; line-height: 1.5; }
#amount-choice .pay-text strong { font-size: 0.95rem; color: var(--navy); }

/* ─── SADRŽAJI ───────────────────────────────────── */
.facilities-grid {
  max-width: 900px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 14px;
}
.facility {
  display: flex; align-items: center; gap: 12px;
  background: #fff; border: 1px solid var(--border); border-radius: 10px;
  padding: 14px 16px; font-size: 0.9rem; color: var(--text);
}
.facility-ic { font-size: 1.3rem; line-height: 1; }

/* ─── U BLIZINI ──────────────────────────────────── */
.nearby-grid {
  max-width: 1000px; margin: 0 auto;
  display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 32px;
}
.nearby-col h4 {
  font-size: 0.78rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--sea); margin-bottom: 12px; font-weight: 700;
}
.nearby-col ul { list-style: none; padding: 0; margin: 0; }
.nearby-col li {
  display: flex; justify-content: space-between; align-items: baseline; gap: 12px;
  padding: 7px 0; border-bottom: 1px solid var(--border); font-size: 0.88rem;
}
.nearby-col li span { color: var(--text); }
.nearby-col li em { color: var(--muted); font-style: normal; font-size: 0.8rem; white-space: nowrap; }

/* ─── DETALJI APARTMANA (modal) ──────────────────── */
.apt-card { cursor: pointer; }
.amenity-more { background: var(--sea) !important; color: #fff !important; }
.details-box {
  background: #fff; border-radius: var(--radius); max-width: 560px; width: 100%;
  max-height: 90vh; overflow-y: auto; position: relative;
  animation: popIn 0.2s ease;
}
.details-close {
  position: absolute; top: 12px; right: 12px; z-index: 2;
  width: 36px; height: 36px; border-radius: 50%; border: none; cursor: pointer;
  background: rgba(0,0,0,0.45); color: #fff; font-size: 1rem;
}
.details-img { width: 100%; height: 240px; object-fit: cover; display: block; border-radius: var(--radius) var(--radius) 0 0; }
.details-body { padding: 24px; }
.details-name { font-family: 'Cormorant Garamond', serif; font-size: 1.7rem; color: var(--navy); margin: 0 0 4px; }
.details-sub { font-size: 0.85rem; color: var(--muted); margin-bottom: 14px; }
.details-desc { font-size: 0.92rem; line-height: 1.7; color: var(--text); margin-bottom: 20px; }
.details-fac-label {
  font-size: 0.75rem; text-transform: uppercase; letter-spacing: 0.08em;
  color: var(--sea); font-weight: 700; margin-bottom: 12px;
}
.details-amenities {
  display: grid; grid-template-columns: 1fr 1fr; gap: 8px 16px; margin-bottom: 22px;
}
.det-amenity { font-size: 0.88rem; color: var(--text); display: flex; align-items: center; gap: 8px; }
.det-check { color: var(--sea); font-weight: 700; }
.details-footer { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; border-top: 1px solid var(--border); padding-top: 16px; }
.details-price { font-size: 1.2rem; font-weight: 700; color: var(--navy); }
@media (max-width: 520px) {
  .details-amenities { grid-template-columns: 1fr; }
  .details-img { height: 180px; }
}
