/* Five-Icon Interaction System Styles */
/* Updated for simplified two-icon system: Favorite + Add to Outing */

.five-icons-container {
    flex-wrap: wrap;
    gap: 0.75rem !important; /* Slightly larger gap for the pill button */
}

/* Card overlay positioning */
.five-icons-overlay {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    justify-content: center; /* Centered alignment for full-width bar */
    padding: 0.75rem 1rem; /* Add some padding for the background area */
    background: none !important; /* Remove unified background */
    border-radius: 0;
}

.five-icons-overlay .icon-btn {
    background: rgba(255, 255, 255, 0.95) !important; /* Individual white button backgrounds */
    border: none;
    border-radius: 50%; /* Make icons perfectly circular */
    color: #495057; /* Darker gray icons when not active for better prominence */
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Subtle shadow for depth */
    width: 36px; /* Fixed width to maintain circular shape */
    height: 36px; /* Fixed height to maintain circular shape */
    min-width: 36px;
    min-height: 36px;
    flex-shrink: 0; /* Prevent flexbox from shrinking the button */
    text-shadow: none; /* Remove text shadow since we have background now */
}

.five-icons-overlay .icon-btn:hover {
    background: rgba(255, 255, 255, 1) !important; /* Fully opaque white on hover */
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Enhanced shadow on hover */
    color: #495057; /* Darker gray on hover */
}

/* Pill button specific styles */
.outing-pill-btn {
    border-radius: 20px !important;
    padding: 0.375rem 0.75rem !important;
    font-size: 0.875rem !important;
    font-weight: 500;
    display: flex !important;
    align-items: center !important;
    gap: 0.5rem !important;
    transition: all 0.2s ease-in-out !important;
    white-space: nowrap;
}

.outing-pill-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.outing-pill-btn.active {
    background-color: #7B1E3A !important;
    border-color: #7B1E3A !important;
    color: #fff !important;
}

.outing-pill-btn.active:hover {
    background-color: #5a1629 !important;
    border-color: #5a1629 !important;
    color: #fff !important;
}

/* Card overlay styles for the pill button */
.five-icons-overlay .outing-pill-btn {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid #7B1E3A !important;
    color: #7B1E3A !important;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

.five-icons-overlay .outing-pill-btn:hover {
    background: rgba(255, 255, 255, 1) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15);
}

.five-icons-overlay .outing-pill-btn.active {
    background: #7B1E3A !important;
    border-color: #7B1E3A !important;
    color: #fff !important;
}

.five-icons-overlay .outing-pill-btn.active:hover {
    background: #5a1629 !important;
    border-color: #5a1629 !important;
    color: #fff !important;
}

/* Remove the generic override that was making everything white */
.five-icons-overlay .icon-btn.active:hover,
.five-icons-overlay .favorite-btn.active:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15); /* Consistent enhanced shadow on hover */
}

.icon-btn {
    position: relative;
    border: 1px solid #7B1E3A; /* Burgundy border instead of none */
    background: transparent;
    padding: 0.375rem;
    border-radius: 50%; /* Make icons perfectly circular */
    color: #7B1E3A; /* Burgundy color for better prominence */
    transition: all 0.2s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 36px; /* Fixed width to maintain circular shape */
    height: 36px; /* Fixed height to maintain circular shape */
    min-width: 36px;
    min-height: 36px;
    flex-shrink: 0; /* Prevent flexbox from shrinking the button */
}

.icon-btn:hover {
    background-color: #7B1E3A;
    border-color: #7B1E3A;
    color: #fff;
    transform: translateY(-1px);
}

.icon-btn:active {
    transform: translateY(0);
}

.icon-btn .icon {
    width: 16px;
    height: 16px;
    stroke-width: 2;
}

/* Active states for different icons - updated for overlay with background shapes */
.icon-btn.active {
    color: #fff;
}

.five-icons-overlay .favorite-btn.active {
    background: #7B1E3A !important; /* Burgundy background for favorites */
    color: #fff !important; /* White icon for contrast */
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1); /* Consistent shadow */
}

.five-icons-overlay .favorite-btn.active:hover {
    background: #5a1629 !important; /* Darker burgundy on hover */
    color: #fff !important;
}

/* Keep existing styles for non-overlay contexts */
.favorite-btn.active {
    background-color: #7B1E3A;
    color: #fff;
}

.favorite-btn.active:hover {
    background-color: #5a1629;
}

/* Count badges */
.count-badge {
    position: absolute;
    top: -6px;
    right: -6px;
    background-color: #dc3545;
    color: #fff;
    border-radius: 50%;
    width: 18px;
    height: 18px;
    font-size: 10px;
    font-weight: bold;
    display: flex;
    align-items: center;
    justify-content: center;
    line-height: 1;
    border: 2px solid #fff;
}

/* Count badge positioning for pill button */
.outing-pill-btn .count-badge {
    position: relative;
    top: auto;
    right: auto;
    background-color: #7B1E3A;
    color: #fff;
    border-radius: 10px;
    width: auto;
    min-width: 18px;
    height: 18px;
    font-size: 10px;
    font-weight: bold;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    padding: 0 6px;
    border: none;
    margin-left: 0.25rem;
}

.outing-pill-btn.btn-outline-secondary {
    border-color: #7B1E3A !important;
    color: #7B1E3A !important;
}

.outing-pill-btn.btn-outline-secondary:hover {
    background-color: #7B1E3A !important;
    border-color: #7B1E3A !important;
    color: #fff !important;
}

.outing-pill-btn.btn-outline-secondary .count-badge {
    background-color: #7B1E3A;
    color: #fff;
}

.outing-pill-btn.active .count-badge {
    background-color: rgba(255, 255, 255, 0.2);
    color: #fff;
}

/* Dropdown menu styling */
.outing-dropdown {
    min-width: 200px;
}

.outing-dropdown .dropdown-item {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.outing-dropdown .dropdown-item i {
    width: 16px;
    height: 16px;
}

/* Modal enhancements */
.modal-header h5 {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

/* Toast notifications */
.alert.position-fixed {
    max-width: 300px;
    animation: slideInRight 0.3s ease-out;
}

@keyframes slideInRight {
    from {
        transform: translateX(100%);
        opacity: 0;
    }
    to {
        transform: translateX(0);
        opacity: 1;
    }
}

/* Responsive adjustments */
@media (max-width: 576px) {
    .five-icons-container {
        justify-content: center; /* Back to centered for mobile */
    }
    
    .five-icons-overlay {
        gap: 0.5rem; /* Tighter spacing on mobile */
        padding: 0.625rem 0.75rem; /* Slightly less padding on mobile */
    }
    
    .five-icons-overlay .icon-btn {
        min-width: 32px;
        min-height: 32px;
        padding: 0.25rem;
        border-radius: 6px; /* Smaller radius for mobile */
        box-shadow: 0 1px 4px rgba(0, 0, 0, 0.1); /* Lighter shadow for mobile */
        color: #495057; /* Darker gray icons on mobile when not active for better prominence */
        text-shadow: none; /* No text shadow on mobile */
    }
    
    /* Pill button mobile styles */
    .outing-pill-btn {
        font-size: 0.8rem !important;
        padding: 0.3rem 0.6rem !important;
        gap: 0.375rem !important;
    }
    
    .outing-pill-btn .icon {
        width: 12px !important;
        height: 12px !important;
    }
    
    /* Ensure active states still work on mobile */
    .five-icons-overlay .icon-btn.active {
        background: rgba(255, 255, 255, 0.95) !important;
        color: inherit !important;
    }
    
    .five-icons-overlay .favorite-btn.active {
        background: #7B1E3A !important;
        color: #fff !important;
    }
    
    .five-icons-overlay .outing-pill-btn.active {
        background: #7B1E3A !important;
        color: #fff !important;
    }
    
    .five-icons-overlay .icon-btn .icon {
        width: 14px;
        height: 14px;
    }
    
    .icon-btn {
        min-width: 32px;
        min-height: 32px;
        padding: 0.25rem;
    }
    
    .icon-btn .icon {
        width: 14px;
        height: 14px;
    }
}

/* Integration with existing card styles */
.winery-card .five-icons-container {
    margin-top: 0.5rem;
    padding-top: 0.5rem;
    border-top: 1px solid #e9ecef;
}

/* Dark mode support (if implemented later) */
@media (prefers-color-scheme: dark) {
    .icon-btn {
        color: #adb5bd;
    }
    
    .icon-btn:hover {
        background-color: #343a40;
        color: #f8f9fa;
    }
    
    .outing-pill-btn {
        border-color: #495057;
        color: #adb5bd;
    }
    
    .outing-pill-btn:hover {
        border-color: #6c757d;
        color: #f8f9fa;
    }
}

/* Accessibility improvements */
.icon-btn:focus,
.outing-pill-btn:focus {
    outline: 2px solid #007bff;
    outline-offset: 2px;
}

.icon-btn:focus:not(:focus-visible),
.outing-pill-btn:focus:not(:focus-visible) {
    outline: none;
}

/* Animation for state changes */
.icon-btn,
.outing-pill-btn {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
}

.count-badge {
    transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
    animation: bounceIn 0.3s ease-out;
}

@keyframes bounceIn {
    0% {
        transform: scale(0);
    }
    50% {
        transform: scale(1.2);
    }
    100% {
        transform: scale(1);
    }
}

/* Legacy Five-Icon System - Simplified to Two Icons */
/* Maintaining compatibility for any remaining uses */

/* Base Container */
.five-icons {
    display: flex;
    gap: 8px;
    align-items: center;
    flex-wrap: wrap;
}

/* Individual Icon Buttons - Simplified */
.five-icon {
    border: none;
    background: transparent;
    padding: 8px;
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    position: relative;
    font-size: 16px;
    width: 40px;
    height: 40px;
}

/* Icon Colors and States - Only Favorite */
.five-icon.favorite {
    color: #7B1E3A;
}

.five-icon.favorite.active {
    background-color: rgba(123, 30, 58, 0.1);
    color: #7B1E3A;
}

/* Hover Effects */
.five-icon:hover {
    background-color: rgba(0, 0, 0, 0.05);
    transform: translateY(-1px);
}

.five-icon:active {
    transform: translateY(0);
}

/* Loading State */
.five-icon.loading {
    opacity: 0.6;
    cursor: wait;
}

/* Responsive Styling for Place Detail Pages */
.five-icons-desktop {
    margin-bottom: 1rem;
}

.five-icons-desktop .five-icons {
    gap: 12px;
}

.five-icons-desktop .five-icon {
    width: 48px;
    height: 48px;
    font-size: 20px;
}

/* Mobile five icons specific styling for place detail page */
.five-icons-mobile {
    display: flex;
    gap: 0.5rem;
    align-items: center;
    justify-content: flex-start; /* Left-aligned under the region text */
    flex-wrap: wrap;
}

.five-icons-mobile .icon-btn {
    background: rgba(255, 255, 255, 0.95) !important;
    border: 1px solid #e9ecef;
    border-radius: 8px;
    color: #495057; /* Darker gray for better prominence */
    transition: all 0.2s ease-in-out;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1);
    min-width: 36px;
    min-height: 36px;
    padding: 0.375rem;
}

.five-icons-mobile .icon-btn:hover {
    background: rgba(255, 255, 255, 1) !important;
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
    color: #495057;
}

/* Active states for mobile five icons */
.five-icons-mobile .favorite-btn.active {
    background: #7B1E3A !important;
    color: #fff !important;
    border-color: #7B1E3A !important;
}

/* Removed legacy mobile styles for visited, rating, and notes buttons */

.five-icons-mobile .icon-btn .icon {
    width: 16px;
    height: 16px;
}

/* Card Integration */
.favorites-card .five-icons {
    justify-content: center;
    padding: 8px 0;
}

/* Modal Styling */
.five-icon-modal .modal-body {
    padding: 24px;
}

.five-icon-modal .form-control {
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    padding: 12px;
    font-size: 14px;
}

.five-icon-modal .form-control:focus {
    border-color: #2196f3;
    box-shadow: 0 0 0 3px rgba(33, 150, 243, 0.1);
}

.five-icon-modal .btn-group .btn {
    border-radius: 8px;
    border: 2px solid #e0e0e0;
    padding: 8px 16px;
}

.five-icon-modal .btn-group .btn.active {
    background-color: #2196f3;
    border-color: #2196f3;
    color: white;
}

/* Dropdown Styling */
.five-icon-dropdown {
    min-width: 250px;
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    padding: 8px;
}

.five-icon-dropdown .dropdown-item {
    border-radius: 8px;
    padding: 8px 12px;
    display: flex;
    align-items: center;
    gap: 8px;
}

.five-icon-dropdown .dropdown-item:hover {
    background-color: #f5f5f5;
}

.five-icon-dropdown .dropdown-divider {
    margin: 8px 0;
}

/* Toast Notifications */
.five-icon-toast {
    border-radius: 12px;
    border: none;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.five-icon-toast .toast-header {
    background-color: #f8f9fa;
    border-bottom: 1px solid #e0e0e0;
    border-radius: 12px 12px 0 0;
}

.five-icon-toast .toast-body {
    padding: 16px;
}

/* Animation for state changes */
@keyframes five-icon-pulse {
    0% { transform: scale(1); }
    50% { transform: scale(1.1); }
    100% { transform: scale(1); }
}

.five-icon.state-change {
    animation: five-icon-pulse 0.3s ease-in-out;
}

/* Dark mode support */
@media (prefers-color-scheme: dark) {
    .five-icon:hover {
        background-color: rgba(255, 255, 255, 0.1);
    }
    
    .five-icon-modal .form-control {
        background-color: #2a2a2a;
        border-color: #404040;
        color: white;
    }
    
    .five-icon-dropdown {
        background-color: #2a2a2a;
        border-color: #404040;
    }
    
    .five-icon-dropdown .dropdown-item {
        color: white;
    }
    
    .five-icon-dropdown .dropdown-item:hover {
        background-color: #404040;
    }
}

/* Card integration styles */
.five-icons-card {
    display: flex;
    justify-content: center;
    padding: 8px;
    background-color: rgba(248, 249, 250, 0.8);
    border-radius: 8px;
    border: 1px solid rgba(222, 226, 230, 0.6);
}

.five-icons-card .five-icons-container {
    gap: 8px !important;
    justify-content: center;
}

.five-icons-card .icon-btn {
    width: 32px;
    height: 32px;
    border-radius: 6px;
    min-width: 32px;
    min-height: 32px;
    padding: 0.25rem;
}

.five-icons-card .icon-btn .icon {
    width: 14px;
    height: 14px;
}

.five-icons-card .icon-btn:hover {
    transform: translateY(-1px);
}

/* Responsive card styles */
@media (max-width: 576px) {
    .five-icons-card {
        gap: 6px;
        padding: 6px;
    }
    
    .five-icons-card .icon-btn {
        width: 28px;
        height: 28px;
        min-width: 28px;
        min-height: 28px;
    }
    
    .five-icons-card .icon-btn .icon {
        width: 12px;
        height: 12px;
    }
}

/* Card integration styles - for five-icon containers inside cards */
.card .five-icons-container {
    justify-content: center !important;
    padding: 0; /* Remove padding */
    background: none !important; /* Remove background */
    border: none; /* Remove border */
    border-radius: 0; /* Remove border radius */
    margin-bottom: 0;
}

.card .five-icons-container .icon-btn {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
}

.card .five-icons-container .icon-btn .icon {
    width: 14px;
    height: 14px;
}

/* Responsive card styles */
@media (max-width: 576px) {
    .card .five-icons-container {
        padding: 0; /* Remove padding on mobile too */
    }
    
    .card .five-icons-container .icon-btn {
        width: 28px;
        height: 28px;
        min-width: 28px;
        min-height: 28px;
    }
    
    .card .five-icons-container .icon-btn .icon {
        width: 12px;
        height: 12px;
    }
}

/* End of Two-Icon System Styles */

/* Place Detail Visited Checkbox - Brand Styling */
.visited-checkbox {
    width: 1.2em;
    height: 1.2em;
}

.visited-checkbox:checked {
    background-color: #7B1E3A !important;
    border-color: #7B1E3A !important;
}

.visited-checkbox:focus {
    border-color: #7B1E3A !important;
    box-shadow: 0 0 0 0.2rem rgba(123, 30, 58, 0.25) !important;
}

/* Hover state for better interaction feedback */
.visited-checkbox:hover {
    border-color: #7B1E3A !important;
} 