/**
 * Champion Maker Camps - Elementor Widgets Styles
 */

/* ========================================
   Widget Containers
======================================== */
.cmc-locations-grid-widget,
.cmc-packages-grid-widget,
.cmc-booking-form-widget,
.cmc-reviews-widget,
.cmc-search-filter-bar {
    position: relative;
}

/* ========================================
   Single Location Widget
======================================== */
.cmc-single-location {
    max-width: 100%;
}

.cmc-location-header {
    margin-bottom: 30px;
}

.cmc-location-meta-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
    margin-bottom: 15px;
}

.cmc-location-title {
    font-size: 36px;
    margin: 0 0 15px;
    line-height: 1.2;
}

.cmc-location-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.cmc-meta-item {
    display: flex;
    align-items: center;
    gap: 5px;
    color: var(--cmc-gray, #666);
}

.cmc-location-description {
    margin-bottom: 30px;
    line-height: 1.8;
}

.cmc-venue-info {
    background: var(--cmc-light, #f9f9f9);
    padding: 20px;
    border-radius: var(--cmc-radius, 10px);
    margin-top: 20px;
}

.cmc-venue-info h3 {
    margin: 0 0 10px;
}

.cmc-location-map-section {
    margin-top: 40px;
}

.cmc-location-map-section h3 {
    margin-bottom: 20px;
}

.cmc-address {
    margin-top: 15px;
    color: var(--cmc-gray, #666);
}

/* ========================================
   Single Package Widget
======================================== */
.cmc-single-package {
    max-width: 100%;
}

.cmc-package-header {
    margin-bottom: 30px;
}

.cmc-package-title {
    font-size: 36px;
    margin: 0 0 15px;
}

.cmc-package-meta {
    display: flex;
    align-items: center;
    gap: 20px;
    flex-wrap: wrap;
}

.cmc-package-featured-image {
    margin-bottom: 30px;
    border-radius: var(--cmc-radius, 10px);
    overflow: hidden;
}

.cmc-package-featured-image img {
    width: 100%;
    height: auto;
}

.cmc-package-description,
.cmc-package-features-section,
.cmc-package-included,
.cmc-package-locations,
.cmc-package-reviews {
    margin-bottom: 40px;
}

.cmc-package-description h3,
.cmc-package-features-section h3,
.cmc-package-included h3,
.cmc-package-locations h3,
.cmc-package-reviews h3 {
    margin-bottom: 20px;
    font-size: 22px;
}

.cmc-included-content ul {
    list-style: none;
    padding: 0;
}

.cmc-included-content li {
    position: relative;
    padding-left: 25px;
    margin-bottom: 10px;
}

.cmc-included-content li:before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--cmc-success, #46b450);
    font-weight: bold;
}

/* ========================================
   Booking Form Widget
======================================== */
.cmc-booking-form-widget {
    background: #fff;
    border-radius: var(--cmc-radius, 10px);
    padding: 30px;
}

.cmc-form-title {
    margin: 0 0 25px;
    font-size: 22px;
    text-align: center;
}

/* ========================================
   Search Filter Widget
======================================== */
.cmc-search-filter-bar {
    background: #fff;
}

.cmc-filter-horizontal .cmc-search-form {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-end;
    gap: 15px;
}

.cmc-filter-vertical .cmc-search-form {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cmc-filter-horizontal .cmc-filter-field {
    flex: 1;
    min-width: 150px;
}

.cmc-filter-horizontal .cmc-filter-submit {
    flex: 0 0 auto;
}

.cmc-search-btn {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    white-space: nowrap;
    height: 46px;
}

.cmc-search-icon {
    font-size: 16px;
}

/* ========================================
   Reviews Widget
======================================== */
.cmc-reviews-widget .cmc-reviews-summary {
    background: var(--cmc-light, #f9f9f9);
    padding: 40px;
    border-radius: var(--cmc-radius, 10px);
    margin-bottom: 30px;
    text-align: center;
}

.cmc-rating-large .cmc-rating-number {
    font-size: 64px;
    font-weight: 700;
    line-height: 1;
    display: block;
    margin-bottom: 10px;
}

.cmc-rating-large .cmc-rating-stars {
    margin-bottom: 10px;
}

.cmc-rating-large .cmc-rating-stars .cmc-star {
    font-size: 24px;
}

.cmc-reviews-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 20px;
}

@media (max-width: 768px) {
    .cmc-reviews-grid {
        grid-template-columns: 1fr;
    }
}

/* ========================================
   All Locations Map Widget
======================================== */
.cmc-all-locations-map {
    width: 100%;
    min-height: 400px;
    border-radius: var(--cmc-radius, 10px);
    overflow: hidden;
}

/* Popup styles */
.cmc-map-popup {
    min-width: 220px;
    max-width: 280px;
}

.cmc-map-popup img {
    width: 100%;
    height: 140px;
    object-fit: cover;
    border-radius: 6px;
    margin-bottom: 12px;
}

.cmc-popup-content h4 {
    margin: 0 0 8px;
    font-size: 16px;
    line-height: 1.3;
}

.cmc-popup-content h4 a {
    color: var(--cmc-secondary, #333);
    text-decoration: none;
}

.cmc-popup-content h4 a:hover {
    color: var(--cmc-primary, #f5a623);
}

.cmc-popup-city {
    font-size: 13px;
    color: var(--cmc-gray, #666);
    margin: 0 0 5px;
}

.cmc-popup-rating {
    font-size: 14px;
    color: var(--cmc-primary, #f5a623);
    font-weight: 600;
    margin: 0 0 5px;
}

.cmc-popup-price {
    font-size: 14px;
    font-weight: 600;
    color: var(--cmc-secondary, #333);
    margin: 0 0 10px;
}

.cmc-popup-link {
    display: inline-block;
    color: var(--cmc-primary, #f5a623);
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
}

.cmc-popup-link:hover {
    text-decoration: underline;
}

/* Leaflet popup customization */
.leaflet-popup-content-wrapper {
    border-radius: 10px;
    padding: 0;
}

.leaflet-popup-content {
    margin: 15px;
}

.leaflet-popup-close-button {
    top: 8px !important;
    right: 8px !important;
}

/* Marker cluster styles */
.marker-cluster-small,
.marker-cluster-medium,
.marker-cluster-large {
    background-color: rgba(245, 166, 35, 0.6);
}

.marker-cluster-small div,
.marker-cluster-medium div,
.marker-cluster-large div {
    background-color: rgba(245, 166, 35, 0.9);
    color: #fff;
    font-weight: bold;
}

/* ========================================
   Single Location Map Widget
======================================== */
.cmc-map-wrapper {
    position: relative;
}

.cmc-single-location-map {
    width: 100%;
    min-height: 350px;
}

.cmc-map-info-box {
    position: absolute;
    bottom: 20px;
    left: 20px;
    background: #fff;
    padding: 20px;
    border-radius: var(--cmc-radius, 10px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
    max-width: 300px;
    z-index: 1000;
}

.cmc-map-info-box h4 {
    margin: 0 0 10px;
    font-size: 18px;
}

.cmc-info-city {
    display: flex;
    align-items: center;
    gap: 5px;
    margin: 0 0 5px;
    color: var(--cmc-gray, #666);
}

.cmc-info-address {
    font-size: 14px;
    color: var(--cmc-gray, #666);
    margin: 0 0 15px;
}

@media (max-width: 576px) {
    .cmc-map-info-box {
        position: relative;
        bottom: auto;
        left: auto;
        margin-top: 15px;
        max-width: none;
    }
}

/* ========================================
   Highlights Box
======================================== */
.cmc-highlights-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.cmc-highlights-list li {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 10px 0;
    border-bottom: 1px solid var(--cmc-border, #e0e0e0);
    font-size: 14px;
}

.cmc-highlights-list li:last-child {
    border-bottom: none;
}

/* ========================================
   Responsive Adjustments
======================================== */
@media (max-width: 768px) {
    .cmc-location-title,
    .cmc-package-title {
        font-size: 28px;
    }
    
    .cmc-location-meta-top {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .cmc-filter-horizontal .cmc-search-form {
        flex-direction: column;
    }
    
    .cmc-filter-horizontal .cmc-filter-field {
        width: 100%;
    }
    
    .cmc-booking-form-widget {
        padding: 20px;
    }
    
    .cmc-rating-large .cmc-rating-number {
        font-size: 48px;
    }
}

/* ========================================
   Animation Effects
======================================== */
.cmc-location-card,
.cmc-package-card {
    animation: fadeInUp 0.5s ease-out;
}

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

/* Stagger animation for grid items */
.cmc-grid > *:nth-child(1) { animation-delay: 0.1s; }
.cmc-grid > *:nth-child(2) { animation-delay: 0.2s; }
.cmc-grid > *:nth-child(3) { animation-delay: 0.3s; }
.cmc-grid > *:nth-child(4) { animation-delay: 0.4s; }
.cmc-grid > *:nth-child(5) { animation-delay: 0.5s; }
.cmc-grid > *:nth-child(6) { animation-delay: 0.6s; }

/* ========================================
   Print Styles
======================================== */
@media print {
    .cmc-booking-form-widget,
    .cmc-search-filter-bar,
    .cmc-review-form-container,
    .cmc-btn {
        display: none;
    }
    
    .cmc-location-layout,
    .cmc-package-layout {
        grid-template-columns: 1fr;
    }
}
