/**
 * Single Equipment Page Styles
 * Matches Figma design node 1:804
 */

/* ── Page background ── */
.sf-eq-page {
    background-color: #FAFBF2;
    font-family: 'Inter', sans-serif;
    padding-bottom: 64px;
}

/* ── Breadcrumb Banner ── */
.sf-eq-banner {
    background-color: #DEECE2;
    padding: 20px 0;
}

.sf-eq-banner-inner {
    margin: 0 auto;
    padding: 0 24px;
    max-width: 1350px;
    display: flex;
    align-items: flex-start;
    gap: 12px;
}

.sf-eq-back {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    color: #636E72;
    text-decoration: none;
    margin-top: 4px;
    flex-shrink: 0;
    transition: color 0.2s ease;
}

.sf-eq-back:hover {
    color: #2D5016;
}

.sf-eq-breadcrumb {
    font-size: 24px;
    font-weight: 500;
    line-height: 40px;
    letter-spacing: 0.37px;
    color: #2D3436;
    margin: 0;
}

.sf-eq-breadcrumb-link {
    color: #326E32;
    text-decoration: none;
    transition: opacity 0.2s;
}

.sf-eq-breadcrumb-link:hover {
    opacity: 0.8;
}

.sf-eq-breadcrumb-sep {
    color: #334A34;
}

.sf-eq-breadcrumb-current {
    color: #2D3436;
}

.sf-eq-location-sub {
    font-size: 14px;
    font-weight: 400;
    line-height: 24px;
    letter-spacing: -0.31px;
    color: #636E72;
    margin: 0;
}

/* ── Container & Layout ── */
.sf-eq-container {
    margin: 0 auto;
    padding: 24px 24px 0;
    max-width: 1350px;
}

.sf-eq-layout {
    display: grid;
    grid-template-columns: 1fr 400px;
    gap: 24px;
    align-items: start;
}

/* ── Left Column ── */
.sf-eq-main {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ── Hero Image ── */
.sf-eq-hero-card {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #FEFFF8;
    line-height: 0;
}

.sf-eq-hero-img {
    width: 100%;
    height: 478px;
    object-fit: cover;
    display: block;
}

/* ── Generic Card ── */
.sf-eq-card {
    background: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 10px;
    padding: 25px;
}

.sf-eq-card-title {
    font-size: 18px;
    font-weight: 500;
    line-height: 16px;
    letter-spacing: -0.31px;
    color: #2D3436;
    margin: 0 0 30px 0;
}

/* ── Equipment Specifications Grid ── */
.sf-eq-specs-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 27px;
}

.sf-eq-spec-item {
    background: #E8EBE8;
    border-radius: 6px;
    padding: 16px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-height: 80px;
}

.sf-eq-spec-label {
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: -0.15px;
    color: #636E72;
}

.sf-eq-spec-value {
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: -0.31px;
    color: #2D3436;
}

/* ── Badges ── */
.sf-eq-badge {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 12px;
    font-weight: 500;
    line-height: 16px;
    white-space: nowrap;
}

.sf-eq-badge--available {
    background-color: #E0EDE3;
    color: #2D3436;
    border: 1px solid #C3D1C3;
    width: fit-content;
}

.sf-eq-badge--booked {
    background-color: #FEE2E2;
    color: #991B1B;
    border: 1px solid #FECACA;
    width: fit-content;
}

/* ── Description ── */
.sf-eq-desc {
    font-size: 16px;
    font-weight: 400;
    line-height: 26px;
    letter-spacing: -0.31px;
    color: #636E72;
    margin: 0;
}

/* ── Certifications ── */
.sf-eq-certs {
    display: flex;
    gap: 16px;
    flex-wrap: wrap;
}

.sf-eq-cert-badge {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 13px;
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 4px;
    font-size: 14px;
    font-weight: 500;
    line-height: 16px;
    color: #2D3436;
}

/* ── Storm Response Card ── */
.sf-eq-card--storm {
    background: rgba(45, 80, 22, 0.05);
    border-color: rgba(45, 80, 22, 0.5);
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.sf-eq-storm-header {
    display: flex;
    align-items: center;
    gap: 8px;
}

/* ── Buttons ── */
.sf-eq-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-family: 'Inter', sans-serif;
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: -0.15px;
    text-decoration: none;
    border-radius: 4px;
    padding: 10px 24px;
    cursor: pointer;
    transition: opacity 0.2s ease, background-color 0.2s ease;
    text-align: center;
}

.sf-eq-btn:hover {
    opacity: 0.9;
}

.sf-eq-btn--filled {
    background-color: #2D5016;
    color: #FFFFFF;
    border: 1px solid rgba(0, 0, 0, 0.1);
}

.sf-eq-btn--filled:hover {
    color: #fff;
}

.sf-eq-btn--outline {
    background-color: #FFFFFF;
    color: #2D5016;
    border: 1px solid #326E32;
}

.sf-eq-btn--sm {
    padding: 8px 12px;
    align-self: flex-start;
}

/* ── Right Column (Sidebar) ── */
.sf-eq-sidebar {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

/* ── Contact Card ── */
.sf-eq-contact-card {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 20px;
    padding: 24px 24px 20px;
}

.sf-eq-contact-center {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 4px;
}

.sf-eq-avatar {
    width: 80px;
    height: 80px;
    border-radius: 6px;
    background-color: #495342;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
    overflow: hidden;
}

.sf-eq-avatar span {
    font-size: 24px;
    font-weight: 400;
    line-height: 32px;
    letter-spacing: 0.07px;
    color: #FFFFFF;
}

.sf-eq-avatar--img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.sf-eq-contact-name {
    font-size: 16px;
    font-weight: 500;
    line-height: 24px;
    letter-spacing: -0.31px;
    color: #2D3436;
    text-align: center;
    margin: 0;
}

.sf-eq-contact-company {
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: -0.15px;
    color: #636E72;
    text-align: center;
    margin: 0;
}

/* ── Contact Links ── */
.sf-eq-contact-links {
    display: flex;
    flex-direction: column;
    gap: 16px;
    width: 100%;
}

.sf-eq-contact-link {
    display: flex;
    align-items: center;
    gap: 12px;
    background: #E8EBE8;
    border-radius: 6px;
    padding: 12px;
    text-decoration: none;
    color: #2D3436;
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: -0.15px;
    transition: background-color 0.2s ease;
}

.sf-eq-contact-link:hover {
    background-color: #DCE0DC;
}

.sf-eq-contact-link svg {
    flex-shrink: 0;
}

/* ── Contact Actions ── */
.sf-eq-contact-actions {
    display: flex;
    flex-direction: column;
    gap: 8px;
    width: 100%;
}

.sf-eq-contact-actions .sf-eq-btn {
    width: 100%;
}

/* ── Lead Actions (Sell / Buy) ── */
.sf-eq-lead-actions {
    border-top: 1px solid rgba(0, 0, 0, 0.1);
    padding-top: 8px;
}

/* ── Quick Info Card ── */
.sf-eq-quick-info {
    padding: 24px;
}

.sf-eq-info-rows {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sf-eq-info-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.sf-eq-info-label {
    font-size: 14px;
    font-weight: 400;
    line-height: 20px;
    letter-spacing: -0.15px;
    color: #636E72;
}

.sf-eq-info-value {
    font-size: 14px;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: -0.15px;
    color: #2D3436;
}

/* ── Safety Card ── */
.sf-eq-safety-card {
    background: #FEFCE8;
    border-color: rgba(240, 177, 0, 0.5);
    padding: 25px;
}

.sf-eq-safety-header {
    display: flex;
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 4px;
}

.sf-eq-safety-title {
    font-size: 18px;
    font-weight: 500;
    line-height: 20px;
    letter-spacing: -0.15px;
    color: #733E0A;
}

.sf-eq-safety-text {
    font-size: 16px;
    font-weight: 400;
    line-height: 20px;
    color: #733E0A;
    margin: 0;
}

/* ── Responsive ── */
@media (max-width: 1024px) {
    .sf-eq-layout {
        grid-template-columns: 1fr;
    }

    .sf-eq-sidebar {
        order: -1;
    }

    .sf-eq-contact-card {
        flex-direction: row;
        flex-wrap: wrap;
        gap: 20px;
    }

    .sf-eq-contact-center {
        flex: 0 0 auto;
    }

    .sf-eq-contact-links {
        flex: 1;
        min-width: 200px;
    }

    .sf-eq-contact-actions {
        flex-direction: row;
    }

    .sf-eq-contact-actions .sf-eq-btn {
        flex: 1;
    }
}

@media (max-width: 768px) {
    .sf-eq-page {
        overflow-x: hidden;
    }

    .sf-eq-banner-inner {
        padding: 0 16px;
    }

    .sf-eq-container {
        padding: 16px 16px 0;
    }

    .sf-eq-specs-grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }

    .sf-eq-hero-img {
        height: 280px;
    }

    .sf-eq-breadcrumb {
        font-size: 18px;
        line-height: 24px;
    }

    .sf-eq-contact-card {
        flex-direction: column;
    }

    .sf-eq-contact-actions {
        flex-direction: column;
    }

    .sf-eq-card {
        padding: 16px;
        border-radius: 8px;
    }

    .sf-eq-card-title {
        margin-bottom: 20px;
    }
}

@media (max-width: 480px) {
    .sf-eq-banner-inner {
        padding: 0 12px;
    }

    .sf-eq-container {
        padding: 12px 12px 0;
    }

    .sf-eq-specs-grid {
        grid-template-columns: 1fr;
    }

    .sf-eq-hero-img {
        height: 220px;
    }

    .sf-eq-certs {
        flex-direction: column;
    }
}

/* ── Splide Gallery (shared by lead + equipment) ── */
.sf-lead-splide {
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.1);
    background: #fff;
    position: relative;
}

.sf-lead-splide .splide__list {
    display: flex;
    align-items: center;
}

.sf-lead-splide .splide__slide {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #fff;
    height: 100%;
}

.sf-lead-splide .splide__slide img {
    width: 100%;
    max-height: 500px;
    object-fit: contain;
    display: block;
}

/* Fullscreen button */
.sf-gallery-fullscreen {
    position: absolute;
    top: 12px;
    right: 12px;
    z-index: 10;
    width: 36px;
    height: 36px;
    background: rgba(255, 255, 255, 0.85);
    border: none;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    transition: background 0.2s ease, transform 0.2s ease;
}

.sf-gallery-fullscreen:hover {
    background: #fff;
    transform: scale(1.05);
}

.sf-gallery-fullscreen svg {
    width: 18px;
    height: 18px;
    fill: #2D5016;
}

/* Arrow overrides */
.sf-lead-splide .splide__arrow {
    background: rgba(255, 255, 255, 0.85);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    border: none;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
    opacity: 0.85;
    transition: opacity 0.2s ease, background 0.2s ease;
}

.sf-lead-splide .splide__arrow:hover {
    opacity: 1;
    background: #fff;
}

.sf-lead-splide .splide__arrow svg {
    fill: #2D5016;
    width: 18px;
    height: 18px;
}

/* Pagination dots */
.sf-lead-splide .splide__pagination__page {
    background: rgba(0, 0, 0, 0.25);
    width: 8px;
    height: 8px;
}

.sf-lead-splide .splide__pagination__page.is-active {
    background: #2D5016;
    transform: scale(1.2);
}

/* Thumbnail slider */
.sf-splide-thumbs {
    margin-top: 8px;
    border-radius: 10px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.08);
    background: #fff;
    padding: 8px;
}

.sf-splide-thumbs .splide__slide {
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    opacity: 0.5;
    cursor: pointer;
    transition: border-color 0.2s ease, opacity 0.2s ease;
}

.sf-splide-thumbs .splide__slide:hover {
    opacity: 0.8;
}

.sf-splide-thumbs .splide__slide.is-active {
    border-color: #2D5016;
    opacity: 1;
}

.sf-splide-thumbs .splide__slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* ── Lightbox Overlay ── */
.sf-lightbox {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 99999;
    background: rgba(0, 0, 0, 0.92);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    align-items: center;
    justify-content: center;
    flex-direction: column;
    cursor: zoom-out;
}

.sf-lightbox.is-open {
    display: flex;
}

.sf-lightbox img {
    max-width: 92vw;
    max-height: 88vh;
    object-fit: contain;
    border-radius: 8px;
    box-shadow: 0 8px 40px rgba(0, 0, 0, 0.4);
}

.sf-lightbox-close {
    position: absolute;
    top: 16px;
    right: 20px;
    width: 40px;
    height: 40px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.sf-lightbox-close:hover {
    background: rgba(255, 255, 255, 0.3);
}

.sf-lightbox-close svg {
    width: 20px;
    height: 20px;
    fill: #fff;
}

.sf-lightbox-counter {
    color: rgba(255, 255, 255, 0.7);
    font-size: 14px;
    margin-top: 16px;
    font-family: inherit;
}

.sf-lightbox-prev,
.sf-lightbox-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.sf-lightbox-prev {
    left: 16px;
}

.sf-lightbox-next {
    right: 16px;
}

.sf-lightbox-prev:hover,
.sf-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

.sf-lightbox-prev svg,
.sf-lightbox-next svg {
    width: 22px;
    height: 22px;
    fill: #fff;
}


/* ── Lead Price ── */
.sf-lead-price {
    font-size: 32px;
    font-weight: 600;
    color: #2D5016;
    line-height: 1.2;
}

/* ── Lead Expiry Urgent ── */
.sf-lead-expires--urgent,
.sf-lead-text--urgent {
    color: #DC2626;
    font-weight: 600;
}

@media (max-width: 768px) {
    .sf-lead-splide .splide__arrow {
        width: 32px;
        height: 32px;
    }

    .sf-lead-splide .splide__arrow svg {
        width: 14px;
        height: 14px;
    }

    .sf-lead-price {
        font-size: 24px;
    }
}