.float-up {
  opacity: 0;
  transform: translateY(20px);
  transition: opacity 0.6s ease, transform 0.6s ease;
}

.float-up.visible {
  opacity: 1;
  transform: translateY(0);
}


.company-name{
  color:white;
}

.since{
  color:white;
  font-size: 2rem;
}


.affiliations{
  display:inline-block;
  padding: 1rem;
  background: rgb(255, 255, 255);

  border-radius: 8%;
  font-size: 1.2rem;
  margin-top: 0.5rem;
}
.hero {
  position: block;
  min-height: 100vh;
  padding: 2rem;
  box-sizing: border-box;
  overflow: hidden;
  display: flex;
  justify-content: center;
  align-items: center;
  background: linear-gradient(
    var(--color-primary),
    white

  );
}


.hero-content {
  position: relative;
  z-index: 2;
  display: flex;
  gap: 3rem;
  max-width: 1200px;
  width: 100%;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  padding-bottom:10rem;
}

/* Example for left and right hero parts */
.hero-left {
  flex:1 1 300px;
  max-width: 600px;
  text-align: center;
}

.hero-left h1 {
  font-size: 4rem;
  margin: 0.2rem 0;
  font-weight: 900;
  letter-spacing: 2px;
  color: white;
}

.hero-left .since,
.tagline {
  color: white;
}

.hero-right {
  flex: 1 1 280px;
  max-width: 320px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 2rem;
}

/* Responsive example */
@media (max-width: 720px) {
  .hero-content {
    flex-direction: column;
    text-align: center;
  }

  .hero-left,
  .hero-right {
    max-width: 100%;
  }

  .hero-left h1 {
    font-size: 3rem;
  }
}

.tripadvisor-widget {
  width: 100%;
  height: 120px;
  background: rgba(255 255 255 / 0.2);
  border-radius: 10px;
  box-shadow: 0 4px 15px rgba(0,0,0,0.15);
  display: flex;
  justify-content: center;
  align-items: center;
  font-style: italic;
  font-size: 0.9rem;
  color: #e0f2f1;
}

.flag {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.flag:hover::after {
  content: attr(data-name);
  position: absolute;
  bottom: 110%;
  left: 50%;
  transform: translateX(-50%);
  background: rgba(0,0,0,0.75);
  color: white;
  padding: 4px 8px;
  border-radius: 4px;
  white-space: nowrap;
  font-size: 0.75rem;
  pointer-events: none;
  opacity: 1;
  transition: opacity 0.2s ease;
  z-index: 10;
}

.flag::after {
  content: "";
  opacity: 0;
  pointer-events: none;
}


.flags-grid {
  display: grid;
  grid-template-columns: repeat(8, 40px);
  gap: 12px;
  justify-content: center;
}

.flags-grid img {
  width: 40px;
  height: 28px;
  border-radius: 5px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.15);
  object-fit: cover;
}

.and-more {
  grid-column: span 6;
  color:white;
  font-weight: 600;
  font-size: 1rem;
  text-align: center;
  margin-top: 8px;
  letter-spacing: 0.1em;
}

/* Mobile */
@media (max-width: 720px) {
  .hero {
    flex-direction: column;
    text-align: center;
    padding: 2rem 1rem;
  }

  .hero-left, .hero-right {
    max-width: 100%;
  }

  .hero-left h1 {
    font-size: 3rem;
  }

  .flags-grid {
    grid-template-columns: repeat(5, 36px);
    gap: 10px;
  }

  .flags-grid img {
    width: 36px;
    height: 25px;
  }
}



.main-content {
  padding-left: 20px;
  padding-right: 20px;
}

.search-bar-container {
  display: flex;
  justify-content: center;
  align-items: center;
  margin-bottom: 20px;
}

.search-input {
  width: 60%;
  height: 4rem;
  border-radius: 0.5em;
  border: 0.1rem solid var(--color-secondary-dark);
  font-size: 2rem;
  padding-left: 0.75rem;
  box-shadow: 0.1rem 0.1rem 0.5rem var(--color-secondary);
  transition: box-shadow 0.3s;
  color: var(--color-primary-light);
  margin-top: 20px;
  margin-bottom: 20px;
}

.search-input:focus {
  box-shadow: 0.1rem 0.1rem 1rem var(--color-primary);
  outline: none;
}

.filter-hidden{
  display:none;
}

.filter-buttons-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(6rem, 1fr));
  gap: 1rem;
  padding: 0 1rem 3rem; /* reduced padding on small screens */
  box-sizing: border-box;

}

.filter-button {
  width: auto; /* avoid fixed width */
  max-width: 100%; /* don't overflow container */
  display: flex;
  color: var(--color-primary);
  flex-direction: column;
  height: 3rem;
  font-size: 1.2rem;
  background-color: var(--color-background);
  justify-content: center;
  border-radius: 0.5em;
  border: 1px solid var(--color-secondary-dark);
  cursor: pointer;
  transition: box-shadow 0.1s;
  outline: none;
}


.active-filter-button {
  box-shadow:
    rgba(27, 112, 209, 0.4) 0px 0px 0px 3px,
    rgba(27, 112, 209, 0.65) 0px 4px 6px 1px;
  display: flex;
  flex-direction: column;
  height: 3rem;
  font-size: 1.2rem;
  background-color: var(--color-background);
  justify-content: center;
  border-radius: 0.5em;
  border: 0;
  cursor: pointer;
  transition: box-shadow 0.2s;
  outline: none;
  width: auto; /* avoid fixed width */
  max-width: 100%; /* don't overflow container */
}

@media (max-width: 550px) {
  .filter-button,.active-filter-button {
    font-size: 0.99rem;
    padding: 0.4rem 0.8rem;
  }
}

/* about nepal page */

.image-inline-container .map-image {
  width: 40vw;
  display: inline-block;
}

.inline-description-text {
  display: inline-block;
}

thead {
  background-color: var(--color-secondary-dark);
}

tbody > tr:nth-of-type(even) {
  background-color: rgb(199, 234, 255);
}

th,
td {
  border: 1px solid rgb(160 160 160);
}

.about-info {
  display: grid;
  grid-template-columns: 1fr 1fr;
}

.panel-image {
  width: 1fr;
}

#testimonial-heading {
  margin-top: 4rem;
}

.testimonial-wrapper {
  margin-top: 2rem;
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 2rem;
  
  width: 100%;
  box-sizing: border-box;
  padding: 0 1rem;
}

.testimonial {
  border: 1px solid var(--color-secondary);
  border-radius: 20px;
  padding: 1rem;
  box-shadow: 0 4px 15px rgba(0, 17, 254, 0.1);
}

@media (min-width: 620px) {
  .filter-buttons-row {
    padding: 0 5rem 3rem; /* restore large padding on wider screens */
  }
}

#bookmark-overlay {
  position: fixed;
  top: 0;
  left: 0;
  width: 100vw;
  height: 100vh;
  background-color: #bbdeff92; /* darkness */
  z-index: 999; /* below popup */
}
#bookmark-popup {
  position: fixed;
  top: calc(50% + 2.2rem);
  left: 50%;
  transform: translate(-50%, -50%);
  background: white;
  border-radius: 8px;
  box-shadow: 0 4px 15px rgba(0, 0, 0, 0.3);
  width: 90vw;
  max-width: 600px;
  max-height: 80vh; /* limit max height to 80% of viewport height */
  overflow: hidden; /* hide overflow on popup container */
  display: flex;
  flex-direction: column;
  padding: 1.5rem;
  z-index: 10001;
}

#bookmark-list {
  flex: 1; /* fill remaining vertical space */
  overflow-y: auto; /* vertical scroll */
  margin-top: 1rem;
  padding-left: 0;
  list-style: none;
}

#close-popup {
  position: absolute;
  top: 10px;
  right: 15px;
  background: none;
  border: none;
  font-size: 2rem;
  cursor: pointer;
}

.bookmark-hidden {
  display: none;
}

.profile-picture{
  width:3rem;
  height:3rem;
  vertical-align: middle;
  border-radius: 50%;
}

@media (max-width: 860px) {
  .testimonial-wrapper {
    grid-template-columns: repeat(1, 1fr);
  }
}



@media (max-width: 860px) {
  .testimonial-wrapper {
    grid-template-columns: repeat(1, 1fr);
  }
}

@media (max-width:860px){
.about-info {
  display: grid;
  grid-template-columns: 1fr;
}

.image-inline-container .map-image{
  display:block;
  width: 100%;
}

h2{
  font-size:2rem;
}
}