/* Cross-page transitions: on browsers that support it (Chrome/Edge 126+), this alone makes every
   internal navigation crossfade the old page into the new one instead of hard-cutting to blank.
   No JS, no fallback needed — unsupported browsers just navigate normally, same as before. */
@view-transition {
  navigation: auto;
}

::view-transition-old(root),
::view-transition-new(root) {
  animation-duration: 0.32s;
  animation-timing-function: ease;
}

@media (prefers-reduced-motion: reduce) {
  ::view-transition-group(*),
  ::view-transition-old(*),
  ::view-transition-new(*) {
    animation: none !important;
  }
}

:root {
  --navy: #12161d; /* "ink": kept as the dark accent used for text/fills on top of light surfaces */
  --navy-light: #2a303b;
  --orange: #e57200; /* the one accent colour, used sparingly */
  --orange-dark: #ff9a3c; /* brighter than the old light-page value, for contrast on dark */
  --bg: #0b0e13;
  --card-bg: #171b22;
  --border: rgba(255, 255, 255, 0.12);
  --text: #f2f3f5;
  --text-muted: #9aa0ab;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto,
    Helvetica, Arial, sans-serif;
  color-scheme: dark;

  /* Sword cursors (emoji drawn into a 32px SVG). Dagger for the page, crossed swords for anything
     clickable. The two numbers are the hotspot: where the tip of the blade counts as the click. */
  --cursor-default: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Cg transform='translate(0 32) scale(1 -1)'%3E%3Ctext x='2' y='27' font-size='27'%3E%26%23x1F5E1%3B%26%23xFE0F%3B%3C/text%3E%3C/g%3E%3C/svg%3E") 3 3, auto;
  --cursor-pointer: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='32' height='32'%3E%3Ctext x='2' y='27' font-size='27'%3E%26%23x2694%3B%26%23xFE0F%3B%3C/text%3E%3C/svg%3E") 4 5, pointer;
}

html {
  cursor: var(--cursor-default);
}

a,
button,
label,
select,
summary,
[role="button"],
input[type="checkbox"],
input[type="radio"],
input[type="range"] {
  cursor: var(--cursor-pointer);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

.app {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
}

.site-header {
  background: rgba(11, 14, 19, 0.85);
  backdrop-filter: saturate(180%) blur(12px);
  -webkit-backdrop-filter: saturate(180%) blur(12px);
  border-bottom: 1px solid var(--border);
  padding: 14px 32px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.brand {
  display: flex;
  align-items: center;
  gap: 11px;
  color: var(--text);
  font-weight: 650;
  font-size: 15px;
  letter-spacing: -0.01em;
  line-height: 1.2;
}

.brand-mark {
  background: white;
  color: var(--navy);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  width: 32px;
  height: 32px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: center;
  flex: none;
}

.brand-sub {
  display: block;
  font-size: 12px;
  font-weight: 400;
  color: var(--text-muted);
  letter-spacing: 0;
}

main {
  flex: 1;
}

.site-footer {
  text-align: center;
  padding: 20px;
  color: var(--text-muted);
  font-size: 13px;
  border-top: 1px solid var(--border);
  background: var(--card-bg);
}

.empty-state {
  grid-column: 1 / -1;
  text-align: center;
  padding: 60px 20px;
  color: var(--text-muted);
  background: var(--card-bg);
  border-radius: 12px;
  border: 1px dashed var(--border);
}

.error-banner {
  border-left: 3px solid #ff6b60;
  color: #ff6b60;
  padding: 9px 14px;
  margin-bottom: 16px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  font-size: 13px;
  color: var(--text-muted);
}

.field input,
.field select {
  font-size: 14px;
  color: var(--text);
  padding: 8px 10px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  font-family: inherit;
}

.field input[type="range"] {
  padding: 0;
  border: none;
}

.field-row {
  flex-direction: row;
  gap: 12px;
}

.field-row label {
  flex: 1;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.checkbox {
  flex-direction: row;
  align-items: center;
  gap: 8px;
  color: var(--text);
  font-size: 14px;
}

.checkbox input {
  width: auto;
}

/* Detail page */
.detail-page {
  max-width: 1000px;
  margin: 0 auto;
  padding: 24px;
}

.back-link {
  display: inline-block;
  margin-bottom: 16px;
  color: var(--text);
  font-weight: 600;
  font-size: 14px;
}

.detail-hero {
  height: 340px;
  border-radius: 16px;
  background-size: cover;
  background-position: center;
  margin-bottom: 24px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 2fr 1fr;
  gap: 32px;
}

.detail-main h1 {
  margin: 0 0 8px;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.detail-main h2 {
  margin: 40px 0 16px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.detail-address {
  color: var(--text-muted);
  margin: 0 0 28px;
}

.detail-stats {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 0;
}

.detail-stats div {
  padding: 16px 8px;
  text-align: center;
  border-left: 1px solid var(--border);
}

.detail-stats div:first-child {
  border-left: none;
}

.detail-stats strong {
  display: block;
  font-size: 18px;
  font-weight: 600;
}

.detail-stats span {
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.detail-description {
  line-height: 1.6;
  color: var(--text);
}

.amenities-list {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px 20px;
  padding: 0;
  list-style: none;
}

.amenities-list li {
  position: relative;
  padding-left: 18px;
  font-size: 14px;
}

.amenities-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 8px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--orange);
}

.price-card {
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 20px;
  position: sticky;
  top: 24px;
}

.price-main {
  font-size: 26px;
  font-weight: 800;
  color: var(--text);
}

.price-main span {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
}

.price-total {
  font-size: 13px;
  color: var(--text-muted);
  margin-bottom: 16px;
}

.price-card dl {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 6px 12px;
  margin: 0 0 16px;
  font-size: 13px;
}

.price-card dt {
  color: var(--text-muted);
}

.price-card dd {
  margin: 0;
  font-weight: 600;
  text-align: right;
}

.contact-block {
  border-top: 1px solid var(--border);
  padding-top: 16px;
  margin-top: 4px;
}

.contact-name {
  font-weight: 600;
  margin: 0 0 4px;
}

.contact-block a {
  color: var(--orange-dark);
  font-size: 13px;
}

@media (max-width: 860px) {
  
  
  .detail-grid {
    grid-template-columns: 1fr;
  }
  .detail-stats {
    grid-template-columns: repeat(2, 1fr);
  }
  .amenities-list {
    grid-template-columns: 1fr;
  }
}

/* Flask port additions */

.apply-button {
  background: var(--orange);
  color: white;
  border: none;
  border-radius: 8px;
  padding: 10px;
  font-weight: 600;
  cursor: var(--cursor-pointer);
}

.field-row label {
  min-width: 0;
}

.field-row input {
  width: 100%;
  min-width: 0;
}

/* ---- shared bits -------------------------------------------------------- */
.site-nav a {
  color: var(--text-muted);
  margin-left: 28px;
  font-size: 14px;
  font-weight: 500;
  transition: color 0.15s ease;
}

.site-nav a:hover {
  color: var(--text);
}

.text-link {
  color: var(--orange-dark);
  text-decoration: underline;
}

/* your initial in the nav; links to your account page */
.site-nav {
  display: flex;
  align-items: center;
}

html body .site-nav a.nav-avatar {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: white;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
  text-shadow: none;
}

html body .site-nav a.nav-avatar:hover {
  color: var(--navy);
  background: #e9e9e7;
}

.muted {
  color: var(--text-muted);
}

.small {
  font-size: 12px;
}

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.btn {
  display: inline-block;
  font: inherit;
  font-weight: 600;
  font-size: 14px;
  padding: 10px 20px;
  border-radius: 999px;
  border: 1px solid transparent;
  cursor: var(--cursor-pointer);
  text-align: center;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.btn-primary {
  background: white;
  color: var(--navy);
}

.btn-primary:hover {
  background: #e9e9e7;
}

.btn-ghost {
  background: transparent;
  border-color: var(--border);
  color: var(--text);
}

.btn-ghost:hover {
  border-color: var(--text);
}

.btn-block {
  display: block;
  width: 100%;
}

[hidden] {
  display: none !important;
}

.pills {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.pills-stack {
  flex-direction: column;
}

.pill {
  position: relative;
  cursor: var(--cursor-pointer);
}

.pill input {
  position: absolute;
  opacity: 0;
  inset: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: var(--cursor-pointer);
}

.pill span {
  display: block;
  padding: 10px 18px;
  border: 1.5px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.04);
  font-weight: 600;
  font-size: 15px;
  transition: background 0.12s, border-color 0.12s;
}

.pill-wide span {
  border-radius: 12px;
}

.pill span small {
  font-weight: 400;
  color: var(--text-muted);
  margin-left: 6px;
}

.pill:hover span {
  border-color: rgba(255, 255, 255, 0.4);
}

.pill input:checked + span {
  background: white;
  border-color: white;
  color: var(--navy);
}

.pill input:checked + span small {
  color: rgba(18, 22, 29, 0.62);
}

.pill input:focus-visible + span {
  outline: 3px solid var(--orange);
  outline-offset: 2px;
}

/* ---- detail page additions ------------------------------------------------------- */
.banner-new {
  border-left: 3px solid var(--orange);
  padding: 9px 14px;
  font-weight: 600;
  font-size: 14px;
  color: var(--text);
  margin-bottom: 16px;
}

.detail-hero {
  position: relative;
}

.no-photo-note {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: 16px;
  background: rgba(11, 14, 19, 0.86);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  border-radius: 10px;
  padding: 10px 14px;
  font-size: 14px;
}

.no-photo-note a {
  color: var(--orange-dark);
  font-weight: 600;
  margin-left: 6px;
}

.gallery {
  margin-bottom: 24px;
}

.gallery-main {
  display: block;
  width: 100%;
  height: 420px;
  object-fit: cover;
  border-radius: 16px;
}

.gallery-thumbs {
  display: flex;
  gap: 8px;
  margin-top: 8px;
  overflow-x: auto;
}

.gallery-thumb {
  flex: 0 0 96px;
  height: 64px;
  padding: 0;
  border: 2px solid transparent;
  border-radius: 8px;
  overflow: hidden;
  cursor: var(--cursor-pointer);
  background: none;
}

.gallery-thumb.active {
  border-color: var(--orange);
}

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

.policy-list {
  list-style: none;
  padding: 0;
  margin: 0 0 8px;
  border-top: 1px solid var(--border);
}

.policy-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 11px 0;
  border-bottom: 1px solid var(--border);
  font-size: 14px;
}

.policy-list li span {
  color: var(--text-muted);
}

.policy-list .yes strong {
  color: #3fbd79;
}

.policy-list .unknown strong {
  color: var(--text-muted);
  font-weight: 500;
}

.map {
  width: 100%;
  height: 300px;
  border: 1px solid var(--border);
  border-radius: 12px;
}

.price-from {
  font-size: 13px;
  font-weight: 400;
  color: var(--text-muted);
  margin-right: 4px;
}

.price-none {
  font-size: 20px;
}

.price-note {
  font-size: 13px;
  color: var(--text-muted);
  line-height: 1.45;
  margin: 0 0 16px;
}

.contact-line {
  margin: 0 0 6px;
}

.message-box {
  margin: 14px 0;
  padding-top: 14px;
  border-top: 1px solid var(--border);
}

.message-label {
  display: block;
  margin: 0 0 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.message-textarea {
  display: block;
  width: 100%;
  min-height: 84px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--card-bg);
  color: var(--text);
  font: inherit;
  font-size: 13px;
  line-height: 1.5;
  resize: vertical;
}

.message-textarea:focus {
  outline: none;
  border-color: var(--text);
}

.message-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.message-box .message-actions .btn {
  flex: 1 1 auto;
  margin-top: 0;
  white-space: nowrap;
}

.message-hint {
  margin: 10px 0 0;
  font-size: 11px;
  line-height: 1.45;
  color: var(--text-muted);
}

.contact-block .btn {
  margin-top: 12px;
}

.contact-block .btn {
  font-size: 14px;
}

.source-note {
  font-size: 12px;
  color: var(--text-muted);
  margin: 12px 0 0;
  line-height: 1.5;
}

@media (max-width: 860px) {
  .gallery-main {
    height: 260px;
  }
  .site-nav a {
    margin-left: 14px;
  }
}

/* ---- home screen ------------------------------------------------------------------------ */
/* Full-bleed photo, dark scrim, big type, two buttons. On this page only, the header floats over the
   photo and the footer goes dark so it all reads as one piece. */
body.is-home .site-header,
body.has-band .site-header {
  position: absolute;
  inset: 0 0 auto 0;
  z-index: 10;
  background: transparent;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom-color: transparent;
}

body.is-home .brand-sub,
body.has-band .brand-sub {
  color: rgba(255, 255, 255, 0.78);
}

body.is-home .site-nav a,
body.has-band .site-nav a {
  color: rgba(255, 255, 255, 0.92);
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45);
}

body.is-home .site-nav a:hover,
body.has-band .site-nav a:hover {
  color: white;
}

body.is-home .site-footer,
body.has-band .site-footer {
  background: #0c0f14;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
  color: rgba(255, 255, 255, 0.45);
}

.home {
  position: relative;
  min-height: calc(100vh - 66px);
  min-height: calc(100svh - 66px);
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  overflow: hidden;
  isolation: isolate;
  background: #0c0f14;
  color: white;
}

/* The photos: a stack of slides that crossfade. The new photo fades in on top while the old one
   stays fully visible underneath until it's done, so it never dips to blank mid-fade. */
.home-bg {
  position: absolute;
  inset: 0;
  z-index: -1;
}

.home-slide {
  position: absolute;
  inset: 0;
  background-size: cover;
  background-position: center 42%;
  background-repeat: no-repeat;
  opacity: 0;
  transition: opacity 2s ease-in-out;
}

.home-slide.is-active {
  opacity: 1;
  z-index: 2;
}

.home-slide.is-prev {
  opacity: 1;
  z-index: 1;
}

/* Dark scrim: heavier behind the text (left) and along the bottom and top (stats, nav), so the
   right side of every photo stays clear. */
.home-bg::after {
  content: "";
  position: absolute;
  z-index: 5;
  inset: 0;
  background:
    radial-gradient(ellipse 46% 74% at 90% 70%, rgba(8, 10, 14, 0.86) 0%, rgba(8, 10, 14, 0.62) 50%, rgba(8, 10, 14, 0) 100%),
    linear-gradient(90deg, rgba(8, 10, 14, 0.86) 0%, rgba(8, 10, 14, 0.68) 40%, rgba(8, 10, 14, 0.2) 78%),
    linear-gradient(to top, rgba(8, 10, 14, 0.8) 0%, rgba(8, 10, 14, 0) 50%),
    linear-gradient(to bottom, rgba(8, 10, 14, 0.55) 0%, rgba(8, 10, 14, 0) 22%),
    rgba(8, 10, 14, 0.14);
}

.home-content,
.home-bottom {
  text-shadow: 0 1px 2px rgba(0, 0, 0, 0.45), 0 4px 24px rgba(0, 0, 0, 0.35);
}

.home-content {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 120px 40px 44px;
}

.home-main {
  min-width: 0;
}

.home-kicker {
  margin: 0 0 22px;
  font-size: 13px;
  font-weight: 500;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.88);
}

.home-title {
  margin: 0 0 24px;
  max-width: 11ch;
  font-size: clamp(44px, 8.5vw, 104px);
  font-weight: 600;
  line-height: 0.98;
  letter-spacing: -0.045em;
  color: white;
}

.home-lede {
  max-width: 520px;
  margin: 0 0 36px;
  font-size: 19px;
  font-weight: 500;
  line-height: 1.55;
  color: rgba(255, 255, 255, 0.96);
}

.home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}

.hbtn {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  height: 52px;
  padding: 0 28px;
  border-radius: 999px;
  font-size: 15px;
  font-weight: 600;
  border: 1px solid transparent;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.hbtn svg {
  transition: transform 0.18s ease;
}

.hbtn:hover svg {
  transform: translateX(3px);
}

.hbtn:focus-visible {
  outline: 2px solid white;
  outline-offset: 3px;
}

.hbtn-solid {
  background: white;
  color: var(--navy);
  text-shadow: none; /* dark text on white: a shadow would just smudge it */
}

.hbtn-solid:hover {
  background: #f0f0ee;
}

.hbtn-outline {
  color: white;
  border-color: rgba(255, 255, 255, 0.6);
  background: rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  -webkit-backdrop-filter: blur(8px);
}

.hbtn-outline:hover {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.7);
}

.home-sublet-link {
  display: inline-block;
  margin-top: 26px;
  font-size: 14px;
  font-weight: 500;
  color: rgba(255, 255, 255, 0.9);
  border-bottom: 1px solid rgba(255, 255, 255, 0.45);
  padding-bottom: 2px;
  transition: color 0.15s ease, border-color 0.15s ease;
}

.home-sublet-link:hover {
  color: white;
  border-color: white;
}

.home-bottom {
  width: 100%;
  max-width: 1240px;
  margin: 0 auto;
  padding: 0 40px 28px;
}

.home-bottom-inner {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px 40px;
  flex-wrap: wrap;
  padding-top: 20px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.home-stats {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 8px 32px;
  font-size: 13px;
  color: rgba(255, 255, 255, 0.82);
}

.home-stats strong {
  color: white;
  font-weight: 600;
  font-size: 15px;
  margin-right: 3px;
}

.home-meta {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  gap: 10px;
}

/* One thin segment per photo; the current one fills up over the time it's on screen */
.home-progress {
  display: flex;
  gap: 6px;
}

.home-progress span {
  position: relative;
  width: 30px;
  height: 2px;
  background: rgba(255, 255, 255, 0.28);
  overflow: hidden;
}

.home-progress span::after {
  content: "";
  position: absolute;
  inset: 0;
  background: white;
  transform: scaleX(0);
  transform-origin: left;
}

.home-progress span.is-active::after {
  animation: home-fill var(--interval, 5000ms) linear forwards;
}

@keyframes home-fill {
  to {
    transform: scaleX(1);
  }
}

.home-credit {
  margin: 0;
  font-size: 11px;
  color: rgba(255, 255, 255, 0.72);
  text-align: right;
  transition: opacity 0.4s ease;
}

.home-credit.is-changing {
  opacity: 0;
}

.home-credit a {
  text-decoration: underline;
  text-decoration-color: rgba(255, 255, 255, 0.3);
  text-underline-offset: 2px;
}

.home-credit a:hover {
  color: white;
}

@media (max-width: 720px) {
  .site-header {
    padding: 12px 20px;
  }
  .brand-sub {
    display: none;
  }
  .site-nav {
    white-space: nowrap;
  }
  .site-nav a {
    margin-left: 18px;
  }
  /* Text spans the full width on a phone, so darken the whole photo, not just the left side */
  .home-bg::after {
    background:
      linear-gradient(to top, rgba(8, 10, 14, 0.85) 0%, rgba(8, 10, 14, 0.6) 55%, rgba(8, 10, 14, 0.45) 100%),
      linear-gradient(to bottom, rgba(8, 10, 14, 0.45) 0%, rgba(8, 10, 14, 0) 20%);
  }
  .home-content {
    padding: 100px 20px 32px;
  }
  .home-bottom {
    padding: 0 20px 22px;
  }
  .home-lede {
    font-size: 16px;
  }
  .hbtn {
    flex: 1 1 100%;
    justify-content: center;
  }
  .home-meta {
    align-items: flex-start;
  }
  .home-credit {
    text-align: left;
  }
}

@media (max-width: 560px) {
  .brand > span:last-child {
    display: none; /* just the OG mark, so the nav fits on one line */
  }
  .site-header {
    padding: 12px 16px;
  }
  /* shorter labels so five nav items fit on a phone: "Quiz", "Browse" */
  .nav-long {
    display: none;
  }
  .nav-cap {
    text-transform: capitalize;
  }
  .site-nav a {
    margin-left: 12px;
    font-size: 13px;
  }
}

@media (prefers-reduced-motion: reduce) {
  .home-slide,
  .home-credit,
  .hbtn,
  .hbtn svg {
    transition: none;
  }
  .home-progress span.is-active::after {
    animation: none;
    transform: scaleX(1);
  }
}

/* ---- sublets (preview) ------------------------------------------------------------------- */
.sublets-page {
  max-width: 1200px;
  margin: 0 auto;
  padding: 24px;
}

.preview-banner {
  border-left: 3px solid var(--orange);
  color: var(--text-muted);
  padding: 9px 14px;
  font-size: 14px;
  margin-bottom: 24px;
}

.sublets-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  margin-bottom: 18px;
}

.sublets-head h1,
.sublet-form-page h1 {
  margin: 0 0 6px;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.sublets-sub {
  margin: 0;
  color: var(--text-muted);
}

.filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 20px;
}

.filter-chips a {
  padding: 7px 14px;
  border-radius: 999px;
  border: 1.5px solid var(--border);
  background: rgba(255, 255, 255, 0.04);
  font-size: 14px;
  font-weight: 600;
}

.filter-chips a span {
  margin-left: 4px;
  font-weight: 500;
  color: var(--text-muted);
}

.filter-chips a:hover {
  border-color: var(--text);
}

.filter-chips a.active {
  background: white;
  border-color: white;
  color: var(--navy);
}

.filter-chips a.active span {
  color: rgba(18, 22, 29, 0.62);
}

.sublet-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 20px;
}

.sublet-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 18px;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.sublet-card:hover {
  transform: translateY(-2px);
  border-color: rgba(255, 255, 255, 0.2);
  box-shadow: 0 20px 44px rgba(0, 0, 0, 0.5);
}

.sublet-card h3 {
  margin: 2px 0 0;
  font-size: 18px;
  line-height: 1.3;
}

.sublet-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.type-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.type-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: currentColor;
}

.type-summer {
  color: var(--orange-dark);
}

.type-semester {
  color: #5b9bdb;
}

.type-takeover {
  color: #3fbd79;
}

.sample-tag {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--text-muted);
  border: 1px dashed rgba(255, 255, 255, 0.25);
  border-radius: 5px;
  padding: 2px 7px;
}

.sublet-where {
  margin: -4px 0 0;
  color: var(--orange-dark);
  font-size: 13px;
  font-weight: 600;
}

.sublet-rent strong {
  font-size: 24px;
  color: var(--text);
}

.sublet-rent span {
  margin-left: 4px;
  color: var(--text-muted);
  font-size: 13px;
}

.sublet-facts {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 4px 14px;
  margin: 0;
  font-size: 13px;
}

.sublet-facts dt {
  color: var(--text-muted);
}

.sublet-facts dd {
  margin: 0;
  font-weight: 600;
}

.tag-list {
  list-style: none;
  padding: 0;
  margin: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.tag-list li {
  font-size: 12px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid var(--border);
}

.sublet-desc {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: var(--text-muted);
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.reply-count {
  font-size: 13px;
  color: var(--text-muted);
}

.sublet-foot {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: auto;
  padding-top: 12px;
  border-top: 1px solid var(--border);
}

.avatar {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: white;
  color: var(--navy);
  font-size: 13px;
  font-weight: 700;
}

.sublet-poster {
  flex: 1;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  flex-direction: column;
}

.sublet-poster small {
  font-weight: 400;
  color: var(--text-muted);
  font-size: 12px;
}

.btn-small {
  padding: 7px 14px;
  font-size: 13px;
}

.how-it-works {
  margin-top: 48px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.how-it-works h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.how-it-works ol {
  margin: 0;
  padding-left: 20px;
  display: grid;
  gap: 8px;
  line-height: 1.5;
  color: var(--text-muted);
}

.toast {
  position: fixed;
  left: 50%;
  bottom: 28px;
  transform: translateX(-50%);
  background: white;
  color: var(--navy);
  padding: 12px 20px;
  border-radius: 10px;
  font-size: 14px;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.5);
  z-index: 10;
}

/* form */
.sublet-form-page {
  max-width: 860px;
}

.sublet-form {
  display: flex;
  flex-direction: column;
  gap: 20px;
  background: var(--card-bg);
  border: 1px solid var(--border);
  border-radius: 16px;
  padding: 24px;
}

.sublet-form fieldset {
  border: none;
  padding: 0;
  margin: 0;
  min-width: 0;
}

.sublet-form legend {
  font-size: 14px;
  font-weight: 600;
  margin-bottom: 10px;
  padding: 0;
}

.sublet-form .field > span {
  font-size: 13px;
  color: var(--text-muted);
  font-weight: 600;
}

.sublet-form .field em {
  font-weight: 400;
}

.sublet-form textarea,
.sublet-form .field input,
.sublet-form .field select {
  font: inherit;
  font-size: 14px;
  padding: 9px 11px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.sublet-form textarea {
  width: 100%;
  resize: vertical;
}

.form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

.form-grid .span-2 {
  grid-column: 1 / -1;
}

.dropzone {
  border: 1.5px dashed var(--border);
  border-radius: 12px;
  padding: 22px;
  text-align: center;
  color: var(--text-muted);
  background: var(--bg);
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.landlord-ok {
  font-size: 14px;
}

.form-actions {
  display: flex;
  gap: 10px;
}

.preview-result {
  margin-bottom: 24px;
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--bg);
}

.preview-result h2 {
  margin: 0 0 14px;
  font-size: 18px;
}

.preview-card-wrap {
  max-width: 420px;
}

.error-banner ul {
  margin: 6px 0 0;
  padding-left: 20px;
}

@media (max-width: 640px) {
  .form-grid {
    grid-template-columns: 1fr;
  }
  .sublet-grid {
    grid-template-columns: 1fr;
  }
}

/* ---- listing details pulled from the source pages ---------------------------------------------- */
.policy-list li {
  flex-wrap: wrap;
  row-gap: 2px;
}

.policy-list .no strong {
  color: #ff8a5c;
}

.policy-note {
  flex-basis: 100%;
  font-size: 12px;
  line-height: 1.4;
  color: var(--text-muted);
}

.banner-status {
  border-left: 3px solid #e0ac2c;
  color: #f0c869;
  padding: 9px 14px;
  font-size: 14px;
  margin-bottom: 16px;
}

.btn-second {
  margin-top: 8px;
}

.btn-danger {
  color: #ff8a80;
}

.btn-danger:hover {
  border-color: #ff8a80;
}

.error-banner p {
  margin: 0;
}

.error-banner p + p {
  margin-top: 6px;
}

/* ---- sublet / takeover post page, replies, account ---------------------------------------- */
.post-page {
  max-width: 760px;
}

.post-main h1 {
  margin: 10px 0 6px;
  font-size: clamp(28px, 3.4vw, 40px);
  font-weight: 600;
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.post-rent {
  margin: 14px 0;
}

.post-main .sublet-facts {
  max-width: 460px;
  margin-bottom: 14px;
}

.post-body {
  margin: 18px 0;
  font-size: 15px;
  line-height: 1.65;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.contact-callout {
  display: flex;
  flex-direction: column;
  gap: 2px;
  margin: 18px 0;
  padding: 12px 16px;
  border-left: 3px solid var(--orange);
  font-size: 14px;
  overflow-wrap: anywhere;
}

.contact-callout strong {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.post-byline {
  margin: 0 0 16px;
}

.owner-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 16px;
  border-top: 1px solid var(--border);
}

.owner-actions form {
  margin: 0;
}

.replies {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.replies h2 {
  margin: 0 0 16px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.replies h2 .muted {
  font-size: 15px;
  font-weight: 500;
}

.reply {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 0;
  border-bottom: 1px solid var(--border);
}

.reply .avatar {
  flex: none;
}

.reply-main {
  flex: 1;
  min-width: 0;
}

.reply-meta {
  margin: 0 0 4px;
  font-size: 13px;
  display: flex;
  flex-wrap: wrap;
  gap: 4px 10px;
  align-items: baseline;
}

.reply-body {
  margin: 0;
  font-size: 15px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.op-tag {
  padding: 1px 8px;
  border: 1px solid var(--border);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--text-muted);
}

.reply form {
  margin: 0;
}

.reply-delete {
  padding: 4px 8px;
  border: 0;
  background: none;
  font: inherit;
  font-size: 12px;
  color: var(--text-muted);
  cursor: var(--cursor-pointer);
}

.reply-delete:hover {
  color: #ff8a80;
}

.reply-form {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  margin: 22px 0 10px;
}

.reply-form .field {
  width: 100%;
}

.reply-form textarea,
.account-delete input {
  font: inherit;
  font-size: 14px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}

.reply-form textarea {
  width: 100%;
  resize: vertical;
}

.account-section {
  margin-top: 40px;
  padding-top: 24px;
  border-top: 1px solid var(--border);
}

.account-section h2 {
  margin: 0 0 12px;
  font-size: 20px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

.account-posts {
  list-style: none;
  padding: 0;
  margin: 0;
}

.account-posts li {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 12px 0;
  border-bottom: 1px solid var(--border);
}

.account-posts a {
  font-weight: 600;
}

.account-delete {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 12px;
  max-width: 340px;
}

.account-delete .field {
  width: 100%;
}

