/*sscroll bar */

body::-webkit-scrollbar {
  width: 0;
  height: 0;
}

body {
  scrollbar-width: none;
}

body {
  -ms-overflow-style: none;
}


/*scrol bar */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background-color: #0f172a;
  color: white;
}

.header {
  background: linear-gradient(to right, #020617, #0f172a, #020617);
  padding: 32px 24px;
  border-bottom: 4px solid #b91c1c;
  box-shadow: 0 20px 40px rgba(0,0,0,0.6);
}

.container {
  max-width: 80%;
  margin: auto;
}

/* Top row */
.top-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 24px;
  padding-bottom: 16px;
  border-bottom: 1px solid #334155;
  color:white;
}

.info-box {
  display: flex;
  align-items: center;
  gap: 12px;
  background: rgba(15, 23, 42, 0.5);
  padding: 12px 24px;
  border-radius: 10px;
  font-size: 18px;
}

.info-box i {
  width: 24px;
  height: 24px;
  color: #f87171;
}

.time-box span {
  font-size: 24px;
  font-family: monospace;
  letter-spacing: 2px;
}

/* Title row */
.title-row {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 20px;
  text-align: center;
}

.hospital-icon {
  width: 48px;
  height: 48px;
  color: #f87171;
}

.title-link {
  text-decoration: none;
  color: white;
}

.title-link h1 {
  font-size: 2.5rem;
  margin-bottom: 6px;
  transition: color 0.3s ease;
}

.title-link:hover h1 {
  color: #fca5a5;
}

.title-link p {
  font-size: 1.1rem;
  color: #cbd5f5;
}

/* Responsive */
@media (max-width: 768px) {
  .top-row {
    flex-direction: column;
    gap: 16px;
  }

  .title-row {
    flex-direction: column;
  }
}


#map-instruction {
  text-align: center;
  margin-bottom: -45px; /* razmak do mape */
  font-size: 1.2rem;
  font-weight: 500;
  color: #1a1a1a; /* tamna boja teksta */
  background-color: #f5f5f5; /* svetla pozadina da se izdvoji */
  padding: 20px 20px 20px 20px;
  border-radius: 12px;
  box-shadow: 0 4px 10px rgba(0,0,0,0.15);
  line-height: 1.4;
}






#map-container {
  position: relative;
  width: 1047px;
  height: 830px;
  background: transparent;
  margin:auto;
 
}

/* Mapa pozadine */
.bg-map {
  position: absolute;
  top: 58px;
  left: 0;
  width: 1047px;
  height: 785px;
  pointer-events: none;
}

.bg-map img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.map-border {
  position: absolute;
  inset: 0;
  border: 5px solid black;
}

/* Placeholder slike */
.decoration {
  position: absolute;
  width: 40px;
  height: 40px;
  background: #ccc; /* samo placeholder boja */
  pointer-events: none;
}

/* Kri탑evi */
.cross {
  position: absolute;
  width: auto;
  height: auto;
  cursor: pointer;
  transition: transform 0.3s;
  background-size: contain;
  background-repeat: no-repeat;
}

.cross.selected {
  transform: scale(1.3);
  z-index: 10;
}

/* Tooltip container */
#tooltip {
  position: absolute;
  display: none;
  flex-direction: row; /* dot left, text right */
  align-items: center;
  background: rgba(0,0,0,0.85);
  color: white;
  padding: 6px 10px;
  border-radius: 6px;
  font-size: 14px;
  pointer-events: none;
  z-index: 100;
  gap: 8px;
  white-space: nowrap;
}

/* Dot */
.tooltip-dot {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  animation: pulse 1.5s infinite;
}


.tooltip-content {
  display: flex;               /* keep flex for alignment */
  flex-direction: row;         /* side by side */
  align-items: center;         /* vertically center dot and text */
  gap: 8px;                    /* space between dot and text */
}


/* Tooltip text */
#tooltip-text {
  font-weight: 500;
}

/* Tooltip arrow */
.tooltip-arrow {
  width: 10px;
  height: 10px;
  position: absolute;
  background: rgba(0,0,0,0.85);
  transform: rotate(45deg);
}

/* Arrow positions */
#tooltip.show[data-position="top"] .tooltip-arrow {
  bottom: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
}

#tooltip.show[data-position="bottom"] .tooltip-arrow {
  top: -5px;
  left: 50%;
  transform: translateX(-50%) rotate(45deg);
}

#tooltip.show[data-position="left"] .tooltip-arrow {
  right: -5px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

#tooltip.show[data-position="right"] .tooltip-arrow {
  left: -5px;
  top: 50%;
  transform: translateY(-50%) rotate(45deg);
}

/* Pulse animation */
@keyframes pulse {
  0%, 100% { transform: scale(1); opacity: 1; }
  50% { transform: scale(1.4); opacity: 0.6; }
}


    
    

.main-content {
  background-color: #f8fafc;
}

/* Statistics Banner */
.stats-banner {
  background: linear-gradient(to right, #9f0712
, #82181a
);
  color: white;
  padding: 32px 16px;
}
.stats-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 16px;
}
.stat-card {
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  padding: 24px;
  text-align: center;
}
.stat-icon {
  font-size: 2rem;
  margin-bottom: 8px;
}
.stat-icon svg {
  width: 36px;
  height: 36px;
  stroke: white; /* crvena */
}

.stat-number {
  font-size: 2rem;
  font-weight: bold;
  margin-bottom: 4px;
}
.stat-label {
  font-size: 1rem;
  color: white;
}

/* Map Section */
.map-section {
  padding: 64px 16px;
  text-align:center;
}
.map-section h2 {
  font-size: 2rem;
  color: #b91c1c;
  margin-bottom: 8px;
}
.map-section p {
  color: #4b5563;
  margin-bottom: 24px;
}
.map-placeholder {
  position: relative;
  background: #e5e7eb;
  height: 400px;
  border-radius: 12px;
}
.map-marker {
  position: absolute;
  font-size: 2rem;
  cursor: pointer;
  transition: transform 0.3s;
}
.map-marker:hover {
  transform: scale(1.3);
}

/* Timeline */
.timeline-section {
  background: white;
  padding: 40px 16px;
  text-align: center;
}
.timeline-section h2 {
    -webkit-text-stroke:1px black;
  color: #9b1c31;
  font-size: 2rem;
  margin-bottom: 16px;
  text-shadow: 2px 2px 4px rgba(0,0,0,0.3);
}
.timeline-img {
  width: 100%;
  max-width: 1200px;
  height: auto;
}

/* Big Header */
.big-header-section {
  background: linear-gradient(to right, #0f172a, #1e293b, #0f172a);
  color: white;
  padding: 80px 16px;
}
.big-header-section h2 {
  font-size: 3.5rem;
  color: #fca5a5;
  margin-bottom: 16px;
  text-align:center;
}
.big-header-section p {
  font-size: 24px;
  color: #cbd5f5;
  line-height: 1.6;
  text-align:center;
}

/* History Section */
.history-section {
  background: white;
  padding: 80px 16px;
}
.history-section h2 {
  font-size: 2rem;
  color: #b91c1c;
  margin-bottom: 8px;
}
.history-section p {
  color: #4b5563;
  margin-bottom: 32px;
}
.history-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 32px;
  margin-bottom: 48px;
}
.history-item img {
  width: 100%;
  height: auto;
  border-radius: 12px;
  border: 4px solid #e2e8f0;
  box-shadow: 0 10px 20px rgba(0,0,0,0.2);
}
.history-text {
  background: #f8fafc;
  padding: 24px;
  border-left: 4px solid #b91c1c;
  border-radius: 12px;
}
.history-text h3 {
  color: #b91c1c;
  margin-bottom: 8px;
}
.history-text p {
  color: #4b5563;
  line-height: 1.6;
}

/* Gallery */
.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 16px;
}
.gallery-item {
  position: relative;
  overflow: hidden;
  border-radius: 12px;
}
.gallery-item img {
  width: 100%;
  height: 350px;
  object-fit: cover;
  transition: transform 0.5s;
}
.gallery-item:hover img {
  transform: scale(1.1);
}
.gallery-caption {
  position: absolute;
  bottom: 0;
  left: 0;
  width: 100%;
  background: linear-gradient(to top, rgba(0,0,0,0.7), transparent);
  color: white;
  padding: 16px;
}

/* CTA Section */
.cta-section {
  background: linear-gradient(to right, #82181a
, #9f0712
);  color: white;
  padding: 64px 16px;
  text-align: center;
}
.cta-section h2 {
  font-size: 2rem;
  margin-bottom: 16px;
}
.cta-section p {
  font-size: 1.25rem;
  margin-bottom: 24px;
}
.cta-button {
    text-decoration:none;
  display: inline-block;
  padding: 12px 24px;
  background: rgba(255,255,255,0.1);
  backdrop-filter: blur(8px);
  border-radius: 12px;
  cursor: pointer;
  transition: background 0.3s;
  color:white;
}
.cta-button:hover {
  background: rgba(255,255,255,0.25);
    color:white;

}

/* Responsive */
@media(max-width:1024px){
  .stats-grid { grid-template-columns: repeat(2,1fr);}
  .history-grid { grid-template-columns: 1fr;}
  .gallery-grid { grid-template-columns: 1fr;}
}






.footer {
  background: linear-gradient(to bottom, #1e293b, #020617);
  color: white;
  padding: 48px 16px;
  border-top: 4px solid #b91c1c;
}

.footer .containerf {
  max-width: 1200px;
  margin: auto;
}

/* GRID */
.footer-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 32px;
  margin-bottom: 32px;
}

/* CARD */
.footer-card {
  background: rgba(15, 23, 42, 0.5);
  padding: 24px;
  border-radius: 12px;
}

.footer-card p {
  color: #cbd5f5;
  line-height: 1.6;
}

/* TITLE */
.footer-title {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 16px;
}

.footer-title i {
  width: 24px;
  height: 24px;
  color: #f87171;
}

.footer-title h3 {
  font-size: 1.1rem;
}

/* BOTTOM */
.footer-bottom {
  border-top: 1px solid #334155;
  padding-top: 24px;
  text-align: center;
}

.footer-bottom .copyright {
  color: #94a3b8;
  margin-bottom: 8px;
}

.footer-bottom .dedication {
  color: #64748b;
  font-size: 0.9rem;
}

/* RESPONSIVE */
@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 600px) {
  .footer-grid {
    grid-template-columns: 1fr;
  }
}













/* RESET */
* {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

body {
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
  background: #f8fafc;
  color: #1e293b;
}

.containerm {
  max-width: 1200px;
  margin: auto;
  padding: 0 16px;
  margin-left:10%;
}

/* BACK BAR */
.back-bar {
  background: #f1f5f9;
  border-bottom: 2px solid #cbd5e1;
}

.back-btn {
    text-decoration:none;
  margin: 16px 0;
  background: #fff;
  padding: 14px 26px;
  border-radius: 10px;
  border: none;
  font-size: 18px;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 10px;
  box-shadow: 0 6px 16px rgba(0,0,0,.1);
  transition: .3s;
  color:black;
}

.back-btn:hover {
  color: #b91c1c;
  box-shadow: 0 12px 30px rgba(0,0,0,.2);
}

/* HERO */
.hero {
  position: relative;
  height: 600px;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.hero-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, #000, rgba(0,0,0,.6), transparent);
}

.hero-bottom {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: flex-end;
}

.hero-inner {
  max-width: 900px;
  padding-bottom: 48px;
}

/* HERO TEXT */
.hero-badge {
  display: inline-block;
  background: #b91c1c;
  color: #fff;
  padding: 6px 14px;
  border-radius: 8px;
  font-size: 13px;
  letter-spacing: 1px;
  margin-bottom: 16px;
}

.hero-title {
  font-size: 3.5rem;
  color: #fff;
  margin-bottom: 16px;
  text-shadow: 0 6px 20px rgba(0,0,0,.8);
}

.hero-location {
  display: flex;
  gap: 12px;
  color: rgba(255,255,255,.95);
  font-size: 22px;
  margin-bottom: 24px;
}

/* STATS */
.stats-gridd {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
}

.stat-cardd {
  background: rgba(255,255,255,.1);
  backdrop-filter: blur(12px);
  border-radius: 12px;
  padding: 16px;
  border: 1px solid rgba(255,255,255,.2);
}

.stat-header {
  color: rgba(255,255,255,.8);
  font-size: 14px;
  margin-bottom: 6px;
}

.stat-number {
  font-size: 26px;
  color: #fff;
}

/* HISTORY */
.history {
  padding: 120px 0;
}

#history,#gallery,#documents{
    margin-left:auto;
}

.history-title {
  position: relative;
  margin-bottom: 80px;
  text-align: center;
}

.history-title h2::before,
.history-title h2::after {
    margin-top:12px;
  content: "";
  flex: 1;
  height: 4px;
  background: #fca5a5;
}


.history-title h2::before {
  margin-right: 20px;
}

.history-title h2::after {
  margin-left: 20px;
}

.history-title h2 {
  background: #f8fafc;
  padding: 16px 32px;
  font-size: 3rem;
  color: #7f1d1d;
  display: flex;
  align-items: center;
  text-align: center;
}

/* TIMELINE */
.history-timeline {
  position: relative;
  padding-left: 48px;
}

.history-timeline::before {
  content: "";
  position: absolute;
  left: 10px;
  top: 0;
  bottom: 0;
  width: 8px;
  background: linear-gradient(#dc2626, #7f1d1d, #dc2626);
  border-radius: 999px;
}

.history-item {
  position: relative;
  margin-bottom: 32px;
}

.timeline-dot {
  position: absolute;
  left: -14px;
  top: 14px;
  width: 26px;
  height: 26px;
  background: #b91c1c;
  border: 4px solid #f8fafc;
  border-radius: 50%;
  box-shadow: 0 4px 10px rgba(0,0,0,.3);
}

.history-card {
  background: #fff;
  padding: 32px;
  border-radius: 12px;
  border-left: 6px solid #dc2626;
  box-shadow: 0 10px 24px rgba(0,0,0,.1);
  font-size: 18px;
  line-height: 1.9;
  transition: .3s;
}

.history-card:hover {
  box-shadow: 0 18px 40px rgba(0,0,0,.2);
}

/* GALLERY */
.gallery {
  margin-bottom: 120px;
}

.section-heading {
  text-align: center;
  font-size: 2.5rem;
  color: #7f1d1d;
  margin-bottom: 40px;
}

.gallery-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 16px;
}

.gallery-item {
  height: 220px;
  background: #e5e7eb;
  border-radius: 16px;
}

/* DOCUMENTS */
.documents {
  margin-bottom: 120px;
}

.documents-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 24px;
}

.doc-card {
  background: #fff;
  padding: 32px;
  text-align: center;
  border-radius: 16px;
  border: 4px solid #e5e7eb;
  transition: .3s;
  cursor: pointer;
}

.doc-card:hover {
  border-color: #dc2626;
  transform: scale(1.05);
  box-shadow: 0 20px 40px rgba(0,0,0,.2);
}

.doc-icon {
  font-size: 40px;
  margin-bottom: 16px;
}

.documents-slider {
  display: flex;
  gap: 20px;
  overflow-x: auto;
  padding: 15px 5px;
  scroll-behavior: smooth;
}

/* Hide scrollbar (optional) */
.documents-slider::-webkit-scrollbar {
  height: 8px;
}
.documents-slider::-webkit-scrollbar-thumb {
  background: #fca5a5;
  border-radius: 10px;
}

.doc-card {
  min-width: 240px;
  flex-shrink: 0;
  background: #f5f5f5;
  border-radius: 12px;
  padding: 15px;
  cursor: pointer;
  transition: transform .25s ease, box-shadow .25s ease;
}

.doc-card:hover {
  transform: translateY(-5px);
  box-shadow: 0 10px 25px rgba(0,0,0,.15);
}

.doc-icon {
  font-size: 30px;
  margin-bottom: 10px;
}


/* CTA */
.cta {
  background: linear-gradient(to right, #0f172a, #1e293b);
  padding: 80px 16px;
  text-align: center;
  color: #fff;
}

.cta h3 {
  font-size: 2rem;
  margin-bottom: 16px;
}

.cta p {
  font-size: 1.25rem;
  color: #cbd5e1;
  margin-bottom: 32px;
}

.cta-btn {
    text-decoration:none;
  background: #b91c1c;
  border: none;
  color: #fff;
  padding: 16px 40px;
  font-size: 20px;
  border-radius: 12px;
  cursor: pointer;
  transition: .3s;
}

.cta-btn:hover {
  background: #dc2626;
  transform: scale(1.05);
}



/* ============================= */
/* RESPONSIVE FIX – GLOBAL */
/* ============================= */

img {
  max-width: 100%;
  height: auto;
}

.container,
.containerf,
.containerm {
  max-width: 1200px;
  width: 100%;
  padding: 0 16px;
}

/* ============================= */
/* HEADER */
/* ============================= */

@media (max-width: 768px) {
  .title-link h1 {
    font-size: 2rem;
  }

  .title-link p {
    font-size: 1rem;
    text-align: center;
  }

  .hospital-icon {
    display: none;
  }

  .info-box {
    width: 100%;
    justify-content: center;
  }
}

/* ============================= */
/* STATS BANNER */
/* ============================= */

@media (max-width: 1024px) {
  .stats-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .stats-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================= */
/* MAP SECTION */
/* ============================= */

@media (max-width: 1200px) {
  #map-container {
    transform: scale(0.9);
    transform-origin: top center;
  }
}

@media (max-width: 992px) {
  #map-container {
    transform: scale(0.75);
  }
}

@media (max-width: 768px) {
  #map-container {
    width: 100%;
    height: auto;
    transform: scale(0.6);
    margin-top: -120px;
  }

  #map-instruction {
    font-size: 1rem;
    margin-bottom: 20px;
  }
}

@media (max-width: 480px) {
  #map-container {
    transform: scale(0.5);
    margin-top: -160px;
  }

  #tooltip {
    font-size: 12px;
    padding: 4px 8px;
  }
}

/* ============================= */
/* TIMELINE */
/* ============================= */

@media (max-width: 768px) {
  .timeline-section h2 {
    font-size: 1.6rem;
  }
}

/* ============================= */
/* BIG HEADER */
/* ============================= */

@media (max-width: 1024px) {
  .big-header-section h2 {
    font-size: 2.5rem;
  }

  .big-header-section p {
    font-size: 20px;
  }
}

@media (max-width: 480px) {
  .big-header-section h2 {
    font-size: 2rem;
  }

  .big-header-section p {
    font-size: 18px;
  }
}

/* ============================= */
/* HISTORY SECTION */
/* ============================= */

@media (max-width: 1024px) {
  .history-grid {
    grid-template-columns: 1fr;
  }

  .history-item {
    display: flex;
    flex-direction: column;
    gap: 16px;
  }
}

/* ============================= */
/* GALLERY GRID */
/* ============================= */

@media (max-width: 1024px) {
  .gallery-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .gallery-grid {
    grid-template-columns: 1fr;
  }
}

/* ============================= */
/* HERO PAGE (DETAIL) */
/* ============================= */

@media (max-width: 768px) {
  .hero {
    min-height: auto;
  }

  .hero-title {
    font-size: 2rem;
    text-align: center;
  }

  .hero-location {
    justify-content: center;
    text-align: center;
  }

  .stats-gridd {
    grid-template-columns: 1fr;
  }
}

/* ============================= */
/* DOCUMENTS + GALLERY SLIDER */
/* ============================= */

@media (max-width: 768px) {
  .documents-slider {
    flex-wrap: wrap;
    justify-content: center;
  }

  .doc-card {
    width: 90%;
    max-width: 320px;
  }
}

/* ============================= */
/* CTA */
/* ============================= */

@media (max-width: 480px) {
  .cta-section h2,
  .cta h3 {
    font-size: 1.6rem;
  }

  .cta-section p,
  .cta p {
    font-size: 1rem;
  }
}

/* ============================= */
/* FOOTER */
/* ============================= */

@media (max-width: 1024px) {
  .footer-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}

@media (max-width: 480px) {
  .footer-grid {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .footer-title {
    justify-content: center;
  }
}

/* ============================= */
/* MODALS */
/* ============================= */

@media (max-width: 768px) {
  #doc-modal > div,
  #gallery-modal > div {
    width: 95% !important;
    height: auto !important;
  }

  iframe {
    height: 70vh;
  }
}
