*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:-apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}

body{
    background:#f2f2f2;
}

.container{
    max-width:380px;
    margin:auto;
    padding:20px;
}

.main-card-container {
    background: white;
    border-radius: 15px;
    overflow: hidden;
    padding: 20px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.05);
}

.profile{
    background: transparent;
    margin-bottom: 25px;
}

.profile-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 15px;
}

.profile-img-container {
    position: relative;
    padding: 3px;
    border-radius: 50%;
    background: linear-gradient(45deg, #f09433 0%, #e6683c 25%, #dc2743 50%, #cc2366 75%, #bc1888 100%);
    display: flex;
    align-items: center;
    justify-content: center;
}

.profile-img{
    width: 85px;
    height: 85px;
    border-radius:50%;
    object-fit:cover;
    border: 3px solid white;
}

.profile-stats {
    display: flex;
    flex: 1;
    justify-content: space-around;
    margin-left: 15px;
    text-align: center;
}

.stat-item {
    display: flex;
    flex-direction: column;
}

.stat-num {
    font-size: 15px;
    font-weight: bold;
    color: #262626;
}

.stat-label {
    font-size: 12px;
    color: #262626;
    margin-top: 2px;
}

.profile-bio {
    text-align: left;
    margin-bottom: 12px;
}

.profile-bio .username {
    font-size: 13px;
    font-weight: normal;
    color: #666;
}

.profile-bio .instagram-id {
    font-size: 12px;
    color: #00376b;
    margin-bottom: 4px;
}

.profile-bio .bio-text {
    font-size: 13px;
    color: #262626;
    line-height: 1.4;
}

.followed-by-container {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
    gap: 10px;
    text-align: left;
}

.followed-by-profiles {
    display: flex;
    align-items: center;
}

.followed-by-profiles img {
    width: 24px;
    height: 24px;
    border-radius: 50%;
    border: 2px solid white;
    object-fit: cover;
    margin-right: -10px;
}

.followed-by-profiles img:last-child {
    margin-right: 0;
}

.followed-by-text {
    font-size: 12px;
    color: #262626;
    line-height: 1.3;
}

.followed-by-text .bold {
    font-weight: bold;
}

.profile-actions {
    display: flex;
    gap: 8px;
    margin-bottom: 20px;
}

.btn {
    flex: 1;
    height: 35px;
    border: none;
    border-radius: 8px;
    font-weight: bold;
    font-size: 13px;
    cursor: pointer;
    background-color: #efefef;
    color: #000;
}

.btn:hover {
    background-color: #dbdbdb;
}

.highlights-container {
    display: flex;
    gap: 15px;
    overflow-x: auto;
    padding-bottom: 5px;
}

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

.highlight-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    min-width: 64px;
    cursor: pointer;
}

.highlight-img-wrapper {
    width: 60px;
    height: 60px;
    border-radius: 50%;
    border: 1px solid #dbdbdb;
    padding: 3px;
    background: #fff;
    display: flex;
    align-items: center;
    justify-content: center;
}

.highlight-img-wrapper img {
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.highlight-title {
    font-size: 11px;
    color: #262626;
    margin-top: 6px;
    text-align: center;
    max-width: 64px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.post{
    background:#ffffff;
    border-top: 1px solid #efefef;
    overflow:hidden;
    margin-bottom:20px;
    padding-top: 15px;
}

.post:first-child {
    border-top: 2px solid #262626;
}

.slider-container {
    position: relative;
    width: 100%;
    overflow: hidden;
    border-radius: 8px;
}

.slider-track {
    display: flex;
    transition: transform 0.3s ease-out;
    width: 100%;
}

.post-image{
    width: 100%;
    flex-shrink: 0;
    object-fit: cover;
    display:block;
}

.slide-btn {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.7);
    border: none;
    border-radius: 50%;
    width: 26px;
    height: 26px;
    cursor: pointer;
    font-weight: bold;
    font-size: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    z-index: 10;
}
.slide-btn.prev { left: 8px; }
.slide-btn.next { right: 8px; }
.slide-btn:disabled { display: none; }

.content{
    padding:15px 5px;
}

.icon-bar{
    display:flex;
    justify-content:flex-start;
    gap:20px;
    margin-bottom:12px;
}

.icon-group{
    display:flex;
    align-items:center;
    gap:5px;
}

.icon {
    width:20px;
    height:20px;
    object-fit:contain;
    cursor:pointer;
    transition:.2s;
}

.icon:hover{
    transform:scale(1.15);
}

.number{
    font-size:12px;
    font-weight:bold;
}

.text{
    margin:10px 0;
    line-height:1.6;
    font-size: 13px;
}

.text-id {
    font-weight: bold;
    margin-right: 6px;
}

.tag{
    color:#0070ff;
    font-size: 12px;
}

.date{
    margin-top:10px;
    color:gray;
    font-size:12px;
}

.comment-list {
    margin-top: 8px;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.comment-item {
    font-size: 13px;
    line-height: 1.4;
    animation: fadeIn 0.2s ease-in-out;
}

.comment-id {
    font-weight: bold;
    margin-right: 6px;
    color: #262626;
}

.diary-container {
    display: none;
    flex-direction: column;
    gap: 15px;
    padding-top: 15px;
    border-top: 2px solid #262626;
    animation: fadeIn 0.3s ease-in-out;
}

.diary-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 5px;
}

.diary-header h3 {
    font-size: 14px;
    color: #262626;
}

.back-btn {
    background: none;
    border: none;
    color: #0095f6;
    font-weight: bold;
    font-size: 12px;
    cursor: pointer;
}

.back-btn:hover {
    color: #00376b;
}

.diary-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.diary-card {
    background: #fdfbf7;
    border: 1px solid #eadecc;
    border-radius: 10px;
    padding: 15px;
    box-shadow: inset 0 0 4px rgba(0,0,0,0.02);
    cursor: pointer;
    transition: background-color 0.2s;
}

.diary-card:hover {
    background: #f9f5ed;
}

.diary-date {
    display: block;
    font-size: 11px;
    color: #8e8e8e;
    margin-bottom: 6px;
    font-weight: bold;
}

.diary-text {
    font-size: 13px;
    color: #333333;
    line-height: 1.6;
    word-break: break-all;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.diary-card.expanded .diary-text {
    display: block;
    overflow: visible;
    -webkit-line-clamp: unset;
    line-clamp: unset;
}

.diary-more-btn {
    background: none;
    border: none;
    color: #8e8e8e;
    font-size: 12px;
    margin-top: 6px;
    cursor: pointer;
    font-weight: bold;
    padding: 0;
}

@keyframes fadeIn {
    from { opacity: 0; transform: translateY(5px); }
    to { opacity: 1; transform: translateY(0); }
}

@media(max-width:700px){
    .container{
        padding:10px;
    }
    .main-card-container {
        border-radius: 0;
        padding: 15px;
    }
}

/* --- 구글맵 북마크 레이아웃 (화면 비율 맞춤형) --- */
.map-container {
    display: none;
    flex-direction: row;
    height: 450px;
    border-top: 2px solid #262626;
    margin-top: 15px;
    background: #fff;
    animation: fadeIn 0.3s ease-in-out;
}
#sidebar { width: 120px; background: #f8f9fa; border-right: 1px solid #ddd; padding: 10px; overflow-y: auto; }
#sidebar h2 { margin-bottom: 10px; font-size: 0.85rem; color: #333; }
.bookmark-item { background: white; padding: 8px; border-radius: 6px; margin-bottom: 8px; border: 1px solid #eee; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
.bookmark-item h3 { font-size: 0.8rem; margin-bottom: 3px; color: #007bff; }
#map { flex: 1; height: 100%; }
.info-form { padding: 5px; width: 160px; }
.info-form input, .info-form textarea { width: 100%; margin-bottom: 6px; padding: 4px; border: 1px solid #ccc; border-radius: 4px; font-size: 11px; }
.info-form button { background: #007bff; color: white; border: none; padding: 4px 8px; border-radius: 4px; cursor: pointer; width: 100%; font-size: 11px; }