/**
 * Location Picker Styles
 */

.location-picker-wrap {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
}

#location-picker-map {
    width: 100%;
    border-radius: 4px;
    z-index: 1;
}

.location-picker-instructions {
    background: #e3f2fd;
    padding: 10px 20px;
    font-size: 13px;
    color: #1565c0;
    margin-bottom: 10px;
    border-radius: 4px;
}

.location-picker-panel {
    background: #fff;
    padding: 15px 20px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin-top: 10px;
    border-radius: 4px;
}

.location-picker-title {
    font-size: 14px;
    color: #666;
    margin: 0 0 10px 0;
}

.location-picker-coordinates {
    display: flex;
    gap: 15px;
    align-items: center;
    flex-wrap: wrap;
}

.location-picker-coord-item {
    display: flex;
    align-items: center;
    gap: 8px;
}

.location-picker-coord-item label {
    font-weight: bold;
    color: #333;
}

.location-picker-coord-item input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
    width: 150px;
    background: #f9f9f9;
}

.location-picker-btn {
    padding: 8px 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.2s;
}

.location-picker-btn-copy {
    background: #4CAF50;
    color: white;
}

.location-picker-btn-copy:hover {
    background: #45a049;
}

.location-picker-btn-search {
    background: #2196F3;
    color: white;
}

.location-picker-btn-search:hover {
    background: #1976D2;
}

.location-picker-btn-save {
    background: #FF9800;
    color: white;
}

.location-picker-btn-save:hover {
    background: #F57C00;
}

.location-picker-btn-list {
    background: #9C27B0;
    color: white;
}

.location-picker-btn-list:hover {
    background: #7B1FA2;
}

.location-picker-btn-delete {
    background: #f44336;
    color: white;
    padding: 4px 8px;
    font-size: 12px;
}

.location-picker-btn-delete:hover {
    background: #d32f2f;
}

.location-picker-message {
    margin-left: 10px;
    color: #4CAF50;
    font-size: 14px;
    opacity: 0;
    transition: opacity 0.3s;
}

.location-picker-message.show {
    opacity: 1;
}

.location-picker-search {
    display: flex;
    gap: 8px;
    margin-top: 15px;
    flex-wrap: wrap;
}

.location-picker-search input {
    flex: 1;
    min-width: 200px;
    max-width: 300px;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.location-picker-save-section {
    margin-top: 15px;
    padding-top: 15px;
    border-top: 1px solid #eee;
}

.location-picker-save-section h4 {
    font-size: 14px;
    color: #666;
    margin: 0 0 10px 0;
}

.location-picker-save-form {
    display: flex;
    gap: 10px;
    flex-wrap: wrap;
    align-items: center;
}

.location-picker-save-form input {
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.location-picker-save-form input[id="location-picker-name"] {
    width: 200px;
}

.location-picker-save-form input[id="location-picker-desc"] {
    width: 300px;
}

/* モーダル */
.location-picker-modal {
    display: none;
    position: fixed;
    z-index: 10000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.5);
}

.location-picker-modal.show {
    display: flex;
    justify-content: center;
    align-items: center;
}

.location-picker-modal-content {
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    max-width: 900px;
    max-height: 80vh;
    overflow-y: auto;
    width: 90%;
}

.location-picker-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.location-picker-modal-header h3 {
    margin: 0;
    font-size: 18px;
}

.location-picker-modal-close {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: #666;
    line-height: 1;
}

.location-picker-modal-close:hover {
    color: #333;
}

.location-picker-table {
    width: 100%;
    border-collapse: collapse;
}

.location-picker-table th,
.location-picker-table td {
    padding: 10px;
    text-align: left;
    border-bottom: 1px solid #eee;
}

.location-picker-table th {
    background: #f5f5f5;
    font-weight: bold;
}

.location-picker-table tr:hover {
    background: #f9f9f9;
}

.location-picker-table .clickable {
    cursor: pointer;
    color: #2196F3;
}

.location-picker-table .clickable:hover {
    text-decoration: underline;
}

/* 管理画面用 */
.location-picker-admin-info {
    background: #fff;
    padding: 20px;
    border: 1px solid #ccd0d4;
    margin-bottom: 20px;
}

.location-picker-admin-info h2 {
    margin-top: 0;
}

.location-picker-admin-info h3 {
    margin-bottom: 5px;
}

.location-picker-admin-info code {
    display: inline-block;
    background: #f1f1f1;
    padding: 5px 10px;
    margin-bottom: 15px;
}
