.at-grid {
    display: grid;
    grid-template-columns: 1fr 280px;
    gap: var(--spacing-lg);
    margin-bottom: var(--spacing-lg);
    background: linear-gradient(180deg, rgba(255 255 255), rgb(255 255 255 / 0%), rgb(255 255 255 / 0%), rgb(255 255 255));
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
    border: 1px solid var(--color-border);
    padding: var(--spacing-md);
    border-radius: 18px;
}

.at-sidebar,
.at-main {
    position: relative;
}

.at-sidebar {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.at-seller-card {

    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    text-align: center;
}

.at-seller-title {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}
.at-seller-photo-block{
    position: relative;
    margin-left: auto;
    margin-right: auto;
    width: 80px;
    height: 80px;
}
.at-seller-photo-wrapper {
    width: 80px;
    aspect-ratio: 1;
    border-radius: 50%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    border: 2px solid var(--color-border);
}

.at-seller-photo {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.at-seller-photo-placeholder {
    width: 100%;
    height: 100%;
    background-color: #b5b5b5;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 48px;
    color: var(--text-secondary);
}

.at-seller-status, .at-seller-status2 {
    position: absolute;
    top: 2px;
    right: -49px;
    display: grid;
    grid-template-columns: 8px 1fr;
    align-items: center;
    gap: 2px;
    padding: 0px 4px;
    border-radius: 7px;
    font-size: 12px;
    font-weight: 400;
    white-space: nowrap;
}
.at-seller-status2{
    top: 23px;
    right: -51px;  
}
.at-seller-status.at-online {
    background-color: #03883a;
    color: white;
}

.at-seller-status.at-online .at-status-dot {
    width: 6px;
    height: 6px;
    background-color: white;
    border-radius: 50%;
    display: inline-block;
}

.at-seller-status.at-offline, .at-seller-status2.at-offline {
    background-color: #9ca3af;
    color: white;
}

.at-seller-status.at-offline .at-status-dot, .at-seller-status2.at-offline .at-status-dot {
    width: 6px;
    height: 6px;
    background-color: white;
    border-radius: 50%;
    display: inline-block;
}

.at-seller-name {
    width: 250px;
    font-size: var(--font-size-md);
    font-weight: 700;
    color: var(--text-primary);
    text-align: center;
    line-height: 1.4;
    filter: drop-shadow(-1px -1px 0 #fff) drop-shadow(1px -1px 0 #fff) drop-shadow(-1px 1px 0 #fff) drop-shadow(1px 1px 0 #fff) drop-shadow(2px 2px 4px rgba(255, 255, 255, 0.5));
    position: absolute;
    bottom: 0px;
    left: calc(-125px + 40px);
}
.at-seller-name a{
    color: #000000;
    text-decoration: none;
}
.at-seller-contact {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}
.btn-website, .btn-map, .user-registered-since{
    position: relative;
    display: block;
    padding: 3px 7px 3px 25px;
    border-radius: 7px;
    color: #2c2c2c;
    text-decoration: none;
    margin-left: auto;
    margin-right: auto;
    font-size: var(--font-size-sm);
}
.btn-website, .btn-map{
    cursor: pointer;
}
.btn-phone, .btn-phone2{
    position: relative;
    padding: 4px 7px;
    margin-left: auto;
    margin-right: auto;
    transition: transform .2s;
}
.btn-phone button, .btn-phone2 button{
    border: none;
    margin: 0;
}
.phone-masked, .phone-masked2{
    background: linear-gradient(110deg,var(--primary-color),var(--secondary-color));
    text-align: left;
    padding: 8px 4px 8px 31px;
    color: #ffffff;
    border-radius: 7px;
    cursor: pointer;
}
.phone-masked:hover, .phone-masked2:hover{
    background: linear-gradient(130deg, #757575, #3d3d3d);
}
.phone-masked{
    padding: 8px 4px 8px 31px;
    border-radius: 7px 0px 0px 7px;
}
.phone-masked2{
    padding: 8px 15px 8px 31px;
    border-radius: 7px;
}
.btn-phone:before, .btn-phone2:before{
    position: absolute;
    background: url('/assets/img/svg/phone.svg') no-repeat 8px 7px; 
    background-size: 18px 18px;
    content:"";
    display:block;
    width: 34px;
    height: 29px;
}
.email-msg-btn{
    width: fit-content;
    background: linear-gradient(110deg,var(--primary-color),var(--secondary-color));
    position: relative;
    display: grid;
    border: none;
    padding: 8px 34px 8px 9px;
    color: #ffffff;
    border-radius: 7px;
    cursor: pointer;
    margin: 3px auto;
}
.email-msg-btn:hover{
    background: linear-gradient(130deg, #757575, #3d3d3d);
}
.email-msg-btn::after{
    position: absolute;
    top: 6px;
    right: 10px;
    background: url('/assets/img/svg/email.svg') no-repeat 0px 0px; 
    background-size: 18px 18px;
    content:"";
    display:block;
    width: 18px;
    height: 25px;
}
.at-seller-location {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-sm);
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
    line-height: 1.4;
}

.at-seller-location i {
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 2px;
}

.at-seller-actions {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.btn-full-width {
    width: 100%;
    padding: var(--spacing-sm) var(--spacing-md);
    border: none;
    border-radius: 8px;
    font-size: var(--font-size-sm);
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-xs);
    font-family: inherit;
}

.btn-favorite {
    color: rgb(61, 61, 61);   
    background: linear-gradient(130deg, #bdbdbd, #e6e5e5);
    font-weight: 400;
}

.btn-favorite:hover {
    background: linear-gradient(110deg,var(--primary-color),var(--secondary-color));
    color: white;
}

.btn-report {
    color: rgb(61, 61, 61);   
    background: linear-gradient(130deg, #bdbdbd, #e6e5e5);
    font-weight: 400;
}

.btn-report:hover {
    background: linear-gradient(130deg, #f82626, #e62e00);
    color: rgb(255, 255, 255);
}

.at-info-box {
    background: linear-gradient(180deg, rgba(255 255 255), rgb(255 255 255 / 0%), rgb(255 255 255 / 0%), rgb(255 255 255));
    padding: var(--spacing-md);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
    border: 1px solid var(--color-border);
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    font-size: var(--font-size-sm);
}

.at-security-box{
    margin-top: 20px;
    display: grid;
    align-items: center;
    justify-content: center;
    grid-template-columns: 140px 1fr;
}
.at-security-box img{
    width: 80%;
    height: auto;
}
.at-security-box ul{
    margin-left: 20px;
}
.at-info-item {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-xs);
}

.at-info-label {
    font-size: var(--font-size-sm);
    font-weight: 400;
    color: var(--text-secondary);
    letter-spacing: 0.5px;
}

.at-info-item span:not(.at-info-label) {
    font-size: var(--font-size-md);
    color: var(--text-primary);
}

.at-other-announcements {
    background: linear-gradient(180deg, rgba(255 255 255), rgb(255 255 255 / 0%), rgb(255 255 255 / 0%), rgb(255 255 255));
    padding: var(--spacing-md);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
    border: 1px solid var(--color-border);
    margin-top: 20px;
    position: relative;
}

.at-other-title {
    font-size: var(--font-size-md);
    font-weight: 600;
    margin: 0 0 var(--spacing-md) 0;
    color: var(--text-primary);
}

.at-other-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
}

.at-other-list li {
    border-bottom: 1px solid var(--color-border);
    padding-bottom: var(--spacing-sm);
}

.at-other-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.at-other-list a {
    display: block;
    color: var(--primary-color);
    text-decoration: none;
    font-size: var(--font-size-sm);
    line-height: 1.4;
    transition: color 0.3s ease;
}

.at-other-list a:hover {
    color: #0066cc;
    text-decoration: underline;
}

.at-other-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: var(--spacing-md);
}

.at-other-item {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    text-decoration: none;
    color: inherit;
    border-radius: 8px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

.at-other-item:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 16px rgba(0, 0, 0, 0.1);
}

.at-other-image-wrapper {
    width: 100%;
    aspect-ratio: 1;
    overflow: hidden;
    border-radius: 8px;
    background-color: #f5f5f5;
}

.at-other-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.at-other-item:hover .at-other-image {
    transform: scale(1.05);
}

.at-other-title-wrapper {
    padding: 0 var(--spacing-xs);
}

.at-other-item-title {
    font-size: var(--font-size-sm);
    font-weight: 700;
    margin: 1px 5px 9px 5px;
    color: var(--text-primary);
    line-height: 1.3;
    overflow: hidden;
    text-overflow: ellipsis;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

@media (max-width: 1024px) {
    .at-other-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 640px) {
    .at-other-grid {
        grid-template-columns: 1fr;
    }
}

.at-main {
    background: linear-gradient(180deg, rgba(255 255 255), rgb(255 255 255 / 0%), rgb(255 255 255 / 0%), rgb(255 255 255));
    padding: var(--spacing-md);
    border-radius: 18px;
    box-shadow: 0 24px 60px rgba(15, 23, 42, 0.12);
    border: 1px solid var(--color-border);
}

.at-navigation {
    display: flex;
    justify-content: space-between;
    gap: var(--spacing-md);
    margin-bottom: var(--spacing-lg);
}

.at-nav-link,
.at-nav-disabled {
    padding: var(--spacing-sm) var(--spacing-md);
    border-radius: 8px;
    text-decoration: none;
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    font-size: var(--font-size-sm);
    font-weight: 600;
    transition: all 0.3s ease;
}

.at-nav-link {
    background-color: var(--primary-color);
    color: white;
    cursor: pointer;
}

.at-nav-link:hover {
    background: linear-gradient(130deg, #087027, #0da53b);
    transform: translateX(2px);
}

.at-nav-prev:hover {
    transform: translateX(-2px);
}

.at-nav-disabled {
    background-color: var(--bg-secondary);
    color: var(--text-secondary);
    cursor: not-allowed;
}

.at-content-wrapper {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: var(--spacing-lg);
}

.at-gallery-column {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.at-gallery-main {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 12px;
    overflow: hidden;
    background-color: var(--bg-secondary);
    display: flex;
    align-items: center;
    justify-content: center;
}

.at-gallery-main.at-no-image {
    background-color: #f0f0f0;
}

.at-main-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
    cursor: pointer;
    transition: transform 0.3s ease;
}

.at-main-image:hover {
    transform: scale(1.02);
}

.at-no-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: var(--spacing-md);
    color: #999;
    font-size: 48px;
    text-align: center;
}

.at-no-image-placeholder p {
    margin: 0;
    font-size: var(--font-size-md);
    color: var(--text-secondary);
}

.at-gallery-thumbnails {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(80px, 1fr));
    gap: var(--spacing-sm);
}

.at-thumbnail {
    width: 100%;
    aspect-ratio: 1;
    border-radius: 8px;
    overflow: hidden;
    cursor: pointer;
    border: 2px solid transparent;
    transition: all 0.3s ease;
    object-fit: cover;
}

.at-thumbnail:hover {
    border-color: var(--primary-color);
    transform: scale(1.05);
}

.at-thumbnail.active {
    border-color: var(--primary-color);
    box-shadow: 0 0 0 2px white, 0 0 0 4px var(--primary-color);
}

.announcement-favorite-btn {
    position: absolute;
    top: -12px;
    right: 9px;
}

.at-details-column {
    position: relative;
    display: flex;
    flex-direction: column;
    gap: 0;
}

.at-title {
    font-size: var(--font-size-xl);
    font-weight: 700;
    margin: 0 40px 0 0;
    color: var(--text-primary);
    line-height: 1.3;
}

.at-details {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    border-radius: 12px;
}

.at-detail-row {
    display: grid;
    grid-template-columns: 120px 1fr;
    gap: var(--spacing-md);
    align-items: center;
}

.at-detail-label {
    font-weight: 600;
    color: var(--text-secondary);
    font-size: var(--font-size-sm);
}

.at-detail-value {
    color: var(--text-primary);
    font-size: var(--font-size-md);
}

.at-category-link {
    color: #464646;
    text-decoration: none;
    transition: color 0.3s ease;
}

.at-category-link:hover {
    color: #444444;
    text-decoration: underline;
}

.at-price-section {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-sm);
    padding-top: var(--spacing-md);
    border-top: 1px solid var(--color-border);
}

.at-price-value {
    display: flex;
    align-items: baseline;
    gap: var(--spacing-sm);
}

.at-price-amount {
    font-size: 28px;
    font-weight: 700;
    color: var(--primary-color);
}

.at-price-unit {
    font-size: var(--font-size-sm);
    color: var(--text-secondary);
}

.at-price-negotiable {
    display: flex;
    align-items: center;
    gap: var(--spacing-xs);
    color: #28a745;
    font-size: var(--font-size-sm);
    font-weight: 600;
}

.at-description {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
}

.at-description h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.at-description-text {
    color: var(--text-secondary);
    line-height: 1.6;
    white-space: pre-wrap;
    word-break: break-word;
}

.at-location-info {
    display: flex;
    flex-direction: column;
    gap: var(--spacing-md);
    padding: var(--spacing-md);
    background-color: var(--bg-secondary);
    border-radius: 12px;
}

.at-location-info h3 {
    font-size: var(--font-size-lg);
    font-weight: 600;
    margin: 0;
    color: var(--text-primary);
}

.at-location-details {
    display: flex;
    align-items: flex-start;
    gap: var(--spacing-md);
    color: var(--text-secondary);
    font-size: var(--font-size-md);
    line-height: 1.6;
}

.at-location-details i {
    color: var(--primary-color);
    flex-shrink: 0;
    margin-top: 2px;
}

.at-lightbox {
    display: none;
    position: fixed;
    z-index: 9999;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.95);
    overflow: hidden;
}

.at-lightbox-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    max-width: 90%;
    max-height: 90%;
    object-fit: contain;
    animation: lightboxZoom 0.3s;
}

@keyframes lightboxZoom {
    from { transform: translate(-50%, -50%) scale(0.8); opacity: 0; }
    to { transform: translate(-50%, -50%) scale(1); opacity: 1; }
}

.at-lightbox-close {
    position: absolute;
    top: 20px;
    right: 35px;
    color: #fff;
    font-size: 40px;
    font-weight: 700;
    cursor: pointer;
    z-index: 10000;
    transition: 0.3s;
}

.at-lightbox-close:hover,
.at-lightbox-close:focus {
    color: #bbb;
}

.at-lightbox-prev,
.at-lightbox-next {
    cursor: pointer;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: auto;
    padding: 16px;
    color: white;
    font-weight: 700;
    font-size: 30px;
    transition: 0.3s;
    user-select: none;
    z-index: 10000;
    background-color: rgba(0, 0, 0, 0.5);
    border-radius: 3px;
}

.at-lightbox-prev {
    left: 20px;
}

.at-lightbox-next {
    right: 20px;
}

.at-lightbox-prev:hover,
.at-lightbox-next:hover {
    background-color: rgba(0, 0, 0, 0.8);
}

.at-lightbox-caption {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    color: #fff;
    text-align: center;
    padding: 10px 20px;
    background-color: rgba(0, 0, 0, 0.7);
    border-radius: 5px;
    font-size: 16px;
}

.toast-notification {
    position: fixed;
    bottom: 20px;
    right: 20px;
    background-color: var(--primary-color);
    color: white;
    padding: 15px 20px;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
    z-index: 10000;
    display: flex;
    align-items: center;
    gap: 10px;
    animation: slideIn 0.3s ease-out;
    font-size: 15px;
}

.toast-notification.hiding {
    animation: slideOut 0.3s ease-out forwards;
}

.toast-notification i {
    font-size: 18px;
}

.at-languages>span, .at-languages>img{
    line-height: 21px;
}
.flag{
    width: 21px;
    height: 21px;
}
.at-detail-timeago span{
    display: block;
    padding: 0px 2px 2px 18px;
    color: #666666;
    font-size: 0.7rem;
}
@keyframes slideIn {
    from {
        transform: translateX(400px);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

@keyframes slideOut {
    from {
        transform: translateX(0);
        opacity: 1;
    }
    to {
        transform: translateX(400px);
        opacity: 0;
    }
}

@media (max-width: 1200px) {
    .at-content-wrapper {
        grid-template-columns: 1fr;
    }

    .at-gallery-main {
        max-height: 500px;
    }
}

@media (max-width: 768px) {
    .at-grid {
        grid-template-columns: 1fr;
    }

    .at-sidebar {
        order: 2;
    }

    .at-main {
        order: 1;
    }

    .at-content-wrapper {
        grid-template-columns: 1fr;
    }

    .at-detail-row {
        grid-template-columns: 100px 1fr;
        font-size: var(--font-size-sm);
    }

    .at-detail-label {
        font-size: var(--font-size-xs);
    }

    .at-title {
        font-size: var(--font-size-lg);
    }

    .at-price-amount {
        font-size: 24px;
    }

    .at-gallery-thumbnails {
        grid-template-columns: repeat(auto-fill, minmax(60px, 1fr));
    }

    .at-thumbnail {
        min-width: 60px;
    }

    .at-lightbox-content {
        max-width: 95%;
        max-height: 85%;
    }

    .at-lightbox-close {
        top: 10px;
        right: 15px;
        font-size: 30px;
    }

    .at-lightbox-prev,
    .at-lightbox-next {
        padding: 10px;
        font-size: 20px;
    }

    .at-lightbox-prev {
        left: 10px;
    }

    .at-lightbox-next {
        right: 10px;
    }

    .at-lightbox-caption {
        font-size: 14px;
        bottom: 10px;
        padding: 8px 15px;
    }

    .toast-notification {
        bottom: 10px;
        right: 10px;
        left: 10px;
        font-size: 14px;
    }

    .at-gallery-main {
        aspect-ratio: 4 / 3;
    }
    .at-nav-link,
    .at-nav-disabled {
        width: 100%;
        justify-content: center;
    }
}

@media (max-width: 480px) {
    .at-detail-row {
        grid-template-columns: 1fr;
        gap: var(--spacing-xs);
    }

    .at-details {
        padding: var(--spacing-sm);
        gap: var(--spacing-sm);
    }

    .at-title {
        font-size: var(--font-size-md);
    }

    .at-price-amount {
        font-size: 20px;
    }

    .at-seller-photo-wrapper {
        aspect-ratio: 1;
    }

    .at-gallery-thumbnails {
        grid-template-columns: repeat(4, 1fr);
    }

    .at-location-details {
        flex-direction: column;
    }
}

.map-modal {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    display: none;
    z-index: 9999;
    align-items: center;
    justify-content: center;
}

.map-modal.active {
    display: flex;
}

.map-modal-content {
    position: relative;
    width: 95%;
    height: 95%;
    max-width: 1200px;
    background: white;
    overflow: hidden;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.3);
    border-radius: 12px;
}

.map-modal-close {
    position: absolute;
    top: 16px;
    right: 16px;
    width: 40px;
    height: 40px;
    background: white;
    border: none;
    font-size: 32px;
    cursor: pointer;
    z-index: 10001;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
    transition: background 0.2s;
    padding: 0;
    line-height: 1;
}

.map-modal-close:hover {
    background: #f0f0f0;
}

#map-container {
    width: 100%;
    height: 100%;
}

.at-other-slider-wrapper {
    position: relative;
    overflow: hidden;
}

.at-other-slider {
    display: flex;
    transition: transform 0.5s ease-in-out;
}

.at-other-slider .at-other-item {
    flex: 0 0 25%;
    box-sizing: border-box;
    padding: 0 10px;
}

.at-other-slider .at-other-image-wrapper {
    position: relative;
    width: 100%;
    padding-top: 75%; /* Aspect Ratio 4:3 */
    overflow: hidden;
}

.at-other-slider .at-other-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.slider-arrow {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background-color: rgba(0,0,0,0.5);
    color: white;
    border: none;
    padding: 7px 10px 5px 10px;
    cursor: pointer;
    z-index: 10;
}

.slider-arrow.prev {
    left: 10px;
}

.slider-arrow.next {
    right: 10px;
}

@media (max-width: 1200px) {
    .at-other-slider .at-other-item {
        flex-basis: 33.33%;
    }
}

@media (max-width: 992px) {
    .at-other-slider .at-other-item {
        flex-basis: 50%;
    }
}

@media (max-width: 768px) {
    .at-other-slider .at-other-item {
        flex-basis: 50%;
    }
}
