/* ===============================
   GLOBAL
================================= */

.single-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 15px;
    font-family: 'Segoe UI', Arial, sans-serif;
}

.single-container h1,
.single-container h3 {
    margin: 0;
}

a {
    text-decoration: none;
    color: #222;
}

a:hover {
    color: #0073e6;
}

/* ===============================
   BREADCRUMB
================================= */

.breadcrumb {
    font-size: 14px;
    margin-bottom: 20px;
    color: #777;
}

.breadcrumb span {
    margin: 0 6px;
    color: #aaa;
}

.breadcrumb a {
    color: #555;
}

/* ===============================
   TOP SECTION
================================= */

.single-top {
    display: flex;
    gap: 30px;
    margin-bottom: 40px;
}

/* ===============================
   GALLERY
================================= */
/* ===============================
   OB STYLE IMAGE SLIDER
================================= */

.gallery {
    flex: 1.2;
}

.slider {
    position: relative;
    width: 100%;
    height: 480px;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid #eee;
    background: #f5f5f5;
}

/* Slides */

.slide {
    position: absolute;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.4s ease-in-out;
}

.slide.active {
    opacity: 1;
    position: relative;
}

.slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    user-select: none;
    pointer-events: none;
}

/* ===============================
   OB STYLE ARROWS (Square)
================================= */

.slider-btn {
    background: rgba(0, 0, 0, 0.75);
    border: none;
    width: 38px;
    height: 38px;
    border-radius: 6px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s ease;
}

.slider-btn:hover {
    background: rgba(0, 0, 0, 0.9);
}

.prev {
    right: 75px;   /* move slightly inward like OB */
}

.next {
    right: 20px;
}

/* White Arrow Icons */

.arrow-icon {
    width: 10px;
    height: 10px;
    border-top: 2px solid #fff;
    border-right: 2px solid #fff;
}

.arrow-icon.left {
    transform: rotate(-135deg);
}

.arrow-icon.right {
    transform: rotate(45deg);
}

/* ===============================
   IMAGE COUNTER (Bottom Left)
================================= */

.image-counter {
    position: absolute;
    bottom: 15px;
    left: 15px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    padding: 6px 12px;
    border-radius: 6px;
    font-size: 13px;
    z-index: 20;
}

.slider-arrows {
    position: absolute;
    bottom: 15px;
    right: 15px;
    display: flex;
    gap: 8px;
    z-index: 20;
}

/* ===============================
   RESPONSIVE
================================= */

@media (max-width: 992px) {

    .slider {
        height: 380px;
    }
}

@media (max-width: 600px) {

    .slider {
        height: 280px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
        font-size: 16px;
    }

    .image-counter {
        font-size: 12px;
        padding: 5px 10px;
    }
}

/* ===============================
   POST DETAILS
================================= */

.post-details {
    flex: 1;
}

.post-title {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 12px;
}

.post-meta {
    font-size: 14px;
    color: #777;
    margin-bottom: 15px;
}

.price {
    font-size: 28px;
    font-weight: bold;
    color: #111;
    margin-bottom: 25px;
}

/* ===============================
   SELLER BOX
================================= */

.seller-box {
    display: flex;
    gap: 15px;
    padding: 20px;
    border: 1px solid #eee;
    border-radius: 10px;
    background: #fafafa;
    align-items: center;
}

.seller-avatar {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    object-fit: cover;
}

.seller-info h4 {
    margin: 0;
    font-size: 18px;
}

.seller-info p {
    font-size: 13px;
    color: #777;
    margin: 4px 0;
}

.view-all {
    font-size: 13px;
    color: #0073e6;
}

.seller-contact {
    margin-left: auto;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.reveal-phone {
    background: #0073e6;
    color: #fff;
    border: none;
    padding: 8px 14px;
    border-radius: 6px;
    cursor: pointer;
    font-size: 14px;
    transition: 0.2s;
}

.reveal-phone:hover {
    background: #005bb5;
}

.email-btn {
    display: inline-block;
    padding: 8px 14px;
    border-radius: 6px;
    border: 1px solid #ddd;
    font-size: 14px;
    text-align: center;
    background: #fff;
}

.email-btn:hover {
    background: #f5f5f5;
}

/* ===============================
   AD DETAILS SECTION
================================= */

.ad-details-section {
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 35px;
}

.ad-details-section h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.details-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 15px 25px;
    font-size: 14px;
}

.details-grid div {
    border-bottom: 1px dashed #eee;
    padding-bottom: 8px;
}

/* ===============================
   DESCRIPTION
================================= */

.description-section {
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 25px;
    margin-bottom: 40px;
}

.description-section h3 {
    margin-bottom: 15px;
    font-size: 20px;
}

.description-content {
    font-size: 15px;
    line-height: 1.7;
    color: #444;
}

/* ===============================
   RELATED ADS
================================= */

.related-section {
    margin-bottom: 60px;
}

.related-section h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.related-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 20px;
}

.related-card {
    border: 1px solid #eee;
    border-radius: 8px;
    padding: 15px;
    transition: 0.2s ease;
    background: #fff;
}

.related-card:hover {
    box-shadow: 0 4px 12px rgba(0,0,0,0.08);
}

.related-card h4 {
    font-size: 14px;
    margin-bottom: 8px;
}

.related-card p {
    font-weight: bold;
    font-size: 15px;
}

/* ===============================
   RESPONSIVE
================================= */

@media (max-width: 992px) {

    .single-top {
        flex-direction: column;
    }

    .details-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .related-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 600px) {

    .details-grid {
        grid-template-columns: 1fr;
    }

    .related-grid {
        grid-template-columns: 1fr;
    }

    .main-image {
        height: 300px;
    }
}
