:root {
    --navy: #082d46;
    --navy-deep: #052337;
    --blue: #0878b9;
    --blue-light: #e9f5fb;
    --orange: #f47b20;
    --orange-dark: #d9610c;
    --ink: #172a36;
    --muted: #647784;
    --line: #dbe5eb;
    --soft: #f4f8fa;
    --white: #ffffff;
    --shadow: 0 12px 35px rgba(8, 45, 70, .09);
    --radius: 16px;
}

* {
    box-sizing: border-box;
}

html {
    scroll-behavior: smooth;
}

body {
    margin: 0;
    font-family:
        Inter,
        ui-sans-serif,
        system-ui,
        -apple-system,
        BlinkMacSystemFont,
        "Segoe UI",
        sans-serif;
    color: var(--ink);
    background: var(--white);
    line-height: 1.55;
}

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

img {
    display: block;
    max-width: 100%;
}

button,
input {
    font: inherit;
}

.container {
    width: min(1180px, calc(100% - 40px));
    margin-inline: auto;
}


/* Header */

.site-header {
    position: relative;
    z-index: 20;
    background: rgba(255, 255, 255, .97);
    border-bottom: 1px solid var(--line);
}

.header-inner {
    min-height: 78px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.brand {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    color: var(--navy);
}

.brand-mark {
    width: 42px;
    height: 42px;
    display: grid;
    place-items: center;
    color: var(--orange);
}

.brand-mark svg {
    width: 100%;
    height: 100%;
}

.brand-text {
    font-size: 27px;
    line-height: 1;
    font-weight: 850;
    letter-spacing: -.8px;
}

.brand-text span {
    color: var(--orange);
}

.main-nav {
    display: flex;
    align-items: center;
    gap: 28px;
    font-size: 15px;
    font-weight: 650;
}

.main-nav > a:not(.button):hover,
.nav-link-button:hover {
    color: var(--blue);
}

.nav-form {
    margin: 0;
}

.nav-link-button {
    appearance: none;
    border: 0;
    padding: 0;
    background: transparent;
    color: inherit;
    cursor: pointer;
    font-weight: 650;
}


/* Buttons */

.button {
    display: inline-flex;
    min-height: 48px;
    padding: 0 22px;
    align-items: center;
    justify-content: center;
    border-radius: 10px;
    border: 1px solid var(--orange);
    background: var(--orange);
    color: var(--white);
    font-weight: 750;
    transition:
        transform .15s ease,
        background .15s ease;
}

.button:hover {
    background: var(--orange-dark);
    transform: translateY(-1px);
}

.button-small {
    min-height: 42px;
    padding-inline: 18px;
}

.button-secondary {
    background: transparent;
    border-color: rgba(255,255,255,.65);
}

.button-secondary:hover {
    background: rgba(255,255,255,.1);
}

.button-white {
    background: var(--white);
    color: var(--navy);
    border-color: var(--white);
}

.button-white:hover {
    background: #f3f7f9;
}


/* Hero */

.hero {
    position: relative;
    overflow: hidden;
    color: var(--white);
    background:
        radial-gradient(
            circle at 75% 25%,
            rgba(25, 149, 211, .38),
            transparent 33%
        ),
        linear-gradient(
            125deg,
            var(--navy-deep),
            #08496d 70%,
            #086b99
        );
}

.hero-grid {
    min-height: 570px;
    display: grid;
    grid-template-columns: 1.05fr .95fr;
    align-items: center;
    gap: 55px;
    padding-block: 75px;
}

.eyebrow {
    margin-bottom: 12px;
    color: var(--orange);
    font-size: 12px;
    font-weight: 850;
    letter-spacing: 2px;
}

.eyebrow-light {
    color: #ffd4b4;
}

.hero h1 {
    max-width: 720px;
    margin: 0;
    font-size: clamp(45px, 5.4vw, 72px);
    line-height: .98;
    letter-spacing: -3px;
}

.hero h1 span {
    display: block;
    color: #72c9f2;
}

.hero-copy > p {
    max-width: 640px;
    margin: 24px 0 28px;
    color: #d9e9f1;
    font-size: 19px;
}

.hero-search {
    max-width: 660px;
    display: flex;
    padding: 6px;
    background: var(--white);
    border-radius: 12px;
    box-shadow: var(--shadow);
}

.hero-search input {
    width: 100%;
    min-width: 0;
    padding: 13px 16px;
    border: 0;
    outline: 0;
    color: var(--ink);
    background: transparent;
}

.hero-search button {
    min-width: 115px;
    border: 0;
    border-radius: 8px;
    color: var(--white);
    background: var(--orange);
    cursor: pointer;
    font-weight: 750;
}

.hero-actions {
    display: flex;
    gap: 12px;
    margin-top: 18px;
}

.hero-art {
    position: relative;
    color: #bce9fa;
}

.hero-art svg {
    position: relative;
    z-index: 2;
    width: 100%;
}

.hero-art .sun {
    position: absolute;
    top: 15px;
    right: 30px;
    width: 190px;
    height: 190px;
    border-radius: 50%;
    background: rgba(255,255,255,.08);
}


/* Quick links */

.quick-links {
    position: relative;
    z-index: 5;
    margin-top: -35px;
}

.quick-link-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 18px;
}

.quick-link-card {
    min-height: 118px;
    padding: 22px;
    display: grid;
    grid-template-columns: 48px 1fr;
    grid-template-rows: auto auto;
    column-gap: 15px;
    align-items: center;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: var(--shadow);
    transition:
        transform .15s ease,
        border-color .15s ease;
}

.quick-link-card:hover {
    transform: translateY(-3px);
    border-color: #a9d5e9;
}

.quick-icon {
    grid-row: 1 / 3;
    width: 48px;
    height: 48px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--blue-light);
    font-size: 24px;
}

.quick-link-card strong {
    font-size: 18px;
    color: var(--navy);
}

.quick-link-card > span:last-child {
    color: var(--muted);
    font-size: 14px;
}


/* Sections */

.section {
    padding-block: 85px;
}

.section-soft {
    background: var(--soft);
}

.section-heading {
    margin-bottom: 28px;
    display: flex;
    align-items: end;
    justify-content: space-between;
    gap: 20px;
}

.section-heading h2 {
    margin: 0;
    color: var(--navy);
    font-size: clamp(30px, 4vw, 42px);
    line-height: 1.05;
    letter-spacing: -1.4px;
}

.text-link {
    color: var(--blue);
    font-weight: 750;
}


/* Listing cards */

.listing-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 22px;
}

.listing-card {
    overflow: hidden;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    transition:
        transform .15s ease,
        box-shadow .15s ease;
}

.listing-card:hover {
    transform: translateY(-3px);
    box-shadow: var(--shadow);
}

.listing-image {
    position: relative;
    aspect-ratio: 4 / 3;
    display: block;
    overflow: hidden;
    background: var(--soft);
}

.listing-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.listing-placeholder {
    width: 100%;
    height: 100%;
    display: grid;
    place-items: center;
    background:
        linear-gradient(145deg, #e7f4fa, #f7fafc);
    color: #a4bdc9;
    font-weight: 800;
}

.listing-badge {
    position: absolute;
    top: 12px;
    left: 12px;
    padding: 6px 9px;
    border-radius: 7px;
    color: var(--white);
    background: var(--orange);
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .7px;
}

.listing-card-body {
    padding: 17px;
}

.listing-card-top {
    min-height: 20px;
    display: flex;
    justify-content: space-between;
    gap: 10px;
    color: var(--muted);
    font-size: 12px;
    text-transform: uppercase;
    letter-spacing: .5px;
}

.listing-type {
    color: var(--blue);
    font-weight: 800;
}

.listing-card h3 {
    margin: 7px 0 10px;
    color: var(--navy);
    font-size: 18px;
    line-height: 1.25;
}

.listing-price {
    color: var(--ink);
    font-size: 22px;
    font-weight: 850;
}

.listing-price-small {
    font-size: 17px;
}

.listing-location {
    margin-top: 5px;
    color: var(--muted);
    font-size: 13px;
}


/* Categories */

.category-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 16px;
}

.category-card {
    min-height: 115px;
    padding: 22px;
    display: flex;
    flex-direction: column;
    justify-content: end;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: 14px;
}

.category-card strong {
    color: var(--navy);
    font-size: 18px;
}

.category-card span {
    margin-top: 5px;
    color: var(--blue);
    font-size: 13px;
    font-weight: 700;
}


/* Sell banner */

.sell-banner {
    padding-block: 70px;
    color: var(--white);
    background: var(--orange);
}

.sell-banner-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 40px;
}

.sell-banner h2 {
    margin: 0;
    font-size: clamp(30px, 4vw, 44px);
    letter-spacing: -1.5px;
}

.sell-banner p {
    margin: 8px 0 0;
    color: #fff1e6;
}


/* Footer */

.site-footer {
    padding: 60px 0 24px;
    color: #b7c7d0;
    background: var(--navy-deep);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr;
    gap: 60px;
}

.footer-brand {
    color: var(--white);
}

.footer-grid p {
    max-width: 430px;
}

.footer-grid h3 {
    margin-top: 0;
    color: var(--white);
    font-size: 14px;
}

.footer-grid > div:not(:first-child) {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.footer-grid a:hover {
    color: var(--white);
}

.footer-bottom {
    margin-top: 45px;
    padding-top: 20px;
    display: flex;
    justify-content: space-between;
    border-top: 1px solid rgba(255,255,255,.12);
    font-size: 12px;
}


/* Responsive */

@media (max-width: 950px) {
    .main-nav > a:not(.button),
    .nav-form {
        display: none;
    }

    .hero-grid {
        min-height: auto;
        grid-template-columns: 1fr;
        padding-block: 65px 90px;
    }

    .hero-art {
        display: none;
    }

    .listing-grid,
    .category-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 700px) {
    .container {
        width: min(100% - 28px, 1180px);
    }

    .header-inner {
        min-height: 68px;
    }

    .brand-mark {
        width: 35px;
        height: 35px;
    }

    .brand-text {
        font-size: 23px;
    }

    .main-nav {
        gap: 10px;
    }

    .button-small {
        min-height: 39px;
        padding-inline: 13px;
        font-size: 13px;
    }

    .hero-grid {
        padding-block: 55px 78px;
    }

    .hero h1 {
        font-size: 45px;
        letter-spacing: -2px;
    }

    .hero-copy > p {
        font-size: 17px;
    }

    .hero-search {
        display: grid;
    }

    .hero-search button {
        min-height: 45px;
    }

    .hero-actions {
        flex-direction: column;
    }

    .quick-link-grid {
        grid-template-columns: 1fr;
    }

    .quick-links {
        margin-top: -25px;
    }

    .section {
        padding-block: 60px;
    }

    .section-heading {
        align-items: start;
        flex-direction: column;
    }

    .listing-grid,
    .category-grid {
        grid-template-columns: 1fr;
    }

    .sell-banner-inner {
        align-items: start;
        flex-direction: column;
    }

    .footer-grid {
        grid-template-columns: 1fr;
        gap: 32px;
    }

    .footer-bottom {
        flex-direction: column;
        gap: 7px;
    }
}


/* Marketplace */

.page-hero {
    padding: 65px 0 58px;
    color: var(--white);
    background:
        radial-gradient(
            circle at 85% 20%,
            rgba(44, 164, 218, .30),
            transparent 28%
        ),
        linear-gradient(
            120deg,
            var(--navy-deep),
            #07476a
        );
}

.page-hero h1 {
    margin: 0;
    font-size: clamp(38px, 5vw, 58px);
    line-height: 1;
    letter-spacing: -2px;
}

.page-hero p {
    max-width: 650px;
    margin: 16px 0 0;
    color: #d4e6ef;
    font-size: 18px;
}

.marketplace-section {
    min-height: 550px;
    padding: 42px 0 85px;
    background: var(--soft);
}

.marketplace-filters {
    display: grid;
    grid-template-columns:
        minmax(240px, 2fr)
        minmax(150px, 1fr)
        minmax(170px, 1fr)
        minmax(140px, .8fr)
        auto;
    gap: 12px;
    align-items: end;
    padding: 20px;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
    box-shadow: 0 8px 28px rgba(8, 45, 70, .06);
}

.marketplace-filters label {
    display: block;
    margin: 0 0 6px;
    color: var(--navy);
    font-size: 12px;
    font-weight: 800;
}

.marketplace-filters input,
.marketplace-filters select {
    width: 100%;
    height: 47px;
    padding: 0 13px;
    border: 1px solid #cbd9e1;
    border-radius: 9px;
    outline: none;
    color: var(--ink);
    background: var(--white);
}

.marketplace-filters input:focus,
.marketplace-filters select:focus {
    border-color: var(--blue);
    box-shadow: 0 0 0 3px rgba(8, 120, 185, .10);
}

.filter-button {
    height: 47px;
    min-height: 47px;
}

.marketplace-toolbar {
    min-height: 72px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    color: var(--muted);
    font-size: 14px;
}

.marketplace-toolbar strong {
    color: var(--navy);
    font-size: 16px;
}

.marketplace-toolbar span {
    margin-left: 5px;
}

.clear-filters {
    color: var(--blue);
    font-weight: 750;
}

.marketplace-grid {
    grid-template-columns: repeat(4, 1fr);
}

.empty-marketplace {
    padding: 85px 25px;
    text-align: center;
    background: var(--white);
    border: 1px solid var(--line);
    border-radius: var(--radius);
}

.empty-marketplace-icon {
    width: 68px;
    height: 68px;
    margin: 0 auto 18px;
    display: grid;
    place-items: center;
    border-radius: 50%;
    background: var(--blue-light);
    font-size: 30px;
}

.empty-marketplace h2 {
    margin: 0;
    color: var(--navy);
    font-size: 30px;
}

.empty-marketplace p {
    max-width: 500px;
    margin: 10px auto 24px;
    color: var(--muted);
}

.empty-actions {
    display: flex;
    justify-content: center;
    gap: 10px;
}

.button-outline-dark {
    color: var(--navy);
    background: transparent;
    border-color: #b7c8d1;
}

.button-outline-dark:hover {
    color: var(--white);
    background: var(--navy);
    border-color: var(--navy);
}

.marketplace-sell-strip {
    padding: 32px 0;
    border-top: 1px solid var(--line);
    background: var(--white);
}

.marketplace-sell-strip-inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 30px;
}

.marketplace-sell-strip-inner > div {
    display: flex;
    flex-direction: column;
}

.marketplace-sell-strip strong {
    color: var(--navy);
    font-size: 21px;
}

.marketplace-sell-strip span {
    color: var(--muted);
}


@media (max-width: 1050px) {
    .marketplace-filters {
        grid-template-columns: 2fr 1fr 1fr;
    }

    .filter-button {
        width: 100%;
    }

    .marketplace-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}


@media (max-width: 800px) {
    .marketplace-filters {
        grid-template-columns: 1fr 1fr;
    }

    .filter-search {
        grid-column: 1 / -1;
    }

    .marketplace-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}


@media (max-width: 600px) {
    .page-hero {
        padding: 48px 0 43px;
    }

    .marketplace-section {
        padding-top: 25px;
    }

    .marketplace-filters {
        grid-template-columns: 1fr;
        padding: 15px;
    }

    .filter-search {
        grid-column: auto;
    }

    .marketplace-toolbar {
        align-items: flex-start;
        flex-direction: column;
        justify-content: center;
        padding-block: 16px;
    }

    .marketplace-grid {
        grid-template-columns: 1fr;
    }

    .empty-actions {
        flex-direction: column;
    }

    .marketplace-sell-strip-inner {
        align-items: flex-start;
        flex-direction: column;
    }
}

/* Sell listing page */
.sell-page { background: #f4f7fb; padding: 52px 0 72px; }
.sell-container { max-width: 980px; }
.sell-heading { margin-bottom: 28px; }
.sell-heading h1 { margin: 6px 0 8px; font-size: clamp(2rem, 5vw, 3.25rem); color: #102a43; }
.sell-heading p { margin: 0; color: #627d98; font-size: 1.08rem; }
.sell-form { display: grid; gap: 22px; }
.form-section { background: #fff; border: 1px solid #d9e2ec; border-radius: 18px; padding: 26px; box-shadow: 0 8px 24px rgba(16,42,67,.06); }
.form-section-heading { display: flex; align-items: center; gap: 14px; margin-bottom: 22px; }
.form-section-heading h2 { margin: 0 0 3px; color: #102a43; font-size: 1.25rem; }
.form-section-heading p { margin: 0; color: #829ab1; }
.form-step { display: grid; place-items: center; width: 38px; height: 38px; flex: 0 0 38px; border-radius: 50%; background: #0b5fa5; color: #fff; font-weight: 800; }
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.form-field { display: flex; flex-direction: column; gap: 7px; }
.form-field-wide { grid-column: 1 / -1; }
.form-field label { color: #243b53; font-weight: 700; }
.required { color: #d64545; margin-left: 3px; }
.form-field input, .form-field select, .form-field textarea { width: 100%; border: 1px solid #bcccdc; border-radius: 10px; background: #fff; padding: 12px 13px; color: #102a43; font: inherit; box-sizing: border-box; }
.form-field textarea { min-height: 150px; resize: vertical; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { outline: none; border-color: #0b5fa5; box-shadow: 0 0 0 3px rgba(11,95,165,.12); }
.form-field small { color: #829ab1; }
.field-error, .form-errors { color: #b42318; font-size: .9rem; font-weight: 600; }
.photo-upload-box { border: 2px dashed #bcccdc; border-radius: 14px; padding: 28px; text-align: center; background: #f8fbff; }
.photo-upload-icon { font-size: 2rem; margin-bottom: 8px; }
.photo-upload-box label { display: block; color: #102a43; font-size: 1.05rem; font-weight: 800; margin-bottom: 5px; }
.photo-upload-box p { margin: 0 0 16px; color: #829ab1; }
.photo-upload-box input[type="file"] { max-width: 100%; }
.sell-submit { display: flex; align-items: center; justify-content: space-between; gap: 22px; background: #102a43; color: #fff; border-radius: 18px; padding: 24px 26px; }
.sell-submit strong { font-size: 1.1rem; }
.sell-submit p { margin: 4px 0 0; color: #d9e2ec; }
.sell-submit .button { border: 0; cursor: pointer; white-space: nowrap; }
@media (max-width: 700px) {
  .sell-page { padding: 32px 0 48px; }
  .form-section { padding: 20px; }
  .form-grid, .form-grid-three { grid-template-columns: 1fr; }
  .form-field-wide { grid-column: auto; }
  .sell-submit { align-items: stretch; flex-direction: column; }
  .sell-submit .button { width: 100%; }
}

/* Seller dashboard */
.dashboard-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 48px 24px 72px;
}
.dashboard-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 24px;
  margin-bottom: 32px;
}
.dashboard-header h1 {
  margin: 4px 0 8px;
}
.dashboard-listings {
  display: grid;
  gap: 18px;
}
.seller-card {
  display: grid;
  grid-template-columns: 190px 1fr;
  background: #fff;
  border: 1px solid #dbe4ee;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 8px 24px rgba(15, 40, 70, .06);
}
.seller-card-image {
  min-height: 150px;
  background: #eef3f7;
}
.seller-card-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.seller-card-placeholder {
  height: 100%;
  min-height: 150px;
  display: grid;
  place-items: center;
  color: #718096;
}
.seller-card-body {
  padding: 20px 22px;
}
.seller-card-top {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.seller-card-top h2 {
  margin: 0;
  font-size: 1.25rem;
}
.status-badge {
  padding: 5px 10px;
  border-radius: 999px;
  background: #e8eef5;
  font-size: .78rem;
  font-weight: 700;
  white-space: nowrap;
}
.status-published { background: #dcfce7; color: #166534; }
.status-pending { background: #fef3c7; color: #92400e; }
.status-sold { background: #e5e7eb; color: #374151; }
.seller-card-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 18px;
  margin-top: 14px;
}
.seller-card-date {
  margin: 10px 0 16px;
  color: #718096;
  font-size: .88rem;
}
.seller-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}
.seller-card-actions form { margin: 0; }
.seller-card-actions a,
.seller-card-actions button {
  font: inherit;
  font-weight: 700;
  cursor: pointer;
}
.seller-card-actions button {
  border: 0;
  background: none;
  padding: 0;
}
.danger-link { color: #b42318; }
.dashboard-empty {
  text-align: center;
  padding: 64px 24px;
  background: #fff;
  border: 1px solid #dbe4ee;
  border-radius: 16px;
}
@media (max-width: 700px) {
  .dashboard-header {
    align-items: flex-start;
    flex-direction: column;
  }
  .seller-card {
    grid-template-columns: 1fr;
  }
  .seller-card-image {
    height: 210px;
  }
}

/* Listing detail */
.listing-detail-page {
  max-width: 1180px;
  margin: 0 auto;
  padding: 32px 24px 72px;
}

.listing-breadcrumb {
  margin-bottom: 24px;
  color: #64748b;
  font-size: .9rem;
}

.listing-breadcrumb a {
  font-weight: 700;
}

.listing-breadcrumb span {
  margin: 0 8px;
}

.listing-detail-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 28px;
  margin-bottom: 28px;
}

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

.listing-title-row h1 {
  margin: 0;
}

.listing-location {
  margin: 8px 0 0;
  color: #64748b;
  font-size: 1.05rem;
}

.listing-detail-price {
  color: #0b3158;
  font-size: 2rem;
  font-weight: 800;
  white-space: nowrap;
}

.listing-detail-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 340px;
  gap: 30px;
  align-items: start;
}

.listing-gallery {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-bottom: 28px;
}

.listing-gallery-image {
  height: 230px;
  overflow: hidden;
  border-radius: 12px;
  background: #eef3f7;
}

.listing-gallery-primary {
  grid-column: 1 / -1;
  height: 460px;
}

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

.listing-gallery-empty {
  grid-column: 1 / -1;
  display: grid;
  place-items: center;
  min-height: 360px;
  border-radius: 16px;
  background: #eef3f7;
  color: #64748b;
}

.listing-detail-section {
  margin-top: 22px;
  padding: 26px;
  border: 1px solid #dbe4ee;
  border-radius: 16px;
  background: #fff;
}

.listing-detail-section h2 {
  margin-top: 0;
}

.listing-spec-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 18px;
}

.listing-spec-grid div {
  padding: 14px;
  border-radius: 10px;
  background: #f5f8fb;
}

.listing-spec-grid span,
.seller-contact-row span {
  display: block;
  margin-bottom: 4px;
  color: #64748b;
  font-size: .8rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: .04em;
}

.listing-description p:last-child {
  margin-bottom: 0;
}

.listing-contact-card {
  position: sticky;
  top: 24px;
  padding: 26px;
  border: 1px solid #dbe4ee;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(15, 40, 70, .08);
}

.listing-contact-card h2 {
  margin-top: 4px;
}

.seller-contact-row {
  padding: 12px 0;
  border-bottom: 1px solid #e5eaf0;
}

.listing-contact-button {
  display: block;
  width: 100%;
  margin-top: 20px;
  text-align: center;
}

.affiliate-disclosure {
  margin: 18px 0 0;
  color: #64748b;
  font-size: .78rem;
  line-height: 1.5;
}

@media (max-width: 850px) {
  .listing-detail-grid {
    grid-template-columns: 1fr;
  }

  .listing-contact-card {
    position: static;
  }

  .listing-detail-header {
    flex-direction: column;
  }
}

@media (max-width: 600px) {
  .listing-detail-page {
    padding: 24px 16px 56px;
  }

  .listing-gallery {
    grid-template-columns: 1fr;
  }

  .listing-gallery-primary,
  .listing-gallery-image {
    grid-column: auto;
    height: 260px;
  }

  .listing-spec-grid {
    grid-template-columns: repeat(2, 1fr);
  }

  .listing-detail-price {
    font-size: 1.65rem;
  }
}

/* Authentication */
.auth-page {
    min-height: 68vh;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 64px 20px;
    background:
        linear-gradient(
            180deg,
            rgba(9, 35, 61, 0.04),
            rgba(9, 35, 61, 0)
        );
}

.auth-card {
    width: 100%;
    max-width: 520px;
    padding: 40px;
    background: #fff;
    border: 1px solid #dce4eb;
    border-radius: 18px;
    box-shadow: 0 18px 50px rgba(9, 35, 61, 0.10);
}

.auth-card h1 {
    margin: 4px 0 10px;
    color: #09233d;
    font-size: clamp(2rem, 5vw, 2.7rem);
    line-height: 1.05;
}

.auth-intro {
    margin: 0 0 28px;
    color: #5a6875;
    line-height: 1.6;
}

.auth-form {
    display: grid;
    gap: 10px;
}

.auth-form label {
    margin-top: 8px;
    color: #18344e;
    font-weight: 700;
}

.auth-form input {
    width: 100%;
    box-sizing: border-box;
    padding: 13px 14px;
    border: 1px solid #c7d2dc;
    border-radius: 9px;
    background: #fff;
    color: #172b3d;
    font: inherit;
}

.auth-form input:focus {
    outline: 2px solid rgba(19, 104, 173, 0.18);
    border-color: #1368ad;
}

.auth-submit {
    width: 100%;
    margin-top: 16px;
    border: 0;
    cursor: pointer;
    text-align: center;
}

.auth-switch {
    margin: 24px 0 0;
    padding-top: 22px;
    border-top: 1px solid #e2e8ee;
    text-align: center;
    color: #607080;
}

.auth-switch a {
    color: #0b5e9c;
    font-weight: 700;
}

.auth-error,
.field-error {
    border-radius: 8px;
    background: #fff2f2;
    color: #a62929;
}

.auth-error {
    margin-bottom: 18px;
    padding: 12px 14px;
}

.field-error {
    padding: 8px 10px;
    font-size: 0.9rem;
}

.field-error ul,
.auth-error ul {
    margin: 0;
    padding-left: 18px;
}

.auth-form .helptext {
    color: #6d7985;
    font-size: 0.85rem;
    line-height: 1.45;
}

.auth-form ul {
    color: #6d7985;
    font-size: 0.85rem;
}

@media (max-width: 600px) {
    .auth-page {
        padding: 36px 16px;
    }

    .auth-card {
        padding: 28px 22px;
        border-radius: 14px;
    }
}

/* Seller inquiry form */
.seller-inquiry-form {
  display: grid;
  gap: 14px;
  margin-top: 22px;
}

.inquiry-field {
  display: grid;
  gap: 6px;
}

.inquiry-field label {
  color: #18344e;
  font-size: .9rem;
  font-weight: 700;
}

.inquiry-field input,
.inquiry-field textarea {
  width: 100%;
  box-sizing: border-box;
  padding: 11px 12px;
  border: 1px solid #cbd5df;
  border-radius: 8px;
  background: #fff;
  color: #172b3d;
  font: inherit;
}

.inquiry-field textarea {
  min-height: 120px;
  resize: vertical;
}

.inquiry-field input:focus,
.inquiry-field textarea:focus {
  outline: 2px solid rgba(19, 104, 173, .16);
  border-color: #1368ad;
}

.inquiry-field .errorlist {
  margin: 0;
  padding-left: 18px;
  color: #a62929;
  font-size: .85rem;
}

.inquiry-success {
  display: grid;
  gap: 4px;
  margin-top: 20px;
  padding: 16px;
  border: 1px solid #a7d7b7;
  border-radius: 10px;
  background: #effaf2;
  color: #23643a;
}

.inquiry-success strong {
  font-size: 1.05rem;
}

.seller-email-note {
  margin: 2px 0 0;
  color: #6b7785;
  font-size: .82rem;
  line-height: 1.45;
}

/* Saved listings */
.listing-save-row {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 16px;
}

.listing-save-row form {
  margin: 0;
}

.listing-save-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 9px 16px;
  border: 1px solid #c7d2dc;
  border-radius: 999px;
  background: #fff;
  color: #173b5d;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
}

.listing-save-button:hover,
.listing-save-button.is-saved {
  border-color: #e36c2f;
  color: #c9551d;
}

.saved-listings-section {
  margin-top: 48px;
  padding-top: 32px;
  border-top: 1px solid #dce3e9;
}

.saved-listings-header {
  margin-bottom: 18px;
}

.saved-listings-header h2 {
  margin: 4px 0 0;
}

.saved-listings-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.saved-listing-card {
  overflow: hidden;
  border: 1px solid #dce3e9;
  border-radius: 12px;
  background: #fff;
}

.saved-listing-image {
  display: block;
  height: 180px;
  background: #edf2f5;
}

.saved-listing-image img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.saved-listing-body {
  display: grid;
  gap: 16px;
  padding: 16px;
}

.saved-listing-body h3 {
  margin: 0 0 8px;
}

.saved-listing-body h3 a {
  color: #173b5d;
  text-decoration: none;
}

.saved-listing-body p {
  margin: 6px 0 0;
  color: #687785;
}

.saved-listing-price {
  color: #173b5d;
  font-size: 1.1rem;
}

.saved-listing-actions {
  display: flex;
  align-items: center;
  gap: 14px;
}

.saved-listing-actions form {
  margin: 0;
}

.saved-listing-actions a,
.saved-listing-actions button {
  border: 0;
  background: none;
  color: #1368ad;
  font: inherit;
  font-weight: 700;
  text-decoration: none;
  cursor: pointer;
  padding: 0;
}

.saved-listing-actions button {
  color: #9b3434;
}

.saved-empty {
  grid-column: 1 / -1;
}

@media (max-width: 850px) {
  .saved-listings-grid {
    grid-template-columns: 1fr;
  }

  .listing-save-row {
    justify-content: flex-start;
  }
}

/* Spam honeypot - intentionally invisible to human visitors */
.boatflyer-hp {
  position: absolute !important;
  left: -10000px !important;
  width: 1px !important;
  height: 1px !important;
  overflow: hidden !important;
}
/* ------------------------------------------------------------
   BoatFlyer listing polish - October 2026
   Keep product photos fully visible and long mobile titles tidy.
   ------------------------------------------------------------ */

.listing-image {
    background: #fff;
}

.listing-image img {
    object-fit: contain;
    padding: 10px;
}

.listing-card h3 {
    overflow-wrap: anywhere;
}

.listing-price-small {
    line-height: 1.25;
}

.listing-breadcrumb {
    display: flex;
    align-items: center;
    min-width: 0;
}

.listing-breadcrumb a,
.listing-breadcrumb > span:first-of-type {
    flex: 0 0 auto;
}

.listing-breadcrumb-current {
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.listing-title-row {
    min-width: 0;
}

.listing-title-row h1 {
    max-width: 820px;
    color: var(--navy);
    font-size: clamp(2rem, 4vw, 3rem);
    line-height: 1.08;
    letter-spacing: -1.3px;
    overflow-wrap: anywhere;
}

.listing-gallery-image {
    display: grid;
    place-items: center;
    background: #fff;
    border: 1px solid var(--line);
}

.listing-gallery-image img {
    object-fit: contain;
    padding: 14px;
}

@media (max-width: 600px) {
    .listing-detail-page {
        padding-top: 18px;
    }

    .listing-breadcrumb {
        margin-bottom: 16px;
        font-size: .82rem;
    }

    .listing-detail-header {
        gap: 14px;
        margin-bottom: 18px;
    }

    .listing-title-row h1 {
        font-size: clamp(1.8rem, 8.2vw, 2.25rem);
        line-height: 1.08;
        letter-spacing: -.8px;
    }

    .listing-location {
        font-size: .95rem;
    }

    .listing-detail-price {
        font-size: 1.25rem;
        line-height: 1.3;
        white-space: normal;
    }

    .listing-gallery-primary,
    .listing-gallery-image {
        height: auto;
        min-height: 240px;
        max-height: 420px;
    }

    .listing-gallery-image img {
        width: 100%;
        height: auto;
        max-height: 400px;
        object-fit: contain;
        padding: 10px;
    }

    .listing-card h3 {
        font-size: 17px;
    }

    .listing-image img {
        padding: 8px;
    }
}

/* Mobile listing polish */
@media (max-width:600px){.listing-title-row h1{font-size:30px;line-height:1.12;letter-spacing:-.5px}.listing-detail-price{font-size:20px;line-height:1.3}.listing-detail-header{gap:10px;margin-bottom:12px}.listing-save-row{margin-bottom:12px}.listing-breadcrumb{white-space:nowrap;overflow:hidden}.listing-breadcrumb-current{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.listing-price-small{font-size:15px;font-weight:750}}
