body {
    font-family: "Poppins", Arial, sans-serif;
    background: #f3f6fa;
    color: #333;
    margin: 0;
}
.container {
    max-width: 1150px;
    margin: 30px auto;
    padding: 0 15px;
}
.container1{max-width:1200px; margin:20px auto; padding:0 10px;}
.header-bar {
    background: #fff;
    padding: 18px 25px;
    border-radius: 12px;
    box-shadow: 0 3px 12px rgba(0,0,0,0.06);
    display: flex;
    justify-content: space-between;
    align-items: center;
}
.header-bar h1 { margin: 0; color: #2d8cff; font-size: 1.6em; }
.nav-links a { margin-left: 14px; color: #555; text-decoration: none; font-weight: 500; }
.nav-links a:hover { color: #2d8cff; }
.header{display:flex; justify-content:space-between; align-items:center; background:#fff; padding:15px 20px; border-radius:8px; box-shadow:0 4px 12px rgba(0,0,0,0.05); margin-bottom:20px;}
.header h1{margin:0; font-size:1.8em;}
.header div a, .header div span{margin-left:10px; color:#555; text-decoration:none;}
.header div a:hover{color:#2d8cff;}
/* Layout */
.announcement-wrapper {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    margin-top: 25px;
}
.left-side {
    flex: 2;
    background: #fff;
	margin-bottom: 20px;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
    padding: 20px;
}
.left-side-new {
    flex: 2;
    /* background: #efefef; */
    margin-bottom: 20px;
    border-radius: 8px;
    /* box-shadow: inset -15px -17px 20px 0px var(--card); */
    padding: 20px;
    border-top: 1px solid #333;
    border-bottom: 1px solid #333;
}
.right-side {
    flex: 1;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 14px rgba(0,0,0,0.05);
    padding: 20px;
    height: fit-content;
}

/* Image gallery */
.main-image {
    width: 100%;
    height: 40%;
    border-radius: 40px;
    object-fit: cover;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    cursor: pointer;
}
.thumbnail-row {
    margin-top: 12px;
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
}
.thumbnail-row img {
    width: 80px;
    height: 80px;
    object-fit: cover;
    border-radius: 6px;
    cursor: pointer;
    border: 2px solid transparent;
    transition: .2s;
}
.thumbnail-row img:hover {
    border-color: #2d8cff;
}

/* Description */
.announcement-details {
    margin-top: 20px;
	 
}
.announcement-details h2 {
    margin-bottom: 10px;
    color: #2d8cff;
}
.announcement-details p {
    line-height: 1.6;
    color: #444;
}

/* Sidebar */
.seller-info h3 {
    margin-top: 0;
    color: #2d8cff;
}
.seller-info p { margin: 6px 0; color: #555; }
.contact-btn {
    display: inline-block;
    margin-top: 10px;
    background: #2d8cff;
    color: #fff;
    padding: 10px 18px;
    border-radius: 8px;
    text-decoration: none;
    cursor: pointer;
}
.contact-btn:hover { opacity: 0.9; }

/* Contact form */
.contact-seller {
    margin-top: 15px;
}
.contact-seller textarea {
    width: 100%;
    height: 80px;
    border: 1px solid #ccd7e0;
    border-radius: 8px;
    padding: 10px;
    resize: none;
}
.contact-seller button {
    background: #2d8cff;
    color: #fff;
    border: none;
    border-radius: 8px;
    padding: 10px 14px;
    margin-top: 8px;
    cursor: pointer;
}
.contact-seller button:hover { opacity: 0.9; }

/* Similar announcements */
.similar-section {
    margin-top: 40px;
    background: #fff;
    padding: 20px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}
.similar-section h3 {
    color: #2d8cff;
    margin-bottom: 15px;
}
.similar-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 15px;
}
.similar-card {
    background: #f9fbff;
    border-radius: 10px;
    flex: 1 1 calc(25% - 15px);
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    text-decoration: none;
    color: #222;
    overflow: hidden;
    transition: .2s;
}
.similar-card:hover { transform: translateY(-3px); }
.similar-card img {
    width: 100%;
    height: 130px;
    object-fit: cover;
}
.similar-card .content {
    padding: 10px;
}
.similar-card .title {
    font-weight: 600;
    font-size: 15px;
    margin-bottom: 4px;
}
.similar-card .price {
    color: #2d8cff;
    font-weight: 500;
}

/* Lightbox (big mirror view) */
.lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,.85);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 99999;
}

.lightbox-img {
    max-width: 90vw;
    max-height: 80vh;
    display: block;
    border-radius: 10px;
    transition: transform 0.25s ease;
}

.close {
    position: absolute;
    top: 20px;
    right: 40px;
    font-size: 50px;
    color: white;
    cursor: pointer;
    font-weight: bold;
    z-index: 100001;
}


.arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.4);
    width: 60px;
    height: 60px;
    border-radius: 50%;
    display: flex;
    justify-content: center;
    align-items: center;
    color: white;
    font-size: 50px;
    cursor: pointer;
    transition: background 0.3s, transform 0.2s;
    z-index: 100001;
}

.arrow:hover {
    background: rgba(0,0,0,0.7);
    transform: translateY(-50%) scale(1.1);
}

.arrow-left { left: 20px; }
.arrow-right { right: 20px; }
@media (max-width: 850px) {
    .announcement-wrapper { flex-direction: column; }
    .similar-card { flex: 1 1 100%; }
    .main-image { height: 250px; }
}
.other-user-section {
    margin-top: 30px;
    background: #f9fbff;
    padding: 15px;
    border-radius: 12px;
    box-shadow: 0 3px 10px rgba(0,0,0,0.05);
}

.other-user-section h4 {
    color: #2d8cff;
    margin-bottom: 12px;
}

.other-user-card {
    display: flex;
    gap: 10px;
    margin-bottom: 12px;
    padding: 8px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: transform 0.2s, box-shadow 0.2s;
    text-decoration: none;
    color: #222;
}

.other-user-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.1);
}

.other-user-card img {
    width: 60px;
    height: 60px;
    object-fit: cover;
    border-radius: 6px;
}

.other-user-card .info {
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.other-user-card .info .title {
    font-weight: 600;
    font-size: 14px;
    margin-bottom: 3px;
}

.other-user-card .info .price {
    color: #2d8cff;
    font-weight: 500;
    font-size: 13px;
}

.vehicle-info-box {
    background: rgba(255,255,255,0.07);
    padding: 15px 18px;
    border-radius: 8px;
    border: 1px solid rgba(255,255,255,0.15);
    margin: 20px 0;
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px 20px;
}

.vehicle-info-box .info-item {
    display: flex;
    align-items: center;
    gap: 10px;
    color: #eee;
    font-size: 15px;
}

.vehicle-info-box .info-item i {
    font-size: 17px;
    color: #00aaff;
}
#image-viewer {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0,0,0,0.8);
    display: none;
    justify-content: center;
    align-items: center;
    z-index: 9999;
    cursor: pointer;
}

#image-viewer.show {
    display: flex;
}

#image-viewer img {
    max-width: 90%;
    max-height: 90%;
    border-radius: 6px;
    pointer-events: none;
}

.left-side h2 {
    margin-bottom: 10px;
    color: #070707;
	   

}
.lightbox-main-wrapper {
    position: relative;
    display: inline-block;
}



.lightbox-thumbnails {
    position: absolute;
    bottom: 8px;
    left: 50%;
    transform: translateX(-50%);
    display: flex;
    overflow-x: auto;
    padding: 4px 0;
    background: rgba(0,0,0,0.3);
    border-radius: 0 0 10px 10px;
}

.lightbox-thumbnails img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    margin: 0 2px;
    border-radius: 6px;
    cursor: pointer;
    opacity: 100;
    border: 2px solid transparent;
    transition: opacity 0.2s, border 0.2s;
}

.lightbox-thumbnails img.active {
    opacity: 1;
    border: 2px solid #0366d6;
}
.edit-btn {
    background: #2d8cff;
    color: #fff;
    display: block;
    text-align: center;
    width: 250px;
    padding: 9px 49px;
    border-radius: 15px;
    text-decoration: none;
	margin: 12px auto;
}
ul {
    list-style: none;
    padding-left: 0;
    margin-left: 0;
}
.parts-list {
    list-style: none;
    padding-left: 0;
}
.parts-list li {
    margin-bottom: 5px;
}
ul li::marker {
    content: "";
}
ul li {
    list-style-type: none !important;
}
.parts-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr); /* 2 columns */
    gap: 10px;                             /* space between boxes */
    margin-top: 8px;
}

.part-box {
    border: 1px solid #ccc;
    border-radius: 6px;
    padding: 6px 10px;
    display: flex;
    justify-content: space-between;        /* text left, icon right */
    align-items: center;
    background-color: #f9f9f9;
    font-size: 14px;
}

.part-box i {
    font-size: 16px;
    color: #555;
}
.tooltip-icon {
    display: inline-block;
    position: relative;
    cursor: pointer;
    margin-left: 5px;
    background-color: #007bff;
    color: #fff;
    font-weight: bold;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    text-align: center;
    line-height: 18px;
    font-size: 12px;
}

.tooltip-text {
    visibility: hidden;
    width: 200px;
    background-color: #333;
    color: #fff;
    text-align: left;
    padding: 5px 8px;
    border-radius: 4px;
    position: absolute;
    z-index: 10;
    bottom: 125%;
    left: 50%;
    transform: translateX(-50%);
    font-size: 12px;
    white-space: normal;
}

.tooltip-icon:hover .tooltip-text {
    visibility: visible;
}

/* Arrow */
.tooltip-text::after {
    content: '';
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%);
    border-width: 5px;
    border-style: solid;
    border-color: #333 transparent transparent transparent;
}
