/* ═══════════════════════════════════════════════════════
   JCD Locations Redesign — v1.0.5
   ═══════════════════════════════════════════════════════ */

:root {
    --loc-navy: #0f1d33;
    --loc-navy-mid: #1B2A4A;
    --loc-navy-light: #2a466d;
    --loc-amber: #fbbf24;
    --loc-amber-dark: #f59e0b;
    --loc-cream: #F8F6F1;
    --loc-white: #ffffff;
    --loc-gray-200: #e5e7eb;
    --loc-gray-400: #9ca3af;
    --loc-gray-600: #4b5563;
    --loc-gray-700: #374151;
    --loc-gray-800: #1f2937;
    --loc-green: #16a34a;
    --loc-font: 'Plus Jakarta Sans', -apple-system, BlinkMacSystemFont, sans-serif;
}

/* ─── Base wrapper ─────────────────────────────────────── */
.jcd-loc {
    color: var(--loc-gray-800);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
    width: 100vw !important;
    margin-left: calc(-50vw + 50%) !important;
    overflow-x: hidden;
}
.jcd-loc *, .jcd-loc *::before, .jcd-loc *::after {
    box-sizing: border-box;
}

.jcd-loc a {
    text-decoration: none;
    color: inherit;
}
.jcd-loc p {
    margin: 0;
}


/* ─── Shared Elements ──────────────────────────────────── */

.jcd-loc-eyebrow {
    font-size: 11px !important;
    font-weight: 700 !important;
    letter-spacing: 1.5px !important;
    text-transform: uppercase !important;
    color: var(--loc-amber-dark) !important;
    margin-bottom: 8px !important;
}

.jcd-loc-breadcrumb {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 20px !important;
    font-size: 13px !important;
}
.jcd-loc-breadcrumb a {
    color: rgba(255,255,255,0.45) !important;
}
.jcd-loc-breadcrumb a:hover {
    color: rgba(255,255,255,0.7) !important;
}
.jcd-loc-breadcrumb svg {
    color: rgba(255,255,255,0.3);
}
.jcd-loc-breadcrumb > span {
    color: rgba(255,255,255,0.8) !important;
    font-weight: 600 !important;
}
.jcd-loc-breadcrumb--center {
    justify-content: center;
}

.jcd-loc-btn-ghost {
    display: inline-flex !important;
    align-items: center !important;
    gap: 6px !important;
    background: rgba(255,255,255,0.1) !important;
    color: #fff !important;
    border: 1px solid rgba(255,255,255,0.2) !important;
    border-radius: 8px !important;
    padding: 11px 22px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    cursor: pointer !important;
    transition: background 0.15s, border-color 0.15s !important;
    opacity: 1 !important;
    text-decoration: none !important;
}
.jcd-loc-btn-ghost:hover {
    background: rgba(255,255,255,0.22) !important;
    border-color: rgba(255,255,255,0.7) !important;
    color: #fff !important;
}

/* MAIL-IN FIX: added line-height: 1 to prevent Flatsome inflation */
.jcd-loc-btn-amber {
    display: inline-flex !important;
    align-items: center !important;
    gap: 8px !important;
    background: var(--loc-amber) !important;
    color: var(--loc-navy) !important;
    border: none !important;
    border-radius: 10px !important;
    padding: 14px 32px !important;
    font-size: 16px !important;
    font-weight: 800 !important;
    line-height: 1 !important;
    cursor: pointer !important;
    transition: background 0.15s !important;
    text-decoration: none !important;
}
.jcd-loc-btn-amber:hover {
    background: var(--loc-amber-dark) !important;
    color: var(--loc-navy) !important;
}

.jcd-loc-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--loc-gray-400);
    flex-shrink: 0;
}
.jcd-loc-dot.open {
    background: var(--loc-green);
}

.jcd-loc-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;
    height: 100%;
    color: var(--loc-gray-600);
    font-size: 13px;
}
.jcd-loc-placeholder span:first-child {
    font-size: 32px;
}


/* ─── Hub: Hero ────────────────────────────────────────── */

.jcd-loc-hero {
    background: linear-gradient(135deg, var(--loc-navy) 0%, #162340 100%);
    padding: 60px 40px 56px !important;
    text-align: center !important;
}
.jcd-loc-hero * {
    text-align: center !important;
}
.jcd-loc-hero__eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: rgba(251,191,36,0.12);
    border-radius: 20px;
    padding: 6px 16px !important;
    margin-bottom: 20px !important;
    color: var(--loc-amber) !important;
    font-size: 12px !important;
    font-weight: 600 !important;
    letter-spacing: 1.2px !important;
    text-transform: uppercase !important;
}
.jcd-loc-hero__title {
    color: #fff !important;
    font-size: 42px !important;
    font-weight: 800 !important;
    margin: 0 0 12px !important;
    line-height: 1.15 !important;
}
.jcd-loc-hero__title span {
    color: var(--loc-amber) !important;
}
.jcd-loc-hero__sub {
    color: rgba(255,255,255,0.6) !important;
    font-size: 16px !important;
    max-width: 540px !important;
    margin: 0 auto !important;
    line-height: 1.6 !important;
    text-align: center !important;
    display: block;
}
/* MAIL-IN FIX: 28px bottom margin before the CTA button */
.jcd-loc-hero--mailin .jcd-loc-hero__sub {
    margin: 0 auto 28px !important;
}
.jcd-loc-hero__hint {
    color: rgba(255,255,255,0.45) !important;
    font-size: 13px !important;
    margin-top: 12px !important;
}


/* ─── Hub: Cards ───────────────────────────────────────── */

.jcd-loc-cards {
    background: var(--loc-cream);
    padding: 56px 40px !important;
}
.jcd-loc-cards__grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 24px;
    max-width: 1020px;
    margin: 0 auto;
    align-items: stretch;
}

.jcd-loc-card {
    background: var(--loc-white);
    border-radius: 16px;
    overflow: hidden;
    display: flex;
    flex-direction: column;
    box-shadow: 0 2px 12px rgba(0,0,0,0.06);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none !important;
    color: inherit !important;
}
.jcd-loc-card:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 32px rgba(0,0,0,0.12);
    color: inherit !important;
    text-decoration: none !important;
}

.jcd-loc-card__header {
    background: linear-gradient(135deg, var(--loc-navy-mid), var(--loc-navy-light));
    height: 120px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    position: relative;
    overflow: hidden;
}
.jcd-loc-card__header::before {
    content: '';
    position: absolute;
    inset: 0;
    opacity: 0.08;
    background: repeating-linear-gradient(45deg, transparent, transparent 20px, rgba(255,255,255,0.1) 20px, rgba(255,255,255,0.1) 40px);
}
.jcd-loc-card__emoji {
    font-size: 28px !important;
    margin-bottom: 2px !important;
    position: relative;
    z-index: 1;
    line-height: 1 !important;
}
.jcd-loc-card__name {
    color: #fff !important;
    font-size: 18px !important;
    font-weight: 800 !important;
    position: relative;
    z-index: 1;
}
.jcd-loc-card__city {
    color: rgba(255,255,255,0.6) !important;
    font-size: 11.5px !important;
    position: relative;
    z-index: 1;
}

.jcd-loc-card__body {
    padding: 20px 24px !important;
    flex: 1;
    display: flex;
    flex-direction: column;
}
.jcd-loc-card__address {
    color: var(--loc-gray-700) !important;
    font-size: 14px !important;
    line-height: 1.55 !important;
    margin: 0 0 16px !important;
    font-weight: 400 !important;
}
.jcd-loc-card__status {
    display: flex;
    align-items: center;
    gap: 7px;
}
.jcd-loc-status-text {
    font-size: 13px !important;
    color: var(--loc-gray-700) !important;
}
.jcd-loc-status-text .open-label {
    font-weight: 600 !important;
    color: var(--loc-green) !important;
}
.jcd-loc-status-text .closed-label {
    font-weight: 600 !important;
    color: #dc2626 !important;
}

.jcd-loc-card__footer {
    padding: 16px 24px !important;
    margin-top: auto;
    border-top: 1px solid #eee !important;
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px !important;
    font-weight: 600 !important;
    color: var(--loc-gray-400) !important;
}
.jcd-loc-card__footer svg {
    color: var(--loc-gray-400);
}


/* ─── Detail: Hero ─────────────────────────────────────── */

.jcd-loc-detail-hero {
    background: linear-gradient(135deg, var(--loc-navy) 0%, #162340 100%);
    padding: 48px 40px 52px !important;
}
.jcd-loc-detail-hero__inner {
    max-width: 920px;
    margin: 0 auto;
}
.jcd-loc-detail-hero__row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 40px;
}
.jcd-loc-detail-hero__left h1 {
    color: #fff !important;
    font-size: 38px !important;
    font-weight: 800 !important;
    margin: 0 0 8px !important;
    line-height: 1.15 !important;
}
.jcd-loc-detail-hero__left p {
    color: rgba(255,255,255,0.55) !important;
    font-size: 15px !important;
    margin: 0 0 20px !important;
    max-width: 440px;
    line-height: 1.6 !important;
}

.jcd-loc-detail-hero__hours {
    background: rgba(255,255,255,0.06);
    border-radius: 14px;
    padding: 20px 28px !important;
    border: 1px solid rgba(255,255,255,0.08);
    min-width: 260px;
}
.jcd-loc-detail-hero__status {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 14px !important;
}
.jcd-loc-detail-hero__status .jcd-loc-status-text {
    font-weight: 700 !important;
}
.jcd-loc-hours-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 4px 20px;
    font-size: 13px !important;
    color: rgba(255,255,255,0.8) !important;
    line-height: 2 !important;
}
.jcd-loc-hours-grid span:nth-child(even) {
    color: #fff !important;
    font-weight: 600 !important;
    text-align: right;
}
.jcd-loc-detail-hero__hours .jcd-loc-status-text {
    color: rgba(255,255,255,0.85) !important;
}


/* ─── Detail: Contact + Map ────────────────────────────── */

.jcd-loc-contact {
    background: var(--loc-cream);
    padding: 40px 40px 0 !important;
}
.jcd-loc-contact__grid {
    max-width: 920px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 28px;
}
.jcd-loc-contact__card {
    background: var(--loc-white);
    border-radius: 14px;
    padding: 28px !important;
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}
.jcd-loc-contact__card h3 {
    color: var(--loc-navy) !important;
    font-size: 17px !important;
    font-weight: 700 !important;
    margin: 0 0 20px !important;
}
.jcd-loc-contact__rows {
    display: flex;
    flex-direction: column;
    gap: 16px;
}
.jcd-loc-contact__row {
    display: flex;
    align-items: center;
    gap: 12px;
}
.jcd-loc-contact__row > div {
    line-height: 1.3 !important;
}
.jcd-loc-contact__icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(27,42,74,0.06);
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    color: var(--loc-navy-mid);
}
.jcd-loc-contact__row strong {
    color: var(--loc-gray-800) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
}
.jcd-loc-contact__row span {
    color: var(--loc-gray-600) !important;
    font-size: 13px !important;
}
.jcd-loc-contact__row a {
    color: var(--loc-navy-light) !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    opacity: 1 !important;
}
.jcd-loc-contact__row a:hover {
    text-decoration: underline !important;
    color: var(--loc-navy-light) !important;
    opacity: 1 !important;
}

.jcd-loc-parking {
    margin-top: 20px !important;
    background: rgba(251,191,36,0.08);
    border-radius: 10px;
    padding: 14px 16px !important;
    border-left: 3px solid var(--loc-amber);
}
.jcd-loc-parking__title {
    display: flex;
    align-items: center;
    gap: 8px;
    color: var(--loc-amber-dark) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}
.jcd-loc-parking p {
    color: var(--loc-gray-700) !important;
    font-size: 12.5px !important;
    margin: 6px 0 0 !important;
    line-height: 1.5 !important;
}

.jcd-loc-map {
    border-radius: 14px;
    overflow: hidden;
    min-height: 280px;
    background: var(--loc-gray-200);
}
.jcd-loc-map iframe {
    display: block;
    width: 100%;
    height: 100%;
    min-height: 280px;
}


/* ─── Detail: Device Categories ────────────────────────── */

.jcd-loc-devices {
    background: var(--loc-cream);
    padding: 40px 40px !important;
}
.jcd-loc-devices__grid {
    max-width: 920px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 16px;
}
.jcd-loc-device {
    background: var(--loc-white);
    border-radius: 12px;
    padding: 24px 16px !important;
    text-align: center;
    box-shadow: 0 1px 4px rgba(0,0,0,0.04);
    display: flex;
    flex-direction: column;
    align-items: center;
    transition: border-color 0.15s;
    border: 1px solid transparent;
    text-decoration: none !important;
}
.jcd-loc-device:hover {
    border-color: var(--loc-navy-light);
    text-decoration: none !important;
}
.jcd-loc-device__img {
    width: 80px;
    height: 80px;
    object-fit: contain;
    margin-bottom: 8px !important;
}
.jcd-loc-device__emoji {
    font-size: 28px !important;
    margin-bottom: 8px !important;
}
.jcd-loc-device__label {
    color: var(--loc-navy) !important;
    font-size: 14px !important;
    font-weight: 700 !important;
}
.jcd-loc-device__desc {
    color: var(--loc-gray-600) !important;
    font-size: 12px !important;
}


/* ─── Detail: History ──────────────────────────────────── */

.jcd-loc-history {
    background: var(--loc-cream);
    padding: 8px 40px 40px !important;
}
.jcd-loc-history__grid {
    max-width: 920px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 40px;
    align-items: center;
}
.jcd-loc-history__text h3 {
    color: var(--loc-navy) !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    margin: 0 0 14px !important;
    line-height: 1.3 !important;
}
.jcd-loc-history__text p {
    color: var(--loc-gray-700) !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
    margin: 0 0 14px !important;
}
.jcd-loc-history__reviews {
    font-size: 14px !important;
    color: var(--loc-gray-700) !important;
    line-height: 2 !important;
}
.jcd-loc-history__reviews a {
    color: var(--loc-gray-700) !important;
    text-decoration: none !important;
    opacity: 1 !important;
}
.jcd-loc-history__reviews a:hover {
    color: var(--loc-amber-dark) !important;
    text-decoration: none !important;
    opacity: 1 !important;
}
.jcd-loc-history__photo {
    background: var(--loc-gray-200);
    border-radius: 14px;
    height: 260px;
    overflow: hidden;
}
.jcd-loc-history__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}


/* ─── Detail: Same-Day Service ─────────────────────────── */

.jcd-loc-sameday {
    background: var(--loc-white);
    padding: 48px 40px !important;
}
.jcd-loc-sameday__grid {
    max-width: 920px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: 1fr 1.2fr;
    gap: 40px;
    align-items: center;
}
.jcd-loc-sameday__photo {
    background: var(--loc-gray-200);
    border-radius: 14px;
    height: 240px;
    overflow: hidden;
}
.jcd-loc-sameday__photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    display: block;
}
.jcd-loc-sameday__text h3 {
    color: var(--loc-navy) !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    margin: 0 0 12px !important;
}
.jcd-loc-sameday__text p {
    color: var(--loc-gray-600) !important;
    font-size: 14px !important;
    line-height: 1.7 !important;
    margin: 0 !important;
}
.jcd-loc-sameday__text a {
    color: var(--loc-amber-dark) !important;
    font-weight: 700 !important;
    text-decoration: underline !important;
    opacity: 1 !important;
}
.jcd-loc-sameday__text a:hover {
    color: var(--loc-amber) !important;
    opacity: 1 !important;
}


/* ─── Mail-In: Steps ───────────────────────────────────── */

.jcd-loc-steps {
    background: var(--loc-cream);
    padding: 56px 40px !important;
}
.jcd-loc-steps__inner {
    max-width: 800px;
    margin: 0 auto;
}
.jcd-loc-steps__inner h2 {
    color: var(--loc-navy) !important;
    font-size: 28px !important;
    font-weight: 800 !important;
    margin: 0 0 32px !important;
    text-align: center !important;
}
.jcd-loc-steps__grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr 1fr;
    gap: 20px;
}
.jcd-loc-step {
    background: var(--loc-white);
    border-radius: 14px;
    padding: 28px 20px !important;
    text-align: center;
    position: relative;
    box-shadow: 0 1px 6px rgba(0,0,0,0.05);
}
.jcd-loc-step__num {
    position: absolute;
    top: -12px;
    left: 50%;
    transform: translateX(-50%);
    width: 28px;
    height: 28px;
    border-radius: 50%;
    background: var(--loc-navy);
    color: var(--loc-amber) !important;
    font-size: 13px !important;
    font-weight: 800 !important;
    display: flex;
    align-items: center;
    justify-content: center;
}
.jcd-loc-step__icon {
    font-size: 28px !important;
    margin: 10px 0 !important;
}
.jcd-loc-step__title {
    color: var(--loc-navy) !important;
    font-size: 15px !important;
    font-weight: 700 !important;
    margin-bottom: 8px !important;
}
.jcd-loc-step p {
    color: var(--loc-gray-600) !important;
    font-size: 13px !important;
    line-height: 1.6 !important;
    margin: 0 !important;
}
.jcd-loc-step__action {
    display: inline-block;
    margin-top: 12px !important;
    color: var(--loc-amber-dark) !important;
    font-size: 13px !important;
    font-weight: 700 !important;
    text-decoration: none !important;
    opacity: 1 !important;
}
.jcd-loc-step__action:hover {
    color: var(--loc-amber) !important;
    opacity: 1 !important;
}


/* ─── Mail-In: Safety ──────────────────────────────────── */

.jcd-loc-safety {
    background: var(--loc-white);
    padding: 48px 40px !important;
}
.jcd-loc-safety__inner {
    max-width: 800px;
    margin: 0 auto;
    text-align: center;
}
.jcd-loc-safety__inner h2 {
    color: var(--loc-navy) !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    margin: 0 0 8px !important;
}
.jcd-loc-safety__sub {
    color: var(--loc-gray-600) !important;
    font-size: 14px !important;
    max-width: 500px;
    margin: 0 auto 32px !important;
    line-height: 1.6 !important;
}
.jcd-loc-safety__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 20px;
    text-align: left;
}
.jcd-loc-stat {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    background: var(--loc-cream);
    border-radius: 12px;
    padding: 20px 24px !important;
}
.jcd-loc-stat__num {
    color: var(--loc-amber-dark) !important;
    font-size: 24px !important;
    font-weight: 800 !important;
    min-width: 72px;
    text-align: right;
}
.jcd-loc-stat__desc {
    color: var(--loc-gray-700) !important;
    font-size: 14px !important;
    line-height: 1.5 !important;
    padding-top: 4px;
    margin: 0 !important;
}


/* ─── Mail-In: Contact Bar ─────────────────────────────── */

.jcd-loc-mailin-contact {
    background: var(--loc-cream);
    padding: 40px !important;
}
.jcd-loc-mailin-contact__card {
    max-width: 800px;
    margin: 0 auto;
    background: linear-gradient(135deg, var(--loc-navy), var(--loc-navy-mid));
    border-radius: 16px;
    padding: 36px 40px !important;
    display: flex;
    align-items: center;
    justify-content: space-between;
}
.jcd-loc-mailin-contact__text h3 {
    color: #fff !important;
    font-size: 20px !important;
    font-weight: 800 !important;
    margin: 0 0 6px !important;
}
.jcd-loc-mailin-contact__text p {
    color: rgba(255,255,255,0.6) !important;
    font-size: 14px !important;
    margin: 0 !important;
}
.jcd-loc-mailin-contact__links {
    display: flex;
    gap: 20px;
}
.jcd-loc-mailin-contact__links a {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #fff !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-decoration: none !important;
    opacity: 1 !important;
}
.jcd-loc-mailin-contact__links svg {
    color: var(--loc-amber);
}
.jcd-loc-mailin-contact__links a:hover {
    text-decoration: underline !important;
    color: #fff !important;
    opacity: 1 !important;
}


/* ─── Responsive ───────────────────────────────────────── */

@media (max-width: 900px) {
    .jcd-loc-cards__grid {
        grid-template-columns: 1fr;
        max-width: 400px;
    }
    .jcd-loc-detail-hero__row {
        flex-direction: column;
        gap: 24px;
    }
    .jcd-loc-detail-hero__hours {
        min-width: 0;
        width: 100%;
    }
    .jcd-loc-contact__grid {
        grid-template-columns: 1fr;
    }
    .jcd-loc-devices__grid {
        grid-template-columns: 1fr 1fr;
    }
    .jcd-loc-history__grid {
        grid-template-columns: 1fr;
    }
    .jcd-loc-sameday__grid {
        grid-template-columns: 1fr;
    }
    .jcd-loc-steps__grid {
        grid-template-columns: 1fr 1fr;
    }
    .jcd-loc-safety__grid {
        grid-template-columns: 1fr;
    }
    .jcd-loc-mailin-contact__card {
        flex-direction: column;
        gap: 20px;
        text-align: center;
    }
    .jcd-loc-mailin-contact__links {
        flex-direction: column;
        gap: 12px;
    }
}

@media (max-width: 600px) {
    .jcd-loc-hero {
        padding: 40px 20px 36px !important;
    }
    .jcd-loc-hero__title {
        font-size: 30px !important;
    }
    .jcd-loc-cards {
        padding: 32px 20px !important;
    }
    .jcd-loc-detail-hero {
        padding: 32px 20px 36px !important;
    }
    .jcd-loc-detail-hero__left h1 {
        font-size: 28px !important;
    }
    .jcd-loc-contact,
    .jcd-loc-devices,
    .jcd-loc-history,
    .jcd-loc-sameday,
    .jcd-loc-steps,
    .jcd-loc-safety,
    .jcd-loc-mailin-contact {
        padding-left: 20px !important;
        padding-right: 20px !important;
    }
    .jcd-loc-steps__grid {
        grid-template-columns: 1fr;
    }
    .jcd-loc-devices__grid {
        grid-template-columns: 1fr 1fr;
    }
}
