body {
    margin: 0;
    padding: 0;
    font-family: sans-serif;
    background: #f3f3f3;
    color: #333;
}

.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 20px;
    background: #fff;
    border-radius: 10px;
    box-shadow: 0 0 10px rgba(0,0,0,0.05);
}

.profile {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.swiper-horizontal>.swiper-pagination-bullets .swiper-pagination-bullet, .swiper-pagination-horizontal.swiper-pagination-bullets .swiper-pagination-bullet {
    border: 2px solid white;
    box-sizing: content-box;
}

.swiper-button-next, .swiper-button-prev {
    top: 30px !important;
    background: rgba(255, 255, 255, .5);
    padding: 5px !important;
    box-sizing: content-box;
}

#au2 {
    display: none;
}

@media (min-width: 600px) {
    .profile {
        flex-direction: row;
        align-items: flex-start;
    }
}

.avatar {
    width: 136px;
    height: 136px;
    border-radius: 50%;
    object-fit: cover;
    border: 4px solid #e1306c;
}

.info {
    flex: 1;
}

.username {
    font-size: 20px;
    font-weight: bold;
    display: flex;
    align-items: center;
    gap: 10px;
}

.follow-btn {
    width: 28px;
    height: 28px;
    border: 1px solid #ccc;
    border-radius: 5px;
    background: #fff;
    cursor: pointer;
}

.stats {
    margin-top: 10px;
    display: flex;
    gap: 20px;
    font-size: 14px;
}

.bio {
    margin-top: 10px;
    font-size: 14px;
}

.grid {
    margin-top: 30px;
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
    gap: 10px;
}

.grid img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    border-radius: 5px;
    background: #ddd;
}

.social_icons {
    width: 24px;
    height: 24px;
    margin-right: 4px;
    float: left;
}

.map-btn {
    cursor: pointer;
}


.highlights-wrapper {
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
    cursor: grab;
    margin-top: 30px;
}

.highlights {
    display: inline-flex;
    gap: 20px;
    padding-bottom: 10px;
}

.highlight {
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    width: 80px;
    flex-shrink: 0;
}

.highlight .circle {
    width: 70px;
    height: 70px;
    border-radius: 50%;
    border: 2px solid #d6249f;
    background-size: cover;
    background-position: center;
    margin-bottom: 8px;
}

.highlight span {
    font-size: 11px;
    text-align: center;
    color: #333;
    white-space: normal;
    user-select: none;
}

.highlights-wrapper::-webkit-scrollbar {
    display: none;
}

.highlights-wrapper {
    -ms-overflow-style: none;
    scrollbar-width: none;
}


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

.map-popup {
    background: #fff;
    padding: 20px;
    max-width: 90%;
    width: 600px;
    border-radius: 12px;
    position: relative;
    box-shadow: 0 10px 25px rgba(0,0,0,0.3);
}

.close-btn {
    position: absolute;
    top: 8px;
    right: 12px;
    background: transparent;
    border: none;
    font-size: 24px;
    cursor: pointer;
}

.footer {
    font-size: 14px;
    margin-top: 30px;
    padding-top: 10px;
    border-top: 1px solid #dddddd;
    font-size: 12px;
}

.footer span {
    float: right;
}

.footer span a {
    text-decoration: underline;
}

.footer span a:hover {
    text-decoration: none;
}


.insta-section {
    padding: 30px 0 0 0;
}

.insta-grid {
    display: grid;
    gap: 20px;
    max-width: 1200px;
    margin: 0 auto;
    grid-template-columns: repeat(5, 1fr);
}

.insta-post {
    background: #fff;
    /*border-radius: 12px;*/
    overflow: hidden;
    box-shadow: 0 4px 12px rgba(0,0,0,0.25);
    text-align: center;
    transition: transform 0.3s ease;
    position: relative;
}

.insta-post:hover {
    box-shadow: 0 0 20px #444444;
    transform: translateY(-10px);
}

.items_count {
    position: absolute;
    background-color: rgba(225,48,108,.8);
    color: white;
    display: block;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    right: 10px;
    top: 10px;
    line-height: 36px;
    font-weight: bold;
}

/*.insta-post:hover .img-wrap {*/
/*    transform: rotate3d(1,1,1,360deg);*/
/*    transition: 0.5s;*/
/*}*/

.img-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 1 / 1; /* Keeps square */
    overflow: hidden;
}

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

.post-title {
    padding: 0;
    font-size: 0.8rem;
    font-weight: normal;
    color: #333;
}


@media (max-width: 1000px) {
    .insta-grid {
        grid-template-columns: repeat(4, 1fr);
    }
}
@media (max-width: 991px) {
    .insta-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}
@media (max-width: 768px) {
    .insta-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}
@media (max-width: 600px) {
    .insta-grid {
        grid-template-columns: 1fr;
    }
}


@media(max-width: 991px){
    .container {
        margin: 0 auto;
        padding: 20px 0;
        border-radius: 0;
        box-shadow: none;
    }
    .profile {
        /*display: block;*/
        padding: 0 10px;
    }
    .stats {
        gap: 8px;
    }
    .stats span {
        font-size: 12px;
    }
    .footer {
        text-align: center;
    }
    .footer span {
        float: none;
        display: block;
    }
}
