/* ============================================================
   [IME APARTMAJA] — stylesheet
   Topla, "glassmorphism" estetika: koralna / oljčna / peščena
   ============================================================ */

:root {
  --color-terracotta: #ff6b4a;
  --color-terracotta-dark: #e14f30;
  --color-olive: #6f7a4a;
  --color-olive-dark: #565f39;
  --color-sand: #ede2cf;
  --color-sand-light: #f7f1e4;
  --color-cream: #fbf7ef;
  --color-dark: #3b3226;
  --color-dark-soft: #5c5142;

  --glass-bg: rgba(255, 255, 255, 0.55);
  --glass-bg-strong: rgba(255, 255, 255, 0.7);
  --glass-border: rgba(255, 255, 255, 0.6);
  --glass-shadow: 0 20px 50px rgba(59, 50, 38, 0.12);

  --radius-lg: 24px;
  --radius-md: 16px;
  --radius-sm: 10px;

  --font-serif: "Playfair Display", "Georgia", serif;
  --font-sans: "Poppins", "Segoe UI", sans-serif;

  --container-width: 1180px;
}

* { box-sizing: border-box; }

html {
  scroll-behavior: smooth;
  scroll-padding-top: 90px;
}

body {
  margin: 0;
  font-family: var(--font-sans);
  color: var(--color-dark);
  background: var(--color-cream);
  line-height: 1.65;
  -webkit-font-smoothing: antialiased;
  overflow-x: hidden;
}

img { max-width: 100%; display: block; }

a { color: inherit; text-decoration: none; }

h1, h2, h3, h4 {
  font-family: var(--font-serif);
  font-weight: 600;
  color: var(--color-dark);
  margin: 0 0 0.5em;
}

p { margin: 0 0 1em; }

.container {
  max-width: var(--container-width);
  margin: 0 auto;
  padding: 0 24px;
}

/* ============ Buttons ============ */

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 14px 28px;
  border-radius: 999px;
  font-family: var(--font-sans);
  font-weight: 500;
  font-size: 0.98rem;
  border: none;
  cursor: pointer;
  transition: transform 0.25s ease, box-shadow 0.25s ease, background 0.25s ease;
  text-align: center;
}

.btn--primary {
  background: linear-gradient(135deg, var(--color-terracotta), var(--color-terracotta-dark));
  color: #fff;
  box-shadow: 0 12px 30px rgba(225, 79, 48, 0.35);
}

.btn--primary:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 36px rgba(225, 79, 48, 0.45);
}

.btn--outline {
  background: transparent;
  border: 1.5px solid var(--color-olive);
  color: var(--color-olive-dark);
}

.btn--outline:hover {
  background: var(--color-olive);
  color: #fff;
  transform: translateY(-2px);
}

.btn--large { padding: 17px 36px; font-size: 1.05rem; }
.btn--small { padding: 9px 20px; font-size: 0.85rem; }
.btn--block { width: 100%; }

/* ============ Glass card ============ */

.card--glass {
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-lg);
  box-shadow: var(--glass-shadow);
  backdrop-filter: blur(18px);
  -webkit-backdrop-filter: blur(18px);
  padding: 32px;
}

/* ============ Navbar ============ */

.navbar {
  position: fixed;
  top: 0;
  left: 0;
  right: 0;
  z-index: 100;
  background: rgba(251, 247, 239, 0.75);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(59, 50, 38, 0.06);
}

.navbar__inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  height: 76px;
}

.navbar__logo {
  font-family: var(--font-serif);
  font-size: 1.35rem;
  font-weight: 700;
  color: var(--color-terracotta-dark);
}

.navbar__nav {
  display: flex;
  align-items: center;
  gap: 30px;
}

.nav-link {
  font-size: 0.95rem;
  font-weight: 500;
  color: var(--color-dark-soft);
  position: relative;
  padding: 4px 0;
  transition: color 0.2s ease;
}

.nav-link:hover { color: var(--color-terracotta-dark); }

.navbar__toggle {
  display: none;
  flex-direction: column;
  justify-content: center;
  gap: 5px;
  width: 40px;
  height: 40px;
  background: none;
  border: none;
  cursor: pointer;
}

.navbar__toggle span {
  width: 100%;
  height: 2px;
  background: var(--color-dark);
  border-radius: 2px;
  transition: transform 0.3s ease, opacity 0.3s ease;
}

/* ============ Hero ============ */

.hero {
  position: relative;
  min-height: 100vh;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.hero__bg {
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, var(--color-olive), var(--color-terracotta-dark));
}

.hero__img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  position: absolute;
  inset: 0;
  filter: blur(6px);
  transform: scale(1.08);
}

.hero__bg.img-fallback .hero__img { display: none; }

.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, rgba(59, 42, 25, 0.35) 0%, rgba(59, 42, 25, 0.55) 60%, rgba(59, 42, 25, 0.75) 100%);
}

.hero__content {
  position: relative;
  z-index: 2;
  color: #fff;
  max-width: 720px;
  padding-top: 76px;
}

.hero__eyebrow {
  text-transform: uppercase;
  letter-spacing: 3px;
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--color-sand-light);
  margin-bottom: 18px;
}

.hero__title {
  font-size: clamp(2.6rem, 6vw, 4.5rem);
  color: #fff;
  margin-bottom: 20px;
  line-height: 1.1;
}

.hero__slogan {
  font-size: clamp(1.05rem, 2vw, 1.3rem);
  color: rgba(255, 255, 255, 0.92);
  max-width: 560px;
  margin-bottom: 36px;
}

.hero__scroll {
  position: absolute;
  bottom: 32px;
  left: 50%;
  transform: translateX(-50%);
  z-index: 2;
  color: #fff;
  opacity: 0.8;
  animation: bounce 2.2s infinite;
}

@keyframes bounce {
  0%, 100% { transform: translate(-50%, 0); }
  50% { transform: translate(-50%, 10px); }
}

/* ============ Sections ============ */

.section { padding: 110px 0; }
.section--tinted { background: var(--color-sand-light); }

.section__head { max-width: 680px; margin: 0 auto 56px; text-align: center; }
.section__head h2 { font-size: clamp(1.9rem, 3.5vw, 2.6rem); }

.eyebrow {
  text-transform: uppercase;
  letter-spacing: 2.5px;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--color-terracotta);
  margin-bottom: 10px;
}

.section__lead { color: var(--color-dark-soft); font-size: 1.05rem; }

.about__text {
  max-width: 780px;
  margin: 0 auto 56px;
  color: var(--color-dark-soft);
  font-size: 1.05rem;
}

/* ============ Amenities ============ */

.amenities {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 18px;
  list-style: none;
  padding: 0;
  margin: 0 0 64px;
}

.amenity {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 18px 20px;
  background: var(--glass-bg);
  border: 1px solid var(--glass-border);
  border-radius: var(--radius-md);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  box-shadow: 0 10px 24px rgba(59, 50, 38, 0.06);
}

.amenity__icon {
  flex-shrink: 0;
  width: 42px;
  height: 42px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 50%;
  background: rgba(111, 122, 74, 0.14);
  color: var(--color-olive-dark);
}

.amenity__icon svg { width: 20px; height: 20px; }

.amenity__label { font-size: 0.92rem; font-weight: 500; color: var(--color-dark); }

/* ============ Gallery ============ */

.gallery {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  grid-auto-rows: 160px;
  gap: 14px;
}

.gallery__item {
  position: relative;
  overflow: hidden;
  border-radius: var(--radius-md);
  border: none;
  padding: 0;
  cursor: pointer;
  background: linear-gradient(135deg, var(--color-sand), var(--color-olive));
}

.gallery__item--big { grid-column: span 2; grid-row: span 2; }

.gallery__item img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.5s ease;
}

.gallery__item.img-fallback img { display: none; }

.gallery__item:hover img { transform: scale(1.06); }

.gallery__item::after {
  content: "";
  position: absolute;
  inset: 0;
  background: rgba(59, 50, 38, 0);
  transition: background 0.3s ease;
}

.gallery__item:hover::after { background: rgba(59, 50, 38, 0.12); }

/* ============ Food card ============ */

.food-card { max-width: 780px; margin: 0 auto; }

.food-card__top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  margin-bottom: 12px;
}

.food-card__top h3 { margin: 0; font-size: 1.5rem; }

.rating {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  background: rgba(255, 107, 74, 0.14);
  color: var(--color-terracotta-dark);
  font-weight: 600;
  font-size: 0.9rem;
  padding: 6px 14px;
  border-radius: 999px;
}

.food-card__address {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--color-dark-soft);
  font-size: 0.92rem;
  margin-bottom: 18px;
}

.food-card__note {
  display: flex;
  align-items: center;
  gap: 10px;
  background: rgba(111, 122, 74, 0.12);
  color: var(--color-olive-dark);
  padding: 12px 16px;
  border-radius: var(--radius-sm);
  font-size: 0.92rem;
  margin-bottom: 22px;
}

/* ============ Map cards ============ */

.map-card { padding: 12px; max-width: 900px; margin: 0 auto; }
.map-card iframe { display: block; width: 100%; }

/* ============ Contact ============ */

.contact {
  display: flex;
  justify-content: center;
  max-width: 480px;
  margin: 0 auto;
}

.contact__cta {
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: center;
  gap: 6px;
}

.contact__cta .btn { margin: 16px auto 8px; }

.discount-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  text-align: left;
  background: rgba(255, 107, 74, 0.12);
  color: var(--color-terracotta-dark);
  padding: 16px 18px;
  border-radius: var(--radius-sm);
  border: 1px solid rgba(255, 107, 74, 0.25);
  font-size: 0.95rem;
  margin: 4px 0 22px;
}

.discount-banner svg { flex-shrink: 0; }
.discount-banner strong { color: var(--color-terracotta-dark); }

.contact__mail {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  color: var(--color-olive-dark);
  font-weight: 500;
  margin-top: 4px;
}

/* ============ Footer ============ */

.footer {
  background: var(--color-dark);
  color: var(--color-sand-light);
  padding: 48px 0 90px;
  text-align: center;
}

.footer__brand {
  font-family: var(--font-serif);
  font-size: 1.4rem;
  margin-bottom: 4px;
}

.footer__tagline { color: rgba(247, 241, 228, 0.7); margin-bottom: 18px; }

.footer__copy {
  font-size: 0.82rem;
  color: rgba(247, 241, 228, 0.55);
  margin: 0;
}

/* ============ Sticky mobile CTA ============ */

.sticky-cta {
  position: fixed;
  left: 0;
  right: 0;
  bottom: 0;
  z-index: 90;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(251, 247, 239, 0.92);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
  border-top: 1px solid rgba(59, 50, 38, 0.08);
  transform: translateY(120%);
  transition: transform 0.35s ease;
  display: none;
}

.sticky-cta.visible { transform: translateY(0); }

/* ============ Lightbox ============ */

.lightbox {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: none;
  align-items: center;
  justify-content: center;
  background: rgba(20, 16, 10, 0.9);
  padding: 24px;
}

.lightbox.open { display: flex; }

.lightbox__img {
  max-width: 90vw;
  max-height: 84vh;
  border-radius: var(--radius-md);
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.5);
}

.lightbox__close {
  position: absolute;
  top: 24px;
  right: 28px;
  background: none;
  border: none;
  color: #fff;
  font-size: 2.2rem;
  line-height: 1;
  cursor: pointer;
}

.lightbox__nav {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  background: rgba(255, 255, 255, 0.12);
  border: none;
  color: #fff;
  width: 48px;
  height: 48px;
  border-radius: 50%;
  font-size: 1.1rem;
  cursor: pointer;
  transition: background 0.2s ease;
}

.lightbox__nav:hover { background: rgba(255, 255, 255, 0.25); }
.lightbox__nav--prev { left: 20px; }
.lightbox__nav--next { right: 20px; }

/* ============ Scroll reveal ============ */

.reveal {
  opacity: 0;
  transform: translateY(28px);
  transition: opacity 0.7s ease, transform 0.7s ease;
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

/* ============ Responsive ============ */

@media (max-width: 900px) {
  .gallery { grid-template-columns: repeat(2, 1fr); grid-auto-rows: 150px; }
  .gallery__item--big { grid-column: span 2; grid-row: span 1; }
}

@media (max-width: 768px) {
  .navbar__nav {
    position: fixed;
    top: 76px;
    left: 0;
    right: 0;
    flex-direction: column;
    align-items: stretch;
    gap: 0;
    background: rgba(251, 247, 239, 0.98);
    backdrop-filter: blur(14px);
    padding: 8px 24px 20px;
    transform: translateY(-130%);
    opacity: 0;
    transition: transform 0.3s ease, opacity 0.3s ease;
    border-bottom: 1px solid rgba(59, 50, 38, 0.08);
  }

  .navbar__nav.open { transform: translateY(0); opacity: 1; }

  .nav-link { padding: 14px 0; border-bottom: 1px solid rgba(59, 50, 38, 0.06); }

  .navbar__toggle { display: flex; }

  .sticky-cta { display: block; }

  .section { padding: 76px 0; }

  body { padding-bottom: 78px; }
}

@media (max-width: 560px) {
  .gallery { grid-template-columns: repeat(2, 1fr); }
  .card--glass { padding: 24px; }
}

@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  .reveal, .hero__scroll { transition: none; animation: none; opacity: 1; transform: none; }
}
