:root {
    --my-navy: #071923;
    --my-deep: #0b2938;
    --my-sea: #147ba3;
    --my-sky: #55b7d8;
    --my-white: #ffffff;
}

/* hide the price ALLL the time
The yacht system has its own pricing fields for selling and chartering so we dont use the default shopclass pricing at all
*/
.control-group-price {
    display: none;
}
body {
    font-family: "DM Sans", "Helvetica Neue", Arial, sans-serif;
}

.my-header {
    position: sticky;
    top: 0;
    z-index: 20;
    background: var(--my-navy);
    border-bottom: 1px solid rgba(255, 255, 255, .14);
}

.my-header .sf-header__bar {
    min-height: 84px;
}

.my-logo img {
    display: block;
    width: auto;
    max-width: 245px;
    height: 54px;
    object-fit: contain;
}

.my-header .sf-nav__link,
.my-header .sf-account__toggle {
    color: rgba(255, 255, 255, .9);
}

/* "Services" hover dropdown */
.my-header .sf-nav__item--has-sub {
    position: relative;
}

.my-header .sf-nav__item--has-sub .sf-nav__link {
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.my-header .sf-nav__sub {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    padding: 8px 0;
    margin-top: 4px;
    background: var(--my-navy);
    border: 1px solid rgba(255, 255, 255, .14);
    border-radius: 8px;
    box-shadow: 0 12px 24px rgba(0, 0, 0, .35);
    opacity: 0;
    visibility: hidden;
    transform: translateY(-4px);
    transition: opacity .15s ease, transform .15s ease, visibility .15s;
}

/* :focus-within covers keyboard tabbing; a short delay on the hover-out
   would need JS, so this closes the instant the pointer leaves — fine for
   a same-site nav that isn't asking anyone to trace a diagonal path. */
.my-header .sf-nav__item--has-sub:hover .sf-nav__sub,
.my-header .sf-nav__item--has-sub:focus-within .sf-nav__sub {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.my-header .sf-nav__sub-link {
    display: block;
    padding: 8px 16px;
    color: rgba(255, 255, 255, .9);
    white-space: nowrap;
}

.my-header .sf-nav__sub-link:hover,
.my-header .sf-nav__sub-link:focus-visible {
    background: rgba(255, 255, 255, .08);
    color: var(--my-white);
}

.my-header .sf-nav__link:hover,
.my-header .sf-nav__link:focus-visible {
    color: var(--my-white);
}

.my-header .sf-nav-toggle span {
    background: var(--my-white);
}

.my-header .sf-nav__cta,
.my-button--primary {
    color: var(--my-white);
    background: var(--my-sea);
    border-color: var(--my-sea);
    border-radius: 0;
}

.my-hero {
    position: relative;
    min-height: calc(100vh - 84px);
    display: grid;
    align-items: center;
    overflow: hidden;
    color: var(--my-white);
    background-image: var(--my-hero-image);
    background-position: center;
    background-size: cover;
}

.my-hero__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(90deg, rgba(3, 17, 25, .92) 0%, rgba(4, 24, 35, .72) 48%, rgba(4, 24, 35, .30) 100%);
}

.my-hero__inner {
    position: relative;
    z-index: 1;
    width: 100%;
    padding-block: clamp(64px, 9vw, 128px);
}

.my-hero__content {
    max-width: 970px;
}

.my-hero__eyebrow {
    margin: 0 0 14px;
    color: var(--my-sky);
    font-size: .78rem;
    font-weight: 700;
    letter-spacing: .18em;
    text-transform: uppercase;
}

.my-hero h1 {
    max-width: 850px;
    margin: 0;
    color: var(--my-white);
    font-size: clamp(2.7rem, 6vw, 5.8rem);
    font-weight: 300;
    letter-spacing: -.035em;
    line-height: .98;
    text-transform: uppercase;
}

.my-hero__lead {
    max-width: 700px;
    margin: 24px 0 34px;
    color: rgba(255, 255, 255, .82);
    font-size: clamp(1rem, 1.5vw, 1.25rem);
    line-height: 1.5;
}

.my-search {
    display: grid;
    grid-template-columns: minmax(240px, 1fr) minmax(180px, .38fr) auto;
    gap: 0;
    max-width: 900px;
    padding: 8px;
    background: rgba(255, 255, 255, .96);
    box-shadow: 0 22px 55px rgba(0, 0, 0, .26);
}

.my-search input,
.my-search select {
    min-height: 54px;
    margin: 0;
    padding-inline: 18px;
    color: #1b2a31;
    background: transparent;
    border: 0;
    border-right: 1px solid #d8e0e4;
    border-radius: 0;
    outline: none;
}

.my-button {
    min-height: 54px;
    padding: 0 30px;
    border: 1px solid;
    font-weight: 700;
    cursor: pointer;
}

.my-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1px;
    max-width: 900px;
    margin-top: 22px;
    background: rgba(255, 255, 255, .2);
}

.my-actions a {
    display: grid;
    gap: 4px;
    min-height: 104px;
    padding: 22px;
    color: var(--my-white);
    background: rgba(5, 29, 42, .78);
    text-decoration: none;
    backdrop-filter: blur(8px);
}

.my-actions a:hover,
.my-actions a:focus-visible {
    background: rgba(20, 123, 163, .94);
}

.my-actions strong {
    font-size: 1rem;
    text-transform: uppercase;
}

.my-actions span {
    color: rgba(255, 255, 255, .72);
    font-size: .86rem;
}

.my-browse-link {
    display: inline-block;
    margin-top: 26px;
    color: var(--my-white);
    font-weight: 700;
    text-underline-offset: 5px;
}

.my-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;
}

.my-search :focus-visible,
.my-actions a:focus-visible,
.my-browse-link:focus-visible,
.my-header a:focus-visible,
.my-header button:focus-visible {
    outline: 3px solid var(--my-sky);
    outline-offset: 3px;
}

@media (max-width: 860px) {
    .my-header .sf-nav {
        background: var(--my-navy);
    }
    .sf-nav-backdrop { 
	 position: initial;
    }
    .my-header .sf-nav {
        max-height: calc(100vh - 84px); /* subtract your header bar height */
        overflow-y: auto;
        -webkit-overflow-scrolling: touch;
    }

    /* No hover on touch — show the Services submenu inline and permanently
       expanded inside the mobile drawer instead of depending on :hover. */
    .my-header .sf-nav__sub {
        position: static;
        opacity: 1;
        visibility: visible;
        transform: none;
        margin: 4px 0 4px 16px;
        border: 0;
        box-shadow: none;
        background: transparent;
        padding: 0;
    }

    .my-header .sf-nav__sub-link {
        padding: 6px 0;
    }

    .my-search {
        grid-template-columns: 1fr;
        gap: 1px;
        background: rgba(255, 255, 255, .82);
    }

    .my-search input,
    .my-search select {
        background: rgba(255, 255, 255, .98);
        border: 0;
    }

    .my-actions {
        grid-template-columns: 1fr;
    }

    .my-actions a {
        min-height: auto;
    }
}

@media (max-width: 600px) {
    .my-header .sf-header__bar {
        min-height: 70px;
    }

    .my-logo img {
        max-width: 180px;
        height: 42px;
    }

    .my-hero {
        min-height: calc(100vh - 70px);
        background-position: 62% center;
    }

    .my-hero__overlay {
        background: linear-gradient(180deg, rgba(3, 17, 25, .84), rgba(3, 17, 25, .94));
    }

    .my-hero__inner {
        padding-block: 48px;
    }
}

/* Detail-page charter price: secondary to the sale price, but prominent enough
   to work for charter-only listings where the main price is unavailable. */
.sf-detail__charter-price {
    display: flex;
    align-items: baseline;
    flex-wrap: wrap;
    gap: 6px 9px;
    margin: -2px 0 var(--space-3);
    color: var(--color-neutral-700);
    font-size: 14px;
}
.sf-detail__charter-price strong {
    color: var(--color-accent-ink);
    font-family: var(--font-heading);
    font-size: 20px;
}
.sf-detail__charter-label {
    font-weight: 700;
}
.sf-detail__charter-period {
    color: var(--color-muted);
}

/* motor-yachting-eur plugin's price fieldset, moved to the top of the
   filters — a little breathing room before the next field. */
.my-eur-search {
    margin-bottom: 10px;
}

/* Footer styles - dark navy with white text, matching motoryachting.com */
/* Confirmed against the live footer markup on demopages.co.uk/marketplace:
   the wrapper is .sf-footer (not .footer/#footer — those never matched
   anything), and the nested menu links are .sf-footer__links, not
   .sf-footer__menu as this block assumed, so that rule was silently dead
   too. No .sf-powered-by element exists on this page, so that rule is
   dropped rather than left targeting nothing. */
.sf-footer {
    background: var(--my-navy);
    border-top: 1px solid rgba(255, 255, 255, .10);
    color: rgba(255, 255, 255, .75);
}
.sf-footer h2 {
    color: var(--my-white);
}
.sf-footer a {
    color: rgba(255, 255, 255, .85);
}
.sf-footer a:hover {
    color: var(--my-white);
}
.sf-footer .sf-footer__links a {
    color: rgba(255, 255, 255, .75);
}
.sf-footer .sf-footer__links a:hover {
    color: var(--my-white);
}
.sf-footer p {
    color: rgba(255, 255, 255, .65);
}
