/* ========================================
   SPOTLIGHT MODAL - CORE STRUCTURE
   ======================================== */

.spotlight-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.85);
    z-index: 100020; /* Higher than stamps/plans gallery modals (100010) */
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
}

.spotlight-modal.active {
    display: block;
    animation: spotlight-fade-in 0.3s ease;
}

@keyframes spotlight-fade-in {
    from { opacity: 0; }
    to { opacity: 1; }
}

.spotlight-content {
    position: relative;
    width: 100%;
    min-height: 100vh;
    background: #ffffff;
    /* Remove slide-up animation */
}

/* Close Button */
#spotlight-modal .spotlight-close {
    position: absolute;
    top: 20px;
    right: 20px;
    z-index: 1001 !important; /* Ensure button is above all spotlight content */
    background: rgba(0, 0, 0, 0.5);
    border: none;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    font-size: 28px;
    color: white;
    cursor: pointer !important;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.2s ease;
    pointer-events: auto !important; /* Ensure button is clickable */
}

#spotlight-modal .spotlight-close:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

/* ========================================
   SPOTLIGHT CARD (1:1 Aspect Ratio)
   ======================================== */

.spotlight-card-container {
    width: 100%;
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

.spotlight-card {
    width: 100%;
    height: 0;
    padding-bottom: 100%; /* 1:1 aspect ratio */
    border-radius: 0; /* No border radius as specified */
    overflow: visible; /* Changed from hidden to visible - allow tab bar to show */
    box-shadow: none; /* Remove shadow for full-width card */
    background: #000; /* Fallback black background */
    position: relative;
}

/* Card Content (matches Your Stamps/Plans modal cards) */
.spotlight-card .slide-content,
.spotlight-card .story-card,
.spotlight-card .modal-slide-content {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    display: flex;
    flex-direction: column;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
}

/* Ensure background image fills properly */
.spotlight-card .story-card-overlay,
.spotlight-card .modal-slide-content .story-card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
    z-index: 1; /* Ensure overlay stays below tab bar (z-index: 25) */
}

/* ========================================
   SPOTLIGHT SECTIONS (Expandable)
   ======================================== */

.spotlight-sections {
    width: 100%;
    max-width: 600px;
    margin: 0 auto;
    padding: 0 20px 40px 20px;
}

.spotlight-section {
    margin-bottom: 20px;
    background: #ffffff;
    border: 1px solid #e0e0e0;
    border-radius: 12px;
    overflow: hidden;
    transition: all 0.3s ease;
}

.spotlight-section.expanded {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Section Header */
.spotlight-section .section-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 16px 20px;
    background: #f8f9fa;
    cursor: pointer;
    transition: background 0.2s ease;
}

.spotlight-section .section-header:hover {
    background: #e9ecef;
}

.spotlight-section .section-header h4,
.spotlight-section .section-header h5 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    display: flex;
    align-items: center;
    gap: 8px;
}

.spotlight-section .section-header h4 i,
.spotlight-section .section-header h5 i {
    color: #667eea;
}

.spotlight-section .section-collapse {
    background: none;
    border: none;
    font-size: 18px;
    color: #666;
    cursor: pointer;
    padding: 4px 8px;
    transition: transform 0.3s ease;
}

.spotlight-section.expanded .section-collapse {
    transform: rotate(180deg);
}

/* Section Content */
.spotlight-section .section-content {
    padding: 20px;
    display: none;
}

/* Remove padding for media section specifically */
#spotlight-media .section-content {
    padding: 0;
}

.spotlight-section.expanded .section-content {
    display: block;
    animation: section-slide-down 0.3s ease;
}

@keyframes section-slide-down {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* ========================================
   MEDIA SECTION
   ======================================== */

/* Upload input (hidden) */
#spotlight-media-upload-input {
    display: none;
}

/* Media gallery container */
#spotlight-media .media-gallery-container {
    position: relative;
    width: 100%;
}

/* Empty state */
.spotlight-media-empty-state {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 400px;
    background: #f8f9fa;
    border: 2px dashed #d0d0d0;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.3s ease;
}

.spotlight-media-empty-state:hover {
    background: #f0f0f0;
    border-color: #667eea;
}

.spotlight-media-empty-state .empty-state-icon {
    font-size: 48px;
    color: #999;
    margin-bottom: 12px;
    transition: color 0.3s ease;
}

.spotlight-media-empty-state:hover .empty-state-icon {
    color: #667eea;
}

.spotlight-media-empty-state .empty-state-text {
    font-size: 18px;
    font-weight: 500;
    color: #666;
}

/* Media viewer */
.spotlight-media-viewer {
    width: 100%;
    display: flex;
    flex-direction: column;
    gap: 16px;
}

/* Main media container */
.spotlight-main-media-container {
    width: 100%;
    aspect-ratio: 16 / 9;
    max-height: 400px;
    position: relative;
    border-radius: 12px;
    overflow: hidden;
    background: #000;
}

.spotlight-main-media {
    width: 100%;
    height: 100%;
    position: relative;
    cursor: pointer;
}

.spotlight-main-media img,
.spotlight-main-media video {
    width: 100%;
    height: 100%;
    object-fit: contain;
    background: #000;
    display: block; /* Ensure image displays properly */
    position: relative; /* Ensure image is in normal flow */
    z-index: 1; /* Above background */
}

/* Delete button on main media */
.spotlight-delete-main {
    position: absolute;
    top: 12px;
    right: 12px;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border: none;
    border-radius: 50% !important;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    transition: all 0.2s ease;
    z-index: 10;
}

.spotlight-delete-main:hover {
    background: #dc3545;
    transform: scale(1.1);
}

/* Lightbox trigger overlay */
.spotlight-lightbox-trigger {
    position: absolute;
    bottom: 12px;
    right: 12px;
    width: 40px !important;
    height: 40px !important;
    min-width: 40px !important;
    min-height: 40px !important;
    padding: 0 !important;
    background: rgba(0, 0, 0, 0.7);
    color: white;
    border-radius: 50% !important;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 16px;
    opacity: 0;
    transition: opacity 0.2s ease;
    pointer-events: none;
    z-index: 5;
}

.spotlight-main-media:hover .spotlight-lightbox-trigger {
    opacity: 1;
}

/* Thumbnails carousel */
.spotlight-thumbnails-carousel {
    width: 100%;
    position: relative;
    padding: 0 40px; /* Space for arrows */
}

.spotlight-media-thumb {
    aspect-ratio: 1 / 1;
    width: 100%;
    max-width: 100px;
    margin: 0 !important;
    border-radius: 0px;
    overflow: hidden;
    cursor: pointer;
    position: relative;
    border: 0px;
    transition: all 0.2s ease;
}

.spotlight-media-thumb:hover {
    border-color: #667eea;
    transform: scale(1.05);
}

.spotlight-media-thumb.active {
    border-color: #667eea;
    box-shadow: 0 0 0 2px rgba(102, 126, 234, 0.3);
}

.spotlight-media-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Video indicator on thumbnail */
.thumb-video-indicator {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background: rgba(0, 0, 0, 0.7);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 12px;
    z-index: 2;
    pointer-events: none;
}

/* Slick carousel arrows */
.spotlight-thumbnails-carousel .slick-prev,
.spotlight-thumbnails-carousel .slick-next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 32px;
    height: 32px;
    background: rgba(0, 0, 0, 0.5);
    color: white;
    border: none;
    border-radius: 50%;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    z-index: 10;
    transition: background 0.2s ease;
}

.spotlight-thumbnails-carousel .slick-prev:hover,
.spotlight-thumbnails-carousel .slick-next:hover {
    background: rgba(102, 126, 234, 0.9);
}

.spotlight-thumbnails-carousel .slick-prev {
    left: 0;
}

.spotlight-thumbnails-carousel .slick-next {
    right: 0;
}

.spotlight-thumbnails-carousel .slick-disabled {
    opacity: 0.3;
    cursor: not-allowed;
}

/* Add more button */
.spotlight-add-more-btn {
    align-self: center;
    padding: 10px 20px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
    transition: background 0.2s ease;
    margin-top: 8px;
}

.spotlight-add-more-btn:hover {
    background: #5568d3;
}

/* Upload overlay */
.spotlight-upload-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(255, 255, 255, 0.95);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    z-index: 100;
    border-radius: 12px;
}

.spotlight-upload-overlay .spinner {
    width: 40px;
    height: 40px;
    border: 4px solid #f3f3f3;
    border-top: 4px solid #667eea;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-bottom: 12px;
}

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

.spotlight-upload-overlay p {
    font-size: 16px;
    color: #333;
    margin: 0;
}

/* PhotoSwipe lightbox overrides for spotlight */
.pswp {
    z-index: 200099 !important; /* Overlay spotlight modal */
}

.pswp__bg {
    background: rgba(0, 0, 0, 0.9);
}

/* Responsive adjustments */
@media (max-width: 768px) {
    .spotlight-main-media-container {
        max-height: 300px;
    }
    
    .spotlight-media-thumb {
        max-width: 80px;
        margin: 0 4px;
    }
    
    .spotlight-thumbnails-carousel {
        padding: 0 35px;
    }
    
    .spotlight-thumbnails-carousel .slick-prev,
    .spotlight-thumbnails-carousel .slick-next {
        width: 28px;
        height: 28px;
        font-size: 12px;
    }
}

@media (max-width: 480px) {
    .spotlight-main-media-container {
        max-height: 250px;
    }
    
    .spotlight-media-thumb {
        max-width: 70px;
        margin: 0 3px;
    }
    
    .spotlight-media-empty-state .empty-state-icon {
        font-size: 36px;
    }
    
    .spotlight-media-empty-state .empty-state-text {
        font-size: 16px;
    }
}

/* ========================================
   RATING SECTION - 3-PART SLIDER
   ======================================== */

#spotlight-rating .section-content {
    position: relative;
    overflow: hidden;
}

/* Slider Container */
.review-slider-container {
    width: 100%;
    overflow: hidden;
    position: relative;
}

.review-slider-track {
    display: flex;
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    will-change: transform;
}

.review-slide {
    min-width: 100%;
    padding: 20px 10px;
    box-sizing: border-box;
}

.review-slide .slide-title {
    text-align: center;
    margin-bottom: 20px;
}

.review-slide .slide-title h5 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
    color: #333;
}

/* Slide 1: Rating & Review */
.rating-section {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.lifelist-star-rating {
    display: flex;
    gap: 8px;
    justify-content: center;
    font-size: 32px;
}

.lifelist-star {
    cursor: pointer;
    transition: transform 0.2s ease;
}

.lifelist-star:hover {
    transform: scale(1.2);
}

.lifelist-star i {
    color: #ffc107;
}

#spotlight-rating textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
    min-height: 100px;
    box-sizing: border-box;
}

/* Slide 2: Budget Section */
.budget-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.budget-info-text {
    text-align: center;
    color: #666;
    font-size: 14px;
}

.budget-info-text p {
    margin: 0;
}

.budget-fields {
    display: flex;
    flex-direction: column;
    gap: 16px;
}

.budget-fields-row {
    flex-direction: row;
    gap: 12px;
}

.budget-field-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    flex: 1;
    min-width: 0;
    width: 100%;
}

.budget-field-group label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.budget-field-value {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    background: #f8f9fa;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    transition: border-color 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.budget-field-value:focus-within {
    border-color: #667eea;
    background: #fff;
}

.budget-field-value .currency-symbol {
    font-size: 18px;
    font-weight: 600;
    color: #667eea;
}

.budget-field-value input {
    flex: 1;
    border: none;
    background: transparent;
    font-size: 18px;
    font-weight: 600;
    outline: none;
    color: #333;
}

.budget-field-value input[readonly] {
    color: #999;
    cursor: not-allowed;
}

.budget-field-value .field-unit {
    font-size: 14px;
    color: #666;
}

/* Slide 3: Duration Section */
.duration-section {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.duration-info-text {
    text-align: center;
    color: #666;
    font-size: 14px;
}

.duration-info-text p {
    margin: 0;
}

.duration-fields {
    display: flex;
    gap: 16px;
    justify-content: center;
}

.duration-field-group {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
    max-width: 150px;
    min-width: 0;
}

.duration-field-group label {
    font-size: 13px;
    font-weight: 600;
    color: #333;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    text-align: center;
}

.duration-field-group select {
    padding: 12px;
    font-size: 18px;
    font-weight: 600;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    background: #f8f9fa;
    color: #333;
    cursor: pointer;
    transition: border-color 0.2s ease;
    text-align: center;
    width: 100%;
    box-sizing: border-box;
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url('data:image/svg+xml;charset=UTF-8,%3csvg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="none" stroke="%23333" stroke-width="2" stroke-linecap="round" stroke-linejoin="round"%3e%3cpolyline points="6 9 12 15 18 9"%3e%3c/polyline%3e%3c/svg%3e');
    background-repeat: no-repeat;
    background-position: right 8px center;
    background-size: 16px;
    padding-right: 32px;
}

.duration-field-group select:focus {
    outline: none;
    border-color: #667eea;
    background: #fff;
}

.duration-display {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    border-radius: 12px;
    color: white;
    font-size: 24px;
    font-weight: 600;
}

.duration-display i {
    font-size: 28px;
}

/* Slider Pagination Dots - Combined Active + Completion State */
.review-slider-pagination {
    display: flex;
    justify-content: center;
    gap: 16px;
    margin-top: 24px;
    padding-top: 20px;
    border-top: 1px solid #e0e0e0;
}

.pagination-dot {
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    transition: transform 0.2s ease;
    position: relative;
}

.pagination-dot:hover {
    transform: scale(1.15);
}

.pagination-dot i {
    font-size: 14px;
    transition: color 0.2s ease;
}

/* Default state: Not active, not completed */
.pagination-dot i {
    color: #d0d0d0;
}

/* Active slide (current) - bright blue outline */
.pagination-dot.active i.fa-regular {
    color: #667eea;
    font-size: 16px;
}

/* Completed but not active - green filled */
.pagination-dot.has-data i {
    color: #28a745;
}

/* Active AND completed - bright green filled */
.pagination-dot.active.has-data i {
    color: #28a745;
    font-size: 16px;
}

/* Always show regular circles, add solid class when has data */
.pagination-dot i.fa-solid {
    display: none;
}

.pagination-dot.has-data i.fa-regular {
    display: none;
}

.pagination-dot.has-data i.fa-solid {
    display: inline;
}

/* Remove navigation arrows completely */
.slider-nav {
    display: none !important;
}

/* ========================================
   FRIENDS SECTION (Provider/Companions/Observers)
   ======================================== */

#spotlight-friends .relationship-section {
    margin-bottom: 20px;
    padding: 16px;
    background: #f8f9fa;
    border-radius: 8px;
}

#spotlight-friends .relationship-section h5 {
    display: flex;
    align-items: center;
    gap: 8px;
    margin: 0 0 12px 0;
    font-size: 14px;
    font-weight: 600;
    color: #333;
}

#spotlight-friends .relationship-section h5 i {
    color: #667eea;
}

#spotlight-friends .provider-info {
    display: flex;
    align-items: center;
    gap: 12px;
}

#spotlight-friends .provider-avatar-container {
    position: relative;
}

#spotlight-friends .provider-avatar {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    object-fit: cover;
}

#spotlight-friends .bkap-status-icon {
    position: absolute;
    bottom: -2px;
    right: -2px;
    width: 18px;
    height: 18px;
    border-radius: 50%;
    background: #28a745;
    border: 2px solid white;
}

#spotlight-friends .companions-list,
#spotlight-friends .observers-list {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

#spotlight-friends .companion-slot {
    padding: 12px;
    border: 2px solid #e0e0e0;
    border-radius: 8px;
    min-width: 120px;
    text-align: center;
}

#spotlight-friends .companion-slot.filled {
    border-color: #28a745;
}

#spotlight-friends .companion-slot.pending {
    border-color: #ffc107;
}

#spotlight-friends .friends-search-section {
    margin-top: 20px;
}

#spotlight-friends .friends-search input {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
}

#spotlight-friends .tag-options {
    margin: 16px 0;
}

#spotlight-friends .tag-options label {
    display: flex;
    align-items: center;
    gap: 8px;
    padding: 12px;
    margin-bottom: 8px;
    background: #f8f9fa;
    border-radius: 8px;
    cursor: pointer;
    transition: background 0.2s ease;
}

#spotlight-friends .tag-options label:hover {
    background: #e9ecef;
}

#spotlight-friends .tag-notes textarea {
    width: 100%;
    padding: 12px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-family: inherit;
    font-size: 14px;
    resize: vertical;
}

#spotlight-friends .btn-primary {
    width: 100%;
    padding: 12px;
    background: #667eea;
    color: white;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 600;
    margin-top: 16px;
    transition: background 0.2s ease;
}

#spotlight-friends .btn-primary:hover {
    background: #5568d3;
}

/* ========================================
   GALLERY SECTIONS (Stamps/Plans)
   ======================================== */

#spotlight-stamps-gallery .modal-grid-container,
#spotlight-plans-gallery .modal-grid-container {
    max-height: 500px;
    overflow-y: auto;
}

#spotlight-stamps-gallery .story-cards-modal-grid,
#spotlight-plans-gallery .story-cards-modal-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(150px, 1fr));
    gap: 16px;
}

/* ========================================
   CHAT SECTION
   ======================================== */

#spotlight-chat .chat-coming-soon {
    text-align: center;
    padding: 40px 20px;
    color: #666;
}

#spotlight-chat .chat-coming-soon h4 {
    margin: 16px 0 8px 0;
    font-size: 18px;
    color: #333;
}

#spotlight-chat .chat-coming-soon p {
    margin: 0;
    font-size: 14px;
}

/* ========================================
   MOBILE OPTIMIZATIONS
   ======================================== */

@media (max-width: 768px) {
    .spotlight-card-container {
        padding: 12px;
    }
    
    .spotlight-sections {
        padding: 0 12px 40px 12px;
    }
    
    .spotlight-close {
        width: 36px;
        height: 36px;
        font-size: 24px;
    }
    
    #spotlight-stamps-gallery .story-cards-modal-grid,
    #spotlight-plans-gallery .story-cards-modal-grid {
        grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
        gap: 12px;
    }
}

@media (max-width: 480px) {
    .spotlight-card-container {
        padding: 8px;
    }
    
    .spotlight-section .section-header {
        padding: 12px 16px;
    }
    
    .spotlight-section .section-content {
        padding: 16px;
    }
}

/* ========================================
   DESKTOP OPTIMIZATIONS
   ======================================== */


/* ========================================
   RESPONSIVE DESIGN
   ======================================== */

@media (max-width: 768px) {
    .review-slide .slide-title h5 {
        font-size: 16px;
    }
    
    /* Budget section mobile optimization - keep 3 columns */
    .budget-info-text {
        font-size: 13px;
        padding: 0 4px;
    }
    
    .budget-fields-row {
        flex-direction: row;
        gap: 6px;
    }
    
    .budget-field-group {
        flex: 1;
        min-width: 0;
    }
    
    .budget-field-group label {
        font-size: 10px;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
    }
    
    .budget-field-value {
        padding: 8px 6px;
        gap: 4px;
    }
    
    .budget-field-value input {
        font-size: 16px;
        min-width: 0;
        flex: 1;
    }
    
    .budget-field-value .currency-symbol {
        font-size: 14px;
        flex-shrink: 0;
    }
    
    .budget-field-value .field-unit {
        font-size: 11px;
        flex-shrink: 0;
    }
    
    .budget-fields,
    .duration-fields {
        gap: 12px;
    }
    
    .duration-field-group select {
        padding: 10px;
        font-size: 16px;
    }
    
    /* Duration section mobile optimization */
    .duration-info-text {
        font-size: 13px;
    }
    
    .duration-field-group {
        max-width: none;
        flex: 1;
    }
    
    .duration-field-group label {
        font-size: 12px;
    }
    
    .duration-field-group select {
        font-size: 20px;
        padding: 14px 32px 14px 10px;
        background-position: right 6px center;
    }
    
    .duration-display {
        font-size: 20px;
        padding: 14px;
    }
    
    .duration-display i {
        font-size: 24px;
    }
}

@media (min-width: 769px) {
    .spotlight-content {
        max-width: 800px;
        margin: 0 auto;
        box-shadow: 0 0 40px rgba(0, 0, 0, 0.3);
    }
    
    .spotlight-card-container {
        max-width: 500px;
    }
    
    .spotlight-sections {
        max-width: 500px;
    }
}

/* ========================================
   SPOTLIGHT SWIPER SLIDER
   ======================================== */

/* Override any padding/margins on the swiper container */
.spotlight-card .spotlight-media-swiper-container,
.spotlight-media-swiper-container {
    position: absolute;
    top: 0;
    left: 0;
    width: 100% !important;
    height: 100% !important;
    background: #1c2f3d; /* Fallback background if no image */
    z-index: 0;
    padding: 0 !important;
    margin: 0 !important;
    box-sizing: border-box;
}

/* Override story-card-overlay padding when used as swiper container */
.spotlight-card .story-card-overlay.spotlight-media-swiper-container {
    padding: 0 !important;
    margin: 0 !important;
}

/* Add gradient overlay for text readability */
.spotlight-media-swiper-container::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 50%;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0) 0%, rgba(0, 0, 0, 0.7) 100%);
    z-index: 1;
    pointer-events: none;
}

.spotlight-media-swiper {
    width: 100% !important;
    height: 100% !important;
}

.spotlight-media-swiper .swiper-wrapper {
    width: 100% !important;
    height: 100% !important;
}

.spotlight-media-swiper .swiper-slide {
    width: 100% !important;
    height: 100% !important;
    overflow: hidden;
}

.spotlight-media-slide {
    width: 100% !important;
    height: 100% !important;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Ensure story card overlay (when used) is full width/height */
.spotlight-modal .story-card-overlay {
    position: relative;
    width: 100%;
    height: 100%;
    min-height: 400px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    justify-content: flex-start !important; /* Prevent space-between from moving header */
}

/* Keep header at top with fixed position in spotlight modal */
.spotlight-modal .story-card-header {
    position: absolute;
    top: 20px;
    left: 20px;
    right: 20px;
    z-index: 10;
}

/* Story card content - overlay on top of image, centered vertically */
.spotlight-modal .story-card-content {
    position: static;
    transform: none;
    padding: 0 24px;
    margin: 40px 0 20px 0; /* Add margin instead of absolute positioning */
    z-index: 5; /* Above slider, below header */
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.spotlight-modal .story-card-title-box {
    padding: 0;
}

.spotlight-modal .story-card-title {
    font-size: 20px;
    font-weight: 600;
    color: white;
    margin: 0;
    line-height: 1.3;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.spotlight-modal .story-card-title-link {
    color: white;
    text-decoration: none;
    cursor: pointer;
    pointer-events: auto;
}

.spotlight-modal .story-card-title-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

.spotlight-modal .story-card-venue {
    font-size: 16px;
    font-weight: 500;
    color: white;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.8);
}

.spotlight-modal .story-card-venue-link {
    color: white;
    text-decoration: none;
    cursor: pointer;
    pointer-events: auto;
}

.spotlight-modal .story-card-venue-link:hover {
    opacity: 0.8;
    text-decoration: underline;
}

/* Action icons on story cards */
.spotlight-modal .ttd-action-icons,
.spotlight-modal .action-icons {
    position: relative;
    z-index: 10; /* Higher than content to be clickable */
}

/* Gallery modal cards (non-spotlight) - ensure elements are on top and have proper padding */
.story-modal .story-card-content {
    position: relative;
    z-index: 5;
    padding-left: 24px; /* Match spotlight padding */
    padding-right: 24px;
}

.story-modal .ttd-action-icons,
.story-modal .action-icons {
    position: relative;
    z-index: 10;
}

/* Swiper Navigation Buttons */
.spotlight-media-swiper .swiper-button-prev,
.spotlight-media-swiper .swiper-button-next {
    color: #ffffff;
    background: rgba(0, 0, 0, 0.5);
    width: 40px;
    height: 40px;
    border-radius: 50%;
    transition: all 0.3s ease;
}

.spotlight-media-swiper .swiper-button-prev:after,
.spotlight-media-swiper .swiper-button-next:after {
    font-size: 18px;
}

.spotlight-media-swiper .swiper-button-prev:hover,
.spotlight-media-swiper .swiper-button-next:hover {
    background: rgba(0, 0, 0, 0.7);
    transform: scale(1.1);
}

/* Swiper Pagination */
.spotlight-media-swiper .swiper-pagination {
    bottom: 10px;
}

.spotlight-media-swiper .swiper-pagination-bullet {
    background: #ffffff;
    opacity: 0.6;
    width: 8px;
    height: 8px;
}

.spotlight-media-swiper .swiper-pagination-bullet-active {
    opacity: 1;
    background: #667eea;
}

/* Story Card Header over slider */
.spotlight-media-swiper-container .story-card-header {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    z-index: 10;
    display: flex;
    justify-content: flex-start;
    align-items: flex-start;
    gap: 12px;
    padding: 16px;
    background: linear-gradient(to bottom, rgba(0, 0, 0, 0.5) 0%, rgba(0, 0, 0, 0) 100%);
}

/* Two-line date format styling */
.spotlight-modal .story-card-date,
.story-modal .story-card-date {
    display: flex;
    flex-direction: column;
    align-items: flex-start; /* Changed from flex-end to align left */
    text-align: left; /* Changed from right to left */
}

.spotlight-modal .date-primary,
.story-modal .date-primary {
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    color: #ffffff;
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
}

.spotlight-modal .date-secondary,
.story-modal .date-secondary {
    font-size: 11px;
    font-weight: 400;
    line-height: 1.2;
    color: rgba(255, 255, 255, 0.9);
    text-shadow: 0 1px 3px rgba(0, 0, 0, 0.5);
    margin-top: 2px;
}

/* ========================================
   BARCODE SECTION STYLING
   ======================================== */

/* Make barcode section stack vertically */
.barcode-section {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
}

.barcode-section label {
    margin-bottom: 0;
}

/* Barcode container - white background with brand color dots */
.barcode-section .woocommerce-order-barcodes-container {
    display: block !important;
    text-align: center !important;
    justify-content: center !important;
    margin-top: 10px !important;
    padding: 15px !important;
    background-color: #ffffff !important;
    border-radius: 8px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}

/* Change all barcode dots/foreground from dark blue to brand color #1c2d3e */
.barcode-section .woocommerce-order-barcodes-container > div > div {
    background-color: #1c2d3e !important;
}

/* Barcode number text */
.barcode-section .woocommerce-order-barcodes-number {
    color: #1c2d3e !important;
    font-family: monospace !important;
    position: relative !important;
    top: 0 !important;
    display: block;
    margin-top: 10px;
}


