/* Herbalist Map Styles */

/* ========================================
   LAYOUT & RESPONSIVE
   ======================================== */

/* Mobile-first responsive layout */
@media (max-width: 991.98px) {
    .herbalist-map-panel {
        display: none;
    }
    
    .herbalist-list-panel {
        display: block !important;
    }
}

@media (min-width: 992px) {
    .herbalist-list-panel {
        border-right: 2px solid #dee2e6;
    }
}

/* Map Container */
#herbalist-map-container {
    min-height: calc(100vh - 200px);
}

/* ========================================
   HERBALIST CARDS
   ======================================== */

/* Base Card Styles */
.herbalist-card {
    transition: all 0.3s ease;
}

.herbalist-card:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.15) !important;
}

.herbalist-card.border-primary {
    transform: translateY(-2px);
    background-color: #f8f9fa;
}

.herbalist-card img {
    border: 2px solid #f0f0f0;
}

/* Card Summary (Clickable Header) */
.herbalist-card .card-summary {
    cursor: pointer;
    user-select: none;
}

/* Expand Icon */
.herbalist-card .expand-icon {
    min-width: 20px;
    text-align: center;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* Card Details (Expandable Section) */
.herbalist-card .card-details {
    overflow: hidden;
    transition: all 0.3s ease;
}

.herbalist-card.expanded {
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2) !important;
}

.card-details h6 {
    font-weight: 600;
    font-size: 0.9rem;
}

.card-details .text-justify {
    text-align: justify;
}

.card-details .small {
    line-height: 1.6;
}

/* ========================================
   CARD CONTENT ELEMENTS
   ======================================== */

/* Photo Gallery */
.photo-gallery img {
    transition: transform 0.2s ease;
    border: 2px solid #e0e0e0;
}

.photo-gallery img:hover {
    transform: scale(1.05);
    border-color: #3498db;
}

/* Social Links */
.social-links .btn {
    border-radius: 20px;
    font-size: 0.85rem;
    padding: 0.25rem 0.75rem;
}

.social-links .btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.15);
}

/* Center on Map Button */
.center-on-map-btn {
    border-radius: 8px;
    font-weight: 500;
    transition: all 0.2s ease;
}

.center-on-map-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 8px rgba(52, 152, 219, 0.3);
}

/* ========================================
   SEARCH & FILTERS
   ======================================== */

#herbalist-search,
#activity-filter {
    border-radius: 8px;
    border: 1px solid #ddd;
}

#herbalist-search:focus,
#activity-filter:focus {
    border-color: #3498db;
    box-shadow: 0 0 0 0.2rem rgba(52, 152, 219, 0.25);
}

/* ========================================
   UI ELEMENTS
   ======================================== */

/* Badge Styles */
.badge {
    font-size: 0.75rem;
    padding: 0.35em 0.65em;
    font-weight: 500;
}

/* Alert Info */
.alert-info {
    background-color: #e8f4f8;
    border-color: #b8dde8;
    color: #0c5460;
    border-radius: 8px;
}

/* Loading Spinner */
.spinner-border {
    width: 3rem;
    height: 3rem;
}

/* Toggle Button Mobile */
#toggle-map-view {
    border-radius: 8px;
    font-weight: 500;
    padding: 10px;
}

/* ========================================
   GOOGLE MAPS INFOWINDOW
   ======================================== */

.herbalist-info-window h5 {
    color: #2c3e50;
    font-weight: 600;
    border-bottom: 2px solid #3498db;
    padding-bottom: 8px;
    margin-bottom: 12px;
}

.herbalist-info-window p {
    font-size: 14px;
    color: #555;
}

.herbalist-info-window a {
    color: #3498db;
    text-decoration: none;
}

.herbalist-info-window a:hover {
    text-decoration: underline;
}

/* ========================================
   SCROLLBAR
   ======================================== */

.herbalist-list-panel::-webkit-scrollbar {
    width: 8px;
}

.herbalist-list-panel::-webkit-scrollbar-track {
    background: #f1f1f1;
}

.herbalist-list-panel::-webkit-scrollbar-thumb {
    background: #888;
    border-radius: 4px;
}

.herbalist-list-panel::-webkit-scrollbar-thumb:hover {
    background: #555;
}

/* ========================================
   PAGE SECTIONS
   ======================================== */

.s_herbalist_map {
    background-color: #ffffff;
}

.s_title h1 {
    font-weight: 700;
    color: #2c3e50;
}

.s_title .lead {
    font-size: 1.1rem;
}
