/*--------------------------------------------------------------
  RRN TRUCKERS - DATA PANEL CSS
  Replaces photo area with tier-based data column
  Light theme version - matches existing DirectoryPlus styles
--------------------------------------------------------------*/

/* ---- DATA PANEL (Right side of listing card) ---- */
.listing-data-panel {
    background: #f8f8f8;
    padding: 14px;
    display: flex;
    flex-direction: column;
    border-left: 1px solid #e0e0e0;
    border-radius: 0 8px 8px 0;
    width: 260px;
    min-width: 260px;
    max-width: 260px;
}

/* Company Logo Area */
.listing-data-panel .dp-logo {
    width: 100%;
    max-height: 120px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 14px;
    overflow: hidden;
    padding: 4px;
}

.listing-data-panel .dp-logo img {
    max-width: 100%;
    max-height: 120px;
    object-fit: contain;
}

.listing-data-panel .dp-logo.coming-soon {
    color: #999;
    font-size: 11px;
    text-align: center;
    min-height: 50px;
}

/* Action Buttons (Book Now / Bid Your Job) */
.listing-data-panel .dp-actions {
    display: flex;
    gap: 6px;
    margin-bottom: 14px;
}

.listing-data-panel .dp-btn {
    flex: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 5px;
    padding: 8px 6px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    text-decoration: none;
    letter-spacing: 0.3px;
    transition: all 0.2s;
    white-space: nowrap;
}

.listing-data-panel .dp-btn i {
    font-size: 14px;
}

.listing-data-panel .dp-btn-book {
    background: #C41230;
    color: #fff;
    border: 1px solid #C41230;
}

.listing-data-panel .dp-btn-book:hover {
    background: #a00f28;
    color: #fff;
    text-decoration: none;
}

.listing-data-panel .dp-btn-call {
    background: #16a34a;
    color: #fff;
    border: 1px solid #16a34a;
}

.listing-data-panel .dp-btn-call:hover {
    background: #15803d;
    color: #fff;
    text-decoration: none;
}

/* Data Sections */
.listing-data-panel .dp-section {
    margin-bottom: 14px;
}

.listing-data-panel .dp-section:last-child {
    margin-bottom: 0;
}

.listing-data-panel .dp-label {
    font-size: 10.5px;
    text-transform: uppercase;
    letter-spacing: 0.8px;
    color: #777;
    margin-bottom: 7px;
    border-bottom: 1px solid #e0e0e0;
    padding-bottom: 4px;
    font-weight: 700;
}

/* Brand / Service Badges */
.listing-data-panel .dp-brands {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.listing-data-panel .dp-brand {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 6px 10px;
    font-size: 10.5px;
    color: #333;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

/* Equipment List */
.listing-data-panel .dp-equip-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.listing-data-panel .dp-equip-item {
    font-size: 12px;
    color: #333;
    display: flex;
    align-items: center;
    gap: 6px;
}

.listing-data-panel .dp-equip-item::before {
    content: "\2713";
    color: #22c55e;
    font-size: 12px;
    font-weight: 700;
}

/* Other Services (clickable category links) */
.listing-data-panel .dp-other-services {
    display: flex;
    flex-wrap: wrap;
    gap: 5px;
}

.listing-data-panel .dp-service-link {
    background: #ffffff;
    color: #333;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 10.5px;
    font-weight: 600;
    text-decoration: none;
    border: 1px solid #ddd;
    transition: all 0.2s;
}

.listing-data-panel .dp-service-link:hover {
    background: #f0f0f0;
    color: #333;
    text-decoration: none;
}

/* Payment Method Badges */
.listing-data-panel .dp-pay {
    background: #ffffff;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 5px 9px;
    font-size: 9.5px;
    color: #555;
    font-weight: 700;
    text-transform: uppercase;
    white-space: nowrap;
}

/* ---- QUICK ACTION BUTTONS (HCC tier) ---- */
.listing-data-panel .dp-quick-actions {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 5px;
    margin-bottom: 14px;
}

.listing-data-panel .dp-qa-btn {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 3px;
    padding: 8px 2px;
    border-radius: 6px;
    background: #ffffff;
    border: 1px solid #ddd;
    color: #333;
    font-size: 8.5px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.2px;
    text-decoration: none;
    text-align: center;
    line-height: 1.1;
    transition: all 0.2s;
    cursor: pointer;
}

.listing-data-panel .dp-qa-btn i {
    font-size: 16px;
    color: #C41230;
}

.listing-data-panel .dp-qa-btn:hover {
    background: #C41230;
    border-color: #C41230;
    color: #fff;
    text-decoration: none;
}

.listing-data-panel .dp-qa-btn:hover i {
    color: #fff;
}

/* Clickable Payment Badges (HCC tier) */
.listing-data-panel .dp-pay-link {
    text-decoration: none;
    cursor: pointer;
    transition: all 0.2s;
}

.listing-data-panel .dp-pay-link:hover {
    background: #C41230;
    color: #fff;
    border-color: #C41230;
    text-decoration: none;
}

/* ---- ONLINE STATUS BADGE ---- */
.status-online {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(34, 197, 94, 0.1);
    color: #16a34a;
    margin-left: 8px;
    vertical-align: middle;
}

.status-online .pulse-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #22c55e;
    animation: rrn-pulse 2s infinite;
}

.status-offline {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 3px 10px;
    border-radius: 12px;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    background: rgba(108, 117, 125, 0.1);
    color: #6c757d;
    margin-left: 8px;
    vertical-align: middle;
}

@keyframes rrn-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.4); }
    50% { opacity: 0.7; box-shadow: 0 0 0 5px rgba(34, 197, 94, 0); }
}

/* ---- TIER HEIGHT CONTROL ---- */
.tier-5 .listing-data-panel { min-height: 380px; }
.tier-4 .listing-data-panel { min-height: 240px; }
.tier-3 .listing-data-panel { min-height: 180px; }
.tier-2 .listing-data-panel { min-height: 130px; }
.tier-1 .listing-data-panel { min-height: 150px; }

/* ---- RESPONSIVE ---- */
@media (max-width: 575.98px) {
    .listing-data-panel {
        max-width: 100%;
        min-width: 100%;
        border-left: none;
        border-top: 1px solid #e0e0e0;
        border-radius: 0 0 8px 8px;
        flex-direction: row;
        flex-wrap: wrap;
        gap: 8px;
    }
    .listing-data-panel .dp-logo {
        max-height: 60px;
        max-width: 120px;
        margin-bottom: 0;
    }
    .listing-data-panel .dp-actions {
        flex: 1;
        min-width: 140px;
        margin-bottom: 0;
    }
    .listing-data-panel .dp-section {
        flex: 1;
        min-width: 120px;
    }
    .listing-data-panel .dp-quick-actions {
        width: 100%;
        grid-template-columns: repeat(3, 1fr);
    }
}
