/* DART landing (www/views/pages/dart/home.php) — the public entry page.
   Rendered in the MAIN site layout (fixed .site-header + footer) so it matches
   the homepage; the results/report pages keep the dart.css app shell.
   The hero mirrors sections.css .hero: apartments photo, green tint, heavy
   uppercase heading. Tokens come from base.css (loaded by main.css). */

/* ===== Hero ===== */
.dart-hero {
    position: relative;
    min-height: 100vh;
    display: flex;
    align-items: flex-start;   /* content anchored just below the header, not vertically centred */
    justify-content: center;
    /* Header is position:fixed — pad the top so the content clears it. */
    padding: calc(var(--header-height) + var(--space-lg)) var(--space-lg) var(--space-xl);
    background-image: url('../images/hero.jpg');
    background-attachment: fixed;   /* same parallax as the homepage hero */
    background-size: cover;
    background-position: center;
    color: var(--color-white);
}
/* Semi-transparent green tint over the photo (same value as .hero__overlay) */
.dart-hero__overlay { position: absolute; inset: 0; background-color: rgba(0, 83, 55, 0.4); z-index: 1; }
.dart-hero__inner {
    position: relative;
    z-index: 2;
    max-width: 900px;
    margin: 0 auto;
    text-align: center;
}
.dart-hero__title {
    font-family: var(--font-heading);
    font-weight: 900;
    font-size: clamp(1.75rem, 4vw, 3rem);
    color: var(--color-white);
    text-transform: uppercase;
    letter-spacing: 4px;
    line-height: 1.4;
    text-shadow: 0.08em 0.08em 0.08em #003a25;
    margin: 0 0 1.25rem;
}
.dart-hero__sub {
    max-width: 640px;
    margin: 0 auto 2rem;
    font-size: 1.125rem;
    line-height: 1.6;
    color: var(--color-white);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

/* Multi-paragraph intro: paragraph gap tighter than the gap above the search box */
.dart-hero__sub:has(+ .dart-hero__sub) {
    margin-bottom: 0.75rem;
}

/* ===== Address search ===== */
.dart-search {
    display: flex;
    gap: 0.5rem;
    max-width: 600px;
    margin: 0 auto;
}
.dart-search__input {
    flex: 1 1 auto;
    min-width: 0;
    padding: 0.85rem 1rem;
    font-size: 1rem;
    font-family: inherit;
    color: var(--color-text-body);
    background: var(--color-white);
    border: 1px solid transparent;
    border-radius: 6px;
}
.dart-search__btn {
    flex: 0 0 auto;
    padding: 0.85rem 1.5rem;
    font-size: 1rem;
    font-weight: 600;
    font-family: inherit;
    color: #fff;
    background: #e8710a;
    border: none;
    border-radius: 6px;
    cursor: pointer;
}
.dart-search__btn:hover { background: #cf6309; }
.dart-search__btn:disabled { opacity: 0.7; cursor: default; }
.dart-search__err {
    max-width: 600px;
    margin: 0.75rem auto 0;
    color: #ffd2c2;
    font-size: 0.95rem;
    text-shadow: 0 1px 2px rgba(0, 0, 0, 0.5);
}

/* Link to /DART/subscribe under the search box (2026-08-28) */
.dart-hero__more { max-width: 640px; margin: 1.25rem auto 0; font-size: 1.25rem; font-weight: 600; line-height: 1.5; text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5); }
.dart-hero__more a { color: #fff; text-decoration: underline; text-underline-offset: 3px; }
.dart-hero__more a:hover { color: #ffd9bf; }

/* ===== Recently viewed properties strip (2026-08-28) =====
   Legacy ResearchCenter.php carousel: white cards, dark-blue text, photo left,
   type / built / renovated / units. Pure-CSS marquee: the track holds the row
   twice and slides by half its width, so the loop is seamless. Pauses on hover
   and focus; no motion at all for prefers-reduced-motion (scrolls by hand). */
.dart-recent {
    max-width: 900px;
    margin: 2rem auto 0;
    padding: 0.75rem 0 0.9rem;
    background: rgba(0, 54, 88, 0.85);
    border-top: 1px solid rgba(255, 255, 255, 0.35);
    border-bottom: 1px solid rgba(255, 255, 255, 0.35);
    border-radius: 6px;
}
.dart-recent__title {
    margin: 0 0 0.6rem;
    font-family: var(--font-heading);
    font-size: 1rem;
    font-weight: 700;
    letter-spacing: 2px;
    text-transform: uppercase;
    color: #fff;
    text-align: center;
}
.dart-recent__viewport { overflow: hidden; }
.dart-recent__track {
    display: flex;
    gap: 10px;
    width: max-content;
    padding: 0 10px;
    animation: dart-recent-scroll 110s linear infinite;
}
.dart-recent:hover .dart-recent__track,
.dart-recent:focus-within .dart-recent__track { animation-play-state: paused; }
@keyframes dart-recent-scroll {
    from { transform: translateX(0); }
    to   { transform: translateX(-50%); }
}
.dart-recent__card {
    flex: 0 0 auto;
    display: flex;
    gap: 8px;
    width: 230px;
    padding: 6px 7px;
    background: #fff;
    color: #003658;
    border: 1px solid #1f2d3d;
    border-radius: 3px;
    text-align: left;
    text-decoration: none;
    text-shadow: none;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}
.dart-recent__card:hover { outline: 2px solid #e8710a; outline-offset: -2px; color: #003658; }
.dart-recent__photo {
    flex: 0 0 90px;
    width: 90px;
    height: 68px;
    object-fit: cover;
    border: 1px solid #1f2d3d;
    background: #dde5ec;
}
.dart-recent__photo--none { display: flex; align-items: center; justify-content: center; font-size: 1.6rem; }
.dart-recent__body { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.dart-recent__name {
    display: block;
    font-size: 0.78rem;
    line-height: 1.2;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    border-bottom: 1px solid #314c74;
    padding-bottom: 2px;
    margin-bottom: 3px;
}
.dart-recent__meta { font-size: 0.68rem; line-height: 1.35; }
@media (prefers-reduced-motion: reduce) {
    .dart-recent__track { animation: none; }
    .dart-recent__viewport { overflow-x: auto; }
}
@media (max-width: 768px) {
    .dart-recent__track { animation-duration: 80s; }
}

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

/* ===== Responsive — track the homepage hero breakpoints ===== */
@media (max-width: 992px) {
    .dart-hero { background-attachment: scroll; }   /* fixed bg is janky on tablets/phones */
}
@media (max-width: 768px) {
    .dart-hero { min-height: 500px; }
    .dart-hero__title { letter-spacing: 1px; }
    .dart-search { flex-direction: column; }
}
