:root {
  --green: #1f7a3a;
  --yellow: #f4c430;
  --dark: #2b2b2b;
  --gray: #6b6b6b;
}

/* BASE */
* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: 'Inter', sans-serif;
  color: var(--dark);

  background-image: url("../assets/images/background_green.jpg");
  background-repeat: repeat;
  background-size: 600px auto;
  background-attachment: fixed;

  line-height: 1.6;
}

/* PAGE WRAPPER */
.page {
  max-width: 1100px;
  margin: 0 auto;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 12px 40px rgba(0, 0, 0, 0.1);
  border-radius: 12px;
}

/* HEADER – TRANSPARENT STICKY */
.header {
  position: sticky;
  top: 0;
  z-index: 1000;

  display: flex;
  justify-content: space-between;
  align-items: center;

  padding: 4px 12px;
  background: rgba(255, 255, 255, 0.75);
  backdrop-filter: blur(8px);

  border-bottom: 1px solid rgba(0, 0, 0, 0.05);

}

/* ======================
   HERO 
====================== */
.hero {
  position: relative;
  height: 95vh;

  margin: 4px;
  border-radius: 22px;
  overflow: hidden;

  display: flex;
  align-items: center;
  justify-content: center;

  background-image: url("../assets/images/hero-bg.jpg");
  background-size: cover;
  background-position: center;
}

/* Cinematic overlay */
.hero__overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to bottom,
      rgba(0, 0, 0, 0.45) 0%,
      rgba(0, 0, 0, 0.35) 40%,
      rgba(0, 0, 0, 0.45) 100%);
}

/* Content */
.hero__content {
  position: relative;
  z-index: 2;
  width: 100%;
  /* zelo pomembno */
  max-width: 750px;
  margin: 0 auto;
  /* center */
  text-align: center;
  /* center text */
  color: white;
  animation: fadeUp 1.2s ease forwards;
}

/* Title */
.hero__content h1 {
  font-family: 'Poppins', sans-serif;
  font-size: 2.4rem;
  font-weight: 700;
  margin-bottom: 14px;
  text-shadow: 0 6px 20px rgba(0, 0, 0, 0.8);
}

/* Subtitle */
.hero .subtitle {
  font-size: 1.2rem;
  margin-bottom: 28px;
  color: rgba(255, 255, 255, 0.95);
}

/* Hero actions */
.hero__actions {
  display: flex;
  flex-direction: column;
  gap: 18px;
  align-items: center;
}

/* Social icons */
.hero .icongroup__icon {
  font-size: 1.9rem;
  color: white;
  transition: transform 0.2s ease, color 0.2s ease;
}

.hero .icongroup__icon:hover {
  transform: scale(1.15);
  color: var(--yellow);
}

/* LOGO */
.header__logo {
  height: 44px;
  display: block;
}

/* HERO LOGO */
.hero__logo {
  height: 150px;
  margin-bottom: 18px;

  filter: drop-shadow(0 6px 18px rgba(0, 0, 0, 0.6));
}

/* ICONS */
.icongroup {
  display: flex;
  gap: 14px;
}

.icongroup__icon {
  font-size: 1.5rem;
  color: var(--green);
  text-decoration: none;
  transition: transform 0.15s ease, color 0.15s ease;
}

.icongroup__icon:hover {
  transform: scale(1.1);
  color: var(--yellow);
}


/* SECTIONS */
section {
  padding: 40px 16px;
  background: transparent;
}

/* IMAGES */
.card__image,
.gallery img {
  display: block;
  width: 100%;
  margin-bottom: 16px;
  border-radius: 14px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.18);
}

/* gumbi za lokacijo*/

.hero-locations {
  display: flex;
  flex-direction: column;
  gap: 14px;
  width: 100%;
  max-width: 420px;
}

.location-btn {
  background: rgba(255, 255, 255, 0.08);
  border: 2px solid #1f7a3a;
  color: #ffffff;
  backdrop-filter: blur(6px);
  transition: all 0.25s ease;
}

.location-btn i {
  color: #1f7a3a;
}

.location-btn:hover {
  background: #1f7a3a;
  color: #fff;
  box-shadow: 0 10px 30px rgba(31, 122, 58, 0.4);
}

.location-btn:hover i {
  color: #fff;
}

/* TEXT */
h1,
h2 {
  font-family: 'Poppins', sans-serif;
  margin: 12px 0;
}

.subtitle {
  color: var(--gray);
  font-size: 0.95rem;
}

.list {
  list-style: none;
  padding: 0;
}

.list li {
  margin: 6px 0;
}

.highlight {
  font-weight: 600;
  color: var(--green);
}

.note {
  font-size: 0.9rem;
  color: var(--gray);
}

/* BUTTON */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 14px 20px;
  margin-top: 12px;
  border-radius: 14px;
  text-decoration: none;
  font-weight: 600;
}

.btn.primary {
  background: var(--green);
  color: #fff;
  box-shadow: 0 6px 18px rgba(31, 122, 58, 0.3);
}

/* GALLERY */
.gallery {
  display: grid;
  gap: 12px;
}

/* FOOTER */
.footer {
  text-align: center;
  margin: 40px 16px 0;
}

/* SCROLL ANIMATION */
.reveal {
  opacity: 0;
  transform: translateY(40px);
  transition: all 0.8s ease;
}

.reveal.active {
  opacity: 1;
  transform: translateY(0);
}

.map-wrapper {
  margin-top: 24px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 14px 40px rgba(0, 0, 0, 0.25);
}

@keyframes fadeUp {
  from {
    opacity: 0;
    transform: translateY(40px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

/* =========================
   EVENTS SECTION
========================= */

.events-wrapper {
  max-width: 600px;
  margin: 60px auto;
  text-align: center;
}

.events-title {
  font-size: 2rem;
  font-weight: 900;
  margin-bottom: 30px;
  color: #0c3a1f;
}

.event-card {
  background: rgba(255, 255, 255, 0.85);
  padding: 20px;
  border-radius: 20px;
  margin-bottom: 20px;
  box-shadow: 0 15px 40px rgba(0, 0, 0, 0.15);
}

.event-card h3 {
  margin: 0 0 10px;
  color: #0c3a1f;
}

.event-card p {
  margin: 4px 0;
  font-weight: 600;
  color: #333;
}

/* ======================
   OUR JUICE SECTION
====================== */

.juice-section {
  padding: 60px 20px;
  text-align: center;
}

.juice-container {
  max-width: 600px;
  margin: 0 auto;
}

/* TITLE */
.juice-title {
  font-size: 2.2rem;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: -1px;

  color: #0c3a1f;

  text-shadow:
    0 4px 12px rgba(0, 0, 0, 0.5);

  margin-bottom: 36px;
}

/* GOLD ACCENT LINE */
.juice-title::after {
  content: "";
  display: block;

  width: 90px;
  height: 4px;

  margin: 18px auto 0;

  background: linear-gradient(90deg,
      #c9a227,
      #f4d03f,
      #c9a227);

  border-radius: 4px;

  box-shadow: 0 0 12px rgba(244, 208, 63, 0.6);
}

/* IMAGE */
.juice-image img {
  width: 100%;
  border-radius: 24px;

  box-shadow:
    0 25px 60px rgba(0, 0, 0, 0.6);

  margin-bottom: 36px;

  transition: transform 0.4s ease;
}

.juice-image img:hover {
  transform: scale(1.03);
}

/* LIST */
.juice-list {
  list-style: none;
  padding: 0;
  margin: 0 0 20px;

  font-size: 1.3rem;
  font-weight: 900;
  color: #0e3f22;
  text-align: left;
}

.juice-list li {
  position: relative;
  /* KLJUČNO */
  padding-left: 30px;
  /* prostor za piko */
  margin: 14px 0;
}

/* Lime dot */
.juice-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 50%;
  transform: translateY(-50%);

  width: 8px;
  height: 8px;

  border-radius: 50%;

  /* GOLD center */
  background: radial-gradient(circle, #f4d03f 30%, #c9a227 80%);

  /* TEMNO ZELENA OBROBA */
  border: 2px solid #062c17;

  /* globina */
  box-shadow:
    0 0 6px rgba(0, 0, 0, 0.6),
    0 0 8px rgba(244, 208, 63, 0.5);
}

/* STATEMENT */
.juice-highlight {
  font-size: 1.2rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 1px;

  color: #062c17;

  text-shadow:
    0 3px 10px rgba(0, 0, 0, 0.6);
}

/* ======================
   FIND US SECTION
====================== */

.find-section {
  padding: 80px 20px;
  text-align: center;
}

.find-wrapper {
  max-width: 600px;
  margin: 0 auto;
}

/* TITLE */
.find-title {
  font-size: 2.2rem;
  font-weight: 900;
  margin-bottom: 36px;

  color: #0c3a1f;
  text-shadow: 0 4px 12px rgba(0, 0, 0, 0.6);
}

/* GOLD ACCENT LINE */
.find-title::after {
  content: "";
  display: block;
  width: 90px;
  height: 4px;
  margin: 18px auto 0;

  background: linear-gradient(90deg,
      #c9a227,
      #f4d03f,
      #c9a227);

  border-radius: 4px;

  box-shadow: 0 0 12px rgba(244, 208, 63, 0.6);
}

/* LIST */
.find-list {
  list-style: none;
  padding: 0;
  margin: 0 0 30px;
  text-align: left;
}

.find-list li {
  display: flex;
  align-items: center;
  gap: 12px;

  margin: 16px 0;

  font-size: 1.2rem;
  font-weight: 800;
  color: #0e3f22;
}

.find-list i {
  color: #0e3f22;
  font-size: 1.2rem;
}

/* /* SOCIAL ICONS, SOCIAL CENTER */
.find-social {
  display: flex;
  justify-content: center;
  gap: 26px;
  margin-bottom: 40px;
}

.find-social__icon {
  font-size: 1.8rem;
  color: #0e3f22;
  transition: all 0.25s ease;
}

.find-social__icon:hover {
  color: #f4d03f;
  transform: scale(1.15);
}

.find-social .icongroup__icon {
  font-size: 1.8rem;
  color: #f4d03f;
  text-shadow: 0 0 10px rgba(244, 208, 63, 0.7);
}

/* MAP */
.map-wrapper {
  border-radius: 26px;
  overflow: hidden;
  box-shadow: 0 25px 60px rgba(0, 0, 0, 0.6);
}

/* =========================
   GALLERY SECTION
========================= */

.gallery-title {
  font-size: 2rem;
  font-weight: 900;
  text-align: center;
  margin-bottom: 30px;
  color: #0c3a1f;
}

.video-title {
  margin-top: 60px;
}

/* =========================
   CAROUSEL WRAPPER
========================= */

.carousel-wrapper {
  position: relative;
  overflow: hidden;
  border-radius: 20px;
}

/* =========================
   HORIZONTAL CAROUSEL
========================= */

.carousel {
  display: flex;
  overflow-x: auto;
  scroll-snap-type: x mandatory;
  scroll-behavior: smooth;

  padding: 0;
}

.carousel::-webkit-scrollbar {
  display: none;
}

/* =========================
   desktop CAROUSEL arrows
========================= */

.carousel-arrow {
  position: absolute;
  top: 50%;
  transform: translateY(-50%);

  background: rgba(0, 0, 0, 0.6);
  color: white;
  border: none;

  font-size: 28px;
  padding: 12px 16px;
  cursor: pointer;

  border-radius: 50%;
  z-index: 20;

  display: none;
}

.carousel-arrow.left {
  left: 15px;
}

.carousel-arrow.right {
  right: 15px;
}

@media (min-width: 1024px) {
  .carousel-arrow {
    display: block;
  }
}

.carousel-arrow.left {
  left: 10px;
}

.carousel-arrow.right {
  right: 10px;
}

@media (min-width: 1024px) {
  .carousel-arrow {
    display: block;
  }

  .carousel {
    cursor: default;
  }
}

/* ITEM */

.carousel img,
.carousel video {
  flex: 0 0 100%;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;

  border-radius: 20px;

  scroll-snap-align: start;

  transition: transform 0.3s ease,
    opacity 0.3s ease,
    box-shadow 0.3s ease;

  opacity: 1;
}

/* ACTIVE CENTER */

.carousel img.active,
.carousel video.active {
  transform: scale(1.05);
  opacity: 1;

  box-shadow:
    0 20px 60px rgba(0, 0, 0, 0.7),
    0 0 25px rgba(201, 162, 39, 0.5);
}

/* =========================
   DOTS INDICATOR
========================= */

.carousel-dots {
  display: flex;
  justify-content: center;
  gap: 10px;
  margin-top: 20px;
}

.carousel-dots span {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #1f3f28;
  opacity: 0.4;
  transition: all 0.3s ease;
}

.carousel-dots span.active {
  background: #c9a227;
  opacity: 1;
  transform: scale(1.3);
}

/* =========================
   LIGHTBOX
========================= */

.lightbox {
  position: fixed;
  inset: 0;

  background: rgba(0, 0, 0, 0.95);

  display: none;
  align-items: center;
  justify-content: center;

  z-index: 9999;
}

.lightbox img,
.lightbox video {
  max-width: 90%;
  max-height: 85%;
  border-radius: 20px;
}

.lightbox-close {
  position: absolute;
  top: 30px;
  right: 30px;

  font-size: 32px;
  color: white;
  cursor: pointer;

  z-index: 10000;
}

/* =========================
   RESPONSIVE (desktop)
========================= */

@media (min-width: 1024px) {

  .carousel img,
  .carousel video {
    flex: 0 0 100%;
    max-width: 100%;
  }
}


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

@media (min-width: 1100px) {
  .gallery {
    grid-template-columns: repeat(3, 1fr);
  }
}

/* =========================
   MAP Leaflet
========================= */

#map {
  width: 100%;
  height: 350px;
  border-radius: 20px;
  overflow: hidden;
  box-shadow: 0 20px 50px rgba(0, 0, 0, 0.4);
}

.leaflet-popup-content-wrapper {
  border-radius: 16px;
}

.leaflet-popup-content a {
  color: #c9a227;
  font-weight: 700;
  text-decoration: none;
}

/* ADMIN LOGO FLOAT */


#admin-fab img {
  width: 100%;
  height: auto;
  display: block;
}

#admin-fab:hover {
  transform: scale(1.08);
}


.admin-modal {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.75);
  backdrop-filter: blur(6px);

  display: none;
  align-items: center;
  justify-content: center;

  z-index: 9999;
}

.admin-modal-content {
  background: #ffffff;
  padding: 40px 30px;
  border-radius: 24px;
  width: 90%;
  max-width: 420px;

  max-height: 85vh;
  overflow-y: auto;

  box-shadow: 0 30px 80px rgba(0, 0, 0, 0.5);
  animation: modalFade 0.3s ease;
}

/* TITLE */
.admin-modal-content h3 {
  margin-top: 0;
  text-align: center;
  font-family: 'Poppins', sans-serif;
  font-size: 1.6rem;
  color: #0c3a1f;
}

/* INPUTS */
.admin-modal input {
  width: 100%;
  padding: 14px;
  margin-bottom: 14px;

  border-radius: 14px;
  border: 1px solid #ddd;
  font-size: 1rem;
}

.admin-modal input:focus {
  outline: none;
  border: 1px solid #1f7a3a;
  box-shadow: 0 0 0 3px rgba(31, 122, 58, 0.15);
}

/* BUTTONS */
.admin-modal .btn {
  width: 100%;
  margin-top: 8px;
}

/* Animation */
@keyframes modalFade {
  from {
    opacity: 0;
    transform: scale(0.95);
  }

  to {
    opacity: 1;
    transform: scale(1);
  }
}

.footer-inner {
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 30px 0;
}

.footer-social {
  display: flex;
  gap: 20px;
  justify-content: center;
}

.footer-social .icongroup__icon {
  font-size: 1.8rem;
}

.footer {
  margin-top: 20px;
  padding: 20px 0;
  text-align: center;
}

.footer-content {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 14px;
  /* razmak med social in admin */
}

/* Social icons */
.footer-social {
  display: flex;
  justify-content: center;
  gap: 28px;
  font-size: 1.9rem;
}

/* Admin logo */
.admin-footer-logo {
  width: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  cursor: pointer;
}

.admin-footer-logo img {
  width: 100%;
  height: auto;
  display: block;
}

/* Zmanjšaj prostor pod galerijo */
.gallery-section {
  padding: 60px 0 30px;
}

#events-section {
  display: none;
}

/* TODAY highlight */
.event-today {
  border: 2px solid #c9a227;
  box-shadow: 0 0 25px rgba(201, 162, 39, 0.6);
  position: relative;
}

.event-delete {
  margin-top: 10px;
  background: #c0392b;
  color: white;
  border: none;
  padding: 6px 10px;
  border-radius: 10px;
  font-size: 0.8rem;
  cursor: pointer;
}

.today-badge {
  position: absolute;
  top: -10px;
  right: -10px;

  background: #c9a227;
  color: #000;
  font-weight: 800;
  font-size: 0.7rem;
  padding: 6px 10px;
  border-radius: 20px;
}

.event-card {
  opacity: 0;
  transform: translateY(20px);
  animation: eventFade 0.5s ease forwards;
}

.event-card:nth-child(1) {
  animation-delay: 0.05s;
}

.event-card:nth-child(2) {
  animation-delay: 0.15s;
}

.event-card:nth-child(3) {
  animation-delay: 0.25s;
}

@keyframes eventFade {
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.admin-modal-content {
  border-radius: 28px;
}

.admin-modal input {
  font-size: 16px;
  /* prepreči zoom na iOS */
}

/* =========================
   ADMIN MODAL – MOBILE BOTTOM SHEET
========================= */

@media (max-width: 768px) {

  .admin-modal {
    align-items: flex-end;
  }

  .admin-modal-content {
    width: 100%;
    max-width: 100%;
    border-radius: 28px 28px 0 0;

    height: 80vh;
    /* 🔥 DODAJ TO */
    overflow-y: auto;
    /* 🔥 DODAJ TO */

    padding: 30px 20px 40px;
    animation: slideUp 0.35s ease;
  }

  @keyframes slideUp {
    from {
      transform: translateY(100%);
    }

    to {
      transform: translateY(0);
    }
  }

}

.admin-modal-content::before {
  content: "";
  width: 40px;
  height: 4px;
  background: #ccc;
  border-radius: 4px;
  display: block;
  margin: 0 auto 15px;
}

.admin-media-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.admin-thumb {
  width: 80px;
  height: 60px;
  object-fit: cover;
  border-radius: 10px;
  box-shadow: 0 6px 15px rgba(0, 0, 0, 0.2);
}

/* GRID CONTAINER */
#admin-gallery-list,
#admin-video-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(90px, 1fr));
  gap: 10px;
  margin-top: 15px;
}

/* ITEM */
.admin-grid-item {
  position: relative;
  width: 100%;
  aspect-ratio: 1 / 1;
  overflow: hidden;
  border-radius: 12px;
  cursor: pointer;
}

/* IMAGE / VIDEO */
.admin-grid-item img,
.admin-grid-item video {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transition: transform 0.3s ease;
}

/* HOVER ZOOM */
.admin-grid-item:hover img,
.admin-grid-item:hover video {
  transform: scale(1.1);
}

.admin-preview {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.9);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 99999;
}

.admin-preview img,
.admin-preview video {
  max-width: 90%;
  max-height: 90%;
}

.preview-close {
  position: absolute;
  top: 30px;
  right: 30px;
  font-size: 32px;
  color: white;
  cursor: pointer;
}

.upload-progress {
  width: 100%;
  height: 8px;
  background: #eee;
  border-radius: 8px;
  overflow: hidden;
  margin-top: 10px;
}

.upload-progress-bar {
  height: 100%;
  width: 0%;
  background: linear-gradient(90deg, #1f7a3a, #f4c430);
  transition: width 0.2s ease;
}

.password-wrapper {
  position: relative;
}

.toggle-password {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  cursor: pointer;
  font-size: 16px;
}