/* Hunting Stands Styling */

/* Modal Styles - Fixed positioning overlay */
#hunting-stands-modal {
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.7) !important;
    display: none !important;
    align-items: center !important;
    justify-content: center !important;
    z-index: 10001 !important;
}

#hunting-stands-modal[style*="display: flex"] {
    display: flex !important;
}

#hunting-stands-modal .modal-content {
    max-width: 600px !important;
    width: 90% !important;
    margin: 0 !important;
}

.hunting-stands-modal-content {
    width: 100%;
    max-width: 100%;
    max-height: 80vh;
    overflow-y: auto;
    box-sizing: border-box;
}

.hunting-stands-container {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.modal-body {
    padding: 20px;
    width: 100%;
    box-sizing: border-box;
}

#stand-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
    width: 100%;
    box-sizing: border-box;
}

/* Header with Add Button */
.stands-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
}

.add-stand-btn {
    background: linear-gradient(135deg, #FFD700 0%, #FFC700 100%);
    color: #1a1a1a;
    border: none;
    padding: 12px 20px;
    border-radius: 6px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
    display: flex;
    align-items: center;
    gap: 8px;
    font-size: 14px;
}

.add-stand-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 12px rgba(255, 215, 0, 0.3);
}

/* Map Container */
.stands-map-card {
    background: #2e2e2e;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 15px;
    overflow: hidden;
}

.map-card-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 12px;
}

.stands-card-title {
    color: #FFD700;
    font-size: 16px;
    font-weight: 600;
    margin: 0;
    display: flex;
    align-items: center;
    gap: 8px;
}

.map-mode-toggle-btn {
    background: rgba(255, 215, 0, 0.1);
    color: #FFD700;
    border: 1px solid #FFD700;
    padding: 8px 12px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    font-weight: 600;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
    white-space: nowrap;
}

.map-mode-toggle-btn:hover {
    background: rgba(255, 215, 0, 0.2);
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.3);
}

.map-mode-toggle-btn.active {
    background: #FFD700;
    color: #1a1a1a;
    box-shadow: 0 0 12px rgba(255, 215, 0, 0.5);
}

/* Location Selection Card */
.location-selection-card {
    transition: opacity 0.3s ease;
}

.location-method-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 12px;
    margin-bottom: 15px;
}

.location-method-option {
    display: flex;
    align-items: flex-start;
    gap: 12px;
    padding: 12px;
    background: rgba(255, 215, 0, 0.05);
    border: 1px solid #FFD700;
    border-radius: 6px;
    cursor: pointer;
    transition: all 0.2s ease;
}

.location-method-option:hover {
    background: rgba(255, 215, 0, 0.1);
    border-color: #FFC700;
}

.location-method-option input[type="radio"] {
    margin-top: 2px;
    cursor: pointer;
}

.option-text {
    display: flex;
    align-items: center;
    gap: 6px;
    color: #FFD700;
    font-weight: 600;
    font-size: 13px;
}

.option-desc {
    display: block;
    color: #999;
    font-size: 11px;
    margin-top: 4px;
}

.location-hint {
    color: #bbb;
    font-style: italic;
    padding: 12px;
    background: rgba(255, 215, 0, 0.05);
    border-radius: 4px;
    margin-bottom: 12px;
}

/* Stand Details Card */
.stand-details-card {
    border-top: 2px solid #FFD700;
    padding-top: 20px;
    margin-top: 20px;
}

.form-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    margin-top: 20px;
    padding-top: 15px;
    border-top: 1px solid #333;
}

.stands-card {
    background: #2e2e2e;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 15px;
    margin-bottom: 15px;
}

.hunting-stands-map {
    height: 400px;
    width: 100%;
    border-radius: 6px;
    border: 1px solid #444;
    background: #1a1a1a;
}

/* Stand List Card */
.stands-list-card {
    background: #2e2e2e;
    border: 1px solid #444;
    border-radius: 8px;
    padding: 15px;
    overflow: hidden;
}

.stands-list-controls {
    margin-bottom: 15px;
}

.stands-filter {
    width: 100%;
    padding: 10px 12px;
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 6px;
    color: #fff;
    font-size: 14px;
    box-sizing: border-box;
}

.stands-filter::placeholder {
    color: #999;
}

.stands-filter:focus {
    outline: none;
    border-color: #FFD700;
    box-shadow: 0 0 8px rgba(255, 215, 0, 0.2);
}

.stands-list-container {
    display: flex;
    flex-direction: column;
    gap: 12px;
    max-height: 400px;
    overflow-y: auto;
}

.stands-list-container::-webkit-scrollbar {
    width: 6px;
}

.stands-list-container::-webkit-scrollbar-track {
    background: #1a1a1a;
    border-radius: 3px;
}

.stands-list-container::-webkit-scrollbar-thumb {
    background: #FFD700;
    border-radius: 3px;
}

.stands-list-container::-webkit-scrollbar-thumb:hover {
    background: #FFC700;
}

/* Stand List Item */
.stand-list-item {
    background: #1a1a1a;
    border: 1px solid #333;
    border-radius: 6px;
    padding: 12px;
    transition: all 0.3s ease;
}

.stand-list-item:hover {
    border-color: #FFD700;
    box-shadow: 0 2px 8px rgba(255, 215, 0, 0.1);
}

.stand-list-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    margin-bottom: 10px;
}

.stand-list-title h4 {
    color: #fff;
    font-size: 15px;
    margin: 0 0 4px 0;
    font-weight: 600;
}

.stand-list-subtitle {
    color: #999;
    font-size: 13px;
}

.stand-list-actions {
    display: flex;
    gap: 6px;
}

.stand-btn {
    background: transparent;
    border: 1px solid #444;
    color: #FFD700;
    padding: 6px 10px;
    border-radius: 4px;
    cursor: pointer;
    font-size: 13px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stand-btn:hover {
    background: #333;
    border-color: #FFD700;
}

.stand-btn-delete {
    color: #FF6B6B;
    border-color: #FF6B6B;
}

.stand-btn-delete:hover {
    background: rgba(255, 107, 107, 0.1);
}

.stand-list-details {
    display: flex;
    flex-direction: column;
    gap: 6px;
    font-size: 13px;
}

.stand-detail {
    color: #bbb;
    display: flex;
    align-items: center;
    gap: 8px;
}

.stand-detail i {
    color: #FFD700;
    flex-shrink: 0;
}

.stand-notes {
    color: #999;
    font-style: italic;
}

/* No Stands Message */
.no-stands-message {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 40px 20px;
    text-align: center;
    color: #999;
    font-size: 14px;
}

.no-stands-message i {
    font-size: 32px;
    color: #555;
}

.no-stands-message a {
    color: #FFD700;
    text-decoration: none;
    font-weight: 600;
}

.no-stands-message a:hover {
    text-decoration: underline;
}

/* Form Styles */
.form-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    margin-bottom: 12px !important;
    width: 100% !important;
    min-width: 0 !important;
}

#stand-form .form-row {
    display: grid !important;
    grid-template-columns: 1fr 1fr !important;
    gap: 12px !important;
    width: 100% !important;
}

.form-row.single {
    grid-template-columns: 1fr;
}

.form-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    min-height: auto !important;
    min-width: auto !important;
}

#stand-form .form-group {
    display: flex !important;
    flex-direction: column !important;
    gap: 6px !important;
    width: 100% !important;
    min-width: 1px !important;
    min-height: auto !important;
}

#stand-form .form-group label {
    display: block !important;
    color: #fff !important;
    font-size: 13px !important;
    font-weight: 500 !important;
    margin-bottom: 6px !important;
    min-height: auto !important;
}

#stand-form .form-group input,
#stand-form .form-group textarea {
    width: 100% !important;
    min-height: 40px !important;
    display: block !important;
    box-sizing: border-box !important;
    background: #1a1a1a !important;
    border: 1px solid #444 !important;
    border-radius: 4px !important;
    color: #fff !important;
    padding: 8px 10px !important;
    font-family: inherit !important;
    font-size: 13px !important;
}

#stand-name,
#stand-property-name {
    display: block !important;
    width: 100% !important;
    visibility: visible !important;
    opacity: 1 !important;
    min-height: 40px !important;
    height: auto !important;
    padding: 8px 10px !important;
    background: #1a1a1a !important;
    border: 1px solid #444 !important;
    color: #fff !important;
    box-sizing: border-box !important;
}

/* Override config-input styles for hunting stands form */
#stand-form .config-input,
#stand-form input.config-input {
    display: block !important;
    width: 100% !important !important;
    min-height: 40px !important;
    padding: 8px 10px !important;
    background: #1a1a1a !important;
    border: 1px solid #444 !important;
    color: #fff !important;
    visibility: visible !important;
    opacity: 1 !important;
    box-sizing: border-box !important;
    margin: 0 !important;
}

.form-group label {
    color: #fff;
    font-size: 13px;
    font-weight: 500;
}

.form-group input,
.form-group textarea {
    background: #1a1a1a;
    border: 1px solid #444;
    border-radius: 4px;
    color: #fff;
    padding: 8px 10px;
    font-family: inherit;
    font-size: 13px;
    transition: all 0.2s ease;
}

.form-group input:focus,
.form-group textarea:focus {
    outline: none;
    border-color: #FFD700;
    box-shadow: 0 0 6px rgba(255, 215, 0, 0.15);
}

.form-group textarea {
    resize: vertical;
    min-height: 80px;
}

/* Location Input Tabs */
.location-input-tabs {
    display: flex;
    gap: 8px;
    margin-bottom: 15px;
    border-bottom: 1px solid #333;
}

.location-tab-btn {
    background: transparent;
    border: none;
    color: #999;
    padding: 10px 12px;
    cursor: pointer;
    font-size: 13px;
    font-weight: 500;
    border-bottom: 2px solid transparent;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.location-tab-btn:hover {
    color: #FFD700;
}

.location-tab-btn.active {
    color: #FFD700;
    border-bottom-color: #FFD700;
}

.location-method-content {
    padding: 10px 0;
}

/* GPS Status */
#gps-status {
    display: block;
    font-size: 12px;
    margin-top: 6px;
    color: #999;
}

.form-btn {
    background: linear-gradient(135deg, #FFD700 0%, #FFC700 100%);
    color: #1a1a1a;
    border: none;
    padding: 10px 16px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
}

.form-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 215, 0, 0.2);
}

/* Wind Direction Input */
.wind-direction-input {
    display: flex;
    gap: 8px;
    align-items: center;
}

.wind-direction-input input {
    flex: 1;
}

.wind-direction-label {
    color: #FFD700;
    font-weight: 600;
    font-size: 13px;
    min-width: 80px;
    text-align: center;
}

/* Modal Footer */
.modal-footer {
    display: flex;
    gap: 10px;
    justify-content: flex-end;
    padding-top: 12px;
    border-top: 1px solid #333;
}

.modal-btn {
    padding: 10px 16px;
    border-radius: 4px;
    border: none;
    cursor: pointer;
    font-weight: 600;
    font-size: 13px;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    gap: 6px;
}

.btn-primary {
    background: linear-gradient(135deg, #FFD700 0%, #FFC700 100%);
    color: #1a1a1a;
}

.btn-primary:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(255, 215, 0, 0.2);
}

.btn-secondary {
    background: #333;
    color: #fff;
    border: 1px solid #444;
}

.btn-secondary:hover {
    background: #444;
    border-color: #555;
}

/* Google Maps Info Window */
.stand-info-window {
    color: #000;
    font-family: Roboto, Arial, sans-serif;
    padding: 10px;
}

.stand-info-window h4 {
    color: #1a1a1a;
    margin: 0 0 6px 0;
    font-size: 14px;
}

.stand-info-window p {
    margin: 4px 0;
    color: #333;
    font-size: 12px;
}

.stand-info-window div {
    margin: 4px 0;
    color: #555;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.stand-info-window i {
    color: #FFD700;
    font-size: 11px;
}

.stand-info-buttons {
    display: flex;
    gap: 8px;
    margin-top: 10px;
    padding-top: 10px;
    border-top: 1px solid #ddd;
}

.stand-info-btn {
    flex: 1;
    padding: 6px 8px;
    background: #FFD700;
    color: #1a1a1a;
    border: none;
    border-radius: 3px;
    cursor: pointer;
    font-size: 11px;
    font-weight: 600;
    transition: all 0.2s ease;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 4px;
}

.stand-info-btn:hover {
    background: #FFC700;
}

.stand-info-btn.delete {
    background: #FF6B6B;
    color: #fff;
}

.stand-info-btn.delete:hover {
    background: #FF5252;
}

/* Responsive Design */
@media (max-width: 900px) {
    /* Keep form rows as 2 columns in hunting stands modal for better UX */
    #stand-form .form-row {
        grid-template-columns: 1fr 1fr;
    }
    
    .stands-list-header {
        flex-direction: column;
        gap: 10px;
    }
    
    .stand-list-actions {
        align-self: flex-start;
    }
    
    .hunting-stands-map {
        height: 300px;
    }
    
    .stands-list-container {
        max-height: 300px;
    }
    
    .location-input-tabs {
        flex-wrap: wrap;
    }
}

/* Address Search Results */
.address-search-results {
    background: #1a1a1a;
    border: 1px solid #444;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 200px;
    overflow-y: auto;
}

.address-result-item {
    padding: 8px 10px;
    cursor: pointer;
    border-bottom: 1px solid #333;
    font-size: 13px;
    color: #bbb;
    transition: all 0.2s ease;
}

.address-result-item:hover {
    background: #2e2e2e;
    color: #FFD700;
}

.address-result-item:last-child {
    border-bottom: none;
}
