@charset "utf-8";

/***********************************/
 html, body { font-family: 'Sarabun', sans-serif; height: 100%; margin: 0; background-color: #fff; }
        body { display: flex; flex-direction: column; }
        .main-content { flex: 1 0 auto; }
        .container-custom { max-width: 100%; padding: 0 40px; }

        /* Navbar & Logo */
        .logo-wrapper { display: flex; align-items: center; text-decoration: none; gap: 10px; }
        .logo-img { height: 35px; width: auto; }
        .logo-text { color: #222; font-weight: 800; font-size: 1.4rem; text-transform: uppercase; letter-spacing: 0.5px; margin: 0; }
        .user-menu-btn { border: 1px solid #ddd; background: #fff; border-radius: 30px; padding: 5px 5px 5px 12px; display: flex; align-items: center; gap: 10px; transition: 0.3s; }
        .user-menu-btn:hover { box-shadow: 0 2px 10px rgba(0,0,0,0.1); }
        .nav-avatar { width: 32px; height: 32px; border-radius: 50%; object-fit: cover; }

        /* Search Bar */
        .search-container { border: 1px solid #ddd; border-radius: 40px; padding: 8px 15px; box-shadow: 0 1px 2px rgba(0,0,0,0.08); max-width: 500px; margin: 0 auto; }
        .search-input { border: none; outline: none; width: 85%; padding-left: 10px; }
        .search-btn { background: #ff385c; color: white; border: none; border-radius: 50%; width: 32px; height: 32px; }
		
		
		 /* Search live*/
        .search-wrapper { position: relative; max-width: 600px; margin: 0 auto 40px; }
        .live-search-results { position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-radius: 15px; box-shadow: 0 10px 25px rgba(0,0,0,0.1); z-index: 1000; display: none; overflow: hidden; margin-top: 10px; border: 1px solid #eee; }

        /* Product Card */
        .place-link { text-decoration: none; color: #222; transition: 0.3s; display: block; }
        .place-link:hover { transform: translateY(-5px); }
        .img-container { border-radius: 15px; overflow: hidden; aspect-ratio: 1/1; position: relative; background: #f8f9fa; }
        .place-img { width: 100%; height: 100%; object-fit: cover; }
        
        .price-badge {
            position: absolute; top: 12px; left: 12px;
            background: rgba(255, 255, 255, 0.95);
            padding: 4px 12px; border-radius: 8px;
            font-weight: 700; font-size: 0.9rem;
            box-shadow: 0 2px 8px rgba(0,0,0,0.1); z-index: 2;
        }

       .location-text { font-size: 0.85rem; color: #717171; line-height: 1.5; margin-top: 8px; }
        .province-label { color: #222; font-weight: 600; display: flex; align-items: center; gap: 4px; }

        /* Footer */
        footer { flex-shrink: 0; background: #fff; border-top: 1px solid #ebebeb; padding: 25px 0; font-size: 0.875rem; }
        footer .container-footer { display: flex; justify-content: space-between; align-items: center; padding: 0 40px; }
        .footer-links { display: flex; gap: 15px; align-items: center; }
        .footer-links a { color: #222; text-decoration: none; }
        .footer-right { display: flex; gap: 20px; align-items: center; }
        .social-icons { display: flex; gap: 15px; font-size: 1.2rem; }
        .social-icons a { color: #222; }

        @media (max-width: 768px) {
            .container-custom, footer .container-footer { padding: 0 20px; }
            footer .container-footer { flex-direction: column-reverse; gap: 20px; text-align: center; }
        }
    
    .tag-cloud-container {
        padding: 10px 0;
        overflow-x: auto; /* รองรับการปัดข้างบนมือถือ */
        white-space: nowrap;
        -webkit-overflow-scrolling: touch;
    }

    .tag-item {
        display: inline-flex;
        align-items: center;
        gap: 8px;
        padding: 8px 18px;
        background-color: #fff;
        border: 1px solid #eee;
        border-radius: 50px; /* ทรงมนสวยแบบแคปซูล */
        text-decoration: none;
        color: #444;
        font-size: 0.9rem;
        font-weight: 500;
        transition: all 0.3s ease;
    }

    /* เอฟเฟกต์เมื่อเอาเมาส์ชี้ */
    .tag-item:hover {
        background-color: #f8f9fa;
        border-color: #ddd;
        transform: translateY(-2px);
        box-shadow: 0 4px 12px rgba(0,0,0,0.08) !important;
        color: #222;
    }

    /* ซ่อน Scrollbar สำหรับ Chrome/Safari แต่ยังเลื่อนได้ */
    .tag-cloud-container::-webkit-scrollbar {
        display: none;
    }