html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: "Inter", sans-serif;
  font-optical-sizing: auto;
  font-weight: 200;
  font-style: normal;
  /* background: linear-gradient(to bottom, #ddd, transparent 80px);
  background: linear-gradient(to bottom, skyblue, transparent 80px); */
  color:rgb(45, 45, 45);
}
body:not(.home) header {
  background:#fff;
}

body:not(.home) {
  background:rgb(250,250,250)
}

.home section:not(.hero, .teaser) {
  line-height:2;
}

header {
  padding: 20px 40px 20px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  position: relative;
  z-index: 999;
}

body:not(.home) header {
  border-bottom:1px solid #eee;
}

header a {
  text-decoration: none;
}

.modlista-logo {
  letter-spacing: 1px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
}

.modlista-logo img {
  max-height: 55px;
  border:none;
  /* background: #fff; */
}

.tagline {
  font-size: 14px;
  font-weight: normal;
  color: #333;
  margin: -22px 0 0 60px;
  text-shadow: 0 0 black;
}

.hero {
  text-align: center;
  padding: 80px 20px 70px 0;
  background-image: 
    linear-gradient(to top, rgba(232,171,24,.7), transparent 50%),
    url(images/hero-bg-iu-trans.webp);
   background-image: 
    linear-gradient(to top, rgba(0,0,0,.17), transparent 40%),
    url(images/hero-bg-iu-trans.webp);
  background-repeat: no-repeat;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  background-position: bottom;
  background-blend-mode:color;
  position: relative;
  min-height: 200px;
}

.how-it-works {
  background-color: #fff;
  background-image: 
    linear-gradient(to bottom, rgba(232,171,24,.7), transparent 15%);
  background-image: 
    linear-gradient(to bottom, rgba(0,0,0,.1), transparent 20%);
  padding: 20px;
  text-align: center;
  margin-top: 0;
}

.how-it-works h2,
.community h2 {
  font-size: 32px;
  margin-top:0
}

.community h2 {
  margin-top:30px
}


.hero h1 {
  font-size: 46px;
  margin: 0;
  line-height: 0.9;
  position: relative;
  z-index: 98;
  text-shadow: 0 0 24px #fff;
}

.hero .buttons {
  /* position: relative; */
  z-index: 99;
  margin-top:10px
}

.hero .buttons a:nth-of-type(2) {
  background: #e8ab18;
  color: #fff;
}

.buttons a {
  background-color: #de6709;
  color: #fff;
  padding: 14px 28px;
  margin: 10px;
  display: inline-block;
  text-decoration: none;
  border-radius: 28px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.buttons a {
  box-shadow: 0 0 50px #ddd;
}

.buttons a:hover {
  background-color: #A9A9A9 !important;
  color: #fff !important;
  border-color: #fff !important;
  box-shadow: 0 0 140px;
}

.buttons a:nth-of-type(1):hover {
  background-color: #A9A9A9 !important;
}

nav a {
  margin-left: 5px !important;
  text-decoration: none;
  color: #555;
  /* font-weight: bold; */
  border: 1px solid #A9A9A9;
  font-size: 0.8rem;
  letter-spacing: 0.5;
  padding: 5px 15px;
  box-shadow: 0 0 20px #ccc;
  background: #fff;
  border-radius: 28px;
}

nav a:nth-of-type(2) {
  background: #A9A9A9;
  color: #fff;
}

nav a:hover {
  background-color: #e8ab18;
  color: #fff !important;
}

h1, h2, h3 {
  font-family: "Playfair Display", sans-serif;
  font-optical-sizing: auto;
  font-weight: 900;
  font-style: normal;
  color: #444;
  color:rgb(45, 45, 45);
  border-radius: 200px;
}


.why h2,
.about h2 {
  margin-top: 60px;
  text-align: center;
}

.why p,
.about p {
  max-width: 70%;
  margin: 0 auto;
}

.steps {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 100px;
}

.step {
  max-width: 25%;
  text-align: center;
}

.step-icon {
  width: 75px;
  height: 75px;
  background: #e8ab18;
  border-radius: 0;
  margin: 0 auto 15px;
  display: flex;
  align-items: center;
  justify-content: center;
}

.step-icon:after {
  content: '';
  width: 75px;
  height: 75px;
  background-image: url(images/step-icons-bg.png) !important;
  background-repeat: no-repeat;
  background-position: -9px -5px;
  background-size: 230%;
  filter: invert(100%);
  opacity: 80%;
}

.step:nth-of-type(1) .step-icon {
  transform: rotate(45deg);
}

.step:nth-of-type(1) .step-icon:after {
  transform: rotate(-45deg);
}

.step:nth-of-type(2) .step-icon {
  background-color: #A9A9A9;
  transform: rotate(45deg);
}

.step:nth-of-type(2) .step-icon:after {
  /* filter: invert(100%);
  opacity: 80%; */
  transform: rotate(-45deg);
  background-position: -2px -80px;
  background-size: 210%;
}

.step:nth-of-type(3) .step-icon {
  background:#de6709;
  transform: rotate(45deg);
}

.step:nth-of-type(3) .step-icon:after {
  background-position: -89px -86px;
  transform: rotate(-90deg);
}

.step a {
  color: #555;
}

.step a:hover {
  color: #de6709;
}

.step-title {
  font-size: 20px;
  font-weight: bold;
  margin: 30px 0 0;
  display: block;
}

.step-desc,
.why,
.about {
  font-size: 16px;
  color: #555;
  text-align: justify;
}

.community {
  background-color: #fff;
  padding: 10px 20px 60px;
  margin-top: -27px;
  text-align: center;
}

.discussions {
  margin: 30px 0;
  display: flex;
  flex-direction: column;
  gap: 20px;
  align-items: center;
}

.discussion {
  background-color: #f7f7f7;
  padding: 24px;
  border-radius: 12px;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  max-width: 600px;
  width: 100%;
  text-align: left;
}

.community-button a {
  background-color: #de6f20;
  color: #fff;
  padding: 14px 28px;
  text-decoration: none;
  border-radius: 8px;
  font-weight: bold;
  transition: background-color 0.3s;
}

.community-button a:hover {
  background-color: #d5541e;
}

footer {
  padding: 40px 20px;
  text-align: center;
  font-size: 14px;
  font-weight:300;
  letter-spacing:2px;
  color: #bbb;
  background:rgb(45,45,45);
}

footer a {
  color:#fff;
}

.listing {
  position: relative;
  margin: 0;
  background:rgb(250,250,250);
}

.listing .hero-container {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  min-height: 480px;
  overflow: hidden;  
}

.listing .hero-img {
  width: 100%;
  max-height: 480px;
  object-fit: cover;
  /* border-radius: 20px 0 0; */
  height: auto;
  display: block;
  min-height: 550px;
  background-color: #f0f0f0;
  transition: opacity 0.4s ease-in-out;
  opacity: 1;
}

.listing .hero-img.fade-out {
  opacity: 0;
}

.listing .tags {
  display: flex;
  gap: 8px;
}

.listing .tag {
  background: #eee;
  padding: 4px 8px;
  border-radius: 4px;
  font-size: 12px;
  font-weight:300
}

.listing .save-btn {
  background: #de6f20;
  color: white;
  border: none;
  padding: 4px 10px;
  border-radius: 4px;
  cursor: pointer;
  font-size: 14px;
}

.listing .title-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 16px;
  margin-bottom: 12px;
}

.listing .listing-title {
  font-size: calc(28px + 20 * (100vw - 1024px) / 416);
  letter-spacing: -.02em;
  line-height: 1.125;
  font-weight: bold;
  margin: 15px 0 0;
  /* line-height: 60px; */
}

.listing .listing-info {
  display: flex;
  justify-content: space-between;
  align-items: center;
  flex-wrap: wrap;
  gap: 16px;
}

.listing .info-left {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.listing .info-middle {
  display: flex;
  gap: 8px;
  font-size: 14px;
  color: #555;
}

.listing .byline cite {
  display:block !important;
  font-weight:300;
  margin:10px 20px;
  width:100%;
  background:rgb(250,250,250);
}

.listing .info-right {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

.listing .material-icons {
  font-size: 16px;
  vertical-align: middle;
}

.listing .hero-container .tags span {
  background: #fff;
  padding: 2px 5px;
  font-size: 0.8rem;
  font-weight:300;
  color:#eee;
  background:rgba(0,0,0,.7);
}

.listing .hero-container .tags {
  position:absolute;
  margin:10px
}

.listing .hero-container .tags span.oto {
  background:gold;
  color:#333;
}

/* .listing.oto:before {
  content: 'Open To Offers';
  position: absolute;
  background: #e8ab18;
  padding: 0 5px;
  border-radius: 6px;
  left: 150px;
  top: 10px;
  font-size: 0.8rem;
  z-index: 2;
} */

.listing {
  display: flex;
  flex-direction: column;
  width: 100%;
}

.listing-top {
  display: flex;
  flex-direction: row;
  flex-wrap: nowrap;
  width: 100%;
  min-height: 500px; /* or whatever fits your hero image */
}

.listing-header {
  flex: 0 0 40%; /* roughly matches Dwell's headline column */
  padding: 40px 32px;
  display: flex;
  flex-direction: column;
  justify-content: top;
  box-sizing: border-box;
}

.hero-container {
  flex: 1 1 60%; /* takes remaining space */
  position: relative;
  overflow: hidden;
}

.hero-img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.listing-body {
  padding: 35px 32px;
  max-width: 1000px;
  margin: 0 auto;
  box-sizing: border-box;
  font-size:1.2rem;
  line-height:2;
  font-weight:200;
}

.listing-body a {
  color: initial;
  text-decoration:none;
  font-weight:300
}

.listing-body a:hover {
  color: #888;
  text-decoration:underline;
}

.listing-body hr {
  /* height:3px; */
  margin-bottom:35px;
  color:rgb(45, 45, 45);
  /* background:rgba(0, 0, 0,.25); */
}

.listing-body blockquote {
  border-left:5px solid #ccc;
  margin-left:0; padding-left:30px;
  /* font-style:italic; */
  font-weight:500;
  font-size:1.6rem;
  /* letter-spacing:1.5px; */
  font-family: "Playfair Display";
  line-height:1.5
  
}

.listing-body img {
  max-width:100%
}

.full-bleed-img {
  background: white;
  margin-left: calc(50% - 50vw);
  margin-right: calc(50% - 50vw);
  max-width: 100vw;
  overflow: hidden;
}

.full-bleed-img img {
  display: block;
  width: 100%;
  height: auto;
}

.img-band {
  background: white;
  width: 100vw;
  position: relative;
  left: 50%;
  right: 50%;
  margin: 30px -50vw;
  border:1px solid #eee;
  border-width:1px 0;
}

.img-band img {
  display: block;
  max-width: 950px; /* match .listing-body’s max-width */
  width: 100%; /* or remove this if you want natural image size */
  margin: 0 auto;
  height: auto;
}

.thumbnail-overlay {
  position: absolute;
  bottom: 8px;
  right: 8px;
  display: flex;
  flex-direction: row;
  gap: 6px;
  background: rgba(255, 255, 255, 1);
  border-radius: 10px;
  padding: 5px;
  pointer-events: none;
  opacity: 0;
  transform: translateY(10px);
  transition: opacity 0.3s ease, transform 0.3s ease;
  overflow-x: auto;
  max-width: calc(100% - 28px);
}

.listing .hero-container:hover .thumbnail-overlay {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}

.thumbnail-overlay img {
  width: 80px;
  height: auto;
  flex: 0 0 auto;
  object-fit: cover;
  cursor: pointer;
  border-radius: 4px;
  background: white;
  box-sizing: border-box;
}

.thumbnail-overlay img.active {
  border: 5px solid #333;
}

.gallery-grid div > span.tag {
  margin: 0 7px 0 0;
  background: #333;
  color: #fff;
  font-size: 0.7rem;
  padding: 3px 5px;
  border-radius: 4px;
}

.gallery-grid div > span.tag.offers {
  background: #e8ab18;
  border: 1px solid #e8ab18;
  padding: 2px 4px;
  text-transform: uppercase;
}

.gallery-grid {
  padding-top:40px!important
}

.teaser {
  display: flex;
  /* overflow: hidden; */
  white-space: nowrap;
  position: relative;
  height: 100px;
  align-items: center;
  /* background: #d9d9d9;
  background:rgba(232,171,24,.5);
  border:3px solid rgba(232,171,24,.5); */
  background: #fff;
  background:#fff;
  border:3px solid #fff;
  border-width:6px 0 3px
}

.teaser a {
  display: inline-block;
  margin-right: 5px;
}

.teaser img {
  height: 100px;
  width: auto;
  transition: transform 0.3s ease;
}

.teaser img:hover {
  transform: scale(1.5);
  box-shadow: 0 0 0 5px #fff;
  border-radius:6px
}

@keyframes scroll-left {
  0% { transform: translateX(0); }
  100% { transform: translateX(-50%); }
}

.teaser-inner {
  display: inline-flex;
  animation: scroll-left 120s linear infinite;
}

.teaser:hover .teaser-inner {
  animation-play-state: paused;
}

.unknown {display:none}

@media (max-width: 1024px) {
  .steps { gap: 60px; margin-bottom:30px}
  .step { max-width: 45%; }
  nav {
    width: 100%;    /* fill parent */
    display: flex;   /* make nav a flex container */
    justify-content: flex-end;  /* move links to right */
    align-items: center; /* vertical alignment */
  }

  .modlista-logo {
    min-width:70%
  }
  nav a { font-size: 0.75rem; padding: 4px 10px; }
    
  section h2 {line-height:1; text-align:center!important; margin:40px 0 0!important}
  .why,.about,.community {margin:0 25px}
  .why p, .about p {max-width: 100%;}

  .listing-top {
    flex-direction: column;
  }

  .listing-header,
  .hero-container {
    width: 100%;
    flex: 0 0 auto;
    max-width: 1000px;
    margin: 0 auto;
    padding: 32px;
    box-sizing: border-box;
  }

  .hero-container {
    order: -1;
    padding:0
  }

  .listing-body {
    padding:0 32px
  }

  .listing .listing-title {
    font-size: 38px !important;
    line-height: 1.2;
  }
  
}

@media (max-width: 768px) {
  .modlista-logo img {
    content: url('images/modlista-logo-mobile.webp');
    min-height:85px;
  }
  .teaser, #mobileMenu,#navToggle {display:none!important}
  header,.modlista-logo {display:block;text-align:center}
  .steps { flex-direction: column; align-items: center; gap: 40px; }
  .step { max-width: 90%; }
  .tagline { text-align: center; max-width: 100%; margin:10px 0 0}
  nav { display: none; }
  .hero h1 { font-size: 36px; }
  .hero .buttons { flex-direction: column; gap: 10px; }
  .hero .buttons a { width: 100%; max-width: 250px; margin: 10px auto; }
}
