/* Custom Coffee Theme Enhancements */

/* Coffee color variables for DaisyUI */
:root {
    --coffee-50: #fdfbf9;
    --coffee-100: #f9f5f1;
    --coffee-200: #f3ede7;
    --coffee-300: #e8ddd3;
    --coffee-400: #d9c8bb;
    --coffee-500: #ccbaa9;
    --coffee-600: #b8a595;
    --coffee-700: #9a8a7a;
    --coffee-800: #7f7265;
    --coffee-900: #6a5f54;
}

/* Custom coffee button styles */
.btn-coffee {
    background-color: #b8a595;
    color: white;
    border-color: #b8a595;
}

.btn-coffee:hover {
    background-color: #9a8a7a;
}

.btn-coffee.btn-outline {
    background-color: transparent;
    color: #b8a595;
    border-color: #b8a595;
}

.btn-coffee.btn-outline:hover {
    background-color: #b8a595;
    color: white;
}

/* Enhanced modal styling */
.modal-box {
    background-color: white;
    border: 1px solid #f3ede7;
}

/* Custom map marker styling */
.custom-marker {
    background: linear-gradient(to bottom right, #b8a595, #7f7265);
    border: 2px solid white;
    border-radius: 50%;
    width: 2rem;
    height: 2rem;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 0.875rem;
    font-weight: 600;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    cursor: pointer;
    transition: transform 0.2s;
}

.custom-marker:hover {
    transform: scale(1.1);
}

/* Trending marker styles */
.trending-marker {
    background: none !important;
    border: none !important;
    width: auto !important;
    height: auto !important;
    font-size: 1.25rem !important;
    color: #FFD700 !important;
    box-shadow: 0 0 8px 2px rgba(255, 215, 0, 0.3);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.trending-marker:hover {
    transform: scale(1.15);
    box-shadow: 0 0 16px 4px rgba(255, 215, 0, 0.4);
}

@keyframes pulse {
    0% {
        box-shadow: 0 0 20px rgba(255, 107, 53, 0.6);
    }
    50% {
        box-shadow: 0 0 30px rgba(255, 107, 53, 0.9);
    }
    100% {
        box-shadow: 0 0 20px rgba(255, 107, 53, 0.6);
    }
}

/* Hero trending section */
.trending-hero {
    background: linear-gradient(135deg, rgba(255, 107, 53, 0.1) 0%, rgba(247, 147, 30, 0.1) 100%);
    border: 2px solid #FF6B35;
    border-radius: 16px;
    padding: 20px;
    margin: 20px 0;
    position: relative;
    overflow: hidden;
}

.trending-hero::before {
    content: "🔥 SPOT OF THE WEEK";
    position: absolute;
    top: 12px;
    right: 12px;
    background: linear-gradient(135deg, #FF6B35 0%, #F7931E 100%);
    color: white;
    padding: 6px 12px;
    border-radius: 16px;
    font-size: 12px;
    font-weight: bold;
    z-index: 10;
}

/* Enhanced hero section */
.hero {
    background: linear-gradient(135deg, var(--coffee-900) 0%, var(--coffee-700) 100%);
}

/* Stats enhancement */
.stats {
    background-color: rgba(127, 114, 101, 0.5);
    backdrop-filter: blur(4px);
    border: 1px solid rgba(154, 138, 122, 0.3);
}

/* Rating enhancement */
.rating input:checked ~ input {
    background-color: #fb923c;
}

/* Custom star rating styling for review form */
#ratingInput input[type="radio"] {
    background-color: #d1d5db;
    transition: background-color 0.2s;
}

#ratingInput input[type="radio"]:checked {
    background-color: #fb923c;
}

#ratingInput input[type="radio"]:hover {
    background-color: #fed7aa;
}

/* Override DaisyUI's default behavior for the review form rating */
#ratingInput input[type="radio"]:checked ~ input[type="radio"] {
    background-color: #d1d5db;
}

/* Card enhancements */
.card {
    transition: all 0.2s;
}

.card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
}

/* Navigation enhancement */
.navbar {
    backdrop-filter: blur(4px);
    background-color: rgba(127, 114, 101, 0.95);
}

/* Footer enhancement */
.footer {
    background: linear-gradient(to bottom right, #6a5f54, #7f7265);
}

/* Form enhancements */
.input:focus, .textarea:focus {
    border-color: #ccbaa9;
    box-shadow: 0 0 0 2px rgba(204, 186, 169, 0.2);
}

/* Button enhancements */
.btn-primary {
    background-color: #b8a595;
    border-color: #b8a595;
}

.btn-primary:hover {
    background-color: #9a8a7a;
}

.btn-outline {
    border-color: #b8a595;
    color: #b8a595;
}

.btn-outline:hover {
    background-color: #b8a595;
    color: white;
}

/* Link enhancements */
.link-hover:hover {
    color: #fbbf24;
}

/* Responsive improvements */
@media (max-width: 768px) {
    .hero h2 {
        font-size: 2.25rem;
    }
    
    .stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .footer .grid {
        grid-template-columns: 1fr;
        gap: 2rem;
    }
}

/* Loading animation */
.loading {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #f3ede7;
    border-top-color: #b8a595;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    to {
        transform: rotate(360deg);
    }
}

/* User location marker */
.user-location-marker {
    animation: pulse 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

/* Map container enhancement */
#map {
    border-radius: 0.75rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid #f3ede7;
}

/* Map loading overlay */
#mapLoading {
    transition: opacity 0.3s;
}

/* Sidebar styling */
.sidebar {
    background-color: white;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border-right: 1px solid #f3ede7;
}

/* Map stats enhancement */
#map .stats {
    background-color: rgba(255, 255, 255, 0.9);
    backdrop-filter: blur(4px);
}

#map .stats .stat {
    border-color: #f3ede7;
}

#map .stats .stat-value {
    color: #7f7265;
    font-weight: bold;
}

#map .stats .stat-title {
    color: #b8a595;
}

#map .stats .stat-figure {
    color: #b8a595;
}

/* Compact map controls */
#map .btn-sm {
    font-size: 0.75rem;
    padding: 0.25rem 0.5rem;
}

#map .input-sm {
    font-size: 0.75rem;
}

/* Map section spacing */
#map {
    transition: all 0.3s;
}

/* Google Maps Style Layout */
.map-container {
    position: relative;
    width: 100%;
    height: 100vh;
}

.map-fullscreen {
    width: 100%;
    height: 100%;
    position: relative;
}

/* Top navigation bar */
.top-nav {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 20;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    border-bottom: 1px solid #f3ede7;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05);
}

/* Search panel overlay */
.search-panel {
    position: absolute;
    top: 5rem;
    left: 1rem;
    z-index: 20;
    width: 20rem;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid #f3ede7;
}

/* Map title overlay */
.map-title-overlay {
    position: absolute;
    bottom: 1rem;
    right: 1rem;
    z-index: 20;
    background-color: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    border-radius: 0.5rem;
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
    border: 1px solid #f3ede7;
}

/* Responsive design for mobile */
@media (max-width: 768px) {
    .search-panel {
        width: 18rem;
        left: 0.5rem;
        right: 0.5rem;
    }
    
    .map-title-overlay {
        bottom: 0.5rem;
        right: 0.5rem;
    }
}

@media (max-width: 640px) {
    .search-panel {
        width: 100%;
        left: 0;
        right: 0;
        margin-left: 0.5rem;
        margin-right: 0.5rem;
    }
    
    .top-nav {
        padding-left: 0.5rem;
        padding-right: 0.5rem;
    }
}

/* Legend colors */
.legend-red { background-color: #ef4444; }
.legend-orange { background-color: #f97316; }
.legend-yellow { background-color: #eab308; }
.legend-green { background-color: #22c55e; }
.legend-blue { background-color: #3b82f6; }

/* Search panel sections */
.search-section {
    margin-bottom: 1rem;
}

.search-section h4 {
    font-size: 0.875rem;
    font-weight: bold;
    color: #7f7265;
    margin-bottom: 0.5rem;
}

/* Quick stats panel */
.quick-stats {
    background-color: #fdfbf9;
    border-radius: 0.5rem;
    padding: 0.75rem;
}

.quick-stats h4 {
    font-size: 0.875rem;
    font-weight: bold;
    color: #7f7265;
    margin-bottom: 0.5rem;
}

.stat-row {
    display: flex;
    justify-content: space-between;
}

.stat-label {
    font-size: 0.75rem;
    color: #b8a595;
}

.stat-value {
    font-size: 0.75rem;
    font-weight: 600;
    color: #7f7265;
}

/* Search box enhancement */
.join .input {
    border-color: #e8ddd3;
}

.join .input:focus {
    border-color: #ccbaa9;
}

.join .btn {
    background-color: #b8a595;
    border-color: #b8a595;
}

.join .btn:hover {
    background-color: #9a8a7a;
}

/* Modal backdrop enhancement */
.modal-backdrop {
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(4px);
}

/* Rating display enhancement */
.rating-display {
    pointer-events: none;
}

/* Custom scrollbar */
::-webkit-scrollbar {
    width: 0.5rem;
}

::-webkit-scrollbar-track {
    background-color: #f9f5f1;
}

::-webkit-scrollbar-thumb {
    background-color: #d9c8bb;
    border-radius: 9999px;
}

::-webkit-scrollbar-thumb:hover {
    background-color: #b8a595;
}

/* Animation enhancements */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.fade-in-up {
    animation: fadeInUp 0.6s ease-out;
}

/* Coffee icon enhancement */
.fa-coffee {
    color: #fbbf24;
}

/* Social links enhancement */
.btn-circle:hover {
    background-color: #9a8a7a;
    color: #fbbf24;
}

/* Divider enhancement */
.divider {
    border-color: #9a8a7a;
}

/* Text gradient enhancement */
.text-gradient {
    background: linear-gradient(to right, #fbbf24, #fef3c7);
    -webkit-background-clip: text;
    background-clip: text;
    color: transparent;
}

/* Search results styling */
#searchResults {
    max-height: 16rem;
    overflow-y: auto;
}

#searchResults .card {
    transition: all 0.2s;
}

#searchResults .card:hover {
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1);
    transform: scale(1.02);
}

/* Badge styling */
.badge-outline {
    border-color: #e8ddd3;
    color: #9a8a7a;
}

/* Loading animation for search */
.loading {
    display: inline-block;
    width: 1.25rem;
    height: 1.25rem;
    border: 2px solid #f3ede7;
    border-top-color: #b8a595;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

/* Alert styling */
.alert-info {
    background-color: #eff6ff;
    border-color: #bfdbfe;
    color: #1e40af;
}

.alert-info i {
    color: #2563eb;
}

/* About page enhancements */
#about {
    position: relative;
}

#about::before {
    content: '';
    position: absolute;
    inset: 0;
    background: linear-gradient(to bottom right, rgba(253, 251, 249, 0.5), rgba(249, 245, 241, 0.5));
    z-index: -1;
}

#about .card {
    transition: all 0.3s;
}

#about .card:hover {
    box-shadow: 0 25px 50px -12px rgba(0, 0, 0, 0.25);
    transform: translateY(-0.25rem);
}

/* Emoji styling */
#about .text-3xl {
    filter: drop-shadow(0 1px 2px rgba(0, 0, 0, 0.1));
}

/* Contact link enhancement */
#about a[href^="mailto:"] {
    transition: color 0.2s;
}

#about a[href^="mailto:"]:hover {
    color: #7f7265;
}

/* Call to action button enhancement */
#about .btn-primary {
    transform: scale(1);
    transition: all 0.2s;
}

#about .btn-primary:hover {
    transform: scale(1.05);
}

/* Responsive text sizing */
@media (max-width: 768px) {
    #about h2 {
        font-size: 1.875rem;
    }
    
    #about h3 {
        font-size: 1.25rem;
    }
    
    #about .text-lg {
        font-size: 1rem;
    }
}

/* Review animation */
@keyframes fadeInUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Modal scrollbar styling */
.modal-box::-webkit-scrollbar {
    width: 6px;
}

.modal-box::-webkit-scrollbar-track {
    background: #f1f1f1;
    border-radius: 3px;
}

.modal-box::-webkit-scrollbar-thumb {
    background: #ccbaa9;
    border-radius: 3px;
}

.modal-box::-webkit-scrollbar-thumb:hover {
    background: #b8a595;
} 

/* Loading animation */
.loading-spinner {
    border: 3px solid #f3f3f3;
    border-top: 3px solid #8B4513;
    border-radius: 50%;
    width: 30px;
    height: 30px;
    animation: spin 1s linear infinite;
    margin: 20px auto;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
} 

.mapboxgl-popup-close-button {
    display: none !important;
}
.mapboxgl-popup-close-button:hover {
    opacity: 1;
    color: #8B4513 !important;
} 

/* Remove the extra top padding from .mapboxgl-popup-content */
.mapboxgl-popup-content {
    padding-top: 1rem !important;
} 