/* Google Maps Info Window Custom Styling */
/* This file provides consistent styling for all Google Maps InfoWindows across the application */

/* Custom Info Window Styling - Used by college-map.js */
.college-info-window {
    max-width: 320px;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    background: white;
    border: none;
    overflow: hidden;
    min-height: auto !important;
    height: auto !important;
}

/* My Colleges Info Window - Redesigned styling */
.my-colleges-info-window {
    width: 300px;
    padding: 0;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    font-size: 14px;
    line-height: 1.5;
    border-radius: 16px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
    background: white;
    border: none;
    overflow: hidden;
}

.my-colleges-info-window .iw-header,
.college-info-window .iw-header {
    color: white;
    padding: 14px 16px;
    position: relative;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%); /* Default fallback */
    border-radius: 16px 16px 0 0;
}

.my-colleges-info-window .iw-header .college-title,
.college-info-window .college-title {
    font-size: 15px;
    font-weight: 700;
    margin: 0;
    padding-right: 30px;
    line-height: 1.3;
}

.my-colleges-info-window .iw-header .college-title a,
.college-info-window .college-title a {
    color: white;
    text-decoration: none;
    display: block;
}

.my-colleges-info-window .iw-header .college-title a:hover,
.college-info-window .college-title a:hover {
    color: rgba(255, 255, 255, 0.9);
}

.my-colleges-info-window .iw-header .college-title a i,
.college-info-window .college-title a i {
    font-size: 10px;
    margin-left: 4px;
    opacity: 0.8;
}

.my-colleges-info-window .recruitment-stage {
    display: block;
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    margin-top: 2px;
}

.my-colleges-info-window .iw-close-btn,
.college-info-window .iw-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    font-size: 12px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    z-index: 1000;
    line-height: 1;
}

.my-colleges-info-window .iw-close-btn:hover,
.college-info-window .iw-close-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.1);
}

.college-info-window .college-subtitle {
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    margin: 2px 0 0;
    font-weight: 500;
}

.my-colleges-info-window .iw-body,
.college-info-window .iw-body {
    padding: 12px 14px 14px;
}

.my-colleges-info-window .location-info,
.college-info-window .location-info {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 10px;
    color: #64748b;
    font-size: 12px;
    flex-wrap: wrap;
}

.college-info-window .location-info i {
    color: #0d6efd;
    width: 14px;
}

/* Location icon color */
.my-colleges-info-window .location-info i,
.college-info-window .location-info i {
    color: #0ea5e9;
    font-size: 11px;
}

/* Conference badge in location row */
.my-colleges-info-window .conference-badge,
.college-info-window .conference-badge {
    margin-left: auto;
}

.my-colleges-info-window .conference-badge .badge,
.college-info-window .conference-badge .badge {
    background: #f1f5f9;
    color: #475569;
    border: none;
    font-size: 11px;
    font-weight: 600;
    padding: 2px 8px;
    border-radius: 4px;
}

/* Basketball program badges */
.my-colleges-info-window .basketball-programs,
.college-info-window .basketball-programs {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.my-colleges-info-window .basketball-programs .badge,
.college-info-window .basketball-programs .badge {
    font-size: 11px;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 6px;
    border: none;
}

.my-colleges-info-window .basketball-programs .badge.bg-primary,
.college-info-window .basketball-programs .badge.bg-primary {
    background: linear-gradient(135deg, #10b981, #059669) !important;
}

.my-colleges-info-window .basketball-programs .badge.bg-info,
.college-info-window .basketball-programs .badge.bg-info {
    background: linear-gradient(135deg, #f59e0b, #d97706) !important;
}

/* Metrics grid */
.my-colleges-info-window .metrics-grid,
.college-info-window .metrics-grid {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 8px;
    margin-bottom: 10px;
    padding: 10px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 10px;
    border: 1px solid #e2e8f0;
}

.my-colleges-info-window .metric,
.college-info-window .metric {
    text-align: center;
}

.my-colleges-info-window .metric-value,
.college-info-window .metric-value {
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
    display: block;
}

.my-colleges-info-window .metric-label,
.college-info-window .metric-label {
    font-size: 8px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 3px;
    display: block;
}

/* Compact info items */
.my-colleges-info-window .compact-info,
.college-info-window .compact-info {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    font-size: 11px;
    color: #475569;
}

.my-colleges-info-window .compact-info i,
.college-info-window .compact-info i {
    color: #0ea5e9;
    width: 12px;
    font-size: 10px;
}

/* Details list */
.my-colleges-info-window .details-list,
.college-info-window .details-list {
    list-style: none;
    padding: 0;
    margin: 0 0 10px;
}

.my-colleges-info-window .details-list li,
.college-info-window .details-list li {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 4px;
    font-size: 11px;
    color: #475569;
    line-height: 1.3;
}

.my-colleges-info-window .details-list i,
.college-info-window .details-list i {
    color: #0ea5e9;
    width: 12px;
    font-size: 10px;
    flex-shrink: 0;
}

/* Feature badges */
.my-colleges-info-window .feature-badges,
.college-info-window .feature-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 10px;
}

.my-colleges-info-window .feature-badges .badge,
.college-info-window .feature-badges .badge {
    font-size: 10px;
    font-weight: 600;
    padding: 3px 8px;
    border-radius: 4px;
    border: none;
}

.my-colleges-info-window .feature-badges .badge.bg-success,
.college-info-window .feature-badges .badge.bg-success {
    background: #ecfdf5 !important;
    color: #059669 !important;
}

.my-colleges-info-window .feature-badges .badge.bg-info,
.college-info-window .feature-badges .badge.bg-info {
    background: #e0f2fe !important;
    color: #0284c7 !important;
}

/* CTA Button */
.my-colleges-info-window .cta-button,
.college-info-window .cta-button {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    border: none;
    color: white;
    font-size: 13px;
    font-weight: 600;
    padding: 10px 16px;
    border-radius: 8px;
    text-decoration: none;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    transition: all 0.2s ease;
    box-shadow: 0 2px 8px rgba(13, 110, 253, 0.2);
}

.my-colleges-info-window .cta-button:hover,
.college-info-window .cta-button:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.35);
    color: white;
    text-decoration: none;
}

/* Google Maps InfoWindow Container Overrides */
/* These styles override Google Maps default InfoWindow styling for consistent appearance */

.gm-style .gm-style-iw-c {
    padding: 0 !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.12) !important;
    border: none !important;
    background: transparent !important;
    max-width: 450px !important;
    max-height: none !important;
}

.gm-style .gm-style-iw-d {
    overflow: visible !important;
    max-width: none !important;
    max-height: none !important;
    padding-bottom: 0 !important;
}

.gm-style .gm-style-iw-t::after {
    display: none !important;
}

.gm-style .gm-ui-hover-effect {
    display: none !important;
}

.gm-style-iw button {
    display: none !important;
}

.gm-style-iw-chr {
    display: none !important;
}

.gm-style .gm-style-iw {
    max-height: none !important;
    overflow: visible !important;
    padding: 0 !important;
}

.gm-style .gm-style-iw-tc {
    filter: none !important;
}

/* My Colleges Map Popup - Modern Redesign */
.mc-popup {
    width: 300px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
    background: white;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.15);
}

.mc-popup-header {
    padding: 14px 16px;
    position: relative;
}

.mc-close-btn {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 24px;
    height: 24px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.2);
    border: none;
    color: white;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    transition: all 0.2s;
}

.mc-close-btn:hover {
    background: rgba(255, 255, 255, 0.35);
    transform: scale(1.1);
}

.mc-college-link {
    display: block;
    color: white;
    font-size: 15px;
    font-weight: 700;
    text-decoration: none;
    padding-right: 30px;
    line-height: 1.3;
}

.mc-college-link:hover {
    color: rgba(255, 255, 255, 0.9);
}

.mc-college-link i {
    font-size: 10px;
    margin-left: 4px;
    opacity: 0.8;
}

.mc-nickname {
    display: block;
    color: rgba(255, 255, 255, 0.85);
    font-size: 12px;
    margin-top: 2px;
}

.mc-popup-body {
    padding: 12px 14px 14px;
}

.mc-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 12px;
    color: #64748b;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.mc-location i {
    color: #0ea5e9;
    font-size: 11px;
}

.mc-conference {
    background: #f1f5f9;
    color: #475569;
    padding: 2px 8px;
    border-radius: 4px;
    font-size: 11px;
    font-weight: 600;
    margin-left: auto;
}

.mc-programs {
    display: flex;
    gap: 6px;
    margin-bottom: 10px;
    flex-wrap: wrap;
}

.mc-badge {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 6px;
    font-size: 11px;
    font-weight: 600;
    color: white;
}

.mc-badge-mbb {
    background: linear-gradient(135deg, #10b981, #059669);
}

.mc-badge-wbb {
    background: linear-gradient(135deg, #f59e0b, #d97706);
}

.mc-metrics {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 8px;
    background: linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%);
    border-radius: 10px;
    padding: 10px;
    margin-bottom: 10px;
    border: 1px solid #e2e8f0;
}

.mc-metric {
    text-align: center;
}

.mc-metric-value {
    display: block;
    font-size: 16px;
    font-weight: 700;
    color: #1e293b;
    line-height: 1;
}

.mc-metric-label {
    display: block;
    font-size: 8px;
    color: #64748b;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.3px;
    margin-top: 3px;
}

.mc-compact-info {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 10px;
}

.mc-info-item {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 11px;
    color: #475569;
}

.mc-info-item i {
    color: #0ea5e9;
    font-size: 10px;
}

.mc-features {
    display: flex;
    flex-wrap: wrap;
    gap: 4px;
    margin-bottom: 10px;
}

.mc-feature-badge {
    display: inline-block;
    padding: 3px 8px;
    background: #ecfdf5;
    color: #059669;
    border-radius: 4px;
    font-size: 10px;
    font-weight: 600;
}

.mc-cta-btn {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 6px;
    width: 100%;
    padding: 10px 16px;
    background: linear-gradient(135deg, #0ea5e9 0%, #0284c7 100%);
    color: white;
    border: none;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 600;
    text-decoration: none;
    transition: all 0.2s;
    box-shadow: 0 2px 8px rgba(14, 165, 233, 0.25);
}

.mc-cta-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(14, 165, 233, 0.35);
    color: white;
}
