/* ====================================
   DIALBIZ PREMIUM ITEM PAGE
   ==================================== */

body.item {
    background: #f5f7fb;
}

/* Main Container */

#item-content {
    background: #fff;
    max-width: 1400px;
    margin: 25px auto;
    padding: 35px;
    border-radius: 18px;
    box-shadow: 0 5px 30px rgba(0,0,0,.06);
}

/* Heading */

#item-content h1 {
    font-size: 34px;
    font-weight: 700;
    color: #1e3a8a;
    line-height: 1.3;
    margin-bottom: 18px;
    border-bottom: 3px solid #2563eb;
    padding-bottom: 12px;
}

/* Address Bar */

#item_location {
    background: #eff6ff;
    border-left: 4px solid #2563eb;
    padding: 15px 18px;
    border-radius: 10px;
    margin: 15px 0;
}

#item_location li {
    list-style: none;
    color: #374151;
    font-size: 15px;
}

/* Phone */

.phone {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    padding: 14px 18px;
    border-radius: 10px;
    display: inline-block;
    margin: 10px 0 20px;
    font-size: 17px;
}

.phone a {
    color: #15803d;
    font-weight: 700;
    text-decoration: none;
}

/* Image Section */

.item-photos {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    margin: 25px 0;
}

.item-photos .main-photo {
    display: block;
}

.item-photos .main-photo img {
    width: 100%;
    border-radius: 14px;
    transition: .3s;
}

.item-photos .main-photo img:hover {
    transform: scale(1.02);
}

.thumbs {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    margin-top: 15px;
}

.thumbs img {
    border-radius: 10px;
    border: 2px solid #e5e7eb;
    transition: .3s;
}

.thumbs img:hover {
    border-color: #2563eb;
}

/* Description */

#description {
    margin-top: 25px;
}

#description .desc {
    background: #fff;
    font-size: 17px;
    line-height: 1.9;
    color: #374151;
}

/* Custom Fields */

#custom_fields {
    margin-top: 30px;
}

.meta_list {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(250px,1fr));
    gap: 15px;
}

.meta {
    background: #f8fafc;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 15px;
}

.meta strong {
    display: block;
    color: #1e3a8a;
    margin-bottom: 5px;
}

/* Buttons */

.contact_button {
    margin-top: 30px;
}

.contact_button .btn {
    border-radius: 12px;
    padding: 13px 28px;
    font-size: 15px;
    font-weight: 600;
    margin-right: 10px;
}

.contact_button .btn-secondary {
    background: #2563eb;
    color: #fff;
    border: none;
}

.contact_button .btn-secondary:hover {
    background: #1d4ed8;
}

/* Views */

.item-views {
    margin-top: 25px;
    color: #6b7280;
    font-size: 14px;
}

/* Related Listings */

.similar_ads {
    margin-top: 50px;
    padding-top: 20px;
    border-top: 1px solid #e5e7eb;
}

.similar_ads h2 {
    color: #1e3a8a;
    font-size: 28px;
    margin-bottom: 25px;
}

/* Reviews */

#comments {
    margin-top: 60px;
}

#comments h2 {
    color: #1e3a8a;
    margin-bottom: 25px;
}

.comment {
    background: #fff;
    border: 1px solid #e5e7eb;
    border-radius: 14px;
    padding: 22px;
    margin-bottom: 20px;
    transition: .3s;
}

.comment:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,.06);
}

.comment h3 {
    color: #111827;
    margin-bottom: 10px;
}

.comment-rating .fa-star.fill {
    color: #f59e0b;
}

/* Review Form */

.new-comment {
    background: #f8fafc;
    border-radius: 18px;
    padding: 30px;
    margin-top: 30px;
}

.new-comment input,
.new-comment textarea {
    width: 100%;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    padding: 12px 15px;
}

.new-comment textarea {
    min-height: 180px;
}

.new-comment .btn-primary {
    background: #2563eb;
    border: none;
    padding: 14px 30px;
    border-radius: 10px;
}

/* Sidebar Alignment */

#sidebar > div {
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 4px 18px rgba(0,0,0,.05);
}

/* Mobile */

/* ====================================
   MOBILE OPTIMIZATION
   ==================================== */

@media (max-width:768px) {

    body.item {
        overflow-x:hidden;
    }

    #item-content {
        width:100%;
        max-width:100%;
        margin:0;
        padding:12px;
        border-radius:0;
        box-shadow:none;
    }

    #item-content h1 {
        font-size:22px;
        line-height:1.4;
        margin-bottom:12px;
        padding-bottom:10px;
    }

    #item_location {
        padding:12px;
        margin:10px 0;
    }

    .phone {
        width:100%;
        box-sizing:border-box;
        margin:10px 0;
    }

    .item-photos {
        margin:15px 0;
    }

    .item-photos .main-photo img {
        border-radius:10px;
    }

    .thumbs {
        gap:6px;
        justify-content:flex-start;
    }

    .thumbs img {
        width:60px;
        height:60px;
        object-fit:cover;
    }

    #description .desc {
        font-size:15px;
        line-height:1.7;
    }

    .meta_list {
        display:block;
    }

    .meta {
        margin-bottom:10px;
        padding:12px;
    }

    .contact_button {
        margin-top:20px;
    }

    .contact_button .btn {
        display:block;
        width:100%;
        margin:0 0 10px;
        box-sizing:border-box;
    }

    .similar_ads h2,
    #comments h2 {
        font-size:22px;
    }

    .comment {
        padding:15px;
    }

    .new-comment {
        padding:15px;
    }

    .new-comment input,
    .new-comment textarea {
        width:100%;
        box-sizing:border-box;
    }

}
@media (max-width:768px){

    #content,
    #body,
    .content,
    .inner,
    .container,
    .container-fluid{
        padding-left:0 !important;
        padding-right:0 !important;
    }

    #item-content{
        padding-left:12px !important;
        padding-right:12px !important;
    }

}