 body { font-family: 'Sarabun', sans-serif; overflow: hidden; height: 100vh; display: flex; flex-direction: column; background: #f8f9fa; }
        .navbar { z-index: 1030; box-shadow: 0 2px 4px rgba(0,0,0,0.05); }
        .nav-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }
        .user-menu-btn { display: flex; align-items: center; gap: 8px; border: 1px solid #ddd; background: #fff; padding: 5px 12px; border-radius: 30px; }
        .container-custom { padding: 0 20px; }
        .logo-wrapper { display: flex; align-items: center; gap: 10px; text-decoration: none; }
        .logo-img { height: 35px; }
        .logo-text { font-weight: bold; color: #333; text-transform: uppercase; font-size: 1.1rem; }
        
        /* Layout CSS */
        .split-container { display: flex; flex: 1; height: calc(100vh - 75px); position: relative; overflow: hidden; }
        .left-content-side { width: 45%; height: 100%; overflow-y: auto; padding: 20px; background: #fff; transition: width 0.4s ease, cubic-bezier(0.25, 0.8, 0.25, 1); z-index: 10; box-shadow: 2px 0 10px rgba(0,0,0,0.05); }
        .right-map-side { width: 55%; height: 100%; position: relative; transition: width 0.4s ease, cubic-bezier(0.25, 0.8, 0.25, 1); }
        #map { width: 100%; height: 100%; background: #e5e3df; }

        /* Responsive Layout มือถือ */
        @media (max-width: 768px) {
            .split-container { flex-direction: column; }
            .left-content-side { width: 100% !important; height: 60%; order: 3; padding: 15px; transition: height 0.4s ease; }
            .right-map-side { width: 100% !important; height: 40%; order: 1; transition: height 0.4s ease; }
        }

        #toggle-map-size-btn { position: absolute; top: 10px; right: 10px; z-index: 1000; background: #fff; border: none; padding: 8px 12px; border-radius: 8px; box-shadow: 0 2px 6px rgba(0,0,0,0.2); font-weight: bold; }
        .card-link { text-decoration: none; color: inherit; display: block; }
        .card-link:hover .fw-bold { color: #0d6efd !important; }
        
        /* Image Container & Clickable Effect */
        .img-container { position: relative; border-radius: 12px; overflow: hidden; cursor: pointer; }
        .img-container:hover .place-img { transform: scale(1.03); }
        .place-img { width:100%; aspect-ratio:1/1; object-fit:cover; transition: transform 0.2s ease; }
        
        .province-badge { position: absolute; top: 10px; left: 10px; background: rgba(0,0,0,0.6); color: #fff; padding: 3px 10px; border-radius: 20px; font-size: 0.75rem; text-decoration: none; z-index: 2; }
        .price-badge { position: absolute; bottom: 10px; left: 10px; background: #ff385c; color: #fff; padding: 4px 10px; border-radius: 6px; font-size: 0.85rem; font-weight: bold; z-index: 2; }
        .save-btn { position: absolute; top: 10px; right: 10px; background: #fff; border: none; width: 32px; height: 32px; border-radius: 50%; display: flex; align-items: center; justify-content: center; box-shadow: 0 2px 4px rgba(0,0,0,0.15); z-index: 2; }
        
        /* Custom Price Tag บนแผนที่ */
        
        .price-marker {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    background: #ff385c;
    color: white;
    padding: 4px 12px; /* เพิ่มพื้นที่ซ้ายขวา */
    border-radius: 999px; /* วงรีสมบูรณ์แบบ */
    font-weight: bold;
    font-size: 12px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    border: 1px solid #fff;
    white-space: nowrap;
    
    /* ช่วยให้ควบคุมขนาดพื้นที่บนหมุดแผนที่ได้เสถียรขึ้น */
    box-sizing: border-box; 
}
        
        /* Popup ในแผนที่ */
        .map-popup-card { width: 180px; }
        .map-popup-img { width: 100%; height: 110px; object-fit: cover; border-radius: 6px; margin-bottom: 5px; }
        .map-popup-title { font-weight: bold; font-size: 0.9rem; margin-bottom: 4px; display: block; text-decoration: none; color: #333; }
	
/* คอนเทนเนอร์หลักของหมุดโปรไฟล์ */
.profile-marker-container {
    position: relative;
    width: 34px;
    height: 34px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* ตกแต่งรูปภาพโปรไฟล์ให้เป็นวงกลม */
.profile-marker-img {
    width: 32px !important;
    height: 32px !important;
    border-radius: 50% !important;
    border: 2px solid #ffffff !important;
    box-shadow: 0 2px 5px rgba(0,0,0,0.3);
    object-fit: cover;
    position: relative;
    z-index: 2;
}

/* วงแหวนแอนิเมชันกระพริบด้านหลังรูป */
.profile-pulse-ring {
    position: absolute;
    width: 34px;
    height: 34px;
    background-color: rgba(0, 123, 255, 0.4);
    border: 1px solid #007bff;
    border-radius: 50%;
    z-index: 1;
    animation: profile-pulsate 1.8s ease-out infinite;
}

@keyframes profile-pulsate {
    0% {
        transform: scale(0.6);
        opacity: 1;
    }
    70% {
        transform: scale(1.5);
        opacity: 0.2;
    }
    100% {
        transform: scale(1.8);
        opacity: 0;
    }
}

/* ล้างพื้นหลังค่าเริ่มต้นของ Leaflet divIcon */
.custom-user-marker {
    background: transparent !important;
    border: none !important;
}


	/* ปรับปุ่มเมนูให้โค้งมน */
.user-menu-btn {
    border-radius: 12px; /* หรือใช้ 20px / 50px เพื่อความโค้งมนที่มากขึ้น */
    display: inline-flex;
    align-items: center;
    gap: 10px; /* เพิ่มระยะห่างระหว่างไอคอนกับรูป */
    padding: 6px 12px; /* จัดช่องไฟให้สวยงาม */
    border: 1px solid #e0e0e0; /* เผื่ออยากให้มีเส้นขอบจางๆ */
    background: #f8f9fa;
}

/* ปรับรูปโปรไฟล์ให้ออกมากลมสวย */
.nav-avatar {
    width: 32px;
    height: 32px;
    border-radius: 50%; /* ทำให้รูปเป็นทรงกลมสมบูรณ์ */
    object-fit: cover; /* ป้องกันไม่ให้รูปเบี้ยว */
}

/* ปรับกล่องเมนู Dropdown (ที่ดึงมาจาก nav_menu_sub.php) ให้โค้งมนรับกัน */
.dropdown-menu {
    border-radius: 16px !important;
    overflow: hidden; /* เพื่อให้เนื้อหาข้างในไม่ทะลุขอบโค้ง */
    box-shadow: 0 4px 12px rgba(0,0,0,0.08); /* เพิ่มเงาให้นุ่มนวลขึ้น */
}