.me-calendar-container {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.05);
    padding: 30px;
    font-family: 'Inter', sans-serif;
    position: relative;
}

.me-calendar-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 30px;
}

.me-calendar-nav-left {
    display: flex;
    gap: 10px;
}

#me-calendar-map .leaflet-popup-close-button {
    pointer-events: auto;
    z-index: 1000;
    color: #fff;
}

.me-cal-nav-btn {
    background: #FFC107;
    border: none;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 4px;
    cursor: pointer;
    color: #fff;
    transition: all 0.3s ease;
}

.me-cal-nav-btn:hover {
    background: #e6ae00;
}

.me-cal-today-btn {
    background: #FFE082;
    border: none;
    padding: 0 20px;
    height: 40px;
    border-radius: 4px;
    cursor: pointer;
    font-weight: 700;
    color: #fff;
    font-size: 14px;
}

.me-calendar-title {
    margin: 0;
    font-size: 24px;
    font-weight: 700;
    color: #333;
    text-align: center;
    letter-spacing: -0.48px;
}

.me-calendar-view-toggle .me-view-btn {
    background: #FFC107;
    border: none;
    padding: 0 20px;
    height: 40px;
    cursor: pointer;
    color: #fff;
    font-weight: 700;
    font-size: 14px;
}

.me-calendar-view-toggle .me-view-btn:first-child {
    border-radius: 4px 0 0 4px;
}

.me-calendar-view-toggle .me-view-btn:last-child {
    border-radius: 0 4px 4px 0;
    background: #e6ae00;
    /* Distinct color for list as per image */
}

/* Grid Layout */
.me-cal-day-labels {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    background: #333;
    color: #fff;
    border-radius: 4px 4px 0 0;
}

.me-cal-day-label {
    padding: 15px;
    text-align: center;
    font-weight: 700;
    font-size: 13px;
}

.me-cal-days-grid {
    border-left: 1px solid #eee;
    border-bottom: 1px solid #eee;
}

.me-cal-week-row {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
}

.me-cal-day-cell {
    border-right: 1px solid #eee;
    border-top: 1px solid #eee;
    min-height: 120px;
    background: #fff;
    padding: 10px;
    position: relative;
    transition: background 0.2s ease;
}

.me-cal-day-cell.me-not-current {
    background: #fcfcfc;
    color: #ccc;
}

.me-cal-day-cell.me-is-today {
    background: #fffdf5;
}

.me-cal-day-num {
    text-align: right;
    font-weight: 700;
    font-size: 14px;
    margin-bottom: 10px;
}

.me-cal-events-list {
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.me-cal-event-bar {
    background: #FFC107;
    color: #fff;
    padding: 4px 8px;
    border-radius: 3px;
    font-size: 11px;
    text-decoration: none;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    font-weight: 600;
    display: block;
}

.me-cal-event-bar:hover {
    background: #e6ae00;
    color: #fff;
}

.me-cal-more-events {
    font-size: 11px;
    color: #666;
    padding-left: 5px;
}

/* Loader */
.me-calendar-loader {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.7);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
}

.me-spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #FFC107;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

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

    100% {
        transform: rotate(360deg);
    }
}

/* List View Styles */
.me-cal-list-item {
    display: flex;
    gap: 30px;
    padding: 25px 0;
    border-bottom: 1px solid #eee;
    align-items: center;
}

.me-cal-list-date {
    display: flex;
    flex-direction: column;
    align-items: center;
    background: #f8f8f8;
    padding: 10px;
    border-radius: 6px;
    min-width: 60px;
}

.me-cal-list-date .day {
    font-size: 24px;
    font-weight: 800;
    color: #333;
    line-height: 1;
}

.me-cal-list-date .month {
    font-size: 12px;
    font-weight: 700;
    color: #999;
    text-transform: uppercase;
}

.me-cal-list-content {
    flex: 1;
}

.me-cal-list-title {
    margin: 0 0 8px;
    font-size: 18px;
    font-weight: 700;
    letter-spacing: -0.48px;
}

.me-cal-list-title a {
    color: #333;
    text-decoration: none;
}

.me-cal-list-meta {
    display: flex;
    gap: 20px;
    font-size: 13px;
    color: #666;
    margin-bottom: 10px;
}

.me-cal-list-excerpt {
    font-size: 14px;
    color: #777;
    line-height: 1.6;
}

.me-cal-list-btn {
    background: #FFC107;
    color: #fff;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 700;
    font-size: 13px;
    transition: all 0.3s ease;
}

.me-cal-list-btn:hover {
    background: #e6ae00;
}

.me-no-events {
    padding: 50px 0;
    text-align: center;
    color: #999;
    font-style: italic;
}

/* Map View */
.me-calendar-map-view {
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 5px 15px rgba(0, 0, 0, 0.05);
}

#me-calendar-map {
    background: #f8f9fa;
    height: 100vh;
    max-height: 100vh;
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
}

/* Custom Marker Styling */
.me-custom-marker {
    background: transparent;
    border: none;
}

.me-marker-pin {
    width: 30px;
    height: 30px;
    border-radius: 50% 50% 50% 0;
    background: #ffcc00;
    /* Yellow from design */
    position: absolute;
    transform: rotate(-45deg);
    left: 50%;
    top: 50%;
    margin: -15px 0 0 -15px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);
}

.me-marker-pin::after {
    content: '';
    width: 14px;
    height: 14px;
    margin: 8px 0 0 8px;
    background: #000;
    position: absolute;
    border-radius: 50%;
}

/* Cluster Styling Override to match yellow theme */
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
    background-color: rgba(255, 204, 0, 0.6);
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
    background-color: rgba(255, 204, 0, 1);
    color: #000;
    font-weight: bold;
}

/* Premium Leaflet Popup Customization */
.me-rich-leaflet-popup .leaflet-popup-content-wrapper {
    padding: 0;
    overflow: hidden;
    border-radius: 15px;
    background: #1a1a1a;
    box-shadow: 0 15px 45px rgba(0, 0, 0, 0.4);
}

.me-rich-leaflet-popup .leaflet-popup-content {
    margin: 0;
    width: 310px !important;
}

.me-rich-leaflet-popup .leaflet-popup-tip {
    background: #1a1a1a;
}

.me-premium-popup {
    position: relative;
    height: 200px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    overflow: hidden;
    font-family: inherit;
}

.me-popup-bg {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-size: cover;
    background-position: center;
    transition: transform 0.6s cubic-bezier(0.25, 1, 0.5, 1);
}

.me-premium-popup:hover .me-popup-bg {
    transform: scale(1.1);
}

.me-popup-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.95) 0%, rgba(0, 0, 0, 0.4) 50%, rgba(0, 0, 0, 0.1) 100%);
    z-index: 1;
}

.me-popup-badges {
    position: absolute;
    top: 15px;
    left: 15px;
    display: flex;
    gap: 8px;
    z-index: 2;
}

.me-badge {
    padding: 4px 10px;
    border: 1px solid rgba(255, 255, 255, 0.3);
    border-radius: 4px;
    background: rgba(0, 0, 0, 0.6);
    color: #fff;
    font-size: 10px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    backdrop-filter: blur(4px);
}

.me-badge-price {
    font-size: 12px;
    border-color: rgba(255, 255, 255, 0.5);
}

.me-popup-main {
    position: relative;
    z-index: 2;
    padding: 15px 20px 20px;
    width: 100%;
}

.me-popup-title {
    color: #fff;
    margin: 0 0 10px 0;
    font-size: 18px;
    font-weight: 700;
    line-height: 1.3;
    letter-spacing: -0.48px;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.5);
}

.me-popup-footer {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.me-footer-item {
    font-size: 11px;
    color: #ddd;
    display: flex;
    align-items: center;
    white-space: nowrap;
}

.me-footer-item i.dashicons {
    font-size: 14px;
    width: 14px;
    height: 14px;
    margin-right: 5px;
    color: #FFC107;
}

.me-popup-link-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 3;
}

/* Status Colors matching theme badges */
.me-badge.me-status-upcoming {
    border-color: #FFC107;
    color: #FFC107;
}

.me-badge.me-status-live {
    border-color: #28a745;
    color: #28a745;
}

.me-badge.me-status-ended {
    border-color: #6c757d;
    color: #adb5bd;
}