/* 
   Modern Ad Detail Design (ikman.lk Style)
   Base Color: #009877 (ikman Green)
   Background: #e7edee (Light Grey)
*/

:root {
    --ikman-green: #009877;
    --ikman-bg: #e7edee;
    --ikman-text-main: #2f3432;
    --ikman-text-sub: #707676;
    --ikman-border: #d4ded9;
    --ikman-yellow: #ffc800;
    --ikman-yellow-text: #673500;
}

body.ad-detail-page {
    background-color: var(--ikman-bg) !important;
    color: var(--ikman-text-main);
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    overflow-x: hidden;
}

/* Responsive Utilities */
.visible-mobile {
    display: none !important;
}

.hidden-mobile {
    display: block;
}

/* Container */
.ad-detail-page .container {
    max-width: 1000px !important;
    margin: 0 auto;
    padding: 0 16px !important;
}

/* Breadcrumb Styling */
.ad-breadcrumb {
    padding: 12px 16px;
    font-size: 13px;
    color: var(--ikman-text-sub);
}

.ad-breadcrumb a {
    color: var(--ikman-text-sub);
    text-decoration: none;
}

.ad-breadcrumb a:hover {
    text-decoration: underline;
}

/* Unified Main Content Box */
/* (Removed unused .ad-main-wr.ad-gallery class) */

/* Header Section */
.ad-header-section {
    padding: 0 0 16px 0;
    border-bottom: 1px solid var(--ikman-border);
    margin-bottom: 16px;
}

.ad-header-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 20px;
}

.ad-header-row.meta-row {
    margin-top: 8px;
    justify-content: flex-start;
    gap: 16px;
}

.module-title {
    font-size: 22px;
    font-weight: 800;
    color: var(--ikman-text-main);
    margin: 0;
    line-height: 1.3;
}

.ad-header-actions {
    display: flex;
    gap: 12px;
    flex-shrink: 0;
    flex-wrap: nowrap;
}

/* Header Section Buttons & Views */
.btn-action {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    padding: 6px 12px;
    border: 1px solid var(--ikman-border);
    border-radius: 0;
    background: #fff;
    font-size: 13px;
    font-weight: 700;
    color: var(--ikman-text-main);
    cursor: pointer;
    transition: all 0.2s;
}

.btn-action:hover {
    border-color: var(--ikman-green);
    color: var(--ikman-green);
}

.btn-action i {
    font-size: 14px;
    color: var(--ikman-text-sub);
}

.views-count {
    font-size: 12px;
    font-weight: 700;
    color: var(--ikman-text-main);
    display: flex;
    align-items: center;
    gap: 6px;
    padding: 2px 10px;
    border: 1px solid var(--ikman-border);
    border-radius: 0;
    background: #fdfdfd;
}

.views-count i {
    color: var(--ikman-green);
}

/* Main Grid Layout */
.ad-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 320px;
    gap: 24px;
    margin-top: 24px;
}

/* Banner Column Styles */
.ad-banner-column {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.ad-box-banner {
    background: white;
    border: 1px solid #e2e8f0;
    border-radius: 0;
    padding: 16px;
    box-shadow: none;
    width: 100%;
    box-sizing: border-box;
}

.banner-label {
    font-size: 10px;
    color: #94a3b8;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    margin-bottom: 12px;
    text-align: center;
    font-weight: 600;
}

.banner-content {
    display: flex;
    justify-content: center;
    align-items: center;
    width: 100%;
}

.ad-box-banner img {
    max-width: 100%;
    height: auto;
    display: block;
    border-radius: 0;
}

.banner-placeholder {
    width: 100%;
    height: 250px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    background: #f8fafc;
    border: 2px dashed #e2e8f0;
    border-radius: 0;
    color: #cbd5e1;
    text-align: center;
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    text-decoration: none !important;
}

.banner-placeholder:hover {
    background: #f1f5f9;
    border-color: #cbd5e1;
}

.banner-placeholder i {
    font-size: 32px;
    margin-bottom: 12px;
}

.banner-placeholder span {
    display: block;
    font-weight: 700;
    font-size: 14px;
    text-transform: uppercase;
}

.banner-placeholder small {
    display: block;
    font-size: 11px;
    margin-top: 4px;
}

/* LEFT: Main Content */
.ad-main {
    display: flex;
    flex-direction: column;
    gap: 0;
}

/* Image Gallery */
.module-gallery {
    position: relative;
}

.gallery-main {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 3;
    background-color: #f3f6f5;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

.gallery-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    /* Proper fit to fill the professional frame */
    display: block;
    background: #f8fafc;
}

.gallery-nav-arrows {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 16px;
    pointer-events: none;
    z-index: 5;
}

.g-arrow {
    width: 44px;
    height: 44px;
    background: rgba(255, 200, 0, 0.5); /* Yellow 50% transparent */
    border: none;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    pointer-events: auto;
    color: #374151; /* Dark grey */
    font-size: 20px;
    transition: all 0.2s;
}

.g-arrow:hover {
    background: rgba(255, 200, 0, 0.8);
    color: #000;
    transform: scale(1.1);
}

.image-counter {
    position: absolute;
    top: 12px;
    right: 12px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 11px;
    font-weight: 700;
    padding: 4px 8px;
    border-radius: 0;
    z-index: 10;
    pointer-events: none;
    letter-spacing: 0.5px;
}

.image-watermark {
    position: absolute;
    bottom: 12px;
    right: 12px;
    z-index: 10;
    pointer-events: none;
    opacity: 0.6;
}

.image-watermark img {
    height: 24px;
    width: auto;
    object-fit: contain;
    background: transparent !important;
}

.gallery-thumbs-wrapper {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 16px;
    border-top: 1px solid var(--ikman-border);
}

.gallery-thumbs {
    flex: 1;
    overflow: hidden;
}

.t-arrow {
    width: 32px;
    height: 48px;
    background: transparent;
    border: none;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    color: #afb7ad;
    font-size: 18px;
}

.t-arrow:hover {
    color: var(--ikman-green);
}

.thumb-list {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    scrollbar-width: none;
}

.thumb-list::-webkit-scrollbar {
    display: none;
}

.thumb {
    width: 100px;
    height: 75px;
    flex-shrink: 0;
    cursor: pointer;
    border: 1px solid var(--ikman-border);
    border-radius: 0;
    opacity: 0.6;
    transition: opacity 0.2s;
    overflow: hidden;
}

.thumb.active {
    opacity: 1;
    border-color: var(--ikman-green);
}

.thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Ad Info Section */
.ad-info-module {
    padding: 16px;
}

.module-price-section {
    padding-bottom: 12px;
    margin-bottom: 16px;
}

.price-value {
    font-size: 24px;
    font-weight: 800;
    color: var(--ikman-green);
}

.condition-row {
    margin-top: 8px;
    display: flex;
    gap: 8px;
    font-size: 14px;
}

.condition-row .label {
    color: var(--ikman-text-sub);
}

.condition-row .value {
    font-weight: 800;
    color: var(--ikman-text-main);
}

/* Specs / Key Info */
.module-key-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 24px;
}

.ki-row {
    display: flex;
    align-items: baseline;
}

.ki-label {
    width: 120px;
    color: var(--ikman-text-sub);
    font-size: 14px;
}

.ki-value {
    font-weight: 800;
    color: var(--ikman-text-main);
    font-size: 14px;
}

/* Description */
.module-description {
    padding-top: 16px;
    border-top: 1px solid var(--ikman-border);
}

.module-description h3 {
    font-size: 16px;
    font-weight: 800;
    margin-bottom: 12px;
}

.desc-content {
    font-size: 14px;
    line-height: 1.6;
    color: var(--ikman-text-main);
    word-break: break-word;
}

/* Action Bar */
.module-actions-bar {
    padding: 16px 0;
    margin-top: 24px;
    border-top: 1px solid var(--ikman-border);
    display: flex;
    align-items: center;
    gap: 24px;
}

@media (max-width: 768px) {
    .module-actions-bar {
        flex-direction: column;
        gap: 12px;
        padding: 20px 0;
    }
}

.btn-boost-new {
    background-color: var(--ikman-yellow);
    color: var(--ikman-yellow-text);
    font-weight: 800;
    padding: 12px 20px;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    text-decoration: none;
    font-size: 13px;
    transition: background 0.2s;
    justify-content: center;
}

.btn-boost-new:hover {
    background-color: #f5c000;
}

@media (max-width: 768px) {
    .btn-boost-new {
        width: 100%;
        padding: 14px 20px;
    }
}

.btn-report-new {
    background: none;
    border: none;
    color: var(--ikman-text-sub);
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px 20px;
    text-decoration: none;
    justify-content: center;
}

.btn-report-new:hover {
    color: var(--ikman-text-main);
}

.btn-report-new i {
    font-size: 14px;
    color: #afb7ad;
}

@media (max-width: 768px) {
    .btn-report-new {
        width: 100%;
        padding: 14px 20px;
        border: 1px solid var(--ikman-border);
        border-radius: 0;
    }
}

/* Sidebar Styling */
.ad-sidebar {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.sidebar-card {
    border: 1px solid var(--ikman-border);
    border-radius: 0;
}

/* Seller Card */
.seller-card {
    padding: 0;
}

.sc-header {
    padding: 16px;
    display: flex;
    gap: 16px;
    border-bottom: 1px solid var(--ikman-border);
}

.sc-avatar {
    width: 52px;
    height: 39px;
    background: #f3f6f5;
    border: 1px solid var(--ikman-border);
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--ikman-green);
    font-size: 20px;
}

.sc-info h3 {
    font-size: 15px;
    font-weight: 800;
    margin: 0 0 2px 0;
}

.sc-visit-shop {
    font-size: 12px;
    color: var(--ikman-green);
    text-decoration: none;
    font-weight: 700;
}

.sc-visit-shop:hover {
    text-decoration: underline;
}

.sc-badges {
    display: flex;
    gap: 4px;
    margin-bottom: 4px;
}

.badge-member {
    background: #ffc800;
    color: #673500;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-verified {
    background: #fff;
    color: #0074ba;
    border: 1px solid #d5e1e6;
    font-size: 9px;
    font-weight: 800;
    padding: 2px 6px;
    border-radius: 0;
    display: inline-flex;
    align-items: center;
    gap: 4px;
}

.badge-verified i {
    color: #0074ba;
}

.sc-contact {
    padding: 12px 16px;
}

.call-btn-wrapper {
    background-color: #f1f5f9;
    border-radius: 0;
    padding: 10px;
    margin-bottom: 8px;
    text-align: left;
    display: flex;
    flex-direction: column;
    gap: 2px;
    border: 1px solid var(--ikman-border);
}

.call-btn-wrapper .call-text {
    font-weight: 800;
    font-size: 15px;
    color: var(--ikman-text-main);
}

.call-btn-wrapper .phone-numbers {
    color: var(--ikman-text-sub);
    font-size: 11px;
}

.sc-action-row {
    display: flex;
    align-items: center;
    gap: 12px;
    font-weight: 800;
    font-size: 13px;
    color: var(--ikman-text-main);
    padding: 10px;
    border: 1px solid var(--ikman-border);
    border-radius: 0;
    text-decoration: none;
    margin-bottom: 8px;
    cursor: pointer;
}

.sc-action-row:hover {
    background: #f8fafc;
}

.sc-action-row i {
    font-size: 16px;
    color: var(--ikman-green);
    width: 20px;
    text-align: center;
}

.sc-whatsapp-row i {
    color: #25d366;
}

/* Safety Card */
.sidebar-safety {
    padding: 16px;
}

.sidebar-safety h4 {
    font-size: 14px;
    font-weight: 800;
    margin-bottom: 12px;
}

.sidebar-safety ul {
    padding: 0 0 0 20px;
    margin: 0;
}

.sidebar-safety li {
    font-size: 13px;
    color: var(--ikman-text-sub);
    margin-bottom: 12px;
    line-height: 1.5;
}

.safety-link {
    font-size: 13px;
    color: #0074ba;
    font-weight: 800;
    text-decoration: none;
    display: inline-block;
    margin-top: 8px;
}

.safety-link:hover {
    text-decoration: underline;
}

/* More from Seller: 2-Row Carousel Grid */
.more-from-seller-wrapper {
    margin-top: 32px;
    padding-top: 0;
}

.mfs-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    border-bottom: 1px solid var(--ikman-border);
    padding-bottom: 12px;
}

.mfs-seller-brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.mfs-seller-logo {
    width: 36px;
    height: 36px;
    border: 1px solid var(--ikman-border);
    border-radius: 0;
    object-fit: contain;
    background: #fff;
    flex-shrink: 0;
}

.mfs-seller-logo-placeholder {
    width: 36px;
    height: 36px;
    border-radius: 0;
    background: var(--ikman-green);
    color: #fff;
    font-size: 16px;
    font-weight: 800;
    display: flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    letter-spacing: 0;
}

.mfs-header h3 {
    font-size: 14px;
    font-weight: 800;
    color: #707676;
    margin: 0;
}

.mfs-header h3 span {
    color: var(--ikman-green);
}

.mfs-container {
    position: relative;
    display: flex;
    align-items: center;
    gap: 8px;
}

.mfs-grid-wrapper {
    flex: 1;
    overflow: hidden;
}

.mfs-grid {
    display: grid;
    grid-template-rows: 1fr 1fr;
    grid-auto-flow: column;
    grid-auto-columns: calc(50% - 6px);
    gap: 12px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    padding-bottom: 10px;
}

@media (max-width: 768px) {
    .mfs-grid {
        display: flex;
        flex-direction: column;
        height: auto;
        gap: 0;
        /* Remove gap, use bottom border */
        padding-bottom: 0;
    }
}

.mfs-grid::-webkit-scrollbar {
    display: none;
}

.mfs-card {
    width: 100%;
    scroll-snap-align: start;
    border: none;
    /* Removed border */
    transition: all 0.2s;
    background: #fff;
    overflow: hidden;
}

@media (max-width: 768px) {
    .mfs-card {
        width: 100%;
        border-radius: 0;
        border: none;
        border-bottom: 1px solid var(--ikman-border);
    }

    .mfs-card:last-child {
        border-bottom: none;
    }

    .mfs-card-link {
        flex-direction: row !important;
        align-items: stretch;
        min-height: 100px;
        padding: 12px 0;
    }

    .mfs-card-img {
        width: 120px !important;
        height: 90px !important;
        border-radius: 4px;
    }

    .mfs-card-info {
        padding: 0 0 0 12px !important;
        justify-content: space-between;
    }

    .mfs-card-info h4 {
        white-space: normal !important;
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        font-size: 13px;
        line-height: 1.4;
    }
}

.mfs-card:hover {
    border-color: var(--ikman-green);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
}

.ad-thumbnails {
    margin-top: 12px;
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 4px;
}

.thumb-scroll {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    scrollbar-width: none;
    scroll-behavior: smooth;
    flex: 1;
}

.thumb-item {
    width: 64px;
    height: 48px;
    flex-shrink: 0;
    border-radius: 4px;
    border: 2px solid transparent;
    overflow: hidden;
    cursor: pointer;
    transition: all 0.2s;
    background: #f1f5f9;
}

.thumb-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.thumb-item.active {
    border-color: var(--accent);
    box-shadow: 0 0 0 2px rgba(255, 200, 0, 0.2);
}

.mfs-card-link {
    display: flex;
    flex-direction: row;
    align-items: stretch;
    text-decoration: none;
    color: inherit;
    padding: 12px 0;
    min-height: 100px;
}

.mfs-card-img {
    width: 130px;
    height: 90px;
    border-radius: 4px;
    overflow: hidden;
    background: #f3f6f5;
    flex-shrink: 0;
}

.mfs-card-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.mfs-card-info {
    padding: 0 0 0 12px;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    overflow: hidden;
    position: relative;
}

.mfs-card-info h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--ikman-text-main);
    margin: 0;
    white-space: normal;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    line-height: 1.4;
}

.mfs-card-meta {
    display: flex;
    gap: 6px;
    align-items: center;
}

.mfs-card-meta .badge-member {
    scale: 0.8;
    transform-origin: left;
    margin: 0;
}

.mfs-card-meta .badge-verified {
    scale: 0.8;
    transform-origin: left;
    margin: 0;
}

.mfs-card-location {
    font-size: 11px;
    color: var(--ikman-text-sub);
}

.mfs-card-price {
    font-size: 13px;
    font-weight: 800;
    color: var(--ikman-green);
    margin-top: 4px;
}

.mfs-card-time {
    font-size: 10px;
    color: var(--ikman-text-sub);
    align-self: flex-end;
    margin-top: auto;
}

.mfs-arrow {
    width: 32px;
    height: 48px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #afb7ad;
    font-size: 18px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.mfs-arrow:hover {
    color: var(--ikman-green);
}

.mfs-footer {
    display: flex;
    justify-content: flex-end;
    /* Align right if pagination is absent */
    align-items: center;
    margin-top: 16px;
    padding: 0 10px;
    border-top: 1px solid var(--ikman-border);
    padding-top: 16px;
}

.mfs-footer:has(.mfs-pagination) {
    justify-content: space-between;
}

.mfs-pagination {
    display: flex;
    gap: 6px;
    justify-content: center;
    flex: 1;
}

.mfs-dot {
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: #d4ded9;
}

.mfs-dot.active {
    background: #707676;
}

.btn-view-all {
    font-size: 12px;
    font-weight: 800;
    color: #0074ba;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: 4px;
}

.btn-view-all:hover {
    text-decoration: underline;
}

@media (max-width: 768px) {
    .mfs-footer {
        justify-content: center;
        margin-top: 8px;
        padding: 16px 0;
    }

    .mfs-pagination {
        display: none;
    }

    .btn-view-all {
        font-size: 13px;
    }

    .mfs-container .mfs-arrow {
        display: none;
    }
}

/* Internal Links Section - Full Width Grey with White Box */
.internal-links-section {
    margin-top: 40px;
    padding: 40px 0;
    background-color: #f3f6f5;
    width: 100%;
    position: relative;
    box-shadow: 0 0 0 50vmax #f3f6f5;
    /* Full width bg without vw scrollbar issues */
    clip-path: inset(0 -50vmax);
}

.il-container {
    width: 985px;
    margin: 0 auto;
    position: relative;
    padding: 0 40px;
    /* Space for arrows */
}

@media (max-width: 768px) {
    .il-container {
        width: 100%;
        padding: 0 20px;
    }
}

.il-white-box {
    background: #fff;
    border: 1px solid var(--ikman-border);
    border-radius: 4px;
    padding: 24px;
}

.il-grid {
    display: flex;
    gap: 24px;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
}

.il-grid::-webkit-scrollbar {
    display: none;
}

@media (max-width: 768px) {
    .il-grid {
        scroll-snap-type: x mandatory;
        margin-left: -15px;
        margin-right: -15px;
        width: calc(100% + 30px);
    }
}

.il-column {
    min-width: 220px;
    flex: 1;
}

@media (max-width: 768px) {
    .il-column {
        min-width: 100%;
        scroll-snap-align: start;
        padding: 0 40px;
        /* Space for arrows */
        box-sizing: border-box;
    }
}

.il-column h4 {
    font-size: 13px;
    font-weight: 700;
    color: var(--ikman-text-main);
    margin: 0 0 12px 0;
}

.il-column ul {
    list-style: none;
    padding: 0;
    margin: 0;
}

.il-column li {
    margin-bottom: 6px;
}

.il-column a {
    font-size: 11px;
    color: var(--ikman-text-sub);
    text-decoration: none;
}

.il-column a:hover {
    text-decoration: underline;
    color: var(--ikman-green);
}

.gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 44px;
    background: rgba(255, 255, 255, 0.5);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    color: #334155; /* Dark grey */
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    z-index: 10;
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    font-size: 16px;
}

.gallery-nav:hover {
    background: rgba(255, 255, 255, 0.8);
    color: #1e293b;
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

.il-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 52px;
    background: transparent;
    border: none;
    cursor: pointer;
    color: #afb7ad;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.il-arrow:hover {
    color: var(--ikman-green);
}

.il-arrow.left {
    left: 0;
}

.il-arrow.right {
    right: 0;
}

/* Media Queries */


@media (max-width: 992px) {
    .ad-layout {
        grid-template-columns: 1fr;
    }

    .gallery-main {
        width: 100%;
        height: auto;
        aspect-ratio: 4/3;
    }

    .ad-sidebar {
        order: 2;
    }

    .ad-main {
        order: 1;
    }
}

@media (max-width: 768px) {
    .visible-mobile {
        display: block !important;
    }

    .hidden-mobile {
        display: none !important;
    }

    .ad-header-row {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }

    .ad-header-actions {
        width: 100%;
        justify-content: flex-start;
        overflow-x: auto;
        padding-bottom: 5px;
    }

    .module-key-info {
        grid-template-columns: 1fr;
    }

    .ad-main-wrapper,
    .related-ads-box {
        padding: 16px !important;
        border-radius: 0 !important;
        border-left: none !important;
        border-right: none !important;
    }

    /* Full Width Gallery on Mobile */
    .ad-gallery-container {
        margin-left: -16px;
        /* Match container padding */
        margin-right: -16px;
        width: calc(100% + 32px);
    }

    .gallery-thumbs-wrapper {
        display: none !important;
        /* Swipe only on mobile */
    }

    /* Mobile Sticky CTA & Footer Overrides */
    .ad-detail-page .mobile-bottom-nav {
        display: none !important;
    }

    .ad-detail-page .site-footer {
        margin-bottom: 0 !important;
        padding-bottom: 25px !important; /* Restore default footer padding */
    }

    .mobile-sticky-cta {
        position: fixed;
        bottom: 0;
        left: 0;
        right: 0;
        background: #fff;
        padding: 10px 16px;
        padding-bottom: calc(10px + env(safe-area-inset-bottom));
        box-shadow: 0 -4px 12px rgba(0, 0, 0, 0.1);
        z-index: 1001;
    }

    .cta-wrapper {
        display: flex;
        gap: 10px;
        width: 100%;
    }

    .cta-btn {
        flex: 1;
        height: 48px;
        display: flex;
        align-items: center;
        justify-content: center;
        gap: 8px;
        border-radius: 8px;
        font-weight: 700;
        text-decoration: none;
        font-size: 15px;
        transition: transform 0.2s;
    }

    .cta-btn:active {
        transform: scale(0.98);
    }

    .cta-call {
        background: var(--ikman-green);
        color: #fff;
    }

    .cta-chat {
        background: #fff;
        color: var(--ikman-text-main);
        border: 1px solid var(--ikman-border);
    }

    .cta-whatsapp {
        background: #25d366;
        color: #fff;
    }
    }
}