/* ===========================
   GLOBAL (font + Bootstrap primary -> RED)
   Ubaci POSLE bootstrap.css
   =========================== */

/* Osnovni font */
body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

/* ✅ Bootstrap primary na CRVENO */
:root{
  --bs-primary: #ef4444;           /* crveno */
  --bs-primary-rgb: 239,68,68;
}

/* lepši hover/active za dugmad */
.btn-primary{
  --bs-btn-bg: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-bg: #dc2626;
  --bs-btn-hover-border-color: #dc2626;
  --bs-btn-active-bg: #b91c1c;
  --bs-btn-active-border-color: #b91c1c;
}
.btn-outline-primary{
  --bs-btn-color: var(--bs-primary);
  --bs-btn-border-color: var(--bs-primary);
  --bs-btn-hover-bg: var(--bs-primary);
  --bs-btn-hover-border-color: var(--bs-primary);
  --bs-btn-hover-color: #fff;
  --bs-btn-active-bg: #dc2626;
  --bs-btn-active-border-color: #dc2626;
}
.text-primary{ color: var(--bs-primary) !important; }
.bg-primary{ background-color: var(--bs-primary) !important; }
.border-primary{ border-color: var(--bs-primary) !important; }


/* ===========================
   LOGO / BRAND
   =========================== */
.site-logo{
  height: 34px;
  width: auto;
  display:block;
}

.brand-text{
  font-weight: 800;
  letter-spacing: .2px;
  line-height: 1;
  font-size: 1.05rem;
  color: #0f172a;
}

.brand-dot{
  color: var(--bs-primary);
  font-weight: 800;
}

/* (Ako negde koristiš staro slovo u krugu) */
.navbar-brand .logo-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: var(--bs-primary);
  color: #fff;
  font-weight: 700;
  margin-right: 4px;
  font-size: 0.9rem;
}


/* ===========================
   HERO
   =========================== */
.hero-section {
  background: linear-gradient(135deg, #fff1f2, #ffffff);
}


/* ===========================
   DESTINACIJE KARTICE
   =========================== */
.dest-card {
  display: block;
  border-radius: 0.75rem;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 0.125rem 0.8rem rgba(15, 23, 42, 0.08);
  text-decoration: none;
  color: inherit;
  transition: 0.15s ease;
}

.dest-card:hover {
  transform: translateY(-2px);
  box-shadow: 0 0.3rem 1rem rgba(15, 23, 42, 0.12);
}

/* Thumb blok sa pozadinskom slikom destinacije */
.dest-thumb {
  width: 100%;
  height: 180px;
  border-radius: 0.75rem 0.75rem 0 0;
  background-size: cover;
  background-position: center;
  background-repeat: no-repeat;
}

/* Tekstualni deo kartice destinacije */
.dest-body {
  padding: 0.6rem 0.75rem 0.7rem;
}

/* Ako nema background-image (fallback siva pozadina) */
.dest-thumb:not([style*="url"]) {
  background: #e5e7eb;
}

/* Male slike na karticama */
.card-img-top-sm {
  border-radius: 0.7rem 0.7rem 0 0;
}

/* Icon kartice */
.icon-card {
  border-radius: 0.75rem;
  border: 1px solid #e5e7eb;
  padding: 0.8rem 0.9rem;
  background: #f9fafb;
}

/* Utility klasa */
.py-6 {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}


/* ===========================
   PROPERTY GALERIJA
   =========================== */
.property-main .swiper-slide .ratio {
  width: 100%;
  height: 0;
  padding-bottom: 56.25%;
  overflow: hidden;
  border-radius: 0.75rem;
}

.property-main .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.property-thumbs {
  margin-top: 0.5rem;
}

.property-thumbs .swiper-slide {
  height: 70px;
  cursor: pointer;
}

.property-thumbs .swiper-slide img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 0.4rem;
}

.property-thumbs .swiper-slide-thumb-active img {
  outline: 2px solid var(--bs-primary);
}


/* ===========================
   LITEPICKER (kalendar)
   =========================== */
.litepicker {
  font-family: inherit;
}

@media (max-width: 768px) {
  .litepicker {
    width: 100% !important;
    max-width: 320px;
    font-size: 12px;
  }

  .litepicker .container__months .month-item:nth-child(2) {
    display: none !important;
  }

  .litepicker .month-item-header div {
    font-size: 13px;
    font-weight: 600;
  }

  .litepicker .weekdays-row .weekday {
    font-size: 11px;
    opacity: 0.85;
  }

  .litepicker .day-item {
    width: 26px;
    height: 26px;
    line-height: 26px;
    font-size: 12px;
    border-radius: 6px;
  }

  /* ✅ prati primary (crveno) */
  .litepicker .day-item.is-start-date,
  .litepicker .day-item.is-end-date,
  .litepicker .day-item.is-in-range {
    background: var(--bs-primary) !important;
    color: #fff !important;
    border-radius: 8px;
  }
}


/* ===========================
   HERO mobilno zatezanje
   =========================== */
@media (max-width: 767.98px) {
  .hero-section {
    padding-top: 1.75rem;
    padding-bottom: 2rem;
  }

  .hero-section h1 {
    font-size: 1.8rem;
    line-height: 1.25;
    margin-bottom: 0.75rem;
  }

  .hero-section .lead {
    font-size: 0.95rem;
    margin-bottom: 1.25rem;
  }
}


/* ===========================
   Destination dropdown button
   =========================== */
#destinationDropdownBtn {
  border-radius: 0.5rem;
  background-color: #fff;
}

#destinationDropdownBtn:focus {
  box-shadow: 0 0 0 0.15rem rgba(var(--bs-primary-rgb), .25);
}

@media (max-width: 768px) {
  #destinationSearch {
    font-size: 16px !important;
  }
}


/* ===========================
   DESTINACIJE OVERLAY – FINALNO
   =========================== */
:root {
  --nav-height: 130px;
}

.dest-overlay {
  position: fixed;
  inset: 0;
  z-index: 1080;
  display: flex;
  align-items: flex-start;
  justify-content: center;
}

.dest-overlay-panel {
  position: relative;
  background: #ffffff;
  width: 100%;
  max-width: 600px;

  margin: calc(var(--nav-height) + 30px) auto 16px !important;

  max-height: calc(100% - var(--nav-height) - 50px) !important;
  height: auto;

  display: flex;
  flex-direction: column;
  padding: 12px 12px 16px;
  box-shadow: 0 0 30px rgba(0,0,0,0.2);
  border-radius: 12px;
  animation: destOverlaySlideUp 0.18s ease-out;
}

@media (max-width: 768px) {
  .dest-overlay-panel {
    max-width: 100%;
    border-radius: 12px;

    margin: calc(var(--nav-height) - 60px) 8px 8px !important;
    max-height: calc(100% - var(--nav-height) - 30px) !important;
  }
}
