

/* 🔹 Dealership Page Hero Section */
.dealershipHero {
    display: flex;
    justify-content: center;
    align-items: center;
    background: linear-gradient(135deg, #0d1526 0%, #1e2f52 100%);
    padding: 40px 20px;
    color: white;
    text-align: center;
}

.hero-content {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    width: 100%;
    max-width: 1200px;
}

.dealer-info {
    flex: 1;
    min-width: 300px;
    text-align: left;
    padding: 20px;
}

.dealer-info img {
    width: 150px;
    height: auto;
    border-radius: 10px;
    margin-bottom: 15px;
}

.dealer-info h1 {
    font-size: 36px;
    margin-bottom: 10px;
}

.dealer-info p {
    font-size: 18px;
    margin-bottom: 5px;
}

/* The dealer's description keeps its own line breaks and wraps at a readable width. */
.dealer-info p.dealer-description {
    font-size: 16px;
    line-height: 1.5;
    white-space: pre-line;
    max-width: 62ch;
    margin: 0 0 12px;
    overflow-wrap: anywhere;
}

.dealer-action-btns {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-top: 20px;
}

.Phone {
    color: #94a3b8;

}

.dealer-map {
    flex: 1;
    min-width: 300px;
    padding: 10px;
}

.dealer-map iframe {
    width: 100%;
    height: 100%;
    border-radius: 10px;
}



/* 🔹 Listings Section */




.card:hover {
    transform: translateY(-5px);
}


/* ── Featured listings manager ── */
.metrics-grid--padded {
    padding: 20px 24px;
}

.metric-value--sm {
    font-size: 1rem;
}

.featured-listing-title {
    font-weight: 600;
    font-size: 0.9rem;
}

.featured-listing-sub {
    font-size: 0.8rem;
    color: #6b7280;
    margin-top: 2px;
}

.btn--compact {
    width: auto;
    padding: 6px 14px;
    font-size: 0.82rem;
}

.section-header-sub {
    font-weight: 400;
    font-size: 0.82rem;
    opacity: 0.8;
}

.featured-warning-wrap {
    margin: 16px 24px 0;
}

.inv-callout--no-margin {
    margin: 0;
}

.section-form-footer {
    padding: 20px 24px;
}

.btn--form-submit {
    width: auto;
    padding: 10px 28px;
}

/* ── Analytics page ── */
.hero-btn-group {
    display: flex;
    gap: 10px;
    align-items: center;
    flex-wrap: wrap;
}

.section-header--space-between {
    justify-content: space-between;
}

.analytics-range-row {
    display: flex;
    align-items: center;
    gap: 8px;
}

.analytics-range-label {
    font-size: 0.78rem;
    color: rgba(255, 255, 255, 0.8);
    font-weight: 500;
    white-space: nowrap;
}

.metrics-grid--full-pad {
    padding: 24px;
}

/* Re-use dash-empty-center from dashboard */
.dash-empty-center {
    padding: 32px 24px;
    text-align: center;
    color: #9ca3af;
    font-size: 0.9rem;
}

/* ── Delete confirmation ── */
.delete-confirm-text {
    color: #374151;
    font-size: 0.95rem;
    margin: 0 0 20px;
}

.delete-confirm-form {
    display: inline-flex;
    gap: 10px;
    flex-wrap: wrap;
}

.btn--delete-confirm {
    width: auto;
    padding: 10px 24px;
}

.btn--delete-cancel {
    width: auto;
    padding: 10px 24px;
    background: #6b7280;
}

/* ── Edit dealership page ── */
.metric-value--xs {
    font-size: 0.88rem;
}

.dealer-website-link {
    color: #1e40af;
    word-break: break-all;
}

.dealer-logo-preview-sm {
    max-height: 48px;
    max-width: 120px;
    object-fit: contain;
    border-radius: 4px;
}

.dealer-not-provided {
    font-size: 0.88rem;
}

.edit-form-wrap {
    padding: 24px 28px;
    max-width: 600px;
}

.city-state-grid {
    display: grid;
    grid-template-columns: 1fr 100px;
    gap: 16px;
}

.dealer-logo-preview {
    max-width: 160px;
    margin-top: 10px;
    border-radius: 6px;
    border: 1px solid #e5e7eb;
}

.danger-zone-text {
    color: #374151;
    font-size: 0.9rem;
    margin: 0 0 16px;
}

/* ── Subscription page ── */
.metric-value--md {
    font-size: 0.95rem;
}

/* 🔹 Responsive Styling */
@media screen and (max-width: 768px) {
    .hero-content {
        flex-direction: column;
        align-items: center;
    }

    .dealer-info, .dealer-map {
        text-align: center;
        padding: 10px;
    }
}

@media screen and (max-width: 600px) {
    .dealer-info, .dealer-map {
        min-width: 0;
        width: 100%;
        box-sizing: border-box;
    }

    .dealer-map iframe {
        width: 100%;
    }

    .analytics-range-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .analytics-range-label {
        white-space: normal;
    }

    .analytics-range-row input[type="date"],
    .analytics-range-row select {
        width: 100%;
        box-sizing: border-box;
    }
}
