@import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap");

/* === Barebones Reset === */
*,
*::before,
*::after {
  margin: 0;
  padding: 0;
  box-sizing: border-box;
}

/* Improve text rendering */
html {
  -webkit-text-size-adjust: 100%;
  text-size-adjust: 100%;
  font-family: Inter, sans-serif;
  font-size: 18px;
  background-color: black;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

/* 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;
}
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;
}
#hero {
  display: flex;
  position: relative;
  width: 100%;
  height: 850px;
  background: url("../images/cover03.png") center/cover no-repeat;
}
#hero-header-top {
  display: flex;
  position: fixed;
  width: 100%;
  height: 120px;
  align-items: center;
  z-index: 10;
}
#hero-header-bottom {
  display: flex;
  position: fixed;
  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: 80%;
  height: 80px;
  font-size: 24px;
  font-weight: bold;
  color: #ffffff;
  align-items: center;
  margin-left: 20px;
}
#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: 150px;
  height: 38px;
  background-color: transparent;
  color: white;
  font-weight: bold;
  font-size: 14px;
  cursor: pointer;
  align-items: center;
  padding-bottom: 4px;
  border: 2px solid white;
  border-radius: 16px;
}
.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: 600px;
  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;
  width: 80%;
  height: auto;
  background-color: #f2f2f2;
  padding-bottom: 150px;
  align-items: center;
}
#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-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: 200px;
	text-align: center;
	font-size: 14px;
	margin-bottom: 20px;
}
.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;
}

/* 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: 75px;
    height: 61px;
    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;
    }
  } 
  #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%;
  }
  .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%;
  }
  .listing-info {
    width: 100%;
    height: auto;
    font-size: 14px;
    margin-top: 12px;
  }
  .footer-info {
    width: 90%;
  }
}
