/* =============================================
   KONAK VILA MIRKOVIĆ — Modern CSS (Bootstrap 5)
   ============================================= */

:root {
  --gold:    #b5924c;
  --gold-dk: #8a6b31;
  --dark:    #1a1a1a;
  --mid:     #4a4a4a;
  --light:   #f7f5f1;
  --white:   #ffffff;
  --shadow:  0 4px 20px rgba(0,0,0,0.12);
}

/* ── Base ───────────────────────────────────── */
html, body {
  margin: 0; padding: 0;
  font-family: 'IBM Plex Serif', Georgia, serif;
  color: var(--dark);
  background: var(--light);
}

img { max-width: 100%; }

a { color: inherit; text-decoration: none; }
a:hover { color: var(--gold); }

/* ── Navbar ─────────────────────────────────── */
.vm-navbar {
  background: var(--dark);
  padding: 0 1.5rem;
  position: sticky;
  top: 0;
  z-index: 1000;
  box-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.vm-navbar .navbar-brand {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  color: var(--white);
  font-size: 1.1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.vm-navbar .navbar-brand img {
  height: 52px;
  width: 52px;
  border-radius: 50%;
  object-fit: cover;
  border: 2px solid var(--gold);
}

.vm-navbar .navbar-toggler {
  border-color: var(--gold);
}
.vm-navbar .navbar-toggler-icon {
  filter: invert(1);
}

.vm-navbar .nav-link {
  color: rgba(255,255,255,0.85) !important;
  font-size: 0.95rem;
  padding: 1.2rem 0.9rem !important;
  transition: color 0.2s;
}
.vm-navbar .nav-link:hover,
.vm-navbar .nav-link.active {
  color: var(--gold) !important;
}

.vm-navbar .dropdown-menu {
  background: var(--dark);
  border: 1px solid var(--gold);
  border-radius: 0;
  min-width: 200px;
  margin-top: 0;
}
.vm-navbar .dropdown-menu .dropdown-item {
  color: rgba(255,255,255,0.8);
  font-size: 0.9rem;
  padding: 0.55rem 1.1rem;
  transition: background 0.15s;
}
.vm-navbar .dropdown-menu .dropdown-item:hover {
  background: var(--gold);
  color: var(--white);
}

/* ── Hero (static) ──────────────────────────── */
.vm-hero {
  position: relative;
  height: 580px;
  overflow: hidden;
}

.vm-hero-img {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center;
  transform: scale(1.03);
  transition: transform 8s ease;
}

.vm-hero:hover .vm-hero-img {
  transform: scale(1.0);
}

.vm-hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    160deg,
    rgba(0,0,0,0.62) 0%,
    rgba(0,0,0,0.28) 60%,
    rgba(0,0,0,0.15) 100%
  );
  display: flex;
  align-items: center;
}

.vm-hero-content {
  max-width: 600px;
  padding: 0 2.5rem;
}

.vm-hero-eyebrow {
  color: var(--gold);
  font-size: 0.85rem;
  font-weight: 600;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.6rem;
}

.vm-hero-content h1 {
  color: var(--white);
  font-size: 3rem;
  font-weight: 700;
  line-height: 1.15;
  margin-bottom: 1rem;
  text-shadow: 0 2px 12px rgba(0,0,0,0.4);
}

.vm-hero-sub {
  color: rgba(255,255,255,0.82);
  font-size: 1.05rem;
  line-height: 1.6;
  margin-bottom: 1.8rem;
}

/* ── Section titles ─────────────────────────── */
.vm-section-title {
  text-align: center;
  margin-bottom: 2.5rem;
}
.vm-section-title h2 {
  font-size: 2rem;
  font-weight: 700;
  color: var(--dark);
  position: relative;
  display: inline-block;
  padding-bottom: 0.6rem;
}
.vm-section-title h2::after {
  content: '';
  display: block;
  width: 60px;
  height: 3px;
  background: var(--gold);
  margin: 0.5rem auto 0;
  border-radius: 2px;
}
.vm-section-title p {
  color: var(--mid);
  font-size: 1.05rem;
  max-width: 640px;
  margin: 0.8rem auto 0;
}

/* ── About section (index) ──────────────────── */
.vm-about {
  background: var(--white);
  padding: 4rem 0 3rem;
}

.vm-about-img {
  border-radius: 4px;
  box-shadow: var(--shadow);
  width: 100%;
  height: 340px;
  object-fit: cover;
}

.vm-about-text {
  padding: 1rem 0 0 2rem;
}

.vm-about-text p {
  color: var(--mid);
  line-height: 1.8;
  font-size: 0.97rem;
}

/* ── Apartment cards (index) ─────────────────── */
.vm-apartments {
  padding: 4rem 0;
  background: var(--light);
}

.vm-apt-card {
  background: var(--white);
  border-radius: 6px;
  overflow: hidden;
  box-shadow: var(--shadow);
  transition: transform 0.25s, box-shadow 0.25s;
  height: 100%;
  display: flex;
  flex-direction: column;
}
.vm-apt-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 30px rgba(0,0,0,0.18);
}

.vm-apt-card-img {
  width: 100%;
  height: 220px;
  object-fit: cover;
  display: block;
}

.vm-apt-card-body {
  padding: 1.25rem 1.25rem 1.5rem;
  flex: 1;
  display: flex;
  flex-direction: column;
}

.vm-apt-card-body h3 {
  font-size: 1.2rem;
  font-weight: 700;
  color: var(--dark);
  margin-bottom: 0.6rem;
}

.vm-apt-card-body p {
  color: var(--mid);
  font-size: 0.88rem;
  line-height: 1.65;
  flex: 1;
}

.vm-btn {
  display: inline-block;
  background: var(--gold);
  color: var(--white) !important;
  border: none;
  padding: 0.6rem 1.4rem;
  font-size: 0.88rem;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  border-radius: 3px;
  cursor: pointer;
  transition: background 0.2s, transform 0.15s;
  text-align: center;
  text-decoration: none;
}
.vm-btn:hover {
  background: var(--gold-dk);
  color: var(--white) !important;
  transform: translateY(-1px);
}

/* ── Apartment detail page ───────────────────── */
.vm-apt-hero {
  width: 100%;
  height: 380px;
  object-fit: cover;
  display: block;
}

.vm-apt-detail {
  background: var(--white);
  padding: 3rem 0;
}

.vm-apt-desc-img {
  width: 100%;
  height: 300px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: var(--shadow);
}

.vm-apt-desc-text h1 {
  font-size: 2rem;
  font-weight: 700;
  margin-bottom: 1rem;
  color: var(--dark);
}

.vm-apt-desc-text p {
  color: var(--mid);
  line-height: 1.8;
  font-size: 0.97rem;
}

.vm-contact-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.5rem;
  background: var(--light);
  border-left: 3px solid var(--gold);
  padding: 0.6rem 1rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--dark);
  border-radius: 0 3px 3px 0;
  margin-top: 1rem;
}

/* ── Photo gallery grid ──────────────────────── */
.vm-gallery {
  padding: 3rem 0 4rem;
  background: var(--light);
}

.vm-gallery-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

@media (max-width: 768px) {
  .vm-gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

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

.vm-gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 3px;
  cursor: pointer;
  aspect-ratio: 4/3;
}

.vm-gallery-item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.35s ease;
  display: block;
}

.vm-gallery-item:hover img {
  transform: scale(1.07);
}

.vm-gallery-item::after {
  content: '\f00e';
  font-family: 'Font Awesome 5 Free';
  font-weight: 900;
  color: white;
  font-size: 1.5rem;
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  opacity: 0;
  transition: opacity 0.3s;
}

.vm-gallery-item:hover::after {
  opacity: 1;
}

/* ── Lightbox ────────────────────────────────── */
.vm-lightbox {
  display: none;
  position: fixed;
  z-index: 9999;
  top: 0; left: 0; right: 0; bottom: 0;
  background: rgba(0,0,0,0.92);
  align-items: center;
  justify-content: center;
}

.vm-lightbox.active {
  display: flex;
}

.vm-lightbox-inner {
  position: relative;
  max-width: 88vw;
  max-height: 88vh;
  display: flex;
  align-items: center;
  justify-content: center;
}

.vm-lightbox-inner img {
  max-width: 88vw;
  max-height: 84vh;
  object-fit: contain;
  border-radius: 2px;
  display: block;
}

.vm-lb-close {
  position: fixed;
  top: 1.2rem;
  right: 1.5rem;
  color: white;
  font-size: 2.2rem;
  cursor: pointer;
  line-height: 1;
  z-index: 10000;
  transition: color 0.2s;
}
.vm-lb-close:hover { color: var(--gold); }

.vm-lb-prev,
.vm-lb-next {
  position: fixed;
  top: 50%;
  transform: translateY(-50%);
  color: white;
  font-size: 2rem;
  cursor: pointer;
  padding: 1rem 1.2rem;
  background: rgba(255,255,255,0.1);
  border-radius: 3px;
  transition: background 0.2s;
  z-index: 10000;
  user-select: none;
}
.vm-lb-prev { left: 1rem; }
.vm-lb-next { right: 1rem; }
.vm-lb-prev:hover,
.vm-lb-next:hover { background: rgba(181,146,76,0.6); }

.vm-lb-counter {
  position: fixed;
  bottom: 1.2rem;
  left: 50%;
  transform: translateX(-50%);
  color: rgba(255,255,255,0.7);
  font-size: 0.9rem;
  letter-spacing: 0.05em;
}

/* ── Footer ──────────────────────────────────── */
.vm-footer {
  background: var(--dark);
  color: rgba(255,255,255,0.8);
  padding: 2.8rem 0 1.5rem;
}

.vm-footer-item {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  padding: 0.8rem 1rem;
}

.vm-footer-item i {
  font-size: 1.8rem;
  margin-bottom: 0.6rem;
  color: var(--gold);
  transition: color 0.2s;
}

.vm-footer-item a {
  color: rgba(255,255,255,0.8);
  transition: color 0.2s;
}
.vm-footer-item a:hover { color: var(--gold); }

.vm-footer-item p {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.5;
}

.vm-footer-divider {
  border-color: rgba(255,255,255,0.1);
  margin: 1.8rem 0 1rem;
}

.vm-footer-copy {
  text-align: center;
  font-size: 0.82rem;
  color: rgba(255,255,255,0.4);
}

/* ── Responsive tweaks ───────────────────────── */
@media (max-width: 991px) {
  .vm-hero { height: 420px; }
  .vm-hero-content h1 { font-size: 2.2rem; }
  .vm-about-text { padding: 1.5rem 0 0; }
}

@media (max-width: 575px) {
  .vm-hero { height: 300px; }
  .vm-hero-content h1 { font-size: 1.6rem; }
  .vm-hero-sub { font-size: 0.9rem; }
  .vm-hero-content { padding: 0 1.5rem; }
  .vm-apt-card-img { height: 180px; }
  .vm-apt-hero { height: 220px; }
}
