/* =============================================
   APARTMANI KAŽUN – Shared Stylesheet
   Container-Layout: zentriert, max. 1200px
   ============================================= */

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

:root {
  --olive:        #7a7a4a;
  --olive-light:  #a9a96a;
  --cream:        #f7f4ee;
  --warm-white:   #fdfcf8;
  --sand:         #e8e0cc;
  --dark:         #2a2a22;
  --text:         #3d3d30;
  --accent:       #5c7a5c;
  --max-width:    1200px;
  --gutter:       40px;
}

html { scroll-behavior: smooth; }

body {
  font-family: 'Jost', sans-serif;
  color: var(--text);
  background: var(--warm-white);
  font-weight: 300;
}

/* ═══════════════════════════════════
   THE CONTAINER – the core pattern
   Wraps content, centers it, limits width
   ═══════════════════════════════════ */
.container {
  max-width: var(--max-width);
  margin-left: auto;
  margin-right: auto;
  padding-left: var(--gutter);
  padding-right: var(--gutter);
  width: 100%;
}

/* ── TYPOGRAPHY ── */
h1, h2, h3, h4 {
  font-family: 'Cormorant Garamond', serif;
  font-weight: 300;
  line-height: 1.15;
}

/* ── NAVIGATION ── */
nav {
  position: fixed; top: 0; left: 0; right: 0;
  z-index: 100;
  background: rgba(42,42,34,0.92);
  backdrop-filter: blur(10px);
  transition: background 0.3s;
  border-bottom: 1px solid rgba(255,255,255,0.06);
}
nav.scrolled { background: rgba(26,26,20,0.98); }

.nav-inner {
  max-width: var(--max-width);
  margin: 0 auto;
  padding: 0 var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 68px;
}

.nav-logo {
  font-family: 'Cormorant Garamond', serif;
  font-size: 1.25rem; font-weight: 400;
  color: #fff; letter-spacing: 0.12em;
  text-decoration: none; white-space: nowrap; flex-shrink: 0;
}

.nav-links { display: flex; gap: 28px; list-style: none; align-items: center; }
.nav-links a {
  color: rgba(255,255,255,0.78);
  text-decoration: none; font-size: 0.68rem;
  letter-spacing: 0.16em; text-transform: uppercase;
  font-weight: 400; transition: color 0.2s;
  white-space: nowrap; padding: 4px 0;
}
.nav-links a:hover { color: #fff; }
.nav-links a.active { color: #fff; border-bottom: 1px solid var(--olive-light); }

.nav-burger {
  display: none; flex-direction: column;
  gap: 5px; cursor: pointer; padding: 4px;
}
.nav-burger span { width: 24px; height: 1.5px; background: #fff; display: block; }

.nav-mobile {
  display: none; background: rgba(26,26,20,0.98);
  border-top: 1px solid rgba(255,255,255,0.08);
}
.nav-mobile.open { display: block; }
.nav-mobile a {
  display: block; color: rgba(255,255,255,0.78); text-decoration: none;
  font-size: 0.8rem; letter-spacing: 0.14em; text-transform: uppercase;
  padding: 13px var(--gutter); border-bottom: 1px solid rgba(255,255,255,0.06);
}
.nav-mobile a:hover { color: #fff; background: rgba(255,255,255,0.04); }

/* ── SECTIONS ── */
.section      { padding-top: 84px;  padding-bottom: 84px;  }
.section-sm   { padding-top: 52px;  padding-bottom: 52px;  }
.section-xs   { padding-top: 32px;  padding-bottom: 32px;  }

/* Section label + title helpers */
.section-label {
  font-size: 0.62rem; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--olive);
  margin-bottom: 13px; display: block;
}
.label-light { color: var(--olive-light); }

.section-title {
  font-size: clamp(1.85rem, 3.2vw, 2.75rem);
  color: var(--dark); margin-bottom: 32px;
}
.title-light { color: #fff; }
.title-center { text-align: center; }

/* ── PAGE HERO (subpages) ── */
.page-hero { background: var(--dark); color: #fff; }
.page-hero .container { padding-top: 128px; padding-bottom: 68px; }
.page-hero-label {
  font-size: 0.62rem; letter-spacing: 0.28em;
  text-transform: uppercase; color: var(--olive-light); margin-bottom: 13px;
}
.page-hero h1 { font-size: clamp(2.2rem, 4.5vw, 3.6rem); font-weight: 300; }
.page-hero p { margin-top: 14px; max-width: 540px; font-size: 0.95rem; line-height: 1.82; opacity: 0.72; }

/* ── BUTTONS ── */
.btn {
  display: inline-block; padding: 12px 30px;
  border: 1px solid currentColor;
  text-decoration: none; font-size: 0.68rem;
  letter-spacing: 0.2em; text-transform: uppercase;
  transition: background 0.22s, color 0.22s;
  font-family: 'Jost', sans-serif; font-weight: 400;
  cursor: pointer; background: transparent; line-height: 1;
}
.btn-dark  { color: var(--dark); border-color: var(--dark); }
.btn-dark:hover  { background: var(--dark); color: #fff; }
.btn-light { color: #fff; border-color: rgba(255,255,255,0.6); }
.btn-light:hover { background: #fff; color: var(--dark); }
.btn-olive { background: var(--olive); color: #fff; border-color: var(--olive); }
.btn-olive:hover { background: var(--olive-light); border-color: var(--olive-light); }

/* ── QUICK LINKS ── */
.quick-links { background: var(--dark); border-bottom: 1px solid rgba(255,255,255,0.06); }
.ql-grid {
  display: grid; grid-template-columns: repeat(4,1fr);
  border-left: 1px solid rgba(255,255,255,0.07);
}
.ql-item {
  padding: 28px 26px;
  border-right: 1px solid rgba(255,255,255,0.07);
  text-decoration: none; color: #fff; transition: background 0.22s;
}
.ql-item:hover { background: var(--olive); }
.ql-label { font-size: 0.58rem; letter-spacing: 0.2em; text-transform: uppercase; opacity: 0.45; margin-bottom: 5px; }
.ql-title { font-family: 'Cormorant Garamond', serif; font-size: 1.08rem; font-weight: 400; }

/* ── INFO BADGES ── */
.info-badges { background: var(--cream); border-top: 1px solid var(--sand); border-bottom: 1px solid var(--sand); }
.badge-grid {
  display: grid; grid-template-columns: repeat(6,1fr);
  border-left: 1px solid var(--sand);
}
.info-badge {
  padding: 20px 16px; text-align: center;
  border-right: 1px solid var(--sand);
}
.info-badge-label { font-size: 0.55rem; letter-spacing: 0.17em; text-transform: uppercase; color: var(--olive); margin-bottom: 4px; }
.info-badge-value { font-family: 'Cormorant Garamond', serif; font-size: 1.02rem; color: var(--dark); }

/* ── TWO-COL SPLIT ── */
.split       { display: grid; grid-template-columns: 1fr 1fr;   gap: 68px; align-items: center; }
.split-3-2   { display: grid; grid-template-columns: 3fr 2fr;   gap: 68px; align-items: center; }
.split-2-3   { display: grid; grid-template-columns: 2fr 3fr;   gap: 68px; align-items: center; }

/* ── IMAGE ASPECT RATIOS ── */
.img-wrap { overflow: hidden; }
.img-wrap img { width: 100%; height: 100%; object-fit: cover; display: block; }
.r-4-5  { aspect-ratio: 4/5; }
.r-4-3  { aspect-ratio: 4/3; }
.r-3-2  { aspect-ratio: 3/2; }
.r-16-9 { aspect-ratio: 16/9; }
.r-1    { aspect-ratio: 1; }

/* ── APARTMENT CARDS ── */
.apts-grid {
  display: grid; grid-template-columns: repeat(2,1fr);
  gap: 24px; margin-top: 44px;
}
.apt-card { background: var(--cream); overflow: hidden; }
.apt-card .img-wrap img { transition: transform 0.55s ease; }
.apt-card:hover .img-wrap img { transform: scale(1.04); }
.apt-card-body { padding: 22px 26px 28px; }
.apt-card-persons { font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--olive); margin-bottom: 6px; }
.apt-card-name { font-family: 'Cormorant Garamond', serif; font-size: 1.45rem; font-weight: 400; color: var(--dark); margin-bottom: 10px; }
.apt-card-desc { font-size: 0.87rem; line-height: 1.72; margin-bottom: 13px; }
.apt-card-price { font-family: 'Cormorant Garamond', serif; font-size: 1.3rem; color: var(--dark); margin-bottom: 16px; }
.apt-card-price span { font-family: 'Jost', sans-serif; font-size: 0.73rem; font-weight: 300; }
.btn-row { display: flex; gap: 10px; flex-wrap: wrap; }

/* ── APARTMENT ROW (apartmani.html) ── */
.apt-row { display: grid; grid-template-columns: 1fr 1fr; border-bottom: 1px solid var(--sand); }
.apt-row .img-wrap img { min-height: 340px; transition: transform 0.55s ease; }
.apt-row:hover .img-wrap img { transform: scale(1.03); }
.apt-row-info { background: var(--cream); padding: 52px 44px; display: flex; flex-direction: column; justify-content: center; }
.apt-row:nth-child(even) .img-wrap { order: 2; }
.apt-row:nth-child(even) .apt-row-info { order: 1; }
.apt-row-num { font-size: 3.5rem; font-family: 'Cormorant Garamond', serif; font-weight: 300; color: var(--sand); line-height: 1; margin-bottom: 4px; }
.apt-row-name { font-family: 'Cormorant Garamond', serif; font-size: 1.85rem; font-weight: 400; color: var(--dark); margin-bottom: 5px; }
.apt-row-persons { font-size: 0.62rem; letter-spacing: 0.18em; text-transform: uppercase; color: var(--olive); margin-bottom: 16px; }
.apt-row-desc { font-size: 0.9rem; line-height: 1.8; margin-bottom: 18px; }
.apt-row-price { font-family: 'Cormorant Garamond', serif; font-size: 1.65rem; color: var(--dark); margin-bottom: 20px; }
.apt-row-price span { font-family: 'Jost', sans-serif; font-size: 0.76rem; font-weight: 300; }

/* ── FEATURE LIST ── */
.feature-list { list-style: none; }
.feature-list li { padding: 10px 0; border-bottom: 1px solid var(--sand); font-size: 0.88rem; display: flex; gap: 10px; align-items: baseline; }
.feature-list li:last-child { border-bottom: none; }
.feature-list li::before { content: '·'; color: var(--olive); font-size: 1.2rem; line-height: 1; }

/* ── SPEC GRID ── */
.spec-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; background: var(--sand); margin-top: 24px; }
.spec-item { background: var(--cream); padding: 13px 15px; }
.spec-label { font-size: 0.56rem; letter-spacing: 0.15em; text-transform: uppercase; color: var(--olive); margin-bottom: 3px; }
.spec-value { font-size: 0.87rem; color: var(--dark); }

/* ── GALLERY ── */
.gallery   { display: grid; grid-template-columns: repeat(3,1fr); gap: 4px; }
.gallery-4 { display: grid; grid-template-columns: repeat(4,1fr); gap: 4px; }
.gallery img, .gallery-4 img {
  width: 100%; aspect-ratio: 3/2; object-fit: cover;
  display: block; cursor: pointer; transition: opacity 0.25s;
}
.gallery img:hover, .gallery-4 img:hover { opacity: 0.85; }

/* ── LIGHTBOX ── */
.lightbox { display: none; position: fixed; inset: 0; background: rgba(0,0,0,0.94); z-index: 1000; align-items: center; justify-content: center; }
.lightbox.open { display: flex; }
.lightbox img { max-width: 90vw; max-height: 88vh; object-fit: contain; }
.lightbox-close { position: absolute; top: 18px; right: 24px; color: #fff; font-size: 2rem; cursor: pointer; background: none; border: none; }
.lightbox-prev, .lightbox-next { position: absolute; top: 50%; transform: translateY(-50%); color: #fff; font-size: 2rem; cursor: pointer; background: rgba(255,255,255,0.09); border: none; padding: 12px 18px; transition: background 0.2s; }
.lightbox-prev:hover, .lightbox-next:hover { background: rgba(255,255,255,0.18); }
.lightbox-prev { left: 10px; }
.lightbox-next { right: 10px; }

/* ── SIDEBAR ── */
.sidebar-card { background: var(--cream); padding: 30px 28px; border: 1px solid var(--sand); position: sticky; top: 84px; }
.sidebar-price { font-family: 'Cormorant Garamond', serif; font-size: 2.2rem; color: var(--dark); margin-bottom: 2px; }
.sidebar-price span { font-family: 'Jost', sans-serif; font-size: 0.76rem; font-weight: 300; }
.sidebar-divider { border: none; border-top: 1px solid var(--sand); margin: 18px 0; }
.sidebar-info { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; margin-bottom: 18px; }
.si-item { background: #fff; padding: 10px 12px; }
.si-label { font-size: 0.55rem; letter-spacing: 0.14em; text-transform: uppercase; color: var(--olive); margin-bottom: 3px; }
.si-value { font-size: 0.84rem; color: var(--dark); }

/* ── APT DETAIL ── */
.apt-detail-grid { display: grid; grid-template-columns: 1fr 360px; gap: 52px; align-items: start; }

/* ── APT NAV ── */
.apt-nav { background: var(--dark); }
.apt-nav .container { display: flex; justify-content: space-between; padding-top: 17px; padding-bottom: 17px; }
.apt-nav a { color: rgba(255,255,255,0.6); text-decoration: none; font-size: 0.67rem; letter-spacing: 0.14em; text-transform: uppercase; transition: color 0.2s; }
.apt-nav a:hover { color: #fff; }

/* ── CONTACT FORM ── */
.form-row { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 15px; }
.form-group { display: flex; flex-direction: column; gap: 7px; margin-bottom: 15px; }
.form-label { font-size: 0.6rem; letter-spacing: 0.18em; text-transform: uppercase; }
.form-label-light { color: rgba(255,255,255,0.5); }
.form-label-dark  { color: var(--olive); }
.form-input { padding: 11px 14px; outline: none; font-family: 'Jost', sans-serif; font-size: 0.88rem; font-weight: 300; width: 100%; transition: border-color 0.2s; -webkit-appearance: none; }
.form-input-dark {
  background: rgba(255,255,255,0.07);
  border: 1px solid rgba(255,255,255,0.17);
  color: #fff;
}
.form-input-dark:focus  { border-color: var(--olive-light); }
.form-input-dark::placeholder { color: rgba(255,255,255,0.4); }
.form-input-dark option { background: #2a2a22; color: #fff; }
.form-input-light { background: #fff; border: 1px solid var(--sand); color: var(--dark); }
.form-input-light:focus { border-color: var(--olive); }
textarea.form-input { resize: vertical; min-height: 118px; }
.form-success { display: none; font-size: 0.88rem; margin-top: 12px; }
.form-success-dark  { color: var(--olive-light); }
.form-success-light { color: var(--accent); }

/* ── ACTIVITIES ── */
.act-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 48px; margin-top: 36px; }
.act-cols ul { list-style: none; }
.act-cols li {
  padding: 10px 0;
  border-bottom: 1px solid rgba(255,255,255,0.15);
  font-size: 0.9rem;
  color: rgba(255,255,255,0.88);
}
.act-cols li a { color: var(--olive-light); text-decoration: none; font-weight: 400; }
.act-cols li a:hover { color: #fff; }

/* ── TEAM ── */
.qualities { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.quality { padding: 5px 12px; border: 1px solid var(--olive); font-size: 0.67rem; letter-spacing: 0.11em; color: var(--olive); text-transform: uppercase; }

/* ── LOCATION ── */
.loc-list { list-style: none; }
.loc-list li { padding: 11px 0; border-bottom: 1px solid var(--sand); font-size: 0.88rem; line-height: 1.6; }
.loc-list li strong { display: block; font-size: 0.57rem; letter-spacing: 0.17em; text-transform: uppercase; color: var(--olive); margin-bottom: 2px; font-family: 'Jost', sans-serif; font-weight: 400; }

/* ── FOOTER ── */
.footer { background: #1a1a14; }
.footer-inner { padding-top: 54px; padding-bottom: 32px; }
.footer-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 44px; margin-bottom: 40px; }
.footer-col h4 { font-size: 0.58rem; letter-spacing: 0.24em; text-transform: uppercase; color: rgba(255,255,255,0.75); margin-bottom: 15px; font-family: 'Jost', sans-serif; font-weight: 400; }
.footer-col p, .footer-col a { font-size: 0.92rem; line-height: 2.1; color: #fff; text-decoration: none; display: block; }
.footer-col a:hover { color: var(--olive-light); }
.footer-social { display: flex; gap: 9px; margin-top: 13px; }
.footer-social a { width: 33px; height: 33px; border: 1px solid rgba(255,255,255,0.5); display: flex; align-items: center; justify-content: center; font-size: 0.68rem; color: #fff; text-decoration: none; transition: 0.2s; }
.footer-social a:hover { border-color: var(--olive-light); color: var(--olive-light); }
.footer-bottom {
  border-top: 1px solid rgba(255,255,255,0.15);
  padding-top: 20px;
  display: flex; justify-content: space-between; align-items: center;
  flex-wrap: wrap; gap: 8px;
  font-size: 0.78rem; color: rgba(255,255,255,0.75);
}
.footer-bottom a { color: rgba(255,255,255,0.75); text-decoration: none; }
.footer-bottom a:hover { color: #fff; }
.footer-madeby { font-size: 0.72rem; color: rgba(255,255,255,0.55); text-align: center; padding-bottom: 20px; }
.footer-madeby a { color: rgba(255,255,255,0.55); text-decoration: none; transition: color 0.2s; }
.footer-madeby a:hover { color: var(--olive-light); }

/* ═══════════════════════════════
   RESPONSIVE
   ═══════════════════════════════ */
@media (max-width: 1260px) {
  :root { --gutter: 28px; }
}
@media (max-width: 900px) {
  .ql-grid { grid-template-columns: 1fr 1fr; }
  .badge-grid { grid-template-columns: repeat(3,1fr); }
  .split, .split-3-2, .split-2-3 { grid-template-columns: 1fr; gap: 32px; }
  .apts-grid { grid-template-columns: 1fr; }
  .act-cols { grid-template-columns: 1fr; gap: 0; }
  .apt-row { grid-template-columns: 1fr; }
  .apt-row:nth-child(even) .img-wrap { order: 0; }
  .apt-row:nth-child(even) .apt-row-info { order: 0; }
  .apt-row .img-wrap img { min-height: 220px; }
  .apt-row-info { padding: 28px 20px; }
  .apt-detail-grid { grid-template-columns: 1fr; }
  .sidebar-card { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .form-row { grid-template-columns: 1fr; }
  .gallery   { grid-template-columns: repeat(2,1fr); }
  .gallery-4 { grid-template-columns: repeat(2,1fr); }
  .section { padding-top: 56px; padding-bottom: 56px; }
  .apt-nav .container { flex-wrap: wrap; gap: 8px; }
  .team-inner { grid-template-columns: 1fr; }
  .kazun-letters { flex-direction: row; border-left: none; border-top: 2px solid var(--sand); padding-left: 0; padding-top: 12px; margin-top: 24px; gap: 12px; }
}
@media (max-width: 600px) {
  :root { --gutter: 16px; }
  .ql-grid { grid-template-columns: 1fr; }
  .badge-grid { grid-template-columns: repeat(2,1fr); }
  .footer-grid { grid-template-columns: 1fr; }
  .footer-bottom { flex-direction: column; gap: 8px; text-align: center; }
  .spec-grid { grid-template-columns: 1fr; }
  .gallery   { grid-template-columns: 1fr; }
  .gallery-4 { grid-template-columns: 1fr 1fr; }
}
