html, body {
	margin: 0;
	padding: 0;
	font-family: 'DM Sans', sans-serif;
	background-color: #f9f5f1;
}

a {
  color: #f47c53;	
  text-decoration: none;
  position: relative; 
}

a:hover {
  text-decoration: underline;
}


/*
a::after {
  content: '';
  position: absolute;
  left: 0;
  bottom: 0;
  width: 100%;
  height: 4px;
  background-color: #f2a5a5; 
  z-index: -1;
}
*/
#main-header {
  transition: all 0.3s ease-in-out;
}

.navbar {
  background-color: #f9f5f1;
  padding: 1rem;
}

.nav-link {
  color: #000 !important;
  margin-right: 1rem;
}


h1 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 3rem;
    line-height: 56px;
    letter-spacing: -0.08rem;
	color: #433F3F;
}

h2 {
    font-family: 'DM Sans', sans-serif;
    font-weight: 600;
    font-size: 2rem;
    line-height: 32px;
    letter-spacing: -0.08rem;
	color: #433F3F;	
	padding-bottom: 1rem;
	margin: 0;
}

.second-title{
    font-family: 'DM Sans', sans-serif;
    font-weight: 400;
    font-size: 1.1rem;
    line-height: 22px;
    letter-spacing: 0px;
	color: #433F3F;	
	
}

/* footer */

footer {
  background-color: #433F3F;
  color: white;
  margin-top: auto;
  padding: 2rem 0;
}
footer a {
  color: #ffffff;
  text-decoration: none;
}
footer a:hover {
  color: white;
}
.icon {
  margin-right: 0.5rem;
}


.breadcrumb a {
  text-decoration: none;
}

.breadcrumb a:hover {
  text-decoration: underline;
}

.main-button {
  background-color: #f47c53; /* warm orange */
  color: white;
  border: none;
  border-radius: 999px; /* pill shape */
  padding: 0.75rem 2rem;
  font-size: 1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
  white-space: normal;
  word-wrap: break-word;
  overflow-wrap: break-word;
  display: inline-block;
  max-width: 100%;  
}

.main-button:hover {
  background-color: #e26b45;
  text-decoration: none;
}

.social-icons i {
  font-size: 1.5rem; /* Increase as needed */
  margin-right: 0.5rem;
  color: #ffffffcc;
  transition: color 0.2s;
}

.social-icons i:hover {
  color: white;
}

/* scrolling cards */

    .scrolling-wrapper {
      overflow-x: auto;
      white-space: nowrap;
      -webkit-overflow-scrolling: touch;
    }

    .scrolling-wrapper .card-wrapper {
      display: inline-block;
      vertical-align: top;
      width: 370px;
      margin-right: 1rem;
    }

    .scrolling-wrapper::-webkit-scrollbar {
      display: none;
    }

    .scrolling-wrapper {
      -ms-overflow-style: none;
      scrollbar-width: none;
    }

    .scroll-btn {
      background: #f47c53;
	  color: #ffffff;
      border: none;
      font-size: 2rem;
      position: absolute;
      top: 50%;
      transform: translateY(-50%);
      z-index: 10;
      cursor: pointer;
    }

    .scroll-left {
      left: 0;
    }

    .scroll-right {
      right: 0;
    }

    .scroll-indicators {
      text-align: center;
      margin-top: 1rem;
    }

    .scroll-indicators span {
      display: inline-block;
      width: 10px;
      height: 10px;
      background-color: #ccc;
      border-radius: 50%;
      margin: 0 5px;
    }

    .scroll-indicators .active {
      background-color: #333;
    }

    .scroll-container {
      position: relative;
    }



/* main page */


.jumbotron {
    position: relative;
    background: url('../images/mainpage_background2.webp') no-repeat center center/cover;
    color: white;
    padding: 5rem;
    border-radius: 10px;
    overflow: hidden;
}

.jumbotron h1 {
	color: white;
}

.overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.4); /* Adjust opacity for better text visibility */
}

.jumbotron-btn {
  background-color: #f47c53; /* warm orange */
  color: white;
  border: none;
  border-radius: 999px; /* pill shape */
  padding: 0.75rem 2rem;
  font-size: 1.1rem;
  font-weight: 500;
  cursor: pointer;
  transition: background-color 0.3s ease;
}

.jumbotron-btn:hover {
  background-color: #e26b45;
  text-decoration: none;
}


 .row.equal-height {
    display: flex;
    flex-wrap: wrap;
 }
  
 .copyrighted_image,
 .text-column {
    display: flex;
    flex-direction: column;
 } 

.image-container {
	position: relative;
	width: 100%;
	height: 100%;
	overflow: hidden;
}

  .image-container img {
    width: 100%;
    height: auto;
    object-fit: cover;
  }

  .recommendedsite_text {
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 8; /* Adjust line count to fit image height */
    -webkit-box-orient: vertical;
  }


/* map page */


#map {
    flex: 3;
    height: 100%;
}

#markerList {
    flex: 1;
    max-width: 300px;
    overflow-y: auto;
    background: white;
    border-left: 1px solid #ccc;
    padding: 0px 10px 10px 10px;
    font-size: 14px;
    height: 100%; /* Matches map height */
}

.marker-item {
    padding: 8px;
    border-bottom: 1px solid #eee;
    cursor: pointer;
}

.marker-item:hover {
    background: #f5f5f5;
}

#searchBoxMobile {
    display: none;
}

#searchBox {
    position: sticky;
    top: 0;
    background-color: white;
    z-index: 1;
    padding-top: 10px;
}

.infowindow-wrapper{
  min-width: 250px;
  max-width: 320px;	
}

  .infowindow-card {
    width: 300px;
  }

  .infowindow-image {
    height: 200px;
    background-size: cover;
    background-position: center;
    position: relative;
  }

.infowindow-text {
  font-size: 1rem;
}	


/* View page */

#view_mapbox{
	height: 500px;
	width: 100%;
}

/* carousel */

.carousel-inner {
    max-height: 700px; /* Set desired height */
}


.carousel-item img {
    height: 700px; /* Uniform height */
    width: auto; /* Allow width to adjust automatically */
    max-width: 100%; /* Prevents images from exceeding their original width */
    object-fit: contain; /* Maintains aspect ratio without cropping */
    display: block;
    margin: 0 auto; /* Centers the image */
    /*background: #f8f8f8; /* Optional: Adds a background for empty spaces */*/
}

.view-details-container{
	background-color: #f3ebe4; 
	border-radius: 1rem; 
	box-shadow: 0 4px 12px rgba(0,0,0,0.05);	
}


/* nearby sites */

.custom-card {
	border-radius: 10px;
	box-shadow: 0px 2px 6px rgba(0, 0, 0, 0.1);
	padding: 16px;
	background: #f8f9fa;
	max-width: 400px;
}
.bookmark-icon {
	position: absolute;
	top: 16px;
	right: 16px;
	color: #666;
	cursor: pointer;
}
.distance {
	font-size: 0.9rem;
	/*font-weight: bold;*/

	display: flex;
	align-items: center;
	gap: 4px;
}
.distance-icon {
	font-size: 0.8rem;

}



/* baguetteBox */

.fullsize-image {
	max-width: 100%;
	height: auto;
	display: block;
	margin: 10px auto;
	border-radius: 5px;
}
.hidden-links {
	display: none;
}

.tags-container {
	display: flex;
	flex-wrap: wrap;
	gap: 10px;
	/*padding: 10px;*/
}
.tag-link {
	background-color: #f4f4f4;
	color: #333;
	text-decoration: none;
	padding: 5px 10px;
	border-radius: 15px;
	font-size: 14px;
	border: 1px solid #ddd;
	transition: all 0.3s ease;
}
.tag-link:hover {
	background-color: #ddd;
	color: #000;
}

a.tag-link {
	text-decoration:none;
}

.position-relative {
	position: relative;
}

.click-indicator {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(244, 124, 83, 0.7);
    color: #fff;
    padding: 5px 10px;
    border-radius: 5px;
    font-size: 14px;
    font-weight: bold;
    opacity: 1;
    transition: opacity 0.3s ease-in-out;
}

#view-firstimage {
    display: block;
}

a:hover .click-indicator {
	opacity: 1;
}

/* pagination */

.pagination .page-link {
	color: #f47c53;
	border-color: #f47c53;
}

.pagination .page-item.active .page-link {
	background-color: #f47c53;
	border-color: #f47c53;
	color: white;
}

.pagination .page-link:hover {
	background-color: #f47c53;
	color: white;
	border-color: #f47c53;
}

/* cards */

/* Make the whole card indicate it's clickable */
.card {
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}
.card:hover {
    /*transform: translateY(-5px);*/ /* Lift the card slightly */
    box-shadow: 0px 4px 15px rgba(0, 0, 0, 0.2);
}

/* Image Background with Hover Overlay */
.card-img-top {
    background-size: cover;
    background-position: center;
    height: 200px;
    position: relative;
    transition: all 0.3s ease-in-out;
    cursor: pointer; /* Change cursor to pointer */
}

/* Dark overlay effect on hover */
.card-img-top::after {
    content: "";
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0); /* No overlay by default */
    transition: background 0.3s ease-in-out;
}
.card:hover .card-img-top::after {
    background: rgba(0, 0, 0, 0.3); /* Darker on hover */
	border-radius: 8px;
}

/* Slight zoom-in effect */
/*.card:hover .card-img-top {
    transform: scale(1.05);
}*/

/* search box */

 .input-border {
    border: 1px solid #433F3F !important;
 }

 .input-border:focus {
    border: 1px solid #f47c53 !important;
 }

.search-suggestions {
  max-height: 500px;
  overflow-y: auto;
  z-index: 1050;
  border: 1px solid #eee;
}

.search-suggestions a {
  display: flex;
  align-items: center;
  padding: 12px;
  text-decoration: none;
  color: #333;
  border-bottom: 1px solid #f1f1f1;
  transition: background 0.2s;
}

.search-suggestions a:hover {
  background-color: #f8f8f8;
}

.search-suggestions .icon {
  font-size: 1.25rem;
  margin-right: 12px;
  color: #555;
}

.search-suggestions p {
  margin: 0;
  font-size: 0.9rem;
}

.search-suggestions small {
  color: #999;
}

/* historical periods */

    .timeline {
      position: relative;
      max-width: 800px;
      margin: 0 auto;
      padding: 20px 0;
    }

    .timeline::after {
      content: '';
      position: absolute;
      left: 30px;
      top: 0;
      bottom: 0;
      width: 2px;
      background: #bbb;
    }

    .period {
      display: flex;
      align-items: center;
      margin-bottom: 40px;
      position: relative;
    }

    .period::before {
      content: '';
      position: absolute;
      left: 21px;
      width: 18px;
      height: 18px;
      background: #666;
      border-radius: 50%;
      z-index: 1;
    }

    .period-content {
      margin-left: 60px;
      display: flex;
      align-items: center;
      gap: 20px;
    }

    .period-content img {
      width: 100px;
      height: 100px;
      object-fit: cover;
      border-radius: 8px;
    }

    .period-text {
      max-width: 500px;
    }

    .period-text h3 {
		font-family: 'DM Sans', sans-serif;
		font-weight: 600;
		font-size: 1.5rem;
		letter-spacing: -0.08rem;
		color: #433F3F;	
		padding-bottom: 0.5rem;
		margin: 0;	  
    }

    .period-text a {
      color: #433F3F;
      text-decoration: none;
    }

    .period-text a:hover {
      color: #f47c53;
      text-decoration: underline;
    }

    .period-text p {
      margin: 0;
      font-size: 16px;
      color: #433F3F;
    } 


	.historicalperiods_img_left {
		float: left;
		margin: 20px 20px 10px 0;
		font-size: 12px;
		line-height: 1.4;
		max-width: 45%;
		border-radius: 8px;
		display: block;
	}

	.historicalperiods_img_right {
		float: right;
		margin: 0 0 10px 20px;
		font-size: 12px;
		line-height: 1.4;
		max-width: 45%;
		border-radius: 8px;
		display: block;
	}

/* featured sites */

.featured-card {
  background-color: #fffafa;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  overflow: hidden;
  transition: transform 0.3s ease;
}
/*.featured-card:hover {
  transform: translateY(-5px);
}*/
.featured-img {
  width: 100%;
  max-height: 500px;
  height: auto;
  object-fit: cover;
}
.photo-credit {
  font-size: 0.9rem;
  margin-top: 0.5rem;
}
.photo-credit a {
  color: #f47c53;
  text-decoration: none;
}


/* Media queries */


/* Extra Small (XS) - Phones */
@media (max-width: 575px) {

	#map{
		height: 500px;
	}
	
	.map-container {
		display: flex;
		height: 500px; /* Ensures both map & list are same height */
	}	
	
    #searchBoxMobile {
        display: block;
    }	
	
    .infowindow-card {
      width: 100%;
    }

    .infowindow-image {
      height: 150px;
    }

    .infowindow-title {
      font-size: 1.5rem;
    }


	#view_mapbox{
		height: 200px;
		width: 100%;
	}
	
	#view-firstimage{
		height: 400px; 
		object-fit: cover; 
		width: 100%;
		border-radius: 8px;			
	}	

	#searchInput{
		max-width: 100%;
	}	
	

}

/* Small (SM) - Small Tablets */
@media (min-width: 576px) and (max-width: 767px) {

	#map{
		height: 500px;
	}

	.map-container {
		display: flex;
		height: 500px; /* Ensures both map & list are same height */
	}		
	
    #searchBoxMobile {
        display: block;
    }
	
    .infowindow-card {
      width: 100%;
    }

    .infowindow-image {
      height: 150px;
    }

    .infowindow-title {
      font-size: 1rem;
    }
	
	#view_mapbox{
		height: 200px;
		width: 100%;
	}
	
	#view-firstimage{
		height: 500px; 
		object-fit: cover; 
		width: 100%;
		border-radius: 8px;			
	}	

	#searchInput{
		max-width: 80%;
	}	

}

/* Medium (MD) - Tablets */
@media (min-width: 768px) and (max-width: 991px) {

	#map{
		height: 600px;
	}
	
	.map-container {
		display: flex;
		height: 600px; /* Ensures both map & list are same height */
	}		

	#view_mapbox{
		height: 300px;
		width: 100%;
	}
	
	#view-firstimage{
		height: 600px; 
		object-fit: cover; 
		width: 100%;
		border-radius: 16px;			
	}	

	#searchInput{
		max-width: 60%;
	}	

}

/* Large (LG) - Laptops */
@media (min-width: 992px) and (max-width: 1199px) {

	#map{
		height: 700px;
	}
	
	.map-container {
		display: flex;
		height: 700px; /* Ensures both map & list are same height */
	}		

	#view_mapbox{
		height: 400px;
		width: 100%;
	}
	
	#view-firstimage{
		height: 600px; 
		object-fit: cover; 
		width: 100%;
		border-radius: 16px;			
	}	

	#searchInput{
		max-width: 40%;
	}	

}

/* Extra Large (XL) - Desktops */
@media (min-width: 1200px) {


	#map{
		height: 700px;
	}
	
	.map-container {
		display: flex;
		height: 700px; /* Ensures both map & list are same height */
	}	
	
	#view_mapbox{
		height: 500px;
		width: 100%;
	}
	
	#view-firstimage{
		height: 600px; 
		object-fit: cover; 
		width: 100%;
		border-radius: 16px;		
	}	
	
	#searchInput{
		max-width: 40%;
	}
	
    /*.scrolling-wrapper .card-wrapper {
      width: 450px;
    }*/	
	

}

/* 2XL - Large Screens */
@media (min-width: 1400px) {

	#map{
		height: 800px;
	}
	
	.map-container {
		display: flex;
		height: 800px; /* Ensures both map & list are same height */
	}	

	#view_mapbox{
		height: 500px;
		width: 100%;
	}
	
	#view-firstimage{
		height: 600px; 
		object-fit: cover; 
		width: 100%;
		border-radius: 16px;			
	}	

	#searchInput{
		max-width: 40%;
	}

    /*.scrolling-wrapper .card-wrapper {
      width: 450px;
    }*

}