


html, body{
background: #ffffff;
  margin: 0;
  padding: 0;
  overflow: hidden;
  font-family: Arial, Helvetica, sans-serif;
  overflow-x: hidden;
}


/*Page wrapper to add border hii */
.Page-wrapper {
  width: 100vw;
  height: 100vh;
  padding: 0;
  display: flex;
  margin: 0;
  border: 12px solid #ffffff; 
  border-radius: 50px;          
  box-sizing: border-box;
  overflow: hidden;              
  position: relative;
}

.navcontainer{
    width: 100%;
    height: auto;
    position: absolute;
    display: flex;
    justify-content: center;
    margin-top: 10px;
    top: 0;
    left: 0;
    z-index: 1000;
}
.navbar{
    position: absolute;
    top: 10px;
    height: 50px;
    width:80%;
    background: #ffffff;
    border-radius: 50px;
    padding: 10px 20px;
    box-shadow: 0 4px 50px rgba(0, 0, 0, 0.20);
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.navlogo img {
  height: 55px;
  transition: filter 0.25s ease, transform 0.25s ease;
}

.navlogo:hover img {
  transform: translateY(-1px);
}


.navlinks{
  display: flex;
  flex-direction:row;
  justify-content: space-around;
}

.navlinks a {
    color: rgb(82, 71, 71);
    text-decoration: none;
    margin: 0 15px;
     font-family: Arial, Helvetica, sans-serif;
     height: 40px;
    font-weight: bold;
     
} 
/*NAVLINKS HOVER*/
.navlinks a:hover{
    color: #0cca22;
    text-shadow: #1ee732 0px 0px 12px;
    cursor: pointer;
    
}

.placebtn button{
    border:none;
    padding: 10px 20px;
    background-color: #09a81a;
    height: 50px;
    width: 150px;
    border-radius: 30px;
    
}

.placebtn button a{
    color: white;
    text-decoration: none;
    font-family: Arial, Helvetica, sans-serif;
    font-weight: bold;
    font-size: 14px;
   
}

.placebtn button:hover{
   
    cursor: pointer;
    box-shadow: #8fe98f 0px 0px 20px;
    background: linear-gradient(90deg,#82cd1b, #43ff5c, #0cca22, #82cd1b);
  background-size: 200% 100%;
  animation: slideGrad 3s linear infinite;

    
}
#map {
    width: 100%;
    height: 100%;
    position:absolute;
    top:0;
    left:0;
    border-radius: 50px;
    z-index: 1 ;
}

.user-marker {
  position: relative;
  width: 20px;
  height: 20px;
  transform: translate(-50%, -50%);
  pointer-events: none;
  ;
}

.user-marker .pulse {
  width: 14px;
  height: 14px;
  background: #005a9c;
  border: #f4f4f4 4px solid;
  border-radius: 50%;
  box-shadow: 0 0 0 2px rgba(10,123,228,0.18);
  animation: pulse 5s infinite;
  margin: 0 auto;
}

#layer-list.open {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

@keyframes pulse {
  0% {
    box-shadow: 0 0 0 0 rgba(13, 138, 255, 0.5);
  }
  70% {
    box-shadow: 0 0 0 14px rgba(0,90,156,0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(0,90,156,0);
  }
}
#map-controls {

  display: flex;
  flex-direction: column;
  gap: 10px;
  position: absolute;
  top: 90px;
  right: 50px;
  z-index: 1000;
}

#map-controls button {
  width: 44px;
  height: 44px;
  background: hsl(0, 0%, 100%);
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 12px;

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

  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);

  transition: background 0.2s ease, transform 0.15s ease;
}

#map-controls button img {
  width: 20px;
  height: 20px;
  
  pointer-events: none;
}


#map-controls button:hover {
 color: #00171f;
  background: linear-gradient(90deg,#82cd1b, #43ff5c, #0cca22, #82cd1b);
  background-size: 200% 100%;
  animation: slideGrad 3s linear infinite;

}
@keyframes slideGrad {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
  
}
#map-controls button:hover img {
  filter: brightness(0) invert(1);
}


#map-controls button:active {
  transform: scale(0.95);
}


#map-controls button:disabled {
  opacity: 0.6;
  cursor: not-allowed;
  box-shadow: none;
}


.nav-pill {
  position: absolute;
  display: flex;
  align-items: center;
  gap: 14px;

  padding: 14px 20px;
  border-radius: 999px;

  background: linear-gradient(135deg, #f4f4f4, #ffffff);
  font-family: system-ui, sans-serif;
  font-weight: 600;
  font-size: 15px;
  color: #111;

  transform: translate(-50%, -100%) translateY(12px) scale(1);
  opacity: 0;
  pointer-events: none;

  transition:
    transform 0.35s cubic-bezier(.2,.8,.2,1),
    opacity 0.25s ease,
    filter 0.25s ease;
  will-change: transform, opacity, filter;
}

.nav-pill.show {
  opacity: 1;
  transform: translate(-50%, -100%) translateY(0);
  pointer-events: auto;
}


.nav-pill.hide {
  opacity: 0;
  transform: translate(-50%, -100%) translateY(12px) scale(0.94);
  filter: blur(2px) saturate(0.9);
  pointer-events: none;
}


.pill-arrow {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: #ececec;
  display: grid;
  place-items: center;
  font-size: 18px;
  transition: transform 0.25s ease;
}

.nav-pill:hover .pill-arrow {
  transform: translateX(4px);
  color: #00171f;
  background: linear-gradient(90deg,#82cd1b, #43ff5c, #0cca22, #82cd1b);
  background-size: 200% 100%;
  animation: slideGrad 3s linear infinite;
}
@keyframes slideGrad {
  0% { background-position: 0% 0; }
  100% { background-position: 200% 0; }
  
}
.nav-pill:hover .pill-arrow img {
  filter: brightness(0) invert(1); /* turns dark SVG to white */
}
/* bottom triangle pointer */
.pill-tip {
  position: absolute;
  bottom: -10px;
  left: 50%;
  transform: translateX(-50%);
  width: 0;
  height: 0;
  border-left: 10px solid transparent;
  border-right: 10px solid transparent;
  border-top: 10px solid #0a7be4;
  filter: drop-shadow(0 -2px 2px rgba(0,0,0,0.08));
}

.hidden {
  display: none;
}
.leaflet-routing-container {
  display: none !important;
}
.pill-arrow img {
  width: 100%;
  height: 100%;
  object-fit: contain; 
  display: block;   
  width: 24px;
  height: 24px;   
}
.pill-arrow {

  border-radius: 50%;
  background: #ececec;
  display: grid;
  place-items: center;
  transition: transform 0.25s ease;
  overflow: hidden; 
  
  
}


.layer-item {
  border-radius: 12px;
  transition: background 0.2s ease, transform 0.15s ease, filter 0.2s ease;
  overflow: hidden;
  align-items: center;
  display: flex;
}
.layer-item .thumb {
  border-radius: 8px;
  transition: filter 0.2s ease, transform 0.15s ease;
}

.layer-item:hover {
  color: #ffffff;
  background: linear-gradient(90deg,#82cd1b, #43ff5c, #0cca22, #82cd1b);
  background-size: 200% 100%;
  animation: slideGrad 3s linear infinite;
  transform: translateY(-2px);
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
}
.layer-item:hover .thumb,
.layer-item:hover img {
  filter: brightness(0) invert(1);
}
#layer-btn {
  width: 44px;
  height: 44px;
  background: hsl(0, 0%, 100%);
  border: 1px solid rgba(0,0,0,0.12);
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  transition: background 0.2s ease, transform 0.15s ease;
  position: absolute;
  bottom: 50px;
  right: 40px;  
  z-index: 1000;
}

#layer-btn img {
  width: 60%;
  height: 60%;
  object-fit: contain;
  display: block;
  transition: filter 0.25s ease;
}

#layer-btn:hover {
  background: linear-gradient(90deg,#82cd1b, #43ff5c, #0cca22, #82cd1b);
  background-size: 200% 100%;
  animation: slideGrad 3s linear infinite;
}

#layer-btn:hover img {
  filter: brightness(0) invert(1);
}


#layer-list {
  position: absolute;
  bottom: 100px; 
  right: 50px;
  background: #ffffff;
  border-radius: 16px;
  box-shadow: 0 8px 20px rgba(0,0,0,0.15);
  display: none;
  flex-direction: column;
  padding: 10px;
  gap: 8px;
  z-index: 1000;
}

@keyframes popIn {
  0% { transform: scale(0.86); opacity: 0; }
  60% { transform: scale(1.06); opacity: 1; }
  100% { transform: scale(1); opacity: 1; }
}
.layer-item.pop {
  animation-name: popIn;
  animation-duration: 360ms;
  animation-fill-mode: both;
  animation-timing-function: cubic-bezier(.2,.8,.2,1);
}

.layer-item {
  cursor: pointer;
  padding: 8px 12px;
  border-radius: 65px;
  font-family: Arial, Helvetica, sans-serif ;
  background: #f4f4f4;
  transition: background 0.2s ease;
  font-weight: bold;
 color: rgb(82, 71, 71);
}

.layer-item:hover {
  color: #ffffff;
  background: linear-gradient(90deg,#82cd1b, #43ff5c, #0cca22, #82cd1b);
  background-size: 200% 100%;
  animation: slideGrad 3s linear infinite;
}
/* --- PLACE CARD THEMED --- */

.place-card {
    position: relative;
    width: 280px;
    background: #ffffff;
    border-radius: 10px;
/*    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.15);*/
    overflow: hidden;
    z-index: 10001; /* Above map and navigation */
    cursor: pointer;
    font-family: Arial, Helvetica, sans-serif;
    
    /* Animation: Floating / Hidden State */
    opacity: 1;
    visibility: visible;
    pointer-events: auto;
    margin: 0;
    z-index: 1500;
}

.place-card.is-visible {
    opacity: 1;
    visibility: visible;
    transform: translate(-50%, -105%) scale(1);
}

.card-image-wrapper {
    width: 100%;
    height: 140px;
    overflow: hidden;
}

.card-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
    border-radius: 28px;
}

.place-card:hover .card-image {
    transform: scale(1.1);
}

.card-content {
    padding: 18px;
}

.card-title {
    margin: 0;
    font-size: 18px;
    font-weight: bold;
    color: rgb(82, 71, 71);
}

.card-meta {
    margin: 4px 0 0 0;
    font-size: 13px;
    color: #09a81a;
    font-weight: bold;
}


/* Tags */
.card-tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 10px;
    width: 100%;
}

.card-tags .chip {
    background: #f4f4f4;
    padding: 4px 10px;
    padding-top: 6px;
    border-radius: 20px;
    font-size: 15px;
    width: fit-content;
    font-weight: bold;
    color: rgb(82, 71, 71);
}

/* Smooth Expand */
.card-description-container {
    display: grid;
    grid-template-rows: 0fr;
    transition: grid-template-rows 0.4s cubic-bezier(0.2, 0.8, 0.2, 1), opacity 0.3s ease;
    opacity: 0;
}

.card-description-inner { overflow: hidden; }

.card-description {
    margin: 0;
    padding: 12px 0;
    font-size: 17px;
    line-height: 1.4;
    color: rgb(82, 71, 71);
}

.place-card.is-expanded .card-description-container {
    grid-template-rows: 1fr;
    opacity: 1;
}

/* Navigate Button - Matches your .placebtn style */
.card-actions {
    margin-top: 12px;
}

.card-nav-btn {
    width: 100%;
    border: none;
    height: 40px;
    border-radius: 20px;
    background-color: #09a81a;
    color: white;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    cursor: pointer;
    transition: box-shadow 0.3s ease;
}

.card-nav-btn:hover {
    box-shadow: #8fe98f 0px 0px 15px;
    background: linear-gradient(90deg,#82cd1b, #43ff5c, #0cca22, #82cd1b);
    background-size: 200% 100%;
    animation: slideGrad 3s linear infinite;
}


.place-card {
   z-index: 9999;
    position: fixed;
    left: 0;
    top: 0;
    pointer-events: auto;
}
.info-panel {
    z-index: 1401;
    display: flex;
    flex-direction: column;
}

.panel-list {
    flex: 1;
    overflow-y: auto;
}

/* Ensure detail card covers the list when open */
.detail-card.open {
    opacity: 1;
    pointer-events: auto;
    transform: translateY(-50%) translateX(0);
    z-index: 1500;
}

.place {
    cursor: pointer;
    transition: background 0.2s;
}

.place:hover {
    background: #f9f9f9;
}

.chip {
    display: inline-block;
    background: #eefceb;
    color: #274a27;
    padding: 2px 8px;
    border-radius: 10px;
    font-size: 11px;
    margin-right: 4px;
    margin-top: 4px;
}
/* Ensure the Detail Card is positioned correctly inside the sidebar */
.info-panel .panel {
    position: relative;
    height: 100%;
}

.detail-card {
  position: absolute;
    top: 0;
    left: 100%;
    width: 100%;
    height: 100%;
    background: #fff;
    z-index: 2000;
    transition: left 0.3s ease-in-out;
    display: flex;
    flex-direction: column;
    overflow: hidden;
}

.detail-card.open {
    left: 0; 
}
.detail-content-scroll {
    overflow-y: auto;
    flex: 1;

    /* hide scrollbar visually */
    scrollbar-width: none;  /* Firefox */
}
.detail-content-scroll::-webkit-scrollbar {
    width: 0;  /* Chrome, Safari, Edge */
    background: transparent;
}


.detail-media img {
    width: 100%;
    height: 200px;
    object-fit: cover;
}

.detail-back-btn {
    padding: 15px;
    border: none;
    background: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 10px;
    font-weight: bold;
    color: #09a81a;
}

.practice-bullets {
    padding-left: 20px;
    font-size: 14px;
    color: #444;
}
.practice-bullets li {
    margin-bottom: 5px;
}
/* Slider Styles */
.detail-slider {
    position: relative;
    width: 100%;
    height: 220px;
    overflow: hidden;
    background: #f0f0f0;
}

.detail-slider .slides {
    display: flex;
    width: 100%;
    height: 100%;
    transition: transform 0.4s ease;
}

.detail-slider .slides img {
    min-width: 100%;
    height: 100%;
    object-fit: cover;
}

.detail-slider .prev, .detail-slider .next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255,255,255,0.8);
    border: none;
    font-size: 24px;
    padding: 5px 10px;
    cursor: pointer;
    z-index: 10;
    border-radius: 4px;
}

.detail-slider .prev { left: 10px; }
.detail-slider .next { right: 10px; }

.phone-icon{
  width:14px;
  height:14px;
  vertical-align:middle;
  margin-right:6px;
  opacity: 0.7;
}
.event-row{
  display:flex;
  align-items:center;
  gap:8px;
}

.event-icon{
  width:14px;
  height:14px;
  opacity:0.7;
}
.filter {
    white-space: nowrap;
    background: var(--cat); 
    padding: 8px 16px;
    border-radius: 20px;
    font-size: 13px;
    color: #222; 
    cursor: pointer;
    transition: all 0.25s;
}

/* hover + active logic */
.filter.active,
.filter:hover {
    background: var(--cat);
    color: white;
}

/* category colors */
.school       { --cat: #4A90E2; }
.institute    { --cat: #3F7CAC; }
.office       { --cat: #6B7280; }
.restaurant   { --cat: #D84315; }
.cafe         { --cat: #8D6E63; }
.grocery      { --cat: #7CB342; }
.supermarket  { --cat: #FBC02D; }
.organic      { --cat: #388E3C; }
.government   { --cat: #2E7D32; }
.event        { --cat: #8E24AA; }
.recycle      { --cat: #009688; }
.ev           { --cat: #00ACC1; }
.solar        { --cat: #F57C00; }
.garden       { --cat: #66BB6A; }

#hoverCardRoot{
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 100000;
}

.place-card{
  pointer-events: auto;
}
.card-nav-btn img{

  filter: invert(1);
}
.info-panel{
  position: fixed;
  top: var(--top-nav-h);
  left: 0;
  height: calc(100vh - var(--top-nav-h));
}
.info-panel .panel{
  position: relative;
  height: 100%;
  display: flex;
  flex-direction: column;
}

.detail-card{
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
}
.panel-list{
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}

.detail-content-scroll{
  flex: 1;
  min-height: 0;
  overflow-y: auto;
}
.pill-icon img {
  width: 16px;
  height: 16px;  
  opacity: 0.8;
}

.hamburger {
  display: none;
  font-size: 20px;
  color: black;
  cursor: pointer;
  margin-bottom: 1%;
  font-weight: bolder;
}

.navlinks .placebtn{
  display: none;
}

@media(max-width:720px){
  .navlinks{
    display: none;
  }
  .hamburger {
    display: block;
  }
  

  .navlinks.active{
    position: absolute;
    top: 20vh;
    left: 11vw;
    width: 65vw;
    height: 40vh;
    background-color: white;
    box-shadow: 0 4px 50px rgba(0, 0, 0, 0.20);
    border-radius: 40px;
    z-index: 1000;
    display: block;
  }
  #map-controls{
    right: 15px;
  }
  #layer-btn{
    right: 25px;
  }

  .navlinks div{
    width: 100%;
    height: 19%;
    text-align: center;
    display: flex;
    justify-content: center;
    align-items: center;
  }
  .placebtn{
    display: none;
  }
  .navlinks .placebtn{
    display: block;
    margin-top: 5%;
  }
  .navlinks .placebtn button{
    width: 87%;
  }
  
  .navlinks div a{
    margin-top: 10%;
  }
  #hoverCardRoot{
    transform: scale(0.5);
  }
}