﻿*, *::before, *::after { box-sizing: border-box; margin: 0; padding: 0; }

:root {
  --cream: #f7f3ee;
  --dark: #1a1814;
  --stone: #8a7f72;
  --gold: #b89a6a;
  --gold-light: #d4b88a;
  --border: #e0d8ce;
  --white: #ffffff;
  --green: #b4f55f;
  --green-dark: #47691a;
}

html { scroll-behavior: smooth; }

body {
  font-family: sans-serif;
  background: var(--cream);
  color: var(--dark);
  min-height: 100vh;
}

/* ── NAV ── */
nav {
  position: sticky;
  top: 0;
  z-index: 100;
  background: var(--white);
  border-bottom: 1px solid var(--border);
  display: flex;
  align-items: center;
  justify-content: center;
  height: 68px;

}

.nav-vrstica {
    width: 1400px;
    display: flex;
    align-items: normal;
    justify-content: space-between;
    padding: 0 2rem;

}

.nav-logo {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  text-decoration: none;
}

.nav-logo-mark {
  width: 36px;
  height: 36px;
  background: var(--dark);
  border-radius: 6px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.nav-logo-mark svg { width: 20px; height: 20px; fill: var(--gold); }

.nav-logo-text {
  font-family: sans-serif;
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--dark);
  letter-spacing: 0.02em;
}

.nav-links {
  display: flex;
  gap: 0.25rem;
  list-style: none;
}

.nav-links a {
  text-decoration: none;
  font-size: 0.85rem;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--stone);
  padding: 0.5rem 1rem;
  border-radius: 6px;
  transition: color 0.2s, background 0.2s;
}

.nav-links a:hover {
  color: var(--dark);
  background: var(--cream);
}

.nav-links a.active {
  color: var(--dark);
  background: var(--cream);
}

.nav-burger {
  display: none;
  flex-direction: column;
  gap: 5px;
  cursor: pointer;
  padding: 4px;
}

.nav-burger span {
  display: block;
  width: 24px;
  height: 2px;
  background: var(--dark);
  border-radius: 2px;
  transition: transform 0.3s, opacity 0.3s;
}

/* ── MAIN LAYOUT ── */
main {
  max-width: 1400px;
  margin: 0 auto;
  padding: 1.5rem 2rem 4rem;
}

.property-grid {
  display: grid;
  grid-template-columns: 3fr 2fr;
  gap: 2rem;
  align-items: start;
}

/* ── LEFT: IMAGES ── */


.img-main {
  width: 100%;
  background: transparent;
  border-radius: 12px;
  overflow: hidden;
  position: relative;
  margin-bottom: 0.75rem;
}

.img-main img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.img-label {
  position: absolute;
  bottom: 12px;
  left: 12px;
  background: rgba(26,24,20,0.75);
  backdrop-filter: blur(6px);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  padding: 5px 10px;
  border-radius: 4px;
}


/* Bottom row: Tloris nadstropja (wider) + Orientacija (smaller) */
.img-row {
  display: grid;
  grid-template-columns: 10fr 3fr;
  gap: 0.75rem;
}

.img-small {
  background: #ccc8c0;
  border-radius: 10px;
  overflow: hidden;
  position: relative;
}

.img-small img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.img-small.img-square {
  aspect-ratio: 1/1;
}

/* ── RIGHT: DETAILS ── */
.details-col {
  position: sticky;
  bottom: 0;
}

.prop-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 1.2rem;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--green-dark);
  background: var(--green);
  padding: 10px 20px;
  border-radius: 50px;
}

.prop-status[data-status="rezervirano"] {
  color: #7a5c00;
  background: #f5dc00;
}

.prop-status[data-status="prodano"] {
  color: #5e0606;
  background: #e85d5d;
}

.prop-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  margin: 0.25rem;
}

.prop-name {
  font-family: sans-serif;
  font-size: 2rem;
  font-weight: 700;
  line-height: 1.2;
  color: var(--dark);
  margin-bottom: 0;
}

.prop-location {
  font-size: 0.9rem;
  color: var(--stone);
  margin-left: 0.25rem;
  margin-bottom: 1rem;
  display: flex;
  align-items: center;
  gap: 5px;
}

.prop-location svg { width: 14px; height: 14px; fill: var(--stone); flex-shrink: 0; }

/* Info pills */
.info-pills {
  display: flex;
  gap: 0.5rem;
  margin-bottom: 1rem;
}

.pill {
  display: flex;
  align-items: center;
  gap: 6px;
  background: var(--white);
  border: 1px solid var(--dark);
  border-radius: 10px;
  padding: 0.5rem 0.9rem;
  font-size: 1rem;
  font-weight: 700;
  color: var(--dark);
  flex: 1;
  justify-content: center;
}

/* Tables */
.section-label {
  font-size: 1rem;
  font-weight: 500;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--stone);
  margin-bottom: 0.6rem;
}

table {
  width: 100%;
  border-collapse: separate; /* ← change from collapse to separate */
  border-spacing: 0;         /* ← keep cells tight */
  margin-bottom: 1rem;
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;       /* ← add your desired radius */
  overflow: hidden;
}

th {
  background: #f0ece6;
  text-align: left;
  padding: 0.55rem 0.9rem;
  font-weight: 500;
  font-size: 1.1rem;
  color: var(--dark);
  letter-spacing: 0.05em;
}

.kvadratura {
    text-align: right;
    font-weight: 900;
}

td {
  padding: 0.55rem 0.9rem;
  border-top: 1px solid var(--border);
  color: var(--dark);
}

tr:last-child td { border-bottom: none; }
td:last-child { text-align: right; font-weight: 500; }

/* Totals */
.totals {
  background: var(--white);
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 0.5rem;
  margin-bottom: 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.6rem;
}

.total-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  font-size: 1.1rem;
}

.total-row .label { color: var(--dark); }
.total-row .value { font-weight: 600; color: var(--dark); }

.total-divider {
  height: 1px;
  background: var(--border);
  margin: 0.2rem 0;
}

/* Note */
.prop-note {
  font-size: 1rem;
  color: var(--stone);
  line-height: 1.6;
  padding-top: 0.5rem;
  border-top: 1px solid var(--border);
  display: flex;
  gap: 6px;
}

.prop-note::before {
  content: '*';
  color: var(--gold);
  font-weight: 700;
  flex-shrink: 0;
}

/* ── MOBILE ── */
@media (max-width: 768px) {
  nav { padding: 0 1.25rem; }

  .nav-links { display: none; }
  .nav-links.open {
    display: flex;
    flex-direction: column;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 1rem 1.25rem;
    gap: 0.25rem;
  }

  .nav-burger { display: flex; }

  main { padding: 1.5rem 1rem 3rem; }

  .property-grid {
    grid-template-columns: 1fr;
    gap: 2rem;
  }

  .details-col { position: static; }

  .prop-name { font-size: 1.5rem; }
}