/* Public Frontend Styles */
/* General public-facing styles for vehicle listings and detail pages */

:root {
    --primary-color: #007bff;
    --secondary-color: #6c757d;
    --success-color: #28a745;
    --danger-color: #dc3545;
    --warning-color: #ffc107;
    --info-color: #17a2b8;
    --light-bg: #f8f9fa;
    --border-color: #dee2e6;
    --text-color: #333;
    --text-muted: #6c757d;
}

/*========== SINGLE VEHICLE PAGE ==========*/

.ogc-single-vehicle-wrapper {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px;
}

.ogc-page-header {
    margin-bottom: 30px;
    padding-bottom: 15px;
    border-bottom: 1px solid var(--border-color);
}

.ogc-breadcrumb {
    font-size: 14px;
    color: var(--text-muted);
}

.ogc-breadcrumb a {
    color: var(--primary-color);
    text-decoration: none;
    transition: color 0.3s;
}

.ogc-breadcrumb a:hover {
    color: #0056b3;
    text-decoration: underline;
}

.ogc-breadcrumb span {
    margin: 0 8px;
}

.ogc-breadcrumb .current {
    color: var(--text-color);
    font-weight: 500;
}

/* Two-column layout */
.ogc-single-vehicle-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 30px;
    align-items: start;
}

.ogc-main-content {
    background: white;
    padding: 25px;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Gallery */
.ogc-vehicle-gallery {
    margin-bottom: 30px;
}

.ogc-main-image {
    margin-bottom: 15px;
    border-radius: 8px;
    overflow: hidden;
    background: #f0f0f0;
    aspect-ratio: 16 / 9;
}

.ogc-main-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ogc-gallery-thumbs {
    display: flex;
    gap: 10px;
    overflow-x: auto;
    padding-bottom: 5px;
}

.ogc-thumb {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 6px;
    overflow: hidden;
    border: 2px solid transparent;
    cursor: pointer;
    transition: all 0.3s;
}

.ogc-thumb:hover {
    border-color: var(--primary-color);
}

.ogc-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Vehicle Header */
.ogc-vehicle-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    padding: 20px 0;
    border-bottom: 1px solid var(--border-color);
    margin-bottom: 20px;
}

.ogc-header-top {
    width: 100%;
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
}

.ogc-vehicle-header h1 {
    font-size: 28px;
    margin: 0 0 10px 0;
    color: var(--text-color);
    font-weight: 700;
}

.ogc-location {
    font-size: 14px;
    color: var(--text-muted);
    margin: 0;
}

.ogc-location i {
    margin-right: 5px;
    color: var(--danger-color);
}

.ogc-price-display h2 {
    font-size: 32px;
    color: var(--primary-color);
    font-weight: 700;
    margin: 0;
    text-align: right;
}

/* Quick Specs */
.ogc-quick-specs {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 15px;
}

.ogc-spec {
    text-align: center;
    padding: 15px;
    background: var(--light-bg);
    border-radius: 6px;
    border: 1px solid var(--border-color);
}

.ogc-spec .label {
    display: block;
    font-size: 12px;
    color: var(--text-muted);
    text-transform: uppercase;
    font-weight: 600;
    margin-bottom: 8px;
}

.ogc-spec .value {
    display: block;
    font-size: 16px;
    font-weight: 600;
    color: var(--text-color);
}

/* Description */
.ogc-description {
    margin-bottom: 30px;
}

.ogc-description h3 {
    font-size: 20px;
    margin-bottom: 15px;
    color: var(--text-color);
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
}

.ogc-description-content {
    line-height: 1.8;
    color: var(--text-color);
}

.ogc-description-content p {
    margin-bottom: 15px;
}

.ogc-description-content strong {
    font-weight: 600;
}

/* Related Vehicles */
.ogc-related-vehicles {
    margin-top: 40px;
    padding-top: 30px;
    border-top: 2px solid var(--border-color);
}

.ogc-related-vehicles h3 {
    font-size: 20px;
    margin-bottom: 25px;
    color: var(--text-color);
    border-left: 4px solid var(--primary-color);
    padding-left: 15px;
}

.ogc-vehicle-carousel {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 20px;
}

.ogc-vehicle-card {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    overflow: hidden;
    transition: all 0.3s;
}

.ogc-vehicle-card:hover {
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
    transform: translateY(-4px);
}

.ogc-card-image {
    display: block;
    overflow: hidden;
    aspect-ratio: 3 / 2;
    background: #f0f0f0;
}

.ogc-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s;
}

.ogc-vehicle-card:hover .ogc-card-image img {
    transform: scale(1.05);
}

.ogc-card-body {
    padding: 15px;
}

.ogc-card-body h4 {
    font-size: 14px;
    margin: 0 0 8px 0;
    font-weight: 600;
}

.ogc-card-body h4 a {
    color: var(--text-color);
    text-decoration: none;
}

.ogc-card-body h4 a:hover {
    color: var(--primary-color);
}

.ogc-price {
    font-size: 16px;
    font-weight: 700;
    color: var(--primary-color);
    margin: 10px 0;
}

/* SIDEBAR */
.ogc-sidebar {
    position: sticky;
    top: 20px;
}

.ogc-widget {
    background: white;
    border: 1px solid var(--border-color);
    border-radius: 8px;
    padding: 20px;
    margin-bottom: 20px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}

.ogc-widget h3 {
    font-size: 18px;
    margin-top: 0;
    margin-bottom: 15px;
    color: var(--text-color);
    font-weight: 700;
}

.ogc-widget-quotation {
    background: linear-gradient(135deg, var(--light-bg) 0%, white 100%);
    border: 2px solid var(--primary-color);
}

.ogc-widget-quotation h3 {
    color: var(--primary-color);
}

.ogc-hint {
    font-size: 13px;
    color: var(--text-muted);
    margin: -10px 0 15px 0;
}

/* Dealer Card in Widget */
.ogc-dealer-card {
    display: flex;
    gap: 15px;
}

.ogc-dealer-avatar {
    width: 80px;
    height: 80px;
    flex-shrink: 0;
    border-radius: 8px;
    overflow: hidden;
    background: var(--light-bg);
}

.ogc-dealer-avatar img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ogc-dealer-info {
    flex: 1;
}

.ogc-dealer-info h5 {
    font-size: 16px;
    margin: 0 0 5px 0;
    font-weight: 700;
    color: var(--text-color);
}

.ogc-badge {
    display: inline-block;
    font-size: 12px;
    padding: 4px 8px;
    margin-bottom: 8px;
    border-radius: 4px;
}

.badge-verified {
    background: #d4edda;
    color: #155724;
    border: 1px solid #c3e6cb;
}

.ogc-contact-link {
    display: block;
    font-size: 13px;
    color: var(--primary-color);
    text-decoration: none;
    margin-bottom: 6px;
    transition: color 0.3s;
}

.ogc-contact-link:hover {
    color: #0056b3;
    text-decoration: underline;
}

.ogc-contact-link i {
    margin-right: 6px;
    min-width: 14px;
}

.ogc-dealer-actions {
    margin-top: 10px;
}

/* Buttons */
.ogc-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 10px 16px;
    border: none;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    transition: all 0.3s;
    text-align: center;
    justify-content: center;
}

.ogc-btn-primary {
    background: linear-gradient(135deg, #FC490B, #e63d09);
    color: white;
}

.ogc-btn-primary:hover {
    background: linear-gradient(135deg, #e63d09, #c73207);
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(252, 73, 11, 0.35);
}

.ogc-btn-outline {
    background-color: transparent;
    color: var(--primary-color);
    border: 2px solid var(--primary-color);
}

.ogc-btn-outline:hover {
    background-color: var(--primary-color);
    color: white;
}

.ogc-btn-sm {
    padding: 8px 12px;
    font-size: 12px;
}

.ogc-btn-whatsapp {
    background-color: #25d366;
    color: white;
    font-weight: 600;
    padding: 12px 16px;
    border-radius: 6px;
    text-decoration: none;
    transition: all 0.3s;
    width: 100%;
}

.ogc-btn-whatsapp:hover {
    background-color: #20ba5a;
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(37, 211, 102, 0.3);
}

.w-100 {
    width: 100%;
}

/* Share Widget */
.ogc-share-buttons {
    display: flex;
    gap: 10px;
    justify-content: flex-start;
}

.ogc-share-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 40px;
    height: 40px;
    border-radius: 6px;
    color: white;
    text-decoration: none;
    font-size: 16px;
    transition: all 0.3s;
}

.ogc-share-btn.facebook {
    background-color: #1877f2;
}

.ogc-share-btn.facebook:hover {
    background-color: #0a66c2;
    transform: scale(1.1);
}

.ogc-share-btn.twitter {
    background-color: #1da1f2;
}

.ogc-share-btn.twitter:hover {
    background-color: #1a8cd8;
    transform: scale(1.1);
}

.ogc-share-btn.linkedin {
    background-color: #0a66c2;
}

.ogc-share-btn.linkedin:hover {
    background-color: #004182;
    transform: scale(1.1);
}

/* Responsive */
@media (max-width: 1024px) {
    .ogc-single-vehicle-layout {
        grid-template-columns: 1fr;
    }

    .ogc-sidebar {
        position: static;
    }

    .ogc-quick-specs {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 768px) {
    .ogc-single-vehicle-wrapper {
        padding: 15px;
    }

    .ogc-main-content {
        padding: 15px;
    }

    .ogc-vehicle-header h1 {
        font-size: 22px;
    }

    .ogc-price-display h2 {
        font-size: 24px;
        text-align: left;
        margin-top: 10px;
    }

    .ogc-header-top {
        flex-direction: column;
        gap: 15px;
    }

    .ogc-quick-specs {
        grid-template-columns: repeat(2, 1fr);
        gap: 10px;
    }

    .ogc-spec {
        padding: 12px;
    }

    .ogc-spec .label {
        font-size: 11px;
    }

    .ogc-spec .value {
        font-size: 14px;
    }

    .ogc-vehicle-carousel {
        grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    }

    .ogc-dealer-card {
        flex-direction: column;
        align-items: center;
        text-align: center;
    }

    .ogc-contact-link {
        margin-bottom: 8px;
    }

    .ogc-dealer-actions {
        width: 100%;
    }

    .ogc-dealer-actions .ogc-btn {
        width: 100%;
    }
}
