/* ===============================
   GLOBAL
================================= */

.single-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 15px;
    display: flex;
    flex-direction: column;
}

.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;
}

/* ===============================
   MAIN LAYOUT
================================= */

.single-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 360px;
    gap: 24px;
    align-items: start;
}

.single-main-content {
    min-width: 0;
}

.single-sidebar {
    min-width: 0;
}

.post-sidebar-box {
    position: sticky;
    top: 20px;
}

.mobile-post-summary {
    display: none;
}

/* ===============================
   GALLERY / SLIDER
================================= */

.gallery {
    margin-bottom: 24px;
}

.slider {
    position: relative;
    width: 100%;
    height: 480px;
    overflow: hidden;
    border-radius: 10px;
    border: 1px solid #eee;
    background: #f5f5f5;
}

.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;
}

/* ===============================
   FEATURED RIBBON
================================= */

.featured-ribbon {
    position: absolute;
    top: 15px;
    right: -45px;
    padding: 6px 50px;
    font-size: 13px;
    font-weight: 700;
    letter-spacing: 0.5px;
    text-transform: uppercase;
    transform: rotate(45deg);
    box-shadow: 0 3px 8px rgba(0, 0, 0, 0.25);
    z-index: 30;
}

.featured-ribbon.prime {
    background: linear-gradient(135deg, #007bff, #00c6ff);
    color: #fff;
}

.featured-ribbon.elite {
    background: linear-gradient(135deg, #d4af37, #ffd700);
    color: #fff;
}

/* ===============================
   SLIDER CONTROLS
================================= */

.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);
}

.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 {
    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;
}

/* ===============================
   SIDEBAR TOP
================================= */

.post-title {
    font-size: 26px;
    font-weight: 600;
    margin-bottom: 12px;
    line-height: 1.25;
}

.post-meta {
    font-size: 14px;
    color: #777;
    margin-bottom: 15px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.meta-left {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
}

.meta-right {
    display: flex;
    align-items: center;
}

.price-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 20px;
    width: 100%;
    flex-wrap: wrap;
}

.price {
    font-size: 32px;
    font-weight: 700;
    color: #111;
    margin: 0;
}

.package-tag {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 600;
    line-height: 1;
    white-space: nowrap;
    flex-shrink: 0;
}

.package-tag.pro {
    background: #e8f1ff;
    color: #0d6efd;
    border: 1px solid #bcd3ff;
}

.package-tag.starter {
    background: #fff4df;
    color: #c97a00;
    border: 1px solid #ffd58a;
}

.package-tag.free,
.package-tag.default {
    background: #e8f1ff;
    color: #0d6efd;
    border: 1px solid #bcd3ff;
}

.installment-badge-right {
    background: #ff9800;
    color: #fff;
    font-size: 12px;
    padding: 4px 10px;
    border-radius: 999px;
    font-weight: 600;
    display: inline-block;
    line-height: 1;
    white-space: nowrap;
}

/* ===============================
   SELLER BOX
================================= */

.seller-box {
    position: relative;
    border: 1px solid #e8e8e8;
    border-radius: 10px;
    background: #fff;
    padding: 18px 16px;
}

.seller-card-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 16px;
}

.seller-title-name {
    font-size: 18px;
    font-weight: 700;
    color: #0f2430;
    line-height: 1.3;
}

.seller-title-name a {
    color: inherit;
    text-decoration: none;
}

.seller-title-name a:hover {
    color: #0a58ca;
}

.seller-member-text {
    margin-top: 4px;
    font-size: 13px;
    color: #7a7a7a;
}

.favorite-circle-btn.single-favorite-btn {
    width: 38px;
    height: 38px;
    min-width: 38px;
    border: 1px solid #d9dfe8;
    border-radius: 50%;
    background: #fff;
    color: #8b95a7;
    font-size: 18px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s ease;
    padding: 0;
}

.favorite-circle-btn.single-favorite-btn:hover {
    border-color: #0a58ca;
    color: #0a58ca;
}

.favorite-circle-btn.single-favorite-btn.active {
    color: #0a58ca;
    border-color: #0a58ca;
    background: #eef4ff;
}

.favorite-circle-btn.single-favorite-btn .heart-icon {
    line-height: 1;
    font-size: 18px;
}

/* ===============================
   CONTACT BUTTONS
================================= */

.seller-actions-row {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.contact-outline-btn {
    min-height: 38px;
    padding: 0 18px;
    border-radius: 7px;
    border: 1px solid #0a6cff;
    background: #fff;
    color: #0a6cff;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s ease;
}

.contact-outline-btn:hover {
    background: #f5f9ff;
    color: #0a6cff;
}

.contact-email-btn {
    color: #9aa6b2;
    border-color: #d8dee6;
}

.contact-email-btn:hover {
    background: #fafafa;
    color: #7e8b98;
    border-color: #cfd6de;
}

.contact-whatsapp-btn {
    background-color: #25D366;
    color: #fff;
    border: 1px solid #25D366;
}

.contact-whatsapp-btn:hover {
    background-color: #1ebe5d;
    border-color: #1ebe5d;
    color: #fff;
}

.contact-chat-btn {
    background: #0a66c2;
    color: #fff !important;
    border: 1px solid #0a66c2;
}

.contact-chat-btn:hover {
    background: #084d92;
    border-color: #084d92;
    color: #fff !important;
}

/* ===============================
   SELLER FOOTER
================================= */

.seller-footer-row {
    margin-top: 14px;
    display: flex;
    align-items: center;
    gap: 12px;
    flex-wrap: wrap;
}

.view-all {
    font-size: 14px;
    font-weight: 500;
    color: #0073e6;
    text-decoration: none;
    margin-right: auto;
}

.view-all:hover {
    text-decoration: underline;
}

.seller-logo-box {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    overflow: hidden;
    border: 1px solid #ececec;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
}

.seller-logo-img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 50%;
}

.share-icons-group {
    display: flex;
    align-items: center;
    gap: 8px;
    margin-left: 0;
}

.share-icon-btn {
    width: 36px;
    height: 36px;
    border-radius: 50%;
    border: 1px solid #d9dfe7;
    background: #fff;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    text-decoration: none;
    transition: 0.2s ease;
    padding: 0;
}

.share-icon-btn:hover {
    background: #f7f9fc;
    transform: translateY(-1px);
}

.share-icon-btn svg {
    width: 17px;
    height: 17px;
    fill: currentColor;
}

.share-icon-btn.whatsapp {
    color: #25d366;
    border-color: #25d366;
}

.share-icon-btn.x {
    color: #111;
    border-color: #111;
}

.share-icon-btn.facebook {
    color: #1877f2;
    border-color: #1877f2;
}

.share-icon-btn.copy {
    color: #0a6cff;
    border-color: #0a6cff;
}

/* ===============================
   INSTALLMENT TABLE CARD
================================= */

.installment-table-card {
    background: #fff;
    border-radius: 10px;
    margin-top: 16px;
    border: 1px solid #e5e5e5;
    overflow: hidden;
    width: 100%;
}

.installment-header {
    background: #f7f7f7;
    padding: 12px 15px;
    font-weight: 600;
    font-size: 15px;
    border-bottom: 1px solid #e5e5e5;
}

.installment-table {
    width: 100%;
}

.installment-row {
    display: flex;
    justify-content: space-between;
    padding: 12px 15px;
    border-bottom: 1px solid #eee;
}

.installment-row:last-child {
    border-bottom: none;
}

.installment-col {
    width: 50%;
}

.installment-col.label {
    color: #666;
    font-size: 13px;
}

.installment-col.value {
    text-align: right;
    font-weight: 600;
    font-size: 14px;
    color: #000;
}

/* ===============================
   CONTENT CARDS
================================= */

.card-section,
.description-section,
.post-comment-section,
.amenities-section,
.ad-details-section {
    border: 1px solid #eee;
    border-radius: 10px;
    padding: 24px;
    margin-bottom: 24px;
    background: #fff;
}

.ad-details-section h3,
.description-section h3,
.amenities-section h3 {
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 600;
}

.details-two-col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 15px 25px;
}

.details-col {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f6f7f8;
    padding: 10px 14px;
    border-radius: 6px;
    font-size: 14px;
    gap: 12px;
}

.detail-row .label {
    color: #666;
    font-weight: 500;
}

.detail-row .value {
    color: #111;
    font-weight: 600;
    text-align: right;
}

.description-content {
    font-size: 15px;
    line-height: 1.8;
    color: #444;
}

/* ===============================
   AMENITIES
================================= */

.amenities-section {
    margin-top: 0;
}

.amenities-stepper {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.amenity-tab-card {
    border: 1px solid #e7ebf0;
    border-radius: 14px;
    background: #fff;
    overflow: hidden;
    box-shadow: 0 4px 16px rgba(15, 36, 48, 0.05);
}

.amenity-tab-card-head {
    padding: 14px 18px;
    border-bottom: 1px solid #edf1f5;
    background: #f8fbff;
}

.amenity-tab-card-head h4 {
    margin: 0;
    font-size: 17px;
    font-weight: 700;
    color: #0f2430;
}

.amenity-tab-grid {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 14px;
    padding: 18px;
}

.amenity-display-item {
    min-height: 58px;
    border: 1px solid #e8edf3;
    border-radius: 12px;
    background: #fafcff;
    padding: 12px 14px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 14px;
}

.amenity-display-label {
    font-size: 14px;
    font-weight: 600;
    color: #334155;
}

.amenity-display-value {
    font-size: 14px;
    font-weight: 700;
    color: #0a58ca;
    text-align: right;
    word-break: break-word;
}

.amenity-display-item.is-checkbox .amenity-display-value {
    color: #198754;
}

.amenities-stepper-action {
    display: flex;
    justify-content: center;
    align-items: center;
    margin-top: 18px;
}

.show-amenities-btn {
    min-width: 220px;
    border: none;
    background: #0a58ca;
    color: #fff;
    border-radius: 10px;
    padding: 12px 22px;
    font-size: 14px;
    font-weight: 700;
    cursor: pointer;
    transition: 0.2s ease;
    text-align: center;
}

.show-amenities-btn:hover {
    background: #084298;
}

.show-amenities-btn:disabled {
    background: #b8c2d3;
    cursor: not-allowed;
}

/* ===============================
   ADS
================================= */

.ob-single-ad-wrap,
.ob-single-sidebar-wrap {
    width: 100%;
    display: flex;
    justify-content: center;
    align-items: center;
    margin: 18px auto;
    text-align: center;
    clear: both;
}

.ob-single-ad,
.ob-single-ad-sidebar {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.ad-before-post,
.ad-after-details,
.ad-after-description,
.ad-after-amenities,
.ad-after-related {
    margin: 20px auto;
}

.ob-single-sidebar-wrap.ad-below-installment {
    width: 100%;
    max-width: 300px;
    margin: 16px auto 0;
}

.ob-single-sidebar-wrap.ad-below-installment .ob-single-ad-sidebar,
.ob-single-sidebar-wrap.ad-below-installment .adsbygoogle,
.ob-single-ad-sidebar .adsbygoogle {
    width: 300px !important;
    height: 250px !important;
    display: inline-block !important;
    max-width: 100%;
    margin: 0 auto !important;
}

@media (min-width: 768px) {
    .ob-single-ad-responsive .adsbygoogle {
        width: 728px !important;
        height: 90px !important;
    }
}

@media (max-width: 767px) {
    .ob-single-ad-responsive .adsbygoogle {
        width: 300px !important;
        height: 250px !important;
    }

    .ob-single-ad-wrap {
        overflow: hidden;
    }

    .ob-single-ad-responsive,
    .ob-single-ad-sidebar {
        max-width: 100%;
    }
}

/* ===============================
   RELATED ADS
================================= */

.related-section {
    margin-top: 30px;
    margin-bottom: 60px;
}

.related-section h3 {
    margin-bottom: 20px;
    font-size: 20px;
}

.related-slider-wrapper {
    display: flex;
    align-items: center;
    gap: 12px;
    position: relative;
}

.related-slider-viewport {
    overflow: hidden;
    width: 100%;
}

.related-slider-track {
    display: flex;
    gap: 20px;
    transition: transform 0.35s ease;
    will-change: transform;
}

.related-slide {
    flex: 0 0 calc(25% - 15px);
    min-width: calc(25% - 15px);
}

.related-arrow {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    border: none;
    background: #fff;
    box-shadow: 0 3px 10px rgba(0, 0, 0, 0.15);
    cursor: pointer;
    font-size: 26px;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: 0.2s ease;
}

.related-arrow:hover {
    background: #f5f5f5;
    transform: scale(1.05);
}

.related-arrow:disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

/* ===============================
   CALL MODAL
================================= */

.call-modal {
    position: fixed;
    inset: 0;
    display: none;
    z-index: 9999;
}

.call-modal-overlay {
    position: absolute;
    inset: 0;
    background: rgba(0, 0, 0, 0.5);
}

.call-modal-box {
    position: relative;
    width: 95%;
    max-width: 420px;
    margin: 80px auto;
    background: #ffffff;
    border-radius: 14px;
    padding: 20px 18px;
    box-shadow: 0 10px 35px rgba(0,0,0,0.15);
    font-family: system-ui, -apple-system, sans-serif;
}

.call-close-btn {
    position: absolute;
    top: 12px;
    right: 12px;
    border: none;
    background: transparent;
    font-size: 20px;
    cursor: pointer;
    color: #555;
}

.call-modal-box h2 {
    font-size: 20px;
    font-weight: 600;
    margin-bottom: 12px;
    color: #222;
}

.call-label {
    font-size: 13px;
    color: #777;
    margin-bottom: 6px;
}

.call-number {
    background: #f5f6f8;
    border-radius: 10px;
    padding: 14px;
    font-size: 15px;
    color: #222;
    margin-bottom: 12px;
    line-height: 1.6;
}

.call-number div {
    background: #f5f6f8;
    padding: 12px;
    border-radius: 10px;
    margin-bottom: 8px;
    font-weight: 500;
}

.call-number div:last-child {
    border-bottom: none;
}

.reveal-btn {
    width: 100%;
    background: #0a58ca;
    color: #fff;
    border: none;
    border-radius: 10px;
    padding: 12px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    transition: 0.2s;
}

.reveal-btn:hover {
    background: #244bb0;
}

.call-now-btn {
    display: block;
    width: 100%;
    margin-top: 10px;
    text-align: center;
    background: #16a34a;
    color: #fff;
    padding: 12px;
    border-radius: 10px;
    text-decoration: none;
    font-weight: 600;
}

/* ===============================
   RESPONSIVE
================================= */

@media (max-width: 1200px) {
    .single-layout {
        grid-template-columns: minmax(0, 1fr) 330px;
    }

    .related-slide {
        flex: 0 0 calc(33.33% - 14px);
        min-width: calc(33.33% - 14px);
    }
}

@media (max-width: 992px) {
    .single-layout {
        grid-template-columns: 1fr;
    }

    .post-sidebar-box {
        position: static;
        top: auto;
    }

    .single-sidebar {
        display: none;
    }

    .mobile-post-summary {
        display: block;
        margin-top: 16px;
        margin-bottom: 24px;
    }

    .mobile-post-sidebar-box {
        position: static;
        top: auto;
    }

    .slider {
        height: 380px;
    }

    .ob-single-sidebar-wrap.ad-below-installment {
        max-width: 100%;
    }
}

@media (max-width: 900px) {
    .related-slide {
        flex: 0 0 calc(50% - 10px);
        min-width: calc(50% - 10px);
    }
}

@media (max-width: 768px) {
    .details-two-col,
    .amenity-tab-grid {
        grid-template-columns: 1fr;
    }

    .amenity-display-item {
        flex-direction: column;
        align-items: flex-start;
    }

    .amenity-display-value {
        text-align: left;
    }

    .post-meta {
        flex-direction: column;
        align-items: flex-start;
        gap: 6px;
    }

    .meta-right {
        align-self: flex-end;
    }

    .price-row {
        align-items: center;
        flex-direction: row;
        justify-content: space-between;
    }
}

@media (max-width: 600px) {
    .slider {
        height: 280px;
    }

    .slider-btn {
        width: 40px;
        height: 40px;
    }

    .image-counter {
        font-size: 12px;
        padding: 5px 10px;
    }

    .seller-actions-row {
        align-items: stretch;
    }

    .contact-outline-btn {
        flex: 1 1 auto;
    }

    .seller-footer-row {
        justify-content: space-between;
    }

    .price-row {
        align-items: center;
        flex-direction: row;
        justify-content: space-between;
        gap: 10px;
    }

    .price {
        font-size: 26px;
    }

    .package-tag {
        font-size: 12px;
        padding: 5px 10px;
    }

    .related-slide {
        flex: 0 0 100%;
        min-width: 100%;
    }

    .related-arrow {
        width: 36px;
        height: 36px;
        font-size: 22px;
    }

    .ob-single-ad-wrap {
        margin: 14px 0;
        padding: 0 8px;
    }
}

@media (max-width: 480px) {
    .call-modal-box {
        margin: 60px 12px;
        padding: 18px;
    }

    .card-section,
    .description-section,
    .post-comment-section,
    .amenities-section,
    .ad-details-section,
    .seller-box,
    .installment-table-card {
        padding-left: 16px;
        padding-right: 16px;
    }
}

@media (max-width: 340px) {
    .ob-single-ad-responsive .adsbygoogle,
    .ob-single-ad-sidebar .adsbygoogle {
        transform: scale(0.92);
        transform-origin: center top;
    }
}