/* === Barebones Reset === */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Improve text rendering */
html {
  font-size: 18px;
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  background: linear-gradient(to right, #1d466d, #66859c);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

body {
  font-family: 'Montserrat', sans-serif;
}
/* Make media elements behave sanely */
img,
picture,
video,
canvas,
svg {
  display: block;
  max-width: 100%;
}

/* Inherit fonts for form controls */
input,
button,
textarea,
select {
  font: inherit;
}

/* Prevent long text from blowing up layouts */
p,
h1,
h2,
h3,
h4,
h5,
h6 {
  overflow-wrap: break-word;
}

p {
  margin-bottom: 1rem;
}

ul, ol {
  margin: 0 0 1rem 1.25rem;
}

h1, h2, h3, h4, h5, h6 {
  margin: 1.5rem 0 0.75rem;
}

a img {
  display: block;
}
a:link {
  color: #525252;
  text-decoration: none;
}
a:visited {
  color: #525252;
}
a:hover {
  color: #CD7F32;
  text-decoration: none;
  cursor: pointer;
}
a:active {
  color: slateblue;
}
#header-links a {
  color: white;
}
#header-links a:hover {
  color: white;
}
#hero-map-wrapper {
  position: relative;
}
#about-wrapper {
  display: flex;
  position: relative;
  width: 100%;
  height: auto;
  margin-top: 120px;
  background-color: #f2f2f2;
}
#about-portrait {
  display: block;
  position: relative;
  width: 30%;
  margin-top: 80px;
  padding-left: 50px;
}
#about-portrait img {
  width: 600px;
  height: auto;
  object-fit: cover;
  display: block;
}
#about-info {
  display: block;
  flex-direction: column;
  position: relative;
  width: 100%;
  height: auto;
  line-height: 26px;
  color: #525252;
  padding: 30px;
  padding-right: 50px;
}
#listing-wrapper {
  display: flex;
  position: relative;
  width: 100%;
  height: auto;
  margin-top: 120px;
  background-color: #f2f2f2;
}
#listing-slideshow {
  display: flex;
  position: relative;
  width: 1000px;
  height: auto;
}
#listing-info-pages {
  display: block;
  position: relative;
  width: 100%;
  height: auto;
  line-height: 26px;
  color: #525252;
  padding: 30px;
}
#sell-image {
  display: flex;
  position: relative;
  width: 30%;
  height: 411px;
  margin-top: 0;
  padding-left: 50px;
}
#sell-image img {
  width: 100%;
  height: auto;
  object-fit: contain;
  display: block;
}
#social-media-wrapper {
  display: flex;
  flex-direction: row;
  position: relative;
}
.social-icon {
	width: 40px;
	height: auto;
	transition: transform 0.3s ease;
}
.social-icon:hover {
	transform: scale(1.1);
}
#hero {
  display: flex;
  position: relative;
  width: 100%;
  height: 850px;
  background: url("../images/cover03.png") center/cover no-repeat;
}
#hero-map {
  position: fixed;
  top: 120px;
  left: 0;
  width: 50vw;
  height: calc(100vh - 120px);
  overflow: hidden;
}
#map {
  width: 100%;
  height: 100%;
  border-radius: 0px;
  overflow: hidden;
}
.map-popup {
  font-family: 'Montserrat', sans-serif;
  line-height: 1.4;
}
.map-popup a {
  color: #2a6f97;
  font-weight: 600;
  text-decoration: none;
}
#hero-header-top {
  display: flex;
  position: fixed;
  top: 0;
  width: 100%;
  height: 120px;
  align-items: center;
  z-index: 10;
}
#hero-header-bottom {
  display: flex;
  position: fixed;
  top:0;
  width: 100%;
  height: 120px;
  background-color: rgba(0, 0, 0, 0.3); /* instead of opacity */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  z-index: 1;
}
#hero-header-logo {
  display: flex;
  position: relative;
  width: 104px;
  height: 80px;
  background-image: url("../images/LogoMTN-small.png");
  background-size: contain;
  background-position: center center;
  margin-left: 10px;
}
#hero-header-logo-link {
  display: block;
}
#hero-title {
  display: flex;
  position: relative;
  width: auto;
  flex: 1;
  height: 80px;
  font-size: 24px;
  font-weight: bold;
  color: #ffffff;
  align-items: center;
  margin-left: 20px;
}
#header-links {
  display: flex;
  width: 20%;
  height: 50px;
  font-size: 16px;
  font-weight: bold;
  color: white;
  word-spacing: 0.5em;
  align-items: center;
  justify-content: center;
}
#hero-contact {
  display: flex;
  width: 10%;
  height: 85px;
  right: 0;
  font-size: 14px;
  font-weight: bold;
  color: #fff;
  align-items: center;
  justify-content: right;
  padding-right: 50px;
  margin-right: 10px;
  text-decoration: none;
  cursor: pointer;
}
#hero-contact img {
  width: 10%;
  height: 100%;
  width: auto;
  display: block;
}
#contact-button-wrapper {
  display: flex;
}
.contact-button {
  width: 160px;
  height: 38px;
  background-color: transparent;
  color: white;
  font-size: 16px;
  font-weight: bold;
  letter-spacing: 0.05em;
  cursor: pointer;
  align-items: center;
  padding-bottom: 4px;
  border: 0;
}
/*FOR CONTACT POPUP*/
.popup-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.6);
  display: none;
  justify-content: center;
  align-items: center;
  z-index: 9999;
}
.popup-box {
  background: #fff;
  padding: 25px;
  border-radius: 8px;
  width: 320px;
  box-shadow: 0 10px 30px rgba(0,0,0,0.25);
}
.popup-box h2 {
  margin-top: 0;
}
.popup-box input {
  width: 100%;
  padding: 10px;
  margin: 8px 0 15px;
  border: 1px solid #ccc;
  border-radius: 4px;
}
.popup-box button {
  width: 100%;
  padding: 10px;
  margin-top: 10px;
}
.hero-contact-link {
  display: block;
  width: 100%;
  height: 100%;
  text-decoration: none;
}
#hero-text {
  display: flex;
  position: absolute;
  width: 650px;
  height 300px;
  top: 600px;
  font-size: 48px;
  font-weight: bolder;
  color: white;
  left: 75px;
  text-shadow: 0 2px 4px rgba(0,0,0,0.35);
}
#hero-spotlight {
  display: flex;
  position: absolute;
  flex-direction: column;
  flex-wrap: wrap;
  gap: 20px;
  width: 580px;
  height: auto;
  top: 150px;
  right: 30px;
  padding: 20px;
  background-color: rgba(0, 0, 0, 0.3); /* instead of opacity */
  backdrop-filter: blur(20px);
  -webkit-backdrop-filter: blur(20px);
  border-radius: 10px;
}
.hero-spotlight-inside {
  display: flex;
  position: relative;
  aspect-ratio: 16 / 9;
  width: 100%;
  overflow: hidden;
}
.hero-spotlight-inside img {
  width: 100%;
  height: auto;
  display: block;
}
.hero-spotlight-inside a {
  display: block;
  width: 100%;
  height: 100%;
}
#body-wrapper {
  display: flex;
  width: 100%;
  height: auto;
  margin: 0;
  background-color: #f2f2f2;
  justify-content: center;
}
#body-middle {
  display: flex;
  position: relative;
  flex-direction: column;
  top: 0px;
  width: 100%;
  height: auto;
  background-color: #f2f2f2;
  padding-bottom: 150px;
  align-items: center;
}
#body-middle-listingsPage {
  display: flex;
  position: relative;
  flex-direction: column;
  top: 120px;
  width: 50%;
  height: 100vh;
  margin-left: 50%;
  background-color: #f2f2f2;
  align-items: center;
  overflow-y: auto;
}
#body-middle-heading {
  display: flex;
  position: relative;
  width: 77%;
  height: 30px;
  color: #525252;
  margin-top: 100px;
  margin-bottom: 20px;
  border-bottom: 1px solid #525252;
}
#sort {
  display: flex;
  width: 75%;
  justify-content: right;
  margin-bottom: 10px;
}
.listing-containerALL {
  display: flex;
  width: 75%;
  flex-direction: column;
}
.listing-container {
  display: flex;
  position: relative;
  flex-direction: row;
  width: 100%;
  height: 200px;
  border-radius: 10px;
  align-items:flex-start;
  padding-top: 10px;
  background-color: white;
  box-shadow: 0px 1px 5px rgba(0, 0, 0, 0.2);
  transition: box-shadow 0.3s ease-in-out;
  margin-bottom: 14px;
}
/*
.listing-container:hover {
  box-shadow: 0px 1px 8px rgba(0, 0, 0, 0.8);
}
  */
.listing-img {
  width: 300px;
  height: auto;
  margin-right: 15px;
  margin-left: 5px;
}
.listing-info_wrap {
  display: flex;
  flex-direction: column;
}
.listing-info {
  width: 400px;
  height: auto;
  font-size: 14px;
  color: #525252;
}
.listing-info h2 {
  margin: 0;
  padding: 0;
  line-height: 1.5;
}
.listing-button {
  width: 160px;
  height: 30px;
  border-radius: 20px;
  background-color: #e22942;
  color: white;
  border: 0;
  margin-top: 10px;
  border: 0;
}
.listing-button:hover {
  cursor: pointer;
  background-color: #e22942;
}
.footer-cont {
  display: flex;  
	position: relative;
	width: 100%;
	height: auto;
	background-color: #202020;
	z-index: 5;
	justify-content: center;
	align-items: center;
}
.footer-info {
  display: flex;
	position: relative;
	/*max-width: 1000px;*/
	/*min-width: 300px;*/
	padding: 20px;
	color: #d8d8d8;
	flex-direction: column;
	align-items: center;
	width: 75%;
  font-size: 14px;
}
.footer-links {
	width: 300px;
	text-align: center;
	font-size: 14px;
	margin-bottom: 20px;
  word-spacing: 0.6em;
}
.footer-links a {
  color: #d8d8d8;
  text-decoration: none;
}
.footer-links a:hover {
  color: orangered;
  text-decoration: underline;
}
.footer-info a {
  color: #d8d8d8;
  text-decoration: underline;
}
.footer-info a:hover {
  color: orangered;
  text-decoration: underline;
}
.copyright {
	position: relative;
	font-size: 11px;
	width: 100%;
	text-align: left;
	max-width: 1000px;
}
.slideshow-container {
  position: relative;
	margin-top: 30px;
	box-sizing: border-box;
  width: 1000px;
  height: 600px;
}
.mySlides {
	display: none;
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 600px;
	object-fit: contain;
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	overflow: hidden;
}
.mySlides img {
	width: auto;
	height: auto;
	max-width: 100%;
	max-height: 600px;
	object-fit: contain;
	box-sizing: border-box;
	margin: 0;
	padding: 0;
	overflow: hidden;
}

/* Navigation buttons */
.prev, .next {
	position: absolute;
	top: 50%;
	height: 40%;
	border-radius: 10px;
	padding: 16px;
	margin: 1%;
	color: white;
	background-color: rgba(0, 0, 0, 0.5);
	border: none;
	cursor: pointer;
	font-size: 18px;
	transition: background-color 0.3s ease;
	transform: translateY(-50%);
}

.prev {
 	left: 0;
	transform: translateY(-50%);
}

.next {
	right: 0;
	transform: translateY(-50%);
}

.prev:hover, .next:hover {
	background-color: rgba(0, 0, 0, 0.8);
}

/* Counter styling */
.counter {
	position: absolute;
	bottom: 4%;
	left: 50%;
	transform: translateX(-50%);
	font-family: Arial, Helvetica, sans-serif;
	color: white;
	font-size: 18px;
	font-weight: bold;
	background-color: rgba(0, 0, 0, 0.5);
	padding: 5px 10px;
	border-radius: 5px;
	margin: 0;
}

/* Media query for smaller screens */
@media (max-width: 768px) {
  .contact-button {
    display: none;
  }
  #hero {
    width: 100%;
    height: 400px;
    background-repeat: no-repeat;
    background-position: calc(50% + 12px) top;
  }
  @supports (-moz-appearance: none) {
    #hero {
      background-position: calc(50% + 14px) top;
    }
  } 
  #hero-header-top {
    height: 80px;
  }
  #hero-header-bottom {
    height: 80px;
  }
  #hero-header-logo {
    width: 50px;
    height: 41px;
    background-size: contain;
    background-repeat: no-repeat;
    background-position: center center;
    margin-left: 5px;
  }
  #hero-title {
    display: flex;
    position: relative;
    width: 85%;
    height: 61px;
    font-size: 10px;
    font-weight: bold;
    color: #ffffff;
    align-items: center;
    margin-left: 10px;
  }
  @supports (-moz-appearance: none) {
    #hero-title {
      font-size: 9px;
    }
  } 
  #header-links {
    display: none;
  }
  #hero-contact {
    width: 15%;
    height: auto;
    right: 0px;
    font-size: 12px;
    font-weight: bold;
    color: #ffffff;
    align-items: center;
    justify-content: flex-end;
    padding-right: 0;
    background-size: contain;
  }
  @supports (-moz-appearance: none) {
    #hero-contact {
      padding-right: 0;
    }
  }
  #hero-text {
    display: flex;
    position: absolute;
    width: 75%;
    height 300px;
    top: 280px;
    font-size: 24px;
    font-weight: bolder;
    color: white;
    left: 25px;
    text-shadow: 0 2px 10px rgba(0,0,0,0.85);
  }
  #hero-spotlight {
    display: none;
  }
  #body-middle-heading {
    display: flex;
    position: relative;
    width: 90%;
    height: 25px;
    font-size: 14px;
    margin-bottom: 20px;
  }
  #sort {
    display: flex;
    width: 90%;
    justify-content: left;
    margin-bottom: 15px;
    }
  #body-middle {
    width: 100%;
  }
  #hero-map {
    position: relative;
    top: 80px;
    width: 100%;
    height: 300px;
  }
  #about-wrapper {
  flex-direction: column;
  margin-top: 80px;
}
  #about-portrait {
    width: 100%;
    height: auto;
    margin-top: 0;
    padding-left: 0;
  }
  #about-info {
    width: 100%;
    height: auto;
  }
  #sell-image {
  display: flex;
  position: relative;
  width: 100%;
  height: auto;
  margin-top: 0;
  padding-left: 0;
}
  #body-middle-listingsPage {
    top: 0;
    width: 100%;
    margin-left: 0;
    height: auto;
    overflow-y: visible;
  }
  .listing-containerALL {
    width: 100%;
    align-items: center;
  }
  .listing-container {
    flex-direction: column;
    width: 90%;
    height: auto;
    align-items: center;
    padding: 10px;
  }
  .listing-img {
    width: 100%;
    height: auto;
  }
  .listing-info_wrap {
    display: flex;
    flex-direction: column;
    width: 100%;
  }
  .slideshow-container {
  position: relative;
	margin-top: 0;
  padding-top: 0;
	box-sizing: border-box;
  width: 1000px;
  height: auto;
}
  #listing-wrapper {
    flex-direction: column;
    margin-top: 80px;
}
  #listing-slideshow {
    width: 100%;
    padding: 0;
    margin-top: 0;
  }
  #listing-info-pages {
    width: 100%;
    padding-top: 0;
  }
  .listing-info {
    width: 100%;
    height: auto;
    font-size: 14px;
    margin-top: 12px;
  }
  .footer-info {
    width: 90%;
  }
}
