﻿
/* =========================================================
   FewAds AdView Page - Final Single CSS
   Paste this in page header
   ========================================================= */
.adview-page {
    --fa-border: #e7ebf0;
    --fa-border-dark: #d9dee7;
    --fa-text: #1f2937;
    --fa-muted: #6b7280;
    --fa-blue: #0d6efd;
    --fa-blue-dark: #0b5ed7;
    --fa-card: #ffffff;
}

/* page */
.adview-page {
    color: var(--fa-text);
}

    .adview-page .breadcrumb {
        margin-bottom: 12px;
        font-size: 13px;
    }

.adview-shell {
    background: #fff;
    border: none;
    box-shadow: none;
    border-radius: 10px;
    padding: 8px 0 0 0;
}

.adview-grid {
    display: grid;
    grid-template-columns: minmax(0,1.25fr) minmax(320px,.95fr) minmax(280px,.8fr);
    gap: 18px;
    align-items: start;
}

.adview-left,
.adview-main,
.adview-side {
    min-width: 0;
}

.ad-card-clean {
    background: #fff;
    border: none;
    padding: 0;
}

/* title + actions */
.ad-title-row {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    margin-bottom: 10px;
}

.ad-title {
    margin: 0;
    /*font-size:1.85rem;*/
    font-size: 1.6rem;
    line-height: 1.2;
    font-weight: 500;
    letter-spacing: -.01em;
    color: #162033;
}

.ad-top-actions {
    display: flex;
    gap: 6px;
    flex-wrap: nowrap;
    margin-bottom: 24px;
    width: 100%;
}

    .ad-top-actions .ad-action-btn {
        flex: 1 1 0;
        min-width: 0;
        white-space: nowrap;
        padding: 8px 10px;
        font-size: 13px;
    }

        .ad-top-actions .ad-action-btn i {
            font-size: 13px;
        }

.ad-action-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 40px;
    padding: 8px 14px;
    border: 1px solid var(--fa-border-dark);
    border-radius: 10px;
    background: #fff;
    color: #243042;
    text-decoration: none;
    font-weight: 500;
    transition: all .2s ease;
}

    .ad-action-btn:hover {
        background: #f8fbff;
        border-color: #c9d9f8;
        color: var(--fa-blue);
    }

/* content blocks */
.ad-block {
    padding: 14px 0;
    border-top: 1px solid var(--fa-border);
}

    .ad-block:first-of-type {
        padding-top: 0;
        border-top: 0;
    }

.ad-block-title {
    margin: 0 0 10px 0;
    font-size: 1.05rem;
    font-weight: 700;
    color: #162033;
}

.ad-desc {
    font-size: 15px;
    line-height: 1.7;
    color: #273244;
    margin: 0;
    white-space: pre-line;
}

/* details table */
.ad-table {
    width: 100%;
    margin: 0;
}

    .ad-table tr + tr td {
        padding-top: 10px;
    }

    .ad-table td {
        vertical-align: top;
        border: 0;
        padding-left: 0;
        padding-right: 0;
    }

.descHdr,
.ad-key {
    min-width: 140px;
    width: 42%;
    color: var(--fa-muted);
    font-weight: 600;
    padding-right: 14px !important;
}

.descVal,
.ad-val {
    color: #182232;
    font-weight: 500;
    text-transform: capitalize;
    word-break: break-word;
}

    .ad-val a,
    .descVal a {
        text-decoration: none;
        font-weight: 700;
    }

#desc .table > :not(caption) > * > * {
    padding: 0;
    border-bottom-width: 0;
}

/* meta chips */
.ad-meta-wrap {
    margin-top: 12px;
}

.ad-meta-chip {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #f8fafc;
    border: 1px solid var(--fa-border);
    border-radius: 999px;
    padding: 7px 11px;
    color: #475467;
    font-size: 13px;
    font-weight: 600;
}

/* side stack */
.ad-side-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

.ad-side-card {
    background: #fff;
    border: 1px solid var(--fa-border);
    border-radius: 12px;
    overflow: hidden;
    box-shadow: none;
}

.ad-side-card-body {
    padding: 14px;
}

.ad-side-title {
    margin: 0;
    font-size: 1.05rem;
    font-weight: 800;
    color: #162033;
}

.ad-location-label {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    color: #194185;
    font-weight: 800;
    font-size: 15px;
}

/* map */
.map-container {
    margin-top: 0;
    height: 250px;
    border-top: 1px solid var(--fa-border);
    border-bottom: 1px solid var(--fa-border);
    border-radius: 0;
    overflow: hidden;
}

    .map-container iframe {
        width: 100%;
        height: 100%;
        border: none;
        border-radius: 0;
    }

.ad-map-footer {
    padding: 12px 14px 14px;
    background: #fcfdff;
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
}

    .ad-map-footer a {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        min-height: 38px;
        padding: 7px 12px;
        border: 1px solid var(--fa-border-dark);
        border-radius: 10px;
        background: #fff;
        color: #1f3c88;
        text-decoration: none;
        font-weight: 700;
        font-size: 14px;
    }

        .ad-map-footer a:hover {
            background: #f8fbff;
        }

/* seller */
.ad-seller-top {
    display: flex;
    gap: 12px;
    align-items: flex-start;
}

.ad-seller-avatar {
    width: 54px;
    height: 54px;
    border-radius: 10px;
    background: linear-gradient(180deg,#eef4ff 0%, #e5eefc 100%);
    color: #194185;
    font-size: 21px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--fa-border);
    flex: 0 0 54px;
}

.ad-seller-name {
    margin: 0;
    font-size: 1.1rem;
    font-weight: 800;
    color: #162033;
    line-height: 1.2;
}

.ad-seller-sub {
    margin-top: 3px;
    color: var(--fa-muted);
    font-size: 13px;
}

.ad-seller-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 7px;
    margin-top: 9px;
}

.ad-seller-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #475467;
    background: #f8fafc;
    border: 1px solid var(--fa-border);
    border-radius: 999px;
    padding: 6px 10px;
    font-weight: 700;
}

.ad-seller-links {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    margin-top: 14px;
}

    .ad-seller-links a,
    .ad-seller-links .btn {
        display: inline-flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        min-height: 40px;
        padding: 8px 12px;
        border: 1px solid var(--fa-border-dark);
        border-radius: 10px;
        background: #fff;
        color: #243042;
        text-decoration: none;
        font-weight: 700;
    }

        .ad-seller-links a:hover,
        .ad-seller-links .btn:hover {
            background: #f8fbff;
            color: var(--fa-blue);
        }

    .ad-seller-links .full {
        grid-column: 1 / -1;
    }

.ad-verified {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid var(--fa-border);
    display: flex;
    align-items: flex-start;
    gap: 10px;
    color: #166534;
    font-weight: 700;
    font-size: 14px;
}

    .ad-verified small {
        display: block;
        font-weight: 500;
        color: #4b5563;
        line-height: 1.5;
    }

/* other links */
.other-ads-link {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 8px 12px;
    border: 1px solid #e2e2e2;
    border-radius: 10px;
    background: #fff;
    color: #333;
    text-decoration: none;
}

    .other-ads-link:hover {
        background: #f8f8f8;
        color: #0d6efd;
    }

    .other-ads-link i {
        color: #f27c7c;
        font-size: 16px;
    }

.sell-links-wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    flex-wrap: nowrap !important;
    margin-top: 14px;
    gap: 8px !important;
}

    .sell-links-wrap::-webkit-scrollbar {
        display: none;
    }

    .sell-links-wrap .btn-short {
        border: 1px solid #cfd7e3;
        border-radius: 999px;
        background-color: #fff;
        color: #111;
        padding: 8px 14px;
        font-size: 13px;
        white-space: nowrap;
        text-decoration: none;
        transition: all .2s ease;
        flex: 0 0 auto;
    }

        .sell-links-wrap .btn-short:hover {
            background: #f3f7ff;
            border-color: #b9cae8;
            color: #0d6efd;
        }

/* gallery */
.fa-gallery {
    width: 100%;
    max-width: 100%;
    font-family: Arial, sans-serif;
}

.fa-gallery-main-wrap {
    position: relative;
    width: 100%;
    background: #ffffff;
    border: 1px solid #e5e5e5;
    border-radius: 12px;
    overflow: hidden;
}

.fa-gallery-main {
    width: 100%;
    height: 520px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #ffffff;
    cursor: pointer;
    user-select: none;
    -webkit-user-select: none;
}

    .fa-gallery-main img {
        max-width: 100%;
        max-height: 100%;
        width: auto;
        height: auto;
        display: block;
        object-fit: contain;
    }

.fa-gallery-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 38px;
    height: 38px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,.92);
    color: #000;
    font-size: 22px;
    line-height: 38px;
    text-align: center;
    cursor: pointer;
    z-index: 20;
    box-shadow: 0 2px 8px rgba(0,0,0,.10);
    border: 1px solid #d9dee7;
}

.fa-gallery-arrow-left {
    left: 10px;
    right: auto;
}

.fa-gallery-arrow-right {
    right: 10px;
    left: auto;
}

.fa-gallery-counter {
    position: absolute;
    left: 12px;
    bottom: 12px;
    background: rgba(17,24,39,.82);
    color: #fff;
    font-size: 12px;
    font-weight: 600;
    padding: 5px 10px;
    border-radius: 16px;
    z-index: 5;
}

.fa-gallery-thumbs {
    margin-top: 10px;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 4px;
    scrollbar-width: thin;
    -webkit-overflow-scrolling: touch;
}

.fa-gallery-thumb {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    border: 2px solid #dddddd;
    border-radius: 8px;
    overflow: hidden;
    background: #fff;
    cursor: pointer;
    padding: 0;
}

    .fa-gallery-thumb.active {
        border-color: #1a73e8;
        box-shadow: 0 0 0 2px rgba(13,110,253,.10);
    }

    .fa-gallery-thumb img {
        width: 100%;
        height: 100%;
        display: block;
        object-fit: cover;
    }

/* lightbox */
.fa-lightbox {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.92);
    z-index: 99999;
    display: none;
}

    .fa-lightbox.open {
        display: block;
    }

.fa-lightbox-topbar {
    position: absolute;
    top: 10px;
    left: 0;
    right: 0;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0 14px;
}

.fa-lightbox-count {
    color: #fff;
    font-size: 15px;
}

.fa-lightbox-close {
    width: 42px;
    height: 42px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.15);
    color: #fff;
    font-size: 26px;
    cursor: pointer;
}

.fa-lightbox-stage {
    position: absolute;
    top: 60px;
    left: 0;
    right: 0;
    bottom: 115px;
    overflow: hidden;
    touch-action: none;
}

.fa-lightbox-image-wrap {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    touch-action: none;
}

.fa-lightbox-image {
    max-width: 100%;
    max-height: 100%;
    object-fit: contain;
    transform-origin: center center;
    will-change: transform;
    user-select: none;
    -webkit-user-drag: none;
    pointer-events: none;
}

.fa-lightbox-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255,255,255,0.12);
    color: #fff;
    font-size: 28px;
    cursor: pointer;
    z-index: 15;
}

.fa-lightbox-arrow-left {
    left: 14px;
}

.fa-lightbox-arrow-right {
    right: 14px;
}

.fa-lightbox-thumbs {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 10px;
    z-index: 20;
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 0 14px 6px 14px;
    -webkit-overflow-scrolling: touch;
}

.fa-lightbox-thumb {
    flex: 0 0 auto;
    width: 64px;
    height: 64px;
    border: 2px solid rgba(255,255,255,0.35);
    border-radius: 8px;
    overflow: hidden;
    padding: 0;
    background: transparent;
    cursor: pointer;
}

    .fa-lightbox-thumb.active {
        border-color: #ffffff;
    }

    .fa-lightbox-thumb img {
        width: 100%;
        height: 100%;
        object-fit: cover;
        display: block;
    }

.fa-hide {
    display: none !important;
}

.fa-lightbox-loading .fa-lightbox-image {
    opacity: 0;
}

.fa-lightbox-loader {
    position: absolute;
    top: 50%;
    left: 50%;
    width: 42px;
    height: 42px;
    margin-left: -21px;
    margin-top: -21px;
    border: 3px solid rgba(255,255,255,0.25);
    border-top: 3px solid #ffffff;
    border-radius: 50%;
    animation: faSpin 0.8s linear infinite;
    z-index: 25;
    display: none;
}

.fa-lightbox-loading .fa-lightbox-loader {
    display: block;
}

@keyframes faSpin {
    from {
        transform: rotate(0deg);
    }

    to {
        transform: rotate(360deg);
    }
}

/* sticky sms */
.sms-sticky-bar {
    position: fixed;
    left: 5px;
    right: 5px;
    bottom: 0;
    z-index: 1055;
    background: #f7f8fb;
    border: 1px solid #d9dee5;
    box-shadow: 0 4px 18px rgba(0,0,0,0.10);
    padding: 8px;
    border-radius: 10px;
}

.sms-sticky-inner {
    display: flex;
    gap: 8px;
    align-items: center;
    max-width: 100%;
}

.sms-sticky-input {
    flex: 1;
    min-width: 0;
    height: 44px;
    border: 1px solid #cfcfcf;
    border-radius: 22px;
    padding: 0 14px;
    font-size: 14px;
    outline: none;
    box-shadow: none !important;
    background: #fff;
}

.sms-sticky-btn {
    height: 44px;
    min-width: 92px;
    padding: 0 18px;
    border: none;
    border-radius: 10px;
    background: #0d6efd;
    color: #fff;
    font-size: 16px;
    white-space: nowrap;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    text-align: center;
    text-decoration: none;
}

    .sms-sticky-btn:hover {
        background: #0b5ed7;
        color: #fff;
    }

/* responsive */
@media (max-width:1199.98px) {
    .adview-grid {
        grid-template-columns: minmax(0,1.15fr) minmax(300px,.95fr);
    }

    .adview-side {
        grid-column: 1 / -1;
    }

    .ad-side-stack {
        display: grid;
        grid-template-columns: 1fr 1fr;
        gap: 14px;
    }
}

@media (max-width:991.98px) {
    .adview-shell {
        padding-top: 6px;
    }

    .adview-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .ad-side-stack {
        grid-template-columns: 1fr;
    }

    .ad-title {
        font-size: 1.5rem;
    }

    .ad-title-row {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width:767.98px) {
    .ad-title {
        font-size: 1.3rem;
    }

    .fa-gallery-main {
        height: 310px;
    }

    .fa-gallery-arrow {
        width: 34px;
        height: 34px;
        font-size: 20px;
        line-height: 34px;
    }

    .fa-gallery-arrow-left {
        left: 8px;
    }

    .fa-gallery-arrow-right {
        right: 8px;
    }

    .fa-gallery-thumb {
        width: 56px;
        height: 56px;
    }

    .fa-lightbox-stage {
        top: 56px;
        bottom: 100px;
    }

    .fa-lightbox-arrow {
        width: 42px;
        height: 42px;
        font-size: 24px;
    }

    .fa-lightbox-thumb {
        width: 56px;
        height: 56px;
    }

    .ad-seller-links {
        grid-template-columns: 1fr;
    }

    .map-container {
        height: 220px;
    }

    body {
        padding-bottom: 85px;
    }
}

@media (min-width:768px) {
    .sms-sticky-bar {
        display: none !important;
    }
}










/* =========================================================
   Jobs / Services wide description layout
   Add class: adview-wide-left
   Put this class on the outer wrapper/shell that contains
   .adview-grid
   ========================================================= */
.adview-wide-left .adview-grid {
    display: grid;
    grid-template-columns: minmax(0, 3fr) minmax(260px, 1fr);
    gap: 18px;
    align-items: start;
}

/* hide gallery column in jobs/services */
.adview-wide-left .adview-left {
    display: none;
}

/* make description and right column shrink properly */
.adview-wide-left .adview-main,
.adview-wide-left .adview-side {
    min-width: 0;
}

/* let description area use full width */
.adview-wide-left .ad-table {
    width: 100%;
    max-width: 100% !important;
}

.adview-wide-left #desc {
    width: 100%;
    max-width: 100%;
}

.adview-wide-left .ad-desc {
    width: 100%;
    max-width: 100%;
}

/* company image / top image responsive */
.adview-wide-left #ContentPlaceHolder1_pnlCompanyPhoto,
.adview-wide-left #ContentPlaceHolder1_pnlCompanyPhoto .mt-1,
.adview-wide-left #ContentPlaceHolder1_ltCompanyPhoto,
.adview-wide-left #ContentPlaceHolder1_ltCompanyPhoto img,
.adview-wide-left .adview-main img {
    max-width: 100% !important;
}

    .adview-wide-left #ContentPlaceHolder1_ltCompanyPhoto img,
    .adview-wide-left .adview-main img {
        width: auto !important;
        height: auto !important;
        display: block;
        object-fit: contain;
    }

/* if you want company image to stretch to content width, use this instead:
.adview-wide-left #ContentPlaceHolder1_ltCompanyPhoto img{
    width:100% !important;
    max-width:100% !important;
    height:auto !important;
}
*/

/* keep right cards neat */
.adview-wide-left .ad-side-stack {
    display: flex;
    flex-direction: column;
    gap: 14px;
}

/* tablet */
@media (max-width: 991.98px) {
    .adview-wide-left .adview-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .adview-wide-left .adview-left {
        display: none;
    }

    .adview-wide-left .adview-side {
        width: 100%;
    }

    .adview-wide-left .ad-side-stack {
        display: grid;
        grid-template-columns: 1fr;
        gap: 14px;
    }
}

/* mobile */
@media (max-width: 767.98px) {
    .adview-wide-left .adview-grid {
        grid-template-columns: 1fr;
        gap: 16px;
    }

    .adview-wide-left .adview-main,
    .adview-wide-left .adview-side {
        width: 100%;
    }

    .adview-wide-left .ad-title {
        font-size: 1.3rem;
    }

    .adview-wide-left #ContentPlaceHolder1_ltCompanyPhoto img,
    .adview-wide-left .adview-main img {
        max-width: 100% !important;
        height: auto !important;
    }
}


/*For Headers in Details section*/

.descHdr i {
    width: 18px;
    margin-right: 8px;
    color: #6b7280;
    text-align: center;
}


