/* ============================================
   MOUSE AGENTS - TRIP PAGE STYLES
   Using Montserrat font and brand colors
   All styles consolidated in one file
   ============================================ */

/* Hide default header */
header {
    display: none !important;
}

/* Global Styles */
* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
}

body {
    font-family: 'Montserrat', sans-serif;
    background: #f8fafb;
    color: #1f2937;
    line-height: 1.5;
}

/* ============================================
   TRIP PAGE CONTENT STYLES
   ============================================ */

.content-container {
    max-width: 1200px;
    margin: 0 auto;
}

/* Trip Header */
.trip-header {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 32px;
    margin-bottom: 24px;
}

.trip-title-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.trip-header-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 24px;
}

.trip-title {
    font-size: 1.8em;
    font-weight: 600;
    color: #1f2937;
}

/* Style Edit Trip button to match Expand/Collapse buttons */
.edit-trip-btn,
.trip-header-top .btn-secondary {
    padding: 8px 16px;
    background: white;
    border: 1px solid #00B4C5;
    color: #00B4C5;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.edit-trip-btn:hover,
.trip-header-top .btn-secondary:hover {
    background: #e6f7f9;
    border-color: #008A99;
    color: #008A99;
}

/* Trip Details Grid */
.trip-details {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 24px;
}

.detail-section {
    background: #f8fafb;
    padding: 20px;
    border-radius: 6px;
}

.detail-section h3 {
    font-size: 0.9em;
    font-weight: 600;
    color: #6b7280;
    margin-bottom: 16px;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.detail-row {
    display: flex;
    justify-content: space-between;
    padding: 8px 0;
    border-bottom: 1px solid #e5e7eb;
}

.detail-row:last-child {
    border-bottom: none;
}

.detail-label {
    color: #6b7280;
    font-size: 0.9em;
}

.detail-value {
    color: #1f2937;
    font-weight: 500;
    font-size: 0.9em;
}

.detail-value.highlight {
    color: #00B4C5;
    font-weight: 600;
}

.detail-value.warning {
    color: #dc2626;
    font-weight: 600;
}

/* ============================================
   REFURBISHMENTS SECTION
   ============================================ */

/* Refurb container with warm beige styling */
.refurb-container,
.refurb-alert {
    background: #FFF4E0;
    border: 1px solid #FFE9C7;
    border-radius: 6px;
    padding: 20px;
    margin-bottom: 24px;
}

.refurb-alert h3 {
    color: #92400e;
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 12px;
}

.refurb-alert p {
    color: #78350f;
    line-height: 1.6;
}

/* Refurbishment park grouping */
.refurb-park-group {
    margin-bottom: 20px;
}

.refurb-park-group:last-child {
    margin-bottom: 0;
}

.refurb-park-name {
    font-weight: 600;
    font-size: 0.9em;
    color: #1f2937;
    margin-bottom: 8px;
    text-decoration: underline;
}

/* Hotel refurbishment items - no bullets, paragraph breaks */
.hotel-refurb-item,
.refurb-item {
    padding: 0;
    background: transparent;
    border: none;
    margin-bottom: 16px;
    font-size: 0.9em !important;
    color: #6b7280;
    line-height: 1.6;
}

.hotel-refurb-item:last-child,
.refurb-item:last-child {
    margin-bottom: 0;
}

.refurb-container .refurb-item .event-marker {
    display: inline-block;
    width: 8px;
    color: #9ca3af;
    margin-right: 6px;
    font-size: 1em;
}

.refurb-item .refurb-park {
    font-weight: 600;
    color: #1f2937;
}

.refurb-item .refurb-name {
    display: inline;
    font-weight: normal;
}

.hotel-refurb-item .refurb-dates {
    display: inline;
    color: #9ca3af;
    font-style: italic;
}

/* ============================================
   DAY-BY-DAY SECTION
   ============================================ */

.day-section {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px;
    margin-bottom: 24px;
}

/* Header with controls on same line */
.section-header,
.section-header-with-controls {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
}

.section-header h2,
.section-header-with-controls .section-title {
    font-size: 1.4em;
    font-weight: 600;
    color: #1f2937;
}

.section-header-with-controls .section-title {
    margin-bottom: 0;
}

/* Accordion controls buttons */
.expand-collapse-btns,
.accordion-controls {
    display: flex;
    gap: 10px;
    margin: 0;
}

.btn-expand,
.btn-collapse,
.btn-sm {
    padding: 8px 16px;
    background: white;
    border: 1px solid #00B4C5;
    color: #00B4C5;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.9em;
    cursor: pointer;
    transition: all 0.2s ease;
}

.btn-expand:hover,
.btn-collapse:hover,
.btn-sm:hover {
    background: #e6f7f9;
    border-color: #008A99;
    color: #008A99;
}

/* ============================================
   ACCORDION ITEMS (Day-by-Day)
   ============================================ */

.accordion-item,
.trip-day-accordion {
    margin-bottom: 12px;
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    overflow: hidden;
    background: white;
}

.accordion-header,
.trip-day-accordion .accordion-header {
    background: #00B4C5;
    color: white;
    padding: 16px 20px;
    cursor: pointer;
    display: flex;
    justify-content: space-between;
    align-items: center;
    transition: background 0.2s ease;
    font-size: 1.1em;
    font-weight: 600;
    user-select: none;
}

.accordion-header:hover,
.trip-day-accordion .accordion-header:hover {
    background: #008A99;
}

.accordion-item.active .accordion-header,
.trip-day-accordion .accordion-header.active {
    background: #008A99;
}

.accordion-header h3 {
    font-size: 1.1em;
    font-weight: 600;
}

.accordion-icon,
.trip-day-accordion .accordion-icon {
    font-size: 1.2em;
    font-weight: 600;
    color: white !important;
    transition: transform 0.2s ease;
}

.accordion-item.active .accordion-icon {
    transform: rotate(180deg);
}

/* Update accordion content - remove max-height animation */
.accordion-content,
.trip-day-accordion .accordion-content {
    display: none;
    padding: 20px;
    background: white;
}

/* When accordion is open */
.accordion-item.active .accordion-content,
.trip-day-accordion .accordion-header.active + .accordion-content {
    display: block;
}

.accordion-body {
    padding: 20px;
}

/* ============================================
   PARK SECTIONS WITHIN ACCORDIONS
   ============================================ */

/* Update park sections - lighter, more condensed */
.park-day-section {
    margin-bottom: 20px;
    padding-bottom: 20px;
    border-bottom: 1px solid #e5e7eb;
}

.park-day-section:last-child {
    border-bottom: none;
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Park header with light gray background */
.park-day-name {
    display: flex;
    justify-content: space-between;
    align-items: center;
    background: #f5f5f5;
    padding: 8px 12px;
    border-radius: 4px;
    margin-bottom: 8px;
}

.park-day-title {
    font-weight: 600;
    font-size: 0.95em;
    color: #1f2937;
}

/* Park hours inline styling */
.park-hours-inline {
    display: flex;
    align-items: center;
    gap: 12px;
    font-size: 0.85em;
    color: #6b7280;
}

.hours-regular {
    color: #6b7280;
}

.hours-early-entry {
    color: #00B4C5;
    font-weight: 500;
}

/* Park content area - INCREASED FONT SIZE */
.park-day-content {
    font-size: 0.95em;
    color: #6b7280;
    line-height: 1.6;
    padding-left: 20px;
}

/* Event items - INCREASED FONT SIZE */
.event-item {
    margin-bottom: 3px;
    line-height: 1.6;
    font-size: 0.95em !important;
    color: #6b7280;
    font-weight: normal;
    border: none;
    padding: 0;
    background: transparent;
}

.event-item:last-child {
    margin-bottom: 0;
}

/* Event marker styling */
.event-item .event-marker {
    display: inline-block;
    width: 8px;
    color: #9ca3af;
    margin-right: 6px;
    font-size: 1em;
}

/* LL Pricing section - matches event styling exactly, just adds top border */
.park-day-content .event-item[style*="border-left-color: #7c3aed"] {
    margin-top: 12px;
    padding-top: 12px;
    border-top: 1px solid #e5e7eb !important;
    border-left: none !important;
    color: #6b7280 !important;
    font-weight: normal !important;
    font-size: 0.95em !important;
    line-height: 1.6 !important;
}

/* No events message */
.no-events {
    color: #9ca3af;
    font-style: italic;
    padding: 8px 0;
}

/* ============================================
   DATA SECTIONS
   ============================================ */

.data-section {
    margin-bottom: 20px;
}

.data-section h4 {
    font-size: 1em;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 12px;
}

.data-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 12px;
}

.data-item {
    background: #f8fafb;
    padding: 12px 16px;
    border-radius: 4px;
    border-left: 3px solid #00B4C5;
}

.data-item-label {
    font-size: 0.85em;
    color: #6b7280;
    margin-bottom: 4px;
}

.data-item-value {
    font-size: 0.95em;
    font-weight: 600;
    color: #1f2937;
}

/* ============================================
   SPECIAL FLAGS
   ============================================ */

.special-flag {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 12px;
    background: #fef3c7;
    color: #92400e;
    border-radius: 4px;
    font-size: 0.85em;
    font-weight: 600;
    margin-right: 8px;
    margin-bottom: 8px;
}

.special-flag.early-hours {
    background: #dbeafe;
    color: #1e40af;
}

.special-flag.extended-hours {
    background: #e0e7ff;
    color: #4338ca;
}

.special-flag.warning {
    background: #fee2e2;
    color: #991b1b;
}

/* ============================================
   DISCOUNTS SECTION
   ============================================ */

.discounts-section {
    margin-top: 32px;
    padding-top: 32px;
    border-top: 1px solid #e5e7eb;
}

.discount-accordion {
    border: 1px solid #e5e7eb;
    border-radius: 6px;
    margin-bottom: 8px;
    background: white;
    overflow: hidden;
}

.discount-accordion .accordion-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 16px 20px;
    cursor: pointer;
    font-size: 1.1em;
    font-weight: 600;
    transition: background 0.2s ease;
    user-select: none;
    background: #00B4C5;
    color: white;
}

.discount-accordion .accordion-header:hover {
    background: #008A99;
}

.discount-accordion .accordion-header.active {
    background: #008A99;
}

.discount-accordion .accordion-icon {
    font-size: 1.2em;
    font-weight: 600;
    color: white;
}

.discount-accordion .accordion-content {
    padding: 20px;
    background: white;
}

.discount-details {
    margin-bottom: 20px;
    font-size: 0.9em;
    color: #6b7280;
}

.discount-details > div {
    margin-bottom: 8px;
}

.discount-amount {
    font-weight: 500;
    color: #1f2937;
    font-size: inherit;
}

.discount-dates {
    font-weight: 500;
    color: #1f2937;
}

.purchase-deadline {
    color: #f59e0b;
    font-weight: 500;
}

.discount-notes {
    padding: 12px;
    background: #f8fafb;
    border-radius: 4px;
    margin-top: 12px;
    font-size: 0.9em;
    color: #6b7280;
    line-height: 1.6;
}

.discount-btn {
    display: inline-block;
    background: #00B4C5;
    color: white;
    padding: 10px 20px;
    border-radius: 4px;
    text-decoration: none;
    font-weight: 500;
    font-size: 0.9em;
    transition: background-color 0.2s ease;
}

.discount-btn:hover {
    background: #008A99;
    color: white;
}

/* ============================================
   ROOM FINDER SECTION
   ============================================ */

.room-finder-section {
    background: #f0fdf4;
    border: 1px solid #bbf7d0;
    border-left: 4px solid #10b981;
    border-radius: 6px;
    padding: 20px;
    margin-top: 24px;
}

.room-finder-section h3 {
    color: #065f46;
    font-size: 1.1em;
    font-weight: 600;
    margin-bottom: 12px;
}

.room-finder-section p {
    color: #064e3b;
    margin-bottom: 16px;
}

.room-finder-btn {
    padding: 10px 20px;
    background: #10b981;
    color: white;
    border: none;
    border-radius: 4px;
    font-family: 'Montserrat', sans-serif;
    font-weight: 500;
    font-size: 0.95em;
    cursor: pointer;
    transition: background 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.room-finder-btn:hover {
    background: #059669;
}

/* ============================================
   ALERT LOG
   ============================================ */

.alert-log {
    background: white;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 24px;
    margin-top: 24px;
}

.alert-log h2 {
    font-size: 1.4em;
    font-weight: 600;
    color: #1f2937;
    margin-bottom: 20px;
}

.alert-item {
    display: flex;
    gap: 16px;
    padding: 16px;
    border-left: 3px solid #d1d5db;
    margin-bottom: 12px;
    background: #f8fafb;
    border-radius: 4px;
}

.alert-item.info {
    border-left-color: #3b82f6;
    background: #eff6ff;
}

.alert-item.warning {
    border-left-color: #f59e0b;
    background: #fffbeb;
}

.alert-item.success {
    border-left-color: #10b981;
    background: #f0fdf4;
}

.alert-date {
    font-size: 0.85em;
    color: #6b7280;
    font-weight: 600;
    min-width: 100px;
}

.alert-message {
    flex: 1;
    color: #1f2937;
    font-size: 0.9em;
    line-height: 1.6;
}

/* ============================================
   LOADING & EMPTY STATES
   ============================================ */

.loading {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.loading-spinner {
    border: 3px solid #e5e7eb;
    border-top: 3px solid #00B4C5;
    border-radius: 50%;
    width: 40px;
    height: 40px;
    animation: spin 1s linear infinite;
    margin: 0 auto 16px;
}

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

.empty-state {
    text-align: center;
    padding: 60px 20px;
    color: #6b7280;
}

.empty-state svg {
    width: 80px;
    height: 80px;
    margin-bottom: 20px;
    opacity: 0.5;
}

.empty-state h3 {
    font-size: 1.2em;
    margin-bottom: 12px;
    color: #374151;
}

/* ============================================
   MOBILE RESPONSIVE
   ============================================ */

@media (max-width: 768px) {

    
    /* Overlay when menu is open */
    body.menu-open::after {
        content: '';
        position: fixed;
        top: 0;
        left: 0;
        right: 0;
        bottom: 0;
        background: rgba(0, 0, 0, 0.5);
        z-index: 999;
    }
    
    .trip-title-row,
    .trip-header-top {
        flex-direction: column;
        align-items: flex-start;
        gap: 16px;
    }
    
    .edit-trip-btn {
        width: 100%;
        text-align: center;
    }
    
    .trip-details {
        grid-template-columns: 1fr;
    }
    
    .expand-collapse-btns,
    .accordion-controls {
        flex-direction: column;
        width: 100%;
    }
    
    .btn-expand,
    .btn-collapse,
    .btn-sm {
        width: 100%;
    }
    
    .data-grid {
        grid-template-columns: 1fr;
    }
    
    .alert-item {
        flex-direction: column;
        gap: 8px;
    }
    
    .alert-date {
        min-width: auto;
    }
    
    .park-day-name {
        flex-direction: column;
        align-items: flex-start;
        gap: 4px;
    }
    
    .park-hours-inline {
        font-size: 0.8em;
    }
    
    .trip-day-accordion .accordion-header,
    .discount-accordion .accordion-header {
        font-size: 0.9em;
        padding: 12px 16px;
    }
    
    .trip-day-accordion .accordion-content,
    .discount-accordion .accordion-content {
        padding: 16px;
    }
}