@import url("./fonts.css");
:root {
  --td-ink: #0a0a0a;
  --td-muted: rgba(16, 16, 16, 0.78);
  --td-border: rgba(16, 16, 16, 0.26);
  --td-display: "Mediteran Display", Didot, Georgia, serif;
  --td-serif: "Cormorant Garamond", Georgia, "Times New Roman", serif;
  --td-sans: "Inter", ui-sans-serif, system-ui, sans-serif;
  --td-shell: min(1440px, 92vw);
}

.mm-td-page {
  color: var(--td-ink);
  padding: clamp(24px, 3.8vw, 48px) 0 clamp(90px, 10vw, 130px);
}

.mm-td-shell {
  width: var(--td-shell);
  margin: 0 auto;
}

/* LINE-style hero: two staggered overlapping images + centered white title */
.mm-td-hero {
  position: relative;
  padding: clamp(16px, 2.5vw, 28px) clamp(12px, 2vw, 24px) 0;
  overflow: visible;
}

.mm-td-hero__stage {
  position: relative;
  width: min(1180px, 94vw);
  margin: 0 auto;
  min-height: clamp(560px, 72vw, 860px);
}

.mm-td-hero__img {
  position: absolute;
  overflow: hidden;
  border: 0;
  box-shadow: 0 22px 50px rgba(10, 10, 10, 0.18);
}

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

/* Left + right: wide panels so they meet and overlap in the middle (no gap) */
.mm-td-hero__img--left {
  left: 0;
  top: 0;
  width: 58%;
  height: 92%;
  z-index: 1;
}

.mm-td-hero__img--right {
  right: 0;
  top: 11%;
  width: 58%;
  height: 88%;
  z-index: 2;
}

.mm-td-hero__titlewrap {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  z-index: 3;
  width: min(92%, 720px);
  text-align: center;
  pointer-events: none;
}

.mm-td-title {
  margin: 0;
  font-family: var(--td-display);
  text-transform: uppercase;
  letter-spacing: 0.045em;
  line-height: 0.98;
  font-size: clamp(32px, 5.2vw, 58px);
  font-weight: 400;
  color: #fff;
  text-shadow:
    0 1px 0 rgba(0, 0, 0, 0.2),
    0 2px 12px rgba(0, 0, 0, 0.45),
    0 8px 40px rgba(0, 0, 0, 0.35);
}

.mm-td-title__line {
  display: block;
}

.mm-td-intro {
  padding: clamp(28px, 4vw, 48px) 0 clamp(34px, 4.6vw, 62px);
}

.mm-td-intro__shell {
  width: min(1180px, 94vw);
  margin: 0 auto;
  text-align: center;
  max-width: none;
}

@media (max-width: 700px) {
  .mm-td-hero__stage {
    min-height: clamp(620px, 135vw, 820px);
  }

  .mm-td-hero__img--left {
    width: 92%;
    height: 46%;
    left: 0;
    top: 0;
  }

  .mm-td-hero__img--right {
    width: 92%;
    height: 46%;
    right: 0;
    top: auto;
    bottom: 6%;
    left: auto;
  }

  .mm-td-hero__titlewrap {
    top: 46%;
  }
}

.mm-td-kicker {
  margin: 0;
  text-transform: uppercase;
  letter-spacing: 0.33em;
  font-size: 11px;
  font-weight: 700;
}

.mm-td-lead {
  margin: clamp(16px, 2.4vw, 28px) auto 0;
  max-width: min(82ch, 94vw);
  font-family: var(--td-serif);
  font-size: clamp(18px, 1.62vw, 24px);
  line-height: 1.46;
}

.mm-td-intro .mm-td-lead {
  margin-left: auto;
  margin-right: auto;
}

.mm-td-near {
  padding-top: clamp(16px, 2.5vw, 32px);
}

.mm-td-overline {
  margin: 0;
  text-transform: lowercase;
  text-align: center;
  letter-spacing: 0.2em;
  font-size: 11px;
  font-weight: 600;
}

.mm-td-near__title {
  margin: clamp(8px, 1.4vw, 16px) 0 0;
  text-align: center;
  text-transform: uppercase;
  font-family: var(--td-display);
  font-size: clamp(36px, 4.5vw, 56px);
  letter-spacing: 0.05em;
  font-weight: 400;
}

.mm-td-filter-label {
  margin: clamp(18px, 2.6vw, 30px) 0 0;
  text-align: center;
  text-transform: uppercase;
  letter-spacing: 0.32em;
  font-family: var(--td-sans);
  font-size: 9px;
  font-weight: 700;
}

/* LINE-style filter row: square + spaced sans labels */
.mm-td-filters {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  align-items: center;
  gap: clamp(14px, 2.4vw, 28px);
  margin-top: clamp(14px, 2vw, 22px);
  max-width: min(920px, 100%);
  margin-left: auto;
  margin-right: auto;
}

.mm-td-filter {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  cursor: pointer;
  font-family: var(--td-sans);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.22em;
  text-transform: uppercase;
  color: var(--td-ink);
  user-select: none;
}

.mm-td-filter input {
  appearance: none;
  -webkit-appearance: none;
  width: 11px;
  height: 11px;
  margin: 0;
  flex-shrink: 0;
  border: 1px solid #0a0a0a;
  border-radius: 0;
  background: transparent;
  cursor: pointer;
  position: relative;
  box-sizing: border-box;
}

.mm-td-filter input:checked {
  background: #0a0a0a;
}

.mm-td-filter input:focus-visible {
  outline: 2px solid #0a0a0a;
  outline-offset: 2px;
}

/* One column: joint stack — single outer frame, dividers between rows */
.mm-td-grid {
  display: flex;
  flex-direction: column;
  gap: 0;
  margin-top: clamp(36px, 4.5vw, 52px);
  max-width: min(1280px, 100%);
  margin-left: auto;
  margin-right: auto;
  border: 1px solid #0a0a0a;
  box-sizing: border-box;
}

.mm-td-card {
  border: none;
  background: transparent;
  padding: clamp(28px, 3.8vw, 52px);
  box-sizing: border-box;
  /* Default text = editorial serif (overrides body Inter from site.css) */
  font-family: var(--td-serif);
  font-weight: 400;
  -webkit-font-smoothing: antialiased;
}

/* Dividers between joint rows */
.mm-td-grid:not(.mm-td-grid--js) .mm-td-card + .mm-td-card {
  border-top: 1px solid #0a0a0a;
}

/* JS mode: seams come from this class only (must beat any + .mm-td-card rules) */
.mm-td-grid .mm-td-card.mm-td-card--joint-top {
  border-top: 1px solid #0a0a0a;
}

.mm-td-card__inner {
  display: flex;
  flex-direction: row;
  align-items: stretch;
  gap: clamp(28px, 3.6vw, 44px);
}

.mm-td-card__media {
  flex: 0 0 45%;
  max-width: 45%;
  height: clamp(260px, 28vw, 360px);
  align-self: flex-start;
  border: 1px solid rgba(10, 10, 10, 0.2);
  background: rgba(255, 255, 255, 0.35);
  display: block;
  overflow: hidden;
}

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

.mm-td-card__media span {
  font-family: var(--td-sans);
  font-size: 9px;
  letter-spacing: 0.24em;
  text-transform: uppercase;
  color: rgba(16, 16, 16, 0.45);
}

.mm-td-card__body {
  flex: 1;
  min-width: 0;
  text-align: left;
  padding-top: clamp(2px, 0.4vw, 6px);
  font-family: var(--td-serif);
  font-weight: 400;
}

/* .mm-td-page scoping beats site.css h3 { font-family: Inter } */
.mm-td-page .mm-td-card__body h3 {
  margin: 0;
  font-family: var(--td-display);
  font-weight: 400;
  font-style: normal;
  text-transform: uppercase;
  letter-spacing: 0.045em;
  font-size: clamp(22px, 2.35vw, 34px);
  line-height: 1.12;
  color: var(--td-ink);
}

.mm-td-card__addr {
  margin: clamp(12px, 1.6vw, 18px) 0 0;
  padding-bottom: 12px;
  border-bottom: none;
  display: inline-block;
  max-width: 100%;
  font-family: var(--td-sans);
  font-size: 10px;
  font-weight: 500;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(10, 10, 10, 0.78);
  line-height: 1.45;
  text-decoration: none;
  cursor: pointer;
}

.mm-td-card__addr-text {
  position: relative;
  display: inline-block;
}

.mm-td-card__addr-text::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 1px;
  background: #0a0a0a;
  transform: scaleX(1);
  transform-origin: left;
  transition: transform 240ms ease;
}

.mm-td-card__addr:hover .mm-td-card__addr-text::after,
.mm-td-card__addr:focus-visible .mm-td-card__addr-text::after {
  transform: scaleX(0);
}

.mm-td-card__miles {
  font-weight: 800;
  white-space: nowrap;
}

.mm-td-page .mm-td-card__body h4.mm-td-card__label {
  margin: clamp(18px, 2.2vw, 26px) 0 0;
  font-family: var(--td-sans);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.26em;
  text-transform: uppercase;
  color: var(--td-ink);
  font-style: normal;
}

.mm-td-card__text {
  margin: clamp(10px, 1.2vw, 14px) 0 0;
  font-family: var(--td-serif);
  font-weight: 500;
  font-size: clamp(16px, 1.2vw, 19px);
  line-height: 1.62;
  color: rgba(16, 16, 16, 0.88);
}

/* Slightly tighter + darker editorial copy for the "Why we love it" paragraph */
.mm-td-card__text--why {
  line-height: 1.45;
  color: rgba(10, 10, 10, 0.94);
  letter-spacing: -0.005em;
}

/* Slightly tighter + darker editorial copy for the "What it is" paragraph */
.mm-td-card__text--what {
  line-height: 1.45;
  color: rgba(10, 10, 10, 0.94);
  letter-spacing: -0.005em;
}

@media (max-width: 900px) {
  .mm-td-card__inner {
    flex-direction: column;
  }

  .mm-td-card__media {
    flex: none;
    align-self: auto;
    max-width: 100%;
    width: 100%;
    height: clamp(220px, 52vw, 300px);
  }
}

/* Photo credits */
.mm-td-credits {
  padding: clamp(20px, 3vw, 36px) 0 clamp(28px, 4vw, 48px);
  border-top: 1px solid rgba(10, 10, 10, 0.1);
  margin-top: clamp(36px, 4.5vw, 52px);
}

.mm-td-credits__text {
  margin: 0;
  font-family: var(--td-sans);
  font-size: 10px;
  line-height: 1.8;
  color: rgba(10, 10, 10, 0.66);
  letter-spacing: 0.01em;
}

.mm-td-credits__text strong {
  font-weight: 600;
  color: rgba(10, 10, 10, 0.78);
  text-transform: uppercase;
  letter-spacing: 0.1em;
}

.mm-td-credits__text a {
  color: rgba(10, 10, 10, 0.66);
  text-decoration: underline;
  text-underline-offset: 2px;
}

.mm-td-credits__text a:hover {
  color: rgba(10, 10, 10, 0.7);
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}
