.ad-gallery {
    float: left;
    width: 100%;
    max-width: 952px;
    margin-bottom: 12px;
    box-sizing: border-box;
}

.ad-gallery-stage {
    position: relative;
    width: 100%;
    min-height: 420px;
    border: 1px solid #ddd;
    background: #f8f8f8;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
}

.ad-gallery-main-img {
    display: block;
    max-width: 100%;
    max-height: 720px;
    margin: auto;
    cursor: zoom-in;
    object-fit: contain;
}

.ad-gallery-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 44px;
    height: 64px;
    border: none;
    background: rgba(0, 0, 0, 0.45);
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    z-index: 3;
}

.ad-gallery-nav:hover {
    background: rgba(0, 180, 204, 0.9);
}

.ad-gallery-prev { left: 8px; }
.ad-gallery-next { right: 8px; }

.ad-gallery-counter {
    position: absolute;
    right: 12px;
    bottom: 12px;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    padding: 4px 10px;
    border-radius: 12px;
    font-size: 13px;
    z-index: 3;
}

.ad-gallery-zoom-btn {
    position: absolute;
    left: 12px;
    bottom: 12px;
    background: #00B4CC;
    color: #fff;
    border: none;
    padding: 6px 14px;
    border-radius: 3px;
    cursor: pointer;
    font-size: 13px;
    z-index: 3;
}

.ad-gallery-zoom-btn:hover {
    background: #3498DB;
}

.ad-gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 10px;
    padding: 4px 0;
}

.ad-gallery-thumb {
    width: 86px;
    height: 64px;
    padding: 0;
    border: 2px solid #ddd;
    background: #fff;
    cursor: pointer;
    overflow: hidden;
}

.ad-gallery-thumb.is-active {
    border-color: #00B4CC;
}

.ad-gallery-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ad-gallery-zoom-layer {
    display: none;
    position: fixed;
    inset: 0;
    z-index: 10000050;
    background: rgba(0, 0, 0, 0.92);
    overflow: hidden;
}

.ad-gallery-zoom-layer.is-open {
    display: block;
}

body.ad-gallery-zoom-active {
    overflow: hidden;
}

.ad-gallery-zoom-layer .ad-gallery-zoom-viewport,
.ad-gallery-zoom-layer #slideshow {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
    z-index: 1;
}

.ad-gallery-zoom-layer #slideshow img,
.ad-gallery-zoom-layer #myimage {
    position: relative;
    top: auto;
    bottom: auto;
    left: auto;
    right: auto;
    max-width: 96vw;
    max-height: 92vh;
    width: auto;
    height: auto;
    object-fit: contain;
    transform-origin: center center;
    user-select: none;
    -webkit-user-drag: none;
    touch-action: none;
}

.ad-gallery-zoom-controls {
    position: fixed;
    left: 16px;
    bottom: 24px;
    z-index: 10000005;
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.ad-gallery-zoom-control {
    width: 52px;
    height: 52px;
    border: 2px solid #fff;
    border-radius: 50%;
    background: rgba(0, 0, 0, 0.55);
    color: #fff;
    font-size: 28px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.ad-gallery-zoom-control:hover {
    background: rgba(0, 180, 204, 0.95);
    border-color: #fff;
}

.ad-gallery-zoom-close {
    position: fixed;
    top: 16px;
    right: 16px;
    z-index: 10000055;
    width: 48px;
    height: 48px;
    border: none;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.15);
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.ad-gallery-zoom-close:hover {
    background: rgba(0, 180, 204, 0.9);
}

.ad-gallery-zoom-nav {
    position: fixed;
    top: 50%;
    transform: translateY(-50%);
    z-index: 10000055;
    width: 52px;
    height: 72px;
    border: none;
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
    font-size: 36px;
    line-height: 1;
    cursor: pointer;
    padding: 0;
}

.ad-gallery-zoom-nav:hover {
    background: rgba(0, 180, 204, 0.9);
}

.ad-gallery-zoom-prev { left: 12px; }
.ad-gallery-zoom-next { right: 12px; }

.ad-gallery-zoom-counter {
    position: fixed;
    top: 24px;
    left: 50%;
    transform: translateX(-50%);
    z-index: 10000055;
    background: rgba(0, 0, 0, 0.5);
    color: #fff;
    padding: 6px 14px;
    border-radius: 16px;
    font-size: 14px;
}

.ad-detail-header-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
    min-height: 50px;
}

.ad-detail-header-top #smi_social {
    flex: 1;
}

.ad-detail-header-actions {
    flex-shrink: 0;
    margin-top: 14px;
}

.ad-detail-header-actions #ad-watchlist-bar {
    position: static;
    width: auto;
    margin: 0;
    padding: 0;
}

.ad-detail-header-actions .watchlist-toggle-btn {
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 4px;
    padding: 8px 12px;
    font-size: 13px;
    font-weight: 600;
    text-transform: none;
}

.ad-detail-header-actions .watchlist-toggle-btn.is-watched {
    background: #fff5eb;
    border-color: #e67e22;
    color: #d07120;
}

.ad-contact-card {
    margin: 16px 0;
    padding: 16px 18px;
    border: 1px solid #ddd;
    background: #f8f8f8;
    border-radius: 4px;
    clear: both;
}

.ad-contact-card h3 {
    margin: 0 0 12px;
    font-size: 18px;
    color: #333;
}

.ad-contact-card .ad-contact-note {
    margin: 0 0 12px;
    color: #666;
    font-size: 14px;
    line-height: 1.5;
}

.ad-contact-list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.ad-contact-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 8px 0;
    border-bottom: 1px solid #e8e8e8;
    font-size: 15px;
}

.ad-contact-list li:last-child {
    border-bottom: none;
}

.ad-contact-list .ad-contact-label {
    min-width: 90px;
    color: #777;
    font-weight: 600;
}

.ad-contact-list a {
    color: #00B4CC;
    word-break: break-all;
}

.ad-contact-login-prompt {
    margin: 0;
    font-size: 15px;
}

.ad-comments-wrap {
    background: #fff;
    padding-bottom: 20px;
}

.ad-comments-wrap .comment-header-box-text {
    font-size: 19px;
}