:root {
  --primary: #0e76a8;
  --primary-light: #e7f3fa;
  --text: #333;
  --bg: #ffffff;
  --muted: #777;
  --border: #dde3ea;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  color: var(--text);
  background: #f3f6fb;
  line-height: 1.6;
}

a {
  color: var(--primary);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.page {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

/* ---------- HEADER + HERO ---------- */

header {
  position: relative;
  overflow: hidden;
  background: rgba(0, 0, 0, 0.35);
  backdrop-filter: blur(6px) saturate(140%);
  color: #fff;
}


.hero-image {
  position: absolute;
  inset: 0;
  background: url("../images/hero-ariston-1920x960.jpg") center/cover no-repeat;
  opacity: 0.9;                 /* ggf. anpassen, wie stark das Bild „durchscheinen“ soll */
  transform: scale(1.0);
  z-index: 0;
}



.hero-overlay {
  position: relative;
  padding: 2.5rem 1.5rem 4rem;
  max-width: 1100px;
  margin: 0 auto;
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
  z-index: 1;
}

.hero-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.hero-subtitle {
  max-width: 480px;
  font-size: 0.95rem;
  opacity: 0.9;
}

.hero-title {
  text-align: right;
  text-shadow: 0 8px 18px rgba(0, 0, 0, 0.4);
}

.hero-title small {
  display: block;
  letter-spacing: 0.17em;
  text-transform: uppercase;
  font-size: 0.75rem;
  opacity: 0.85;
}

.hero-title h1 {
  margin: 0.25rem 0 0;
  font-size: clamp(2.2rem, 3.2vw, 2.8rem);
  letter-spacing: 0.12em;
}

/* Sprachbuttons */

.lang-flags {
  display: flex;
  gap: 0.4rem;
}

.lang-flag {
  display: inline-block;
  padding: 0.25rem 0.55rem;
  border-radius: 6px;
  background: white;
  color: black;
  font-size: 0.65rem;
  font-weight: 600;
  letter-spacing: 0.05em;
  border: 1px solid rgba(255, 255, 255, 0.6);
  cursor: pointer;
  text-decoration: none;
}

/* ---------- LAYOUT ---------- */

.content-wrap {
  flex: 1;
  max-width: 1100px;
  margin: 2rem auto 0;
  padding: 0 1.5rem 3rem;
  display: grid;
  grid-template-columns: 260px minmax(0, 1fr);
  gap: 1.75rem;
}

/* ---------- SIDEBAR ---------- */

.sidebar {
  background: var(--bg);
  border-radius: 1.5rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.12);
  padding: 1.5rem 1.25rem;
  display: flex;
  flex-direction: column;
  gap: 1.75rem;
  position: sticky;
  top: 1.5rem;
  align-self: flex-start;
}

nav {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

nav a {
  display: block;
  padding: 0.6rem 0.8rem;
  border-radius: 999px;
  font-size: 0.9rem;
  border: 1px solid transparent;
  background: #f5f7fb;
  text-align: center;
  font-weight: 500;
  text-decoration: none;
  color: var(--text);
}

nav a:hover {
  background: var(--primary-light);
  border-color: var(--primary);
}

nav a.active {
  background: var(--primary);
  color: #fff;
  border-color: var(--primary);
  box-shadow: 0 10px 24px rgba(14, 118, 168, 0.35);
}

.hotel-card {
  border-radius: 1.25rem;
  border: 1px solid var(--border);
  padding: 1rem 0.9rem;
  background: linear-gradient(135deg, #fff, #f8fbff);
  text-align: center;
  font-size: 0.86rem;
}

.hotel-logo {
  font-weight: 800;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  margin-bottom: 0.35rem;
  font-size: 0.75rem;
  color: var(--primary);
}

.hotel-name {
  font-weight: 600;
  margin-bottom: 0.3rem;
}

.hotel-address {
  color: var(--muted);
}

.sidebar-note {
  font-size: 0.8rem;
  color: var(--muted);
  border-radius: 1rem;
  border: 1px dashed var(--border);
  padding: 0.8rem 0.9rem;
  background: #f9fbff;
}

/* ---------- MAIN ---------- */

main {
  display: flex;
  flex-direction: column;
  gap: 1.5rem;
}

.card {
  background: var(--bg);
  border-radius: 1.5rem;
  padding: 1.5rem 1.5rem 1.3rem;
  box-shadow: 0 18px 40px rgba(15, 23, 42, 0.08);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  margin-bottom: 0.75rem;
}

.card h2 {
  margin: 0;
  font-size: 1.2rem;
}

.card-tag {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.13em;
  color: var(--primary);
  background: var(--primary-light);
  border-radius: 999px;
  padding: 0.2rem 0.75rem;
  white-space: nowrap;
}

.card p {
  margin: 0.35rem 0;
  font-size: 0.95rem;
}

/* Listen / Info-Grid */

.activities-list {
  margin: 0.5rem 0 0;
  padding-left: 1.1rem;
  font-size: 0.95rem;
}

.activities-list li {
  margin-bottom: 0.2rem;
}

.info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 1.1rem;
  margin-top: 0.75rem;
  font-size: 0.95rem;
}

.info-item strong {
  display: block;
  margin-bottom: 0.15rem;
}




/* ---------- SLIDER ---------- */



.slider {
  position: relative;
  width: 100%;
  max-width: 400px;        /* entspricht Bildbreite, kann auch größer sein */
  margin-top: 0.8rem;
  margin-inline: auto;     /* zentriert im Card */
  overflow: hidden;
  border-radius: 1.25rem;
  aspect-ratio: 4 / 3;     /* 400x300 Verhältnis */
}

.slides {
  display: flex;
  height: 100%;
  transition: transform 0.5s ease;
}

.slides img {
  width: 100%;
  height: 100%;
  object-fit: cover;       /* oder contain, wenn nichts abgeschnitten werden soll */
  flex-shrink: 0;          /* jedes Bild behält seine volle Breite */
}

/* Pfeile */

.slide-btn {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.8);
  border: none;
  font-size: 2rem;
  padding: 0 0.6rem;
  border-radius: 0.6rem;
  cursor: pointer;
  color: #333;
  z-index: 10;
}

.slide-btn:hover {
  background: rgba(255, 255, 255, 1);
}

.prev {
  left: 10px;
}

.next {
  right: 10px;
}

/* Dots */

.dots {
  position: absolute;
  bottom: 12px;
  width: 100%;
  display: flex;
  justify-content: center;
  gap: 8px;
  z-index: 10;
}

.dot {
  width: 10px;
  height: 10px;
  background: rgba(255, 255, 255, 0.6);
  border-radius: 50%;
  cursor: pointer;
  transition: all 0.3s ease;
}

.dot.active {
  background: #ffffff;
  transform: scale(1.3);
}





/* Apartment Pricetable – kompaktan izgled, kao „Dodatne osobe“ */

/* wrapper za sve apartmane */


.apartment-grid {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}



/* jedna kartica apartmana */



.apartment-card {
  background: #ffffff; /* Bijela pozadina umjesto transparent */
  border-radius: 1.2rem;
  border: 1px solid rgba(221, 227, 234, 0.7);
  box-shadow: 0 8px 24px rgba(15, 23, 42, 0.06); /* Lagani shadow */
  padding: 1rem 1rem 1.2rem; /* Bolji padding */
  margin-bottom: 0.5rem; /* Smanjite razmak ispod ako treba */
}



/* naslov (Apartment D, d1...) + „kat“ badge */
.apartment-card-header {
  background: #ffffff;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.6rem;
  margin: 0 0 0.25rem;    /* skoro bez „zraka“ ispod headera */
  padding: 0;
}

.apartment-card-header h3 {
  margin: 0 0 0.1rem;
  font-size: 1.05rem;
  color: var(--primary);
}

.apartment-meta {
  margin: 0;
  font-size: 0.85rem;
  color: var(--muted);
}

.apartment-floor {
  font-size: 0.78rem;
  padding: 0.15rem 0.65rem;
  background: var(--primary-light);
  color: var(--primary);
  border-radius: 999px;
  white-space: nowrap;
}

/* Veličina / Spavaće sobe / Osobe / Dodatno – kao male „ćelije“ */
.apartment-details {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.45rem 0.7rem;
  margin: 0.35rem 0 0.8rem;   /* malo iznad i ispod – kompaktno */
}

.apartment-details div {
  background: #f8fbff;
  border: 1px solid var(--border);
  border-radius: 0.7rem;
  padding: 0.55rem 0.7rem;
}

.apartment-details dt {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--primary);
  margin-bottom: 0.1rem;
}

.apartment-details dd {
  margin: 0;
  font-size: 0.9rem;
  font-weight: 600;
  color: var(--text);
}

/* cijene po periodima – stil sličan tablici „Dodatne osobe“ */
.apartment-prices {
  border-top: 1px solid var(--border);
  padding-top: 0.6rem;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.apartment-prices > div {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.9rem;
}

.period-label {
  font-size: 0.78rem;
  padding: 0.1rem 0.55rem;
  background: #e2e8f0;
  color: var(--muted);
  border-radius: 999px;
}

.period-label.highlight {
  background: var(--primary-light);
  color: var(--primary);
}

.price {
  font-weight: 600;
  font-variant-numeric: tabular-nums; /* lijepo poravnati brojevi */
}

/* Mobile: detalji u jednom stupcu */
@media (max-width: 600px) {
  .apartment-details {
    grid-template-columns: 1fr;
  }
}



/* -------- info grid google map" -------- */


.map-wrapper {
  margin-top: 1rem;
  border-radius: 1.2rem;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
}

.map-wrapper iframe {
  display: block;
  width: 100%;
  height: 320px;   /* ako želiš višu mapu, povećaj broj */
  border: 0;
}







/* -------- Poboljšanje prikaza "Dodatne osobe po danu" -------- */

.extra-price-table {
  width: 100%;
  border-collapse: collapse;
  margin-top: 0.6rem;
  font-size: 0.95rem;
}

.extra-price-table td,
.extra-price-table th {
  padding: 0.45rem 0.3rem;
}

.extra-price-table th {
  text-align: left;
  font-weight: 700;
  color: var(--primary);
  font-size: 0.95rem;
}

.extra-price-table td:last-child {
  font-weight: 600;
  text-align: right;
  white-space: nowrap;
}

.extra-price-table tr:nth-child(even) {
  background: #f7faff;
  border-radius: 0.4rem;
}

.extra-price-table tr:hover {
  background: #e9f3ff;
}




/* ----------- galery ----------- */



.gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 1rem;
}

.gallery-item {
  border-radius: 1rem;
  overflow: hidden;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

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

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





/* ----------- RESPONSIVE ----------- */

@media (max-width: 900px) {
  .content-wrap {
    grid-template-columns: minmax(0, 1fr);
    margin-top: 1.5rem;
  }

  .sidebar {
    position: static;
    flex-direction: column;
  }

  nav {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: center;
  }

  nav a {
    flex: 1 1 45%;
    font-size: 0.85rem;
  }

  .hero-overlay {
    padding: 1.8rem 1.25rem 3.2rem;
  }

  .hero-top {
    flex-direction: column-reverse;
    align-items: flex-start;
  }
}

@media (max-width: 600px) {
  .hero-overlay {
    padding-inline: 1rem;
  }

  .content-wrap {
    padding-inline: 1rem;
  }

  .card {
    padding-inline: 1.1rem;
  }

  nav a {
    flex: 1 1 100%;
  }
}

/* Manji i čišći hero header na velikim ekranima */
@media (min-width: 1200px) {
  header {
    height: 340px;          /* manja visina hero sekcije na desktopu */
    overflow: hidden;       /* odreže višak slike */
  }

  .hero-overlay {
    padding-top: 2.4rem;
    padding-bottom: 3rem;
  }
}

/* Još niži hero na ultrawide / 4K ekranima */
@media (min-width: 1800px) {
  header {
    height: 310px;
  }
}







 



