/* Single Nursery Profile Styles */

/* Site typography — Sniglet + brand purple (matches theme body) */
.cnm-nursery-profile .cnm-nursery-summary,
.cnm-nursery-profile .cnm-nursery-content {
    font-family: sniglet, sans-serif !important;
    color: #4B017C !important;
}

/*
 * Profile data & links — normal-weight Sniglet only (not theme heading/display font).
 * Theme often restyles a, strong, and font-weight: 600+ with a decorative face.
 */
.cnm-nursery-profile .cnm-profile-text,
.cnm-nursery-profile .cnm-profile-text a,
.cnm-nursery-profile a.cnm-profile-text,
.cnm-nursery-profile .cnm-summary-panel,
.cnm-nursery-profile .cnm-summary-label,
.cnm-nursery-profile .cnm-summary-value,
.cnm-nursery-profile .cnm-summary-value a,
.cnm-nursery-profile a.cnm-summary-link,
.cnm-nursery-profile .cnm-rating-display .cnm-rating-number,
.cnm-nursery-profile .cnm-facility-label,
.cnm-nursery-profile .cnm-facility-label .cnm-facility-detail,
.cnm-nursery-profile .cnm-facility-detail,
.cnm-nursery-profile a.cnm-ofsted-report-link,
.cnm-nursery-profile .cnm-about-content,
.cnm-nursery-profile .cnm-visit-writeup-content,
.cnm-nursery-profile .cnm-login-prompt a:not(.cnm-btn) {
    font-family: sniglet, sans-serif !important;
    font-weight: 400 !important;
    font-style: normal !important;
    letter-spacing: normal !important;
    text-transform: none !important;
    color: #4B017C !important;
    -webkit-font-smoothing: antialiased;
}

/* Hero Section */
.cnm-nursery-hero {
    position: relative;
    height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: flex-end;
}

.cnm-nursery-hero.cnm-no-image {
    background: linear-gradient(135deg, #4b017c 0%, #00adef 100%);
    height: 300px;
    align-items: center;
}

.cnm-nursery-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(to top, rgba(0,0,0,0.8) 0%, rgba(0,0,0,0.3) 50%, rgba(0,0,0,0.1) 100%);
    display: flex;
    align-items: flex-end;
}

.cnm-hero-content {
    padding: 40px 0;
    width: 100%;
}

.cnm-nursery-title {
    color: white;
    font-size: 48px;
    margin: 16px 0 0 0;
    font-weight: 700;
    text-shadow: 0 2px 8px rgba(0,0,0,0.3);
}

.cnm-membership-badge-large {
    display: inline-block;
    background: #FFD700;
    color: #333;
    padding: 8px 20px;
    border-radius: 30px;
    font-size: 14px;
    font-weight: 700;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
}

.cnm-membership-badge-large.cnm-free-badge {
    background: #9B59B6;
    color: white;
}

/* Nursery summary — scannable key details */
.cnm-nursery-summary {
    background: #f8f4fc;
    padding: 32px 0 40px;
    border-bottom: 1px solid #e0d4f0;
}

.cnm-summary-panel {
    background: #fff;
    border: 1px solid #e0d4f0;
    border-radius: 12px;
    padding: 28px 32px;
    box-shadow: 0 2px 12px rgba(75, 1, 124, 0.06);
}

.cnm-summary-heading {
    margin: 0 0 20px;
    padding-bottom: 14px;
    border-bottom: 2px solid #e8dff0;
    font-size: 1.5rem;
    font-weight: 400;
    color: #4B017C;
    font-family: sniglet, sans-serif !important;
}

.cnm-summary-list {
    margin: 0;
    padding: 0;
}

.cnm-summary-row {
    display: grid;
    grid-template-columns: minmax(120px, 28%) 1fr;
    gap: 12px 24px;
    padding: 16px 0;
    border-bottom: 1px solid #f0eaf5;
}

.cnm-summary-row:first-of-type {
    padding-top: 0;
}

.cnm-summary-row:last-of-type {
    border-bottom: none;
    padding-bottom: 0;
}

.cnm-summary-label {
    margin: 0;
    font-size: 0.9375rem;
    font-weight: 400;
    color: #7a5c96;
    line-height: 1.4;
}

.cnm-summary-value {
    margin: 0;
    font-size: 1.0625rem;
    line-height: 1.55;
    color: #4B017C;
}

.cnm-summary-line {
    display: block;
}

.cnm-summary-line + .cnm-summary-line {
    margin-top: 4px;
}

.cnm-summary-emphasis {
    font-size: 1.125rem;
}

.cnm-summary-muted {
    font-size: 0.9375rem;
    color: #6b5580;
    margin-top: 4px;
}

.cnm-summary-contact {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 6px 10px;
}

.cnm-summary-link {
    color: #4B017C;
    text-decoration: underline;
    text-underline-offset: 3px;
}

.cnm-summary-link:hover {
    color: #3a0163;
}

.cnm-summary-sep {
    color: #b8a5c9;
    font-weight: 400;
    user-select: none;
}

.cnm-rating-display {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
}

.cnm-rating-display .cnm-rating-number {
    font-weight: 400;
    color: #4B017C;
}

/* Main Content */
.cnm-nursery-content {
    padding: 60px 0;
    background: #fafafa;
}

.cnm-nursery-content section {
    background: white;
    padding: 40px;
    border-radius: 12px;
    margin-bottom: 30px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.cnm-nursery-content h2 {
    font-size: 32px;
    margin: 0 0 30px 0;
    color: #4B017C;
    font-family: sniglet, sans-serif;
    padding-bottom: 16px;
    border-bottom: 3px solid #9B59B6;
}

/* Facilities Grid */
.cnm-facilities-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 20px;
}

.cnm-facility-item {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 16px;
    background: #f9f9f9;
    border-radius: 8px;
    border-left: 4px solid #ddd;
    transition: all 0.3s;
}

.cnm-facility-item.available {
    border-left-color: #28a745;
    background: #f0f9f4;
}

.cnm-facility-item.unavailable {
    border-left-color: #dc3545;
    background: #fff5f5;
    opacity: 0.6;
}

.cnm-facility-icon {
    font-size: 24px;
    font-weight: 700;
    min-width: 30px;
    text-align: center;
}

.cnm-facility-item.available .cnm-facility-icon {
    color: #28a745;
}

.cnm-facility-item.unavailable .cnm-facility-icon {
    color: #dc3545;
}

.cnm-facility-label {
    font-size: 16px;
    color: #4B017C;
    line-height: 1.4;
}

.cnm-facility-detail {
    font-weight: 400;
}

.cnm-ofsted-report-link {
    display: block;
    margin-top: 6px;
    font-size: 15px;
    font-weight: 400;
    text-decoration: underline;
    text-underline-offset: 2px;
}

.cnm-ofsted-report-link:hover {
    color: #3a0163;
}

/* Visit write-up */
.cnm-visit-writeup-section {
    border-left: 4px solid #9B59B6;
}

.cnm-visit-writeup-content {
    color: #4B017C;
    font-size: 16px;
    line-height: 1.8;
}

.cnm-visit-writeup-content p {
    margin: 0 0 1em;
}

/* About Section */
.cnm-about-section {
    line-height: 1.8;
}

.cnm-about-content {
    color: #4B017C;
    font-size: 16px;
}

.cnm-about-content p {
    margin-bottom: 16px;
}

/* Photo Gallery */
.cnm-gallery-hero-band {
    background: #f8f4fc;
    padding: 32px 0;
    border-bottom: 1px solid #e0d4f0;
}

.cnm-gallery-section--below-hero {
    margin: 0;
    background: transparent;
    padding: 0;
    border-radius: 0;
    box-shadow: none;
}

.cnm-gallery-section--below-hero h2 {
    font-size: 1.5rem;
    margin: 0 0 20px;
    padding-bottom: 12px;
    border-bottom: 2px solid #e8dff0;
    color: #4B017C;
    font-family: sniglet, sans-serif;
}

.cnm-gallery-section {
    margin-top: 10px;
}

.cnm-photo-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 16px;
}

.cnm-photo-gallery .cnm-gallery-item {
    display: block;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 2px 10px rgba(75, 1, 124, 0.15);
    border: 2px solid #e8dff0;
    transition: transform 0.25s ease, box-shadow 0.25s ease;
    cursor: zoom-in;
}

.cnm-photo-gallery .cnm-gallery-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 16px rgba(75, 1, 124, 0.2);
}

.cnm-photo-gallery .cnm-gallery-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

/* Lightbox */
body.cnm-gallery-lightbox-open {
    overflow: hidden;
}

.cnm-gallery-lightbox {
    position: fixed;
    inset: 0;
    z-index: 100000;
    background: rgba(0, 0, 0, 0.88);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 24px;
}

.cnm-gallery-lightbox[hidden] {
    display: none !important;
}

.cnm-gallery-lightbox-inner {
    max-width: 92vw;
    max-height: 88vh;
}

.cnm-gallery-lightbox-inner img {
    max-width: 92vw;
    max-height: 88vh;
    width: auto;
    height: auto;
    display: block;
    border-radius: 6px;
}

.cnm-gallery-lightbox-close,
.cnm-gallery-lightbox-prev,
.cnm-gallery-lightbox-next {
    position: absolute;
    background: rgba(255, 255, 255, 0.15);
    border: none;
    color: #fff;
    font-size: 32px;
    line-height: 1;
    cursor: pointer;
    padding: 8px 14px;
    border-radius: 4px;
}

.cnm-gallery-lightbox-close {
    top: 16px;
    right: 16px;
}

.cnm-gallery-lightbox-prev {
    left: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.cnm-gallery-lightbox-next {
    right: 16px;
    top: 50%;
    transform: translateY(-50%);
}

.cnm-gallery-lightbox-close:hover,
.cnm-gallery-lightbox-prev:hover,
.cnm-gallery-lightbox-next:hover {
    background: rgba(255, 255, 255, 0.3);
}

/* Limited Info (Free Listings) */
.cnm-limited-info {
    text-align: center;
    padding: 60px 40px !important;
}

.cnm-upgrade-message {
    font-size: 18px;
    color: #666;
    line-height: 1.6;
    max-width: 600px;
    margin: 0 auto;
}

/* Reviews Section */
.cnm-reviews-section {
    background: #f9f9f9 !important;
}

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

.cnm-reviews-header h2 {
    margin: 0;
}

/* Review form — beat Elementor/theme heading + button styles */
.cnm-review-form-section .cnm-review-form .cnm-review-label,
.cnm-nursery-profile .cnm-review-form .cnm-review-label,
.cnm-review-form-container .cnm-review-label {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    font-style: normal !important;
    letter-spacing: normal !important;
    line-height: 1.4 !important;
    text-transform: none !important;
    color: #333 !important;
}

.cnm-review-form-section .cnm-review-field,
.cnm-nursery-profile .cnm-review-form .cnm-review-field {
    margin-bottom: 24px !important;
}

.cnm-review-form-section button.cnm-submit-review,
.cnm-nursery-profile button.cnm-submit-review,
.elementor-kit-1 button.cnm-submit-review,
body .cnm-review-form button.cnm-submit-review {
    background: #4b017c !important;
    background-color: #4b017c !important;
    background-image: none !important;
    color: #fff !important;
    border: none !important;
    border-radius: 4px !important;
    padding: 14px 28px !important;
    font-size: 16px !important;
    font-weight: 600 !important;
    text-transform: none !important;
    box-shadow: none !important;
}

.cnm-review-form-section button.cnm-submit-review:hover,
.cnm-nursery-profile button.cnm-submit-review:hover,
body .cnm-review-form button.cnm-submit-review:hover {
    background: #2d0a4a !important;
    background-color: #2d0a4a !important;
    color: #fff !important;
}

/* Login Prompt */
.cnm-login-prompt {
    text-align: center;
    padding: 60px 40px !important;
    background: linear-gradient(135deg, #f8f4fc 0%, #e8f4fc 100%) !important;
    border: 2px solid #e0d4f0;
}

.cnm-login-prompt-content h3 {
    font-size: 28px;
    margin: 0 0 15px 0;
    color: #4b017c;
}

.cnm-login-prompt-content p {
    font-size: 18px;
    color: #666;
    margin: 0 0 25px 0;
}

.cnm-login-prompt a {
    color: #4b017c;
    font-weight: 600;
    text-decoration: none;
}

.cnm-login-prompt a:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .cnm-nursery-hero {
        height: 300px;
    }
    
    .cnm-nursery-title {
        font-size: 32px;
    }
    
    .cnm-summary-panel {
        padding: 20px 18px;
    }

    .cnm-summary-row {
        grid-template-columns: 1fr;
        gap: 6px;
        padding: 14px 0;
    }

    .cnm-summary-heading {
        font-size: 1.25rem;
    }
    
    .cnm-nursery-content section {
        padding: 24px;
    }
    
    .cnm-nursery-content h2 {
        font-size: 24px;
    }
    
    .cnm-facilities-grid {
        grid-template-columns: 1fr;
    }
    
    .cnm-photo-gallery {
        grid-template-columns: 1fr;
    }
}

/* Print Styles */
@media print {
    .cnm-nursery-hero-overlay {
        background: rgba(0,0,0,0.5);
    }
    
    .cnm-summary-panel {
        box-shadow: none;
        border: 1px solid #ddd;
    }
}
