/* SOLUTION: Enhanced modal visibility */
.detailed-plan-modal {
    display: none !important;
    position: fixed !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    background: rgba(0, 0, 0, 0.8) !important;
    backdrop-filter: blur(5px) !important;
    z-index: 10000 !important;
    animation: fadeIn 0.3s ease !important;
    align-items: center !important;
    justify-content: center !important;
}

.detailed-plan-modal[style*="flex"] {
    display: flex !important;
}

.modal-container {
    background: #FFFFF0 !important;
    border-radius: 20px !important;
    padding: 0 !important;
    max-width: 800px !important;
    width: 90% !important;
    max-height: 90vh !important;
    overflow-y: auto !important;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3) !important;
    border: 1px solid rgba(201, 160, 83, 0.2) !important;
    position: relative !important;
}

.modal-header {
    background: linear-gradient(135deg, #C9A053 0%, #D4B56A 100%) !important;
    color: #1F2E2E !important;
    padding: 2rem !important;
    border-radius: 20px 20px 0 0 !important;
    position: relative !important;
}

.modal-header h2 {
    margin: 0 !important;
    font-family: 'Cinzel', Georgia, serif !important;
    font-size: 1.8rem !important;
    font-weight: 700 !important;
    padding-right: 3rem !important;
}

.modal-close {
    position: absolute !important;
    top: 1rem !important;
    right: 1rem !important;
    background: rgba(255, 255, 255, 0.2) !important;
    border: none !important;
    border-radius: 50% !important;
    width: 40px !important;
    height: 40px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
    color: #1F2E2E !important;
    font-size: 1.2rem !important;
    cursor: pointer !important;
    transition: all 0.3s ease !important;
}

.modal-close:hover {
    background: rgba(255, 255, 255, 0.3) !important;
    transform: rotate(90deg) !important;
}

.modal-content {
    padding: 2rem !important;
    color: #333F48 !important;
    max-height: 60vh !important;
    overflow-y: auto !important;
}

.modal-footer {
    padding: 2rem !important;
    border-top: 1px solid rgba(51, 63, 72, 0.1) !important;
    display: flex !important;
    gap: 1rem !important;
    justify-content: center !important;
    flex-wrap: wrap !important;
}

.modal-overlay {
    position: absolute !important;
    top: 0 !important;
    left: 0 !important;
    width: 100% !important;
    height: 100% !important;
    cursor: pointer !important;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}/* Saint Page Travel Integration Styles - TIER 1 UI REDESIGN */
/* Modern, Premium Travel Booking Experience */

/* ===== TRAVEL INTEGRATION SECTION ===== */
#travel-integration {
    /* FIXED: Simplified full-width approach */
    background: #FFFFF0;
    position: relative;
    padding: 6rem 0;
    margin: 0;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    min-height: auto; /* CHANGED: From 90vh to auto */
    overflow: visible; /* CHANGED: Allow content overflow */
    border: none;
    color: #2c3e50;
    text-align: center;
    box-sizing: border-box;
    z-index: 1; /* FIXED: Proper z-index */
}

/* Enhanced Background Effects */
#travel-integration::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: 
        radial-gradient(circle at 20% 50%, rgba(201, 160, 83, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 80% 20%, rgba(139, 58, 58, 0.08) 0%, transparent 50%),
        radial-gradient(circle at 40% 80%, rgba(42, 63, 63, 0.08) 0%, transparent 50%);
    background-size: 800px 800px;
    z-index: 0;
    pointer-events: none;
    animation: backgroundShift 20s ease-in-out infinite;
}

@keyframes backgroundShift {
    0%, 100% { transform: translateX(0) translateY(0); }
    25% { transform: translateX(-20px) translateY(-10px); }
    50% { transform: translateX(20px) translateY(10px); }
    75% { transform: translateX(-10px) translateY(20px); }
}

/* Premium Section Header */
#travel-integration .saints-section-header {
    text-align: center;
    margin-bottom: 4rem;
    padding: 3rem 2rem;
    position: relative;
    z-index: 10;
    width: 100%;
    max-width: 1200px;
}

#travel-integration .saints-section-header h2 {
    font-family: 'Cinzel', Georgia, serif;
    font-size: clamp(2.8rem, 5.5vw, 4rem);
    /* FIXED: Use consistent text color from variables */
    color: var(--text-dark); /* Consistent charcoal grey
    background: none;
    -webkit-text-fill-color: #333F48;
    margin-bottom: 1.5rem;
    text-transform: uppercase;
    letter-spacing: 3px;
    font-weight: 800;
    position: relative;
    text-shadow: none;
}

#travel-integration .saints-section-header h2::after {
    content: "";
    position: absolute;
    left: 50%;
    bottom: -15px;
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, transparent 0%, #C9A053 25%, #D4B56A 50%, #C9A053 75%, transparent 100%);
    transform: translateX(-50%);
    border-radius: 2px;
    box-shadow: 0 2px 10px rgba(201, 160, 83, 0.3);
}

#travel-integration .saints-section-subtitle {
    font-family: 'Lato', Arial, sans-serif;
    font-size: clamp(1.4rem, 1.8vw, 1.4rem);
    /* FIXED: Use consistent text color from variables */
    color: var(--text-dark); /* Consistent charcoal grey
    max-width: 900px;
    margin: 0 auto;
    line-height: 1.8;
    font-weight: 400;
}

/* Modern Travel Options Container - FIXED: Better centering */
.travel-options-container {
    position: relative;
    width: 100%;
    max-width: 1400px;
    margin: 0 auto;
    padding: 2rem;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    /* FIXED: Ensure proper spacing from edges */
    box-sizing: border-box;
}

/* Premium Tab Design */
.travel-option-tabs {
    display: flex;
    justify-content: center;
    gap: 1.5rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
    width: 100%;
    padding: 1rem;
    background: rgba(255, 255, 255, 0.8);
    backdrop-filter: blur(10px);
    border-radius: 25px;
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(255, 255, 255, 0.3);
}

.travel-tab {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.8rem;
    background: linear-gradient(135deg, #ffffff 0%, #f8f9fa 100%);
    color: #2c3e50;
    padding: 1.5rem 2rem;
    border-radius: 18px;
    border: 2px solid rgba(201, 160, 83, 0.2);
    font-family: 'Lato', Arial, sans-serif;
    font-size: var(--er-fs-floor);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    min-width: 200px;
    position: relative;
    overflow: hidden;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.08);
}

.travel-tab::before {
    content: '';
    position: absolute;
    top: -50%;
    left: -50%;
    width: 200%;
    height: 200%;
    background: linear-gradient(45deg, transparent 30%, rgba(201, 160, 83, 0.1) 50%, transparent 70%);
    opacity: 0;
    transition: all 0.6s ease;
    transform: rotate(45deg);
}

.travel-tab:hover {
    background: linear-gradient(135deg, #C9A053 0%, #D4B56A 100%);
    color: #1a252f;
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 50px rgba(201, 160, 83, 0.25);
    border-color: #B8954A;
}

.travel-tab:hover::before {
    opacity: 1;
    animation: shimmer 1.5s ease-in-out;
}

@keyframes shimmer {
    0% { transform: translateX(-100%) translateY(-100%) rotate(45deg); }
    100% { transform: translateX(100%) translateY(100%) rotate(45deg); }
}

.travel-tab.active {
    background: linear-gradient(135deg, #C9A053 0%, #D4B56A 100%);
    color: #1a252f;
    border-color: #A88743;
    transform: translateY(-5px);
    box-shadow: 0 15px 40px rgba(201, 160, 83, 0.3);
}

.travel-tab i {
    font-size: 2.2rem;
    color: #C9A053;
    transition: all 0.3s ease;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.travel-tab:hover i,
.travel-tab.active i {
    color: #1a252f;
    transform: scale(1.1);
    filter: drop-shadow(0 4px 8px rgba(0, 0, 0, 0.15));
}

.travel-tab span {
    font-family: 'Cinzel', Georgia, serif;
    font-size: var(--er-fs-floor);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    margin-top: 0.2rem;
}

.travel-tab small {
    font-size: var(--er-fs-floor);
    opacity: 0.8;
    font-weight: 500;
    color: #6c757d;
}

.travel-tab:hover small,
.travel-tab.active small {
    color: #1a252f;
    opacity: 0.9;
}

/* Travel Option Content */
.travel-option-content {
    width: 100%;
    position: relative;
    min-height: 500px;
}

.travel-option-panel {
    display: none;
    opacity: 0;
    transform: translateY(50px);
    animation: panelReveal 0.8s ease-out both;
    width: 100%;
}

.travel-option-panel.active {
    display: block;
    opacity: 1;
    transform: translateY(0);
}

.travel-option-panel h3 {
    font-family: 'Cinzel', Georgia, serif;
    font-size: clamp(1.8rem, 3vw, 2.2rem);
    color: #333F48;
    margin-bottom: 0.75rem;
    text-align: center;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.travel-option-panel > p {
    text-align: center;
    max-width: 700px;
    margin: 0 auto 2rem;
    color: #333F48;
    font-size: var(--er-fs-floor);
    line-height: 1.6;
    font-family: 'Lato', Arial, sans-serif;
}

/* Travel Cards - matching timeline event cards */
.travel-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.travel-card {
    background-color: rgba(42, 63, 63, 0.95);
    backdrop-filter: blur(5px);
    border-radius: 12px;
    padding: 0;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(201, 160, 83, 0.2);
    position: relative;
    transition: all 0.3s ease;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

.travel-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: #C9A053;
    border-radius: 12px 12px 0 0;
}

.travel-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.card-header {
    position: relative;
    height: 200px;
    overflow: hidden;
    border-radius: 12px 12px 0 0;
}

/* SOLUTION: New design for cards without images */
.card-header-no-image {
    background: linear-gradient(135deg, #C9A053 0%, #D4B56A 50%, #A88743 100%);
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 150px; /* Reduced height since no image */
    position: relative;
    overflow: hidden;
}

.card-header-no-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: radial-gradient(circle at center, rgba(255, 255, 255, 0.1) 0%, transparent 70%);
    pointer-events: none;
}

.location-icon-container {
    width: 80px;
    height: 80px;
    background: rgba(255, 255, 255, 0.2);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 1rem;
    backdrop-filter: blur(5px);
    border: 2px solid rgba(255, 255, 255, 0.3);
    transition: all 0.3s ease;
}

.location-icon-container i {
    font-size: 2.5rem;
    color: #1F2E2E;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.2);
}

.travel-card:hover .location-icon-container {
    transform: scale(1.1);
    background: rgba(255, 255, 255, 0.3);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.card-header img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.travel-card:hover .card-header img {
    transform: scale(1.08);
}

.card-location {
    position: absolute;
    bottom: 0;
    left: 0;
    padding: 0.5rem 1rem;
    background-color: #C9A053;
    color: #1F2E2E;
    font-size: var(--er-fs-floor);
    border-top-right-radius: 8px;
    font-weight: 600;
}

.card-body {
    padding: 1.5rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.card-body h4 {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 1.4rem;
    color: #FFFFF0;
    margin-bottom: 0.75rem;
    line-height: 1.3;
    font-weight: 600;
}

.card-body p {
    color: #FFFFF0;
    line-height: 1.6;
    margin-bottom: 1rem;
    font-size: var(--er-fs-floor);
    opacity: 0.9;
    flex-grow: 1;
}

.travel-details {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
    border-top: 1px solid rgba(201, 160, 83, 0.2);
    padding-top: 1rem;
}

.travel-details li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #FFFFF0;
    font-size: var(--er-fs-floor);
    opacity: 0.9;
}

.travel-details li i {
    color: #C9A053;
    font-size: var(--er-fs-floor);
    width: 20px;
    text-align: center;
}

/* Card Actions - matching timeline buttons */
.card-actions {
    display: flex;
    flex-direction: column;
    gap: 0.5rem;
    margin-top: auto;
}

.add-to-journey,
.view-in-planner {
    background: linear-gradient(45deg, #C9A053, #A88743);
    color: #1F2E2E;
    border: none;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: var(--er-fs-floor);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
}

.add-to-journey:hover,
.view-in-planner:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 25px rgba(201, 160, 83, 0.4);
    background: linear-gradient(45deg, #A88743, #8B3A3A);
}

.view-in-planner,
.view-in-planner-full {
    background: rgba(255, 255, 240, 0.1);
    color: #FFFFF0;
    border: 2px solid rgba(255, 255, 240, 0.3);
}

/* FIXED: Hide 'View in Planner' buttons per Phase 3 requirements */
.view-in-planner,
.view-in-planner-full,
a[href*="journey-planner"],
.card-actions .view-in-planner,
.itinerary-actions .view-in-planner-full {
    display: none !important;
}

.view-in-planner:hover,
.view-in-planner-full:hover {
    background: rgba(255, 255, 240, 0.2);
    border-color: #FFFFF0;
}

/* Full width button styles */
.add-to-journey.full-width,
.view-in-planner-full {
    width: 100%;
    text-align: center;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    text-decoration: none;
    padding: 0.75rem 1rem;
    border-radius: 0.5rem;
    font-size: var(--er-fs-floor);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.2s ease;
}

/* Premium Travel Tips */
.travel-tip {
    display: flex;
    align-items: flex-start;
    gap: 1.5rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
    backdrop-filter: blur(15px);
    padding: 2rem;
    border-radius: 18px;
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.1);
    border-left: 5px solid #C9A053;
    margin-bottom: 3rem;
    position: relative;
    overflow: hidden;
    border: 1px solid rgba(201, 160, 83, 0.2);
}

.travel-tip::before {
    content: '';
    position: absolute;
    top: 0;
    right: 0;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(201, 160, 83, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(50%, -50%);
}

.travel-tip i {
    font-size: 2rem;
    color: #C9A053;
    margin-top: 0.5rem;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.travel-tip h5 {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 1.4rem;
    font-weight: 700;
    margin-bottom: 0.8rem;
    color: #2c3e50;
    letter-spacing: 0.5px;
}

.travel-tip p {
    color: #5a6c7d;
    margin: 0;
    line-height: 1.7;
    font-size: var(--er-fs-floor);
    font-weight: 400;
}

/* Premium Journey Button */
.view-journey-btn {
    background: linear-gradient(135deg, #C9A053 0%, #D4B56A 100%);
    color: #1a252f;
    border: none;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-size: var(--er-fs-floor);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    margin: 3rem auto;
    font-family: 'Lato', Arial, sans-serif;
    letter-spacing: 1px;
    text-transform: uppercase;
    box-shadow: 0 8px 30px rgba(201, 160, 83, 0.3);
    position: relative;
    overflow: hidden;
}

.view-journey-btn::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.6s ease;
    transform: translate(-50%, -50%);
}

.view-journey-btn:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 50px rgba(201, 160, 83, 0.4);
    background: linear-gradient(135deg, #D4B56A 0%, #C9A053 100%);
}

.view-journey-btn:hover::before {
    width: 300px;
    height: 300px;
}

.view-journey-btn i {
    font-size: var(--er-fs-floor);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* Premium Itinerary Styles */
.travel-itinerary {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    padding: 2.5rem;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(201, 160, 83, 0.2);
    position: relative;
    margin-bottom: 3rem;
    overflow: hidden;
}

.travel-itinerary::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #C9A053 0%, #D4B56A 50%, #C9A053 100%);
    border-radius: 20px 20px 0 0;
}

.travel-itinerary::after {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(201, 160, 83, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.travel-itinerary h4 {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 2rem;
    text-align: center;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.itinerary-timeline {
    display: flex;
    flex-direction: column;
    gap: 2rem;
    margin-bottom: 2.5rem;
    position: relative;
    padding-left: 2rem;
}

.itinerary-timeline::before {
    content: '';
    position: absolute;
    left: 1rem;
    top: 0;
    bottom: 0;
    width: 3px;
    background: linear-gradient(180deg, 
        transparent 0%, 
        #C9A053 10%,
        #D4B56A 50%,
        #C9A053 90%,
        transparent 100%);
    border-radius: 2px;
    box-shadow: 0 0 10px rgba(201, 160, 83, 0.3);
}

.itinerary-item {
    display: flex;
    align-items: flex-start;
    gap: 2rem;
    position: relative;
    padding: 1rem 0;
}

.itinerary-item::before {
    content: '';
    position: absolute;
    left: -1.5rem;
    top: 1.5rem;
    width: 14px;
    height: 14px;
    background: linear-gradient(135deg, #C9A053 0%, #D4B56A 100%);
    border: 3px solid #ffffff;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(201, 160, 83, 0.4);
    z-index: 2;
}

.itinerary-time {
    /* FIXED: Improved readability with consistent variables */
    background: var(--primary-color); /* Dark background for better contrast */
    color: var(--text-light); /* Light text
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-weight: 700;
    font-size: var(--er-fs-floor);
    min-width: 100px;
    text-align: center;
    position: relative;
    z-index: 2;
    box-shadow: var(--shadow-md);
    letter-spacing: 0.5px;
    /* Add gold border for accent */
    border: 2px solid var(--tertiary-color);
}

.itinerary-content {
    flex: 1;
    background: rgba(248, 249, 250, 0.8);
    padding: 1.5rem;
    border-radius: 15px;
    border: 1px solid rgba(201, 160, 83, 0.1);
}

.itinerary-content h5 {
    font-family: 'Cinzel', Georgia, serif;
    font-size: var(--er-fs-floor);
    color: #2c3e50;
    margin-bottom: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.itinerary-content p {
    color: #5a6c7d;
    line-height: 1.7;
    margin: 0;
    font-size: var(--er-fs-floor);
    font-weight: 400;
}

.itinerary-actions {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    margin-top: 2rem;
}

/* Premium Multi-Day Overview */
.multi-day-overview {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.day-preview {
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
    backdrop-filter: blur(15px);
    border-radius: 18px;
    padding: 2rem;
    box-shadow: 0 12px 40px rgba(0, 0, 0, 0.08);
    border: 1px solid rgba(201, 160, 83, 0.15);
    position: relative;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    overflow: hidden;
}

.day-preview::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 4px;
    background: linear-gradient(90deg, #C9A053 0%, #D4B56A 100%);
    border-radius: 18px 18px 0 0;
}

.day-preview::after {
    content: '';
    position: absolute;
    top: -30%;
    right: -30%;
    width: 120px;
    height: 120px;
    background: radial-gradient(circle, rgba(201, 160, 83, 0.06) 0%, transparent 70%);
    border-radius: 50%;
    transition: all 0.4s ease;
}

.day-preview:hover {
    transform: translateY(-8px) scale(1.02);
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.12);
    border-color: rgba(201, 160, 83, 0.3);
}

.day-preview:hover::after {
    transform: scale(1.2);
    opacity: 0.8;
}

.day-label {
    background: linear-gradient(135deg, #C9A053 0%, #D4B56A 100%);
    color: #1a252f;
    padding: 0.5rem 1.2rem;
    border-radius: 20px;
    font-weight: 700;
    font-size: var(--er-fs-floor);
    text-transform: uppercase;
    letter-spacing: 1px;
    display: inline-block;
    margin-bottom: 1.2rem;
    box-shadow: 0 3px 10px rgba(201, 160, 83, 0.3);
}

.day-preview h5 {
    font-family: 'Cinzel', Georgia, serif;
    font-size: var(--er-fs-floor);
    color: #2c3e50;
    margin-bottom: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.day-preview p {
    color: #5a6c7d;
    line-height: 1.7;
    margin: 0;
    font-size: var(--er-fs-floor);
    font-weight: 400;
}

.multi-day-actions {
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    align-items: center;
    margin-top: 3rem;
}

.btn-primary.view-detailed-plan {
    background: linear-gradient(135deg, #C9A053 0%, #D4B56A 100%);
    color: #1a252f;
    border: none;
    padding: 1rem 2rem;
    border-radius: 50px;
    font-size: var(--er-fs-floor);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: inline-flex;
    align-items: center;
    gap: 0.8rem;
    text-decoration: none;
    box-shadow: 0 6px 20px rgba(201, 160, 83, 0.3);
    letter-spacing: 0.5px;
    text-transform: uppercase;
    font-family: 'Lato', Arial, sans-serif;
}

.btn-primary.view-detailed-plan:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 12px 35px rgba(201, 160, 83, 0.4);
    background: linear-gradient(135deg, #D4B56A 0%, #C9A053 100%);
}

/* Premium Nearby Attractions */
.nearby-attractions {
    margin-top: 4rem;
    padding: 3rem;
    background: linear-gradient(135deg, rgba(255, 255, 255, 0.95) 0%, rgba(248, 249, 250, 0.95) 100%);
    backdrop-filter: blur(15px);
    border-radius: 20px;
    box-shadow: 0 15px 50px rgba(0, 0, 0, 0.1);
    border: 1px solid rgba(201, 160, 83, 0.2);
    position: relative;
    overflow: hidden;
}

.nearby-attractions::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #C9A053 0%, #D4B56A 50%, #C9A053 100%);
    border-radius: 20px 20px 0 0;
}

.nearby-attractions::after {
    content: '';
    position: absolute;
    top: -30%;
    left: -30%;
    width: 200px;
    height: 200px;
    background: radial-gradient(circle, rgba(201, 160, 83, 0.05) 0%, transparent 70%);
    border-radius: 50%;
}

.nearby-attractions h3 {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 1.8rem;
    color: #2c3e50;
    margin-bottom: 0.8rem;
    text-align: center;
    font-weight: 700;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.8rem;
    letter-spacing: 1px;
    text-transform: uppercase;
}

.nearby-attractions h3 i {
    color: #C9A053;
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.nearby-attractions > p {
    text-align: center;
    color: #5a6c7d;
    margin-bottom: 3rem;
    font-size: var(--er-fs-floor);
    line-height: 1.7;
    max-width: 600px;
    margin-left: auto;
    margin-right: auto;
}

.nearby-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(350px, 1fr));
    gap: 2rem;
}

.nearby-item {
    background: linear-gradient(135deg, rgba(248, 249, 250, 0.8) 0%, rgba(255, 255, 255, 0.8) 100%);
    border-radius: 15px;
    padding: 2rem;
    border: 1px solid rgba(201, 160, 83, 0.15);
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    position: relative;
    overflow: hidden;
    box-shadow: 0 6px 20px rgba(0, 0, 0, 0.05);
}

.nearby-item::before {
    content: '';
    position: absolute;
    top: -50%;
    right: -50%;
    width: 100px;
    height: 100px;
    background: radial-gradient(circle, rgba(201, 160, 83, 0.08) 0%, transparent 70%);
    border-radius: 50%;
    transition: all 0.4s ease;
}

.nearby-item:hover {
    background: linear-gradient(135deg, rgba(201, 160, 83, 0.08) 0%, rgba(212, 181, 106, 0.08) 100%);
    transform: translateY(-6px) scale(1.02);
    box-shadow: 0 15px 40px rgba(0, 0, 0, 0.1);
    border-color: rgba(201, 160, 83, 0.3);
}

.nearby-item:hover::before {
    transform: scale(1.5);
    opacity: 0.6;
}

.nearby-content h4 {
    font-family: 'Cinzel', Georgia, serif;
    font-size: var(--er-fs-floor);
    color: #2c3e50;
    margin-bottom: 0.8rem;
    font-weight: 600;
    letter-spacing: 0.5px;
}

.nearby-content p {
    color: #5a6c7d;
    line-height: 1.7;
    margin-bottom: 1.5rem;
    font-size: var(--er-fs-floor);
    font-weight: 400;
}

.distance {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    background: linear-gradient(135deg, #C9A053 0%, #D4B56A 100%);
    color: #1a252f;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    font-size: var(--er-fs-floor);
    font-weight: 600;
    margin-bottom: 1.5rem;
    box-shadow: 0 3px 10px rgba(201, 160, 83, 0.3);
}

.add-nearby {
    background: linear-gradient(135deg, #C9A053 0%, #D4B56A 100%);
    color: #1a252f;
    border: none;
    padding: 0.8rem 1.5rem;
    border-radius: 25px;
    font-size: var(--er-fs-floor);
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: inline-flex;
    align-items: center;
    gap: 0.6rem;
    box-shadow: 0 4px 15px rgba(201, 160, 83, 0.3);
    letter-spacing: 0.5px;
}

.add-nearby:hover {
    transform: translateY(-3px) scale(1.05);
    box-shadow: 0 8px 25px rgba(201, 160, 83, 0.4);
    background: linear-gradient(135deg, #D4B56A 0%, #C9A053 100%);
}

/* Premium Journey Planner CTA */
.journey-planner-cta {
    text-align: center;
    padding: 4rem 3rem;
    background: linear-gradient(135deg, rgba(42, 63, 63, 0.95) 0%, rgba(31, 46, 46, 0.95) 100%);
    backdrop-filter: blur(15px);
    position: relative;
    z-index: 10;
    border-radius: 20px;
    margin-top: 4rem;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.15);
    border: 1px solid rgba(201, 160, 83, 0.3);
    overflow: hidden;
}

.journey-planner-cta::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #C9A053 0%, #D4B56A 50%, #C9A053 100%);
    border-radius: 20px 20px 0 0;
}

.journey-planner-cta::after {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 300px;
    height: 300px;
    background: radial-gradient(circle, rgba(201, 160, 83, 0.1) 0%, transparent 70%);
    border-radius: 50%;
    transform: translate(-50%, -50%);
}

.journey-planner-cta h3 {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 2.2rem;
    color: #FFFFF0;
    margin-bottom: 1rem;
    font-weight: 700;
    letter-spacing: 1px;
    text-transform: uppercase;
    position: relative;
    z-index: 2;
}

.journey-planner-cta p {
    color: #FFFFF0;
    margin-bottom: 2.5rem;
    font-size: var(--er-fs-floor);
    line-height: 1.7;
    opacity: 0.9;
    position: relative;
    z-index: 2;
}

.journey-planner-link {
    background: linear-gradient(135deg, #C9A053 0%, #D4B56A 100%);
    color: #1a252f;
    border: 2px solid #C9A053;
    padding: 1.2rem 2.5rem;
    border-radius: 50px;
    font-size: var(--er-fs-floor);
    font-weight: 700;
    cursor: pointer;
    transition: all 0.4s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    display: inline-flex;
    align-items: center;
    gap: 1rem;
    text-decoration: none;
    position: relative;
    z-index: 2;
    letter-spacing: 1px;
    text-transform: uppercase;
    font-family: 'Lato', Arial, sans-serif;
    box-shadow: 0 8px 30px rgba(201, 160, 83, 0.4);
    overflow: hidden;
}

.journey-planner-link::before {
    content: '';
    position: absolute;
    top: 50%;
    left: 50%;
    width: 0;
    height: 0;
    background: rgba(255, 255, 255, 0.3);
    border-radius: 50%;
    transition: all 0.6s ease;
    transform: translate(-50%, -50%);
}

.journey-planner-link:hover {
    transform: translateY(-5px) scale(1.05);
    box-shadow: 0 15px 50px rgba(201, 160, 83, 0.5);
    background: linear-gradient(135deg, #D4B56A 0%, #C9A053 100%);
    border-color: #D4B56A;
}

.journey-planner-link:hover::before {
    width: 300px;
    height: 300px;
}

.journey-planner-link i {
    font-size: var(--er-fs-floor);
    filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.2));
}

/* ===== ENHANCED ANIMATIONS ===== */

@keyframes panelReveal {
    0% { 
        opacity: 0; 
        transform: translateY(30px) scale(0.98); 
    }
    100% { 
        opacity: 1; 
        transform: translateY(0) scale(1); 
    }
}

@keyframes floatUp {
    0% {
        opacity: 0;
        transform: translateY(20px);
    }
    100% {
        opacity: 1;
        transform: translateY(0);
    }
}

@keyframes glow {
    0%, 100% {
        box-shadow: 0 8px 25px rgba(201, 160, 83, 0.3);
    }
    50% {
        box-shadow: 0 12px 35px rgba(201, 160, 83, 0.5);
    }
}

/* Force hide inactive panels with enhanced specificity */
.travel-option-panel:not(.active) {
    display: none !important;
    visibility: hidden !important;
    opacity: 0 !important;
    pointer-events: none !important;
    position: absolute !important;
    left: -9999px !important;
}

/* Ensure content is always visible within active panels */
.travel-option-panel.active {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    pointer-events: auto !important;
    position: relative !important;
    left: auto !important;
}

.travel-option-panel.active .travel-cards,
.travel-option-panel.active .travel-itinerary,
.travel-option-panel.active .multi-day-overview {
    opacity: 1 !important;
    visibility: visible !important;
    display: block !important;
}

.travel-option-panel.active .travel-cards {
    display: grid !important;
}

.travel-option-panel.active .multi-day-overview {
    display: grid !important;
}

/* Tab visibility fixes - ensure all tabs are always visible */
.travel-tab {
    display: flex !important;
    visibility: visible !important;
    opacity: 1 !important;
}

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

@media (max-width: 1200px) {
    .travel-options-container {
        padding: 1.5rem;
    }
    
    .travel-cards {
        grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
        gap: 2rem;
    }
    
    .nearby-grid {
        grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    }
}

@media (max-width: 768px) {
    #travel-integration {
        padding: 4rem 0;
    }
    
    #travel-integration .saints-section-header {
        padding: 2rem 1rem;
    }
    
    .travel-options-container {
        padding: 1rem;
    }
    
    .travel-option-tabs {
        flex-direction: column;
        align-items: center;
        gap: 1rem;
        padding: 1.5rem;
    }
    
    .travel-tab {
        min-width: 280px;
        padding: 1.2rem 1.5rem;
    }
    
    .travel-cards {
        grid-template-columns: 1fr;
        gap: 1.5rem;
        padding: 0;
    }
    
    .nearby-grid {
        grid-template-columns: 1fr;
    }
    
    .multi-day-overview {
        grid-template-columns: 1fr;
    }
    
    .itinerary-timeline {
        padding-left: 1.5rem;
    }
    
    .itinerary-timeline::before {
        left: 0.75rem;
    }
    
    .itinerary-item {
        gap: 1.5rem;
    }
    
    .itinerary-item::before {
        left: -1.25rem;
    }
    
    .multi-day-actions {
        flex-direction: column;
        gap: 1rem;
    }
    
    .journey-planner-cta {
        padding: 3rem 2rem;
        margin-top: 3rem;
    }
}

@media (max-width: 480px) {
    #travel-integration .saints-section-header {
        padding: 1.5rem 1rem 2rem;
    }
    
    #travel-integration .saints-section-header h2 {
        font-size: clamp(2rem, 8vw, 2.8rem);
    }
    
    .travel-itinerary,
    .nearby-attractions {
        padding: 2rem 1.5rem;
    }
    
    .journey-planner-cta {
        padding: 2.5rem 1.5rem;
    }

    .travel-tab {
        min-width: 260px;
        padding: 1rem 1.2rem;
    }

    .itinerary-actions {
        gap: 0.8rem;
    }

    .add-to-journey.full-width,
    .view-in-planner-full {
        font-size: var(--er-fs-floor);
        padding: 0.8rem 1.2rem;
    }
    
    .card-body {
        padding: 1.5rem;
    }
    
    .travel-details {
        margin: 1rem -0.5rem 1.5rem -0.5rem;
        padding: 1.2rem;
    }
}

/* ===== SAINT SHARE MODAL STYLES ===== */
/* SOLUTION 4: Add complete share modal styles */
.saint-share-modal {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.8);
    backdrop-filter: blur(5px);
    z-index: 10000;
    animation: fadeIn 0.3s ease;
}

.share-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: #FFFFF0;
    border-radius: 20px;
    padding: 3rem;
    max-width: 500px;
    width: 90%;
    box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
    border: 1px solid rgba(201, 160, 83, 0.2);
}

.share-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    background: none;
    border: none;
    font-size: 1.5rem;
    color: #333F48;
    cursor: pointer;
    transition: all 0.3s ease;
    width: 40px;
    height: 40px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
}

.share-modal-close:hover {
    background: rgba(51, 63, 72, 0.1);
    transform: rotate(90deg);
}

.share-modal-title {
    font-family: 'Cinzel', Georgia, serif;
    font-size: 2rem;
    color: #333F48;
    margin-bottom: 1rem;
    text-align: center;
}

.share-modal-content > p {
    color: #333F48;
    text-align: center;
    margin-bottom: 2rem;
    line-height: 1.6;
}

.share-options {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    gap: 1rem;
    margin-bottom: 2rem;
}

.share-option {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 0.5rem;
    padding: 1rem;
    border-radius: 12px;
    background: rgba(42, 63, 63, 0.05);
    text-decoration: none;
    color: #333F48;
    transition: all 0.3s ease;
}

.share-option:hover {
    background: rgba(42, 63, 63, 0.1);
    transform: translateY(-3px);
}

.share-icon {
    width: 50px;
    height: 50px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 1.5rem;
    color: white;
}

.share-facebook { background: #1877f2; }
.share-twitter { background: #1da1f2; }
.share-email { background: #ea4335; }
.share-whatsapp { background: #25d366; }

.share-url-container {
    border-top: 1px solid rgba(51, 63, 72, 0.1);
    padding-top: 1.5rem;
}

.share-url-container p {
    color: #333F48;
    margin-bottom: 0.5rem;
    font-size: var(--er-fs-floor);
}

.share-url-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid rgba(51, 63, 72, 0.2);
    border-radius: 8px;
    font-size: var(--er-fs-floor);
    color: #333F48;
    background: rgba(255, 255, 255, 0.5);
}

.copy-url-btn {
    margin-top: 0.5rem;
    width: 100%;
    padding: 0.75rem;
    background: #C9A053;
    color: #1F2E2E;
    border: none;
    border-radius: 8px;
    font-weight: 600;
    cursor: pointer;
    transition: all 0.3s ease;
}

.copy-url-btn:hover {
    background: #A88743;
    transform: translateY(-2px);
}

/* Modal open body state */
body.modal-open {
    overflow: hidden;
}

@keyframes fadeIn {
    from { opacity: 0; }
    to { opacity: 1; }
}

/* ===== THEME COMPATIBILITY ===== */
/* FIXED: Simplified theme overrides */
.saint-page #travel-integration,
.saint-template #travel-integration {
    /* Ensure consistent full-width behavior */
    position: relative;
    width: 100vw;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    box-sizing: border-box;
}

/* Ensure content containers are properly centered */
.saint-page #travel-integration .saints-section-header,
.saint-page #travel-integration .travel-options-container,
.saint-page #travel-integration .nearby-attractions,
.saint-page #travel-integration .journey-planner-cta {
    max-width: 1400px;
    margin-left: auto;
    margin-right: auto;
    padding-left: 2rem;
    padding-right: 2rem;
    box-sizing: border-box;
}