#geotag-pro-tool { max-width: 1000px; margin: 20px auto; }

/* Giao di?n khung tìm ki?m chu?n Flexbox */
.search-container { display: flex !important; gap: 10px !important; align-items: center !important; width: 100% !important; margin-bottom: 15px !important; }
#search-input { flex: 1 !important; height: 45px !important; padding: 0 15px !important; border: 2px solid #ddd !important; border-radius: 8px !important; outline: none !important; font-size: 15px !important; margin: 0 !important; box-sizing: border-box !important; font-weight: normal !important; }
.btn-search { height: 45px !important; padding: 0 25px !important; background: #0043ea !important; color: white !important; border: none !important; border-radius: 8px !important; cursor: pointer !important; margin: 0 !important; white-space: nowrap !important; display: inline-flex !important; align-items: center !important; justify-content: center !important; box-sizing: border-box !important; }

/* Tr?ng thái l?i tìm ki?m */
.search-status-msg { display: none; color: #d93025; font-size: 14px; margin-top: -5px; margin-bottom: 15px; padding-left: 5px; }

/* Khu v?c B?n d? */
#map { height: 350px; width: 100%; border-radius: 12px; margin-bottom: 15px; border: 1px solid #ddd; z-index: 1; }

/* C?u hình các Box hi?n th? */
.duy-row { display: flex; gap: 20px; margin-bottom: 20px; flex-wrap: wrap; }
.duy-col { flex: 1; min-width: 300px; }
.tool-box { background: #fff; padding: 25px; border-radius: 12px; box-shadow: 0 4px 20px rgba(0,0,0,0.05); border: 1px solid #eee; margin-bottom: 20px;}

/* Tiêu d? chính c?a phân vùng */
.tool-heading-title { color: var(--gps-green); margin-top: 0; margin-bottom: 15px; border-bottom: 1px solid #eee; padding-bottom: 10px; font-size: 16px; text-transform: none; }

/* Khu v?c Upload ?nh */
.upload-btn-wrapper { border: 2px dashed #ccc; background: #f8f9fa; border-radius: 10px; padding: 20px; text-align: center; cursor: pointer; min-height: 160px; display: flex; flex-direction: column; justify-content: center; align-items: center; position: relative; width: 100%; transition: 0.3s; box-sizing: border-box; }
.upload-btn-wrapper:hover { border-color: #0043ea; background: #f0f4ff; }
.upload-icon { font-size: 30px; margin-bottom: 5px; }
#main-count { font-size: 14px; color: #555; }
.hidden-input { display: none; }

#step1-preview-container { display: grid; grid-template-columns: repeat(auto-fill, minmax(65px, 1fr)); gap: 8px; width: 100%; margin-top: 15px; }
.step1-thumb { width: 100%; height: 55px; object-fit: cover; border-radius: 4px; border: 1px solid #ddd; }

/* Khu v?c Watermark */
.wm-upload-container { display: flex; gap: 15px; align-items: flex-start; }
.wm-trigger-box { padding: 10px; flex: 1; min-height: 160px; }
.wm-upload-text { font-size: 13px; }
#preview-wm-img { max-height: 50px; display: none; margin: 10px auto; border-radius: 4px; }

/* Grid d?nh v? logo */
.wm-grid { display: grid; grid-template-columns: repeat(3, 35px); gap: 5px; justify-content: center; }
.grid-item { width: 35px; height: 35px; border: 1px solid #ddd; cursor: pointer; border-radius: 4px; background: #fff; }
.grid-item.active { background: #0043ea; border-color: #0043ea; }

/* Form di?u khi?n */
.input-wrapper { margin-bottom: 15px; }
.input-wrapper label { display: block; font-size: 14px; margin-bottom: 5px; color: #333; }
.full-input { width: 100%; padding: 10px 12px; border: 1px solid #ddd; border-radius: 8px; font-size: 14px; outline: none; box-sizing: border-box; font-weight: normal !important; }
.meta-comment { height: 80px; }

.geo-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 15px; margin-bottom: 15px; }
.seo-info-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 15px; margin-bottom: 15px; }
@media (max-width: 600px) { .geo-grid, .seo-info-grid { grid-template-columns: 1fr; } }

/* H? th?ng x? lý và Preview */
.loading-txt { display: none; text-align: center; color: #d93025; margin-bottom: 10px; }
.btn-action-group { display: flex; gap: 15px; margin-top: 20px; }
.btn-process { flex: 1; background: #008001; color: #fff; padding: 14px; border: none; border-radius: 8px; cursor: pointer; font-size: 16px; }
.btn-download-all { flex: 1; background: #e67e22; color: #fff; padding: 14px; border: none; border-radius: 8px; cursor: pointer; display: none; font-size: 16px; }

#result-preview-area { margin-top: 20px; border-top: 2px dashed #eee; padding-top: 20px; display: none; }
.success-label { color: #27ae60; }
.result-gallery { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 15px; }
.result-item { border-radius: 10px; overflow: hidden; border: 2px solid #27ae60; }
.result-img { width: 100%; height: 120px; object-fit: cover; }

/* Class ti?n ích dùng cho JavaScript d? ?n/hi?n các kh?i */
.is-visible { display: block !important; }
/* Khung ch?a h?p chia s? */
.share-box-container {
    background: #ffffff;
    border-radius: 16px; /* Bo góc d?ng b? v?i các kh?i tính nang phía trên */
    padding: 28px 24px;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    margin: 24px auto;
    max-width: 650px;
}

/* Khung ch?a h?p chia s? */
.share-box-container { 
    background: #ffffff !important; 
    border-radius: 16px !important; 
    padding: 28px 24px !important; 
    text-align: center !important; 
    box-shadow: 0 4px 20px rgba(0,0,0,0.05) !important; 
    margin: 24px auto !important; 
    max-width: 650px !important; 
}

/* Khung ch?a h?p chia s? - Ðã thu nh? và g?n l?i */
.share-box-container { 
    background: #ffffff !important; 
    border-radius: 12px !important; 
    padding: 20px 24px !important; 
    text-align: center !important; 
    box-shadow: 0 4px 15px rgba(0,0,0,0.06) !important; 
    margin: 20px auto !important; 
    max-width: 480px !important; /* Bóp nh? chi?u ngang d? h?p g?n hon */
}

/* Tiêu d? */
.share-box-container .share-box-title { 
    font-size: 16px !important; /* Gi?m nh? size ch? */
    font-weight: 700 !important; 
    color: #1a202c !important; 
    margin-bottom: 8px !important; /* Thu h?p kho?ng cách xu?ng mô t? */
    display: block !important; 
}

/* Ðo?n mô t? */
.share-box-container .share-box-desc { 
    font-size: 13px !important; /* Gi?m nh? size ch? cho thanh m?nh */
    color: #4a5568 !important; 
    line-height: 1.5 !important; 
    margin-bottom: 16px !important; /* Thu h?p kho?ng cách xu?ng nút */
}

/* Tên thuong hi?u trong mô t? */
.share-box-container .share-box-desc strong { 
    color: #1a202c !important; 
    font-weight: 700 !important; 
}

/* Nút b?m Facebook - Ki?u dáng nh? nh?n hon */
.share-box-container .btn-share-fb { 
    display: inline-block !important; 
    background-color: #0052ec !important; 
    color: #ffffff !important; 
    font-size: 13px !important; /* Ch? nh? g?n v?a ph?i */
    font-weight: bold !important; 
    padding: 10px 22px !important; /* Gi?m padding d? nút v?a v?n, không b? thô */
    border-radius: 6px !important; 
    text-decoration: none !important; 
    transition: all 0.3s ease !important; 
}

.share-box-container .btn-share-fb:hover { 
    background-color: #003dbb !important; 
    transform: translateY(-1px) !important; 
}