/* Cancellation Policy ordered list styling */
.cancellation-list {
    list-style-type: none;
    padding-left: 0;
    margin: 10px 20px;
    counter-reset: cancellation-counter;
    font-size: 15px;
}

.cancellation-list li {
    margin-bottom: 8px;
    line-height: 1.5;
    padding-left: 30px;
    position: relative;
}

.cancellation-list li::before {
    counter-increment: cancellation-counter;
    content: counter(cancellation-counter) ".";
    position: absolute;
    left: 0;
    font-weight: 600;
    color: #11315f;
}
.icon-inline {
    display: inline-block;
    vertical-align: middle;
    margin-right: 3px;
    width: 20px;
    height: 20px;
    color: currentColor;
    margin-bottom: 3px;
}

.icon-inline svg {
    display: block;
    width: 100%;
    height: 100%;
}

/* Title and Duration Wrapper */
.title-duration-wrapper {
    display: flex;
    align-items: center;
    gap: 15px;
    flex-wrap: wrap;
}

.title-duration-wrapper h1 {
    margin: 0;
    flex: 1;
    min-width: 200px;
}

/* Premium Duration Badge */
.tour-duration-badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: linear-gradient(135deg, #11315f, #008dad);
    color: white;
    padding: 8px 16px;
    border-radius: 25px;
    font-size: 14px;
    font-weight: 600;
    font-family: Montserrat, sans-serif;
    box-shadow: 0 4px 15px rgba(17, 49, 95, 0.3);
    white-space: nowrap;
    transition: all 0.3s ease;
}

.tour-duration-badge:hover {
    transform: translateY(-2px);
    box-shadow: 0 6px 20px rgba(17, 49, 95, 0.4);
}

.tour-duration-badge .icon-inline {
    width: 16px;
    height: 16px;
    margin-right: 0;
}

@import url('https://fonts.googleapis.com/css2?family=Montserrat:ital,wght@0,100..900;1,100..900&display=swap');
/* Header Section with Company Name and Page Numbers */
.tour-header-section {
    background: #11315f;
    color: white;
    padding: 15px 10px;
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 0px;
    font-family: Montserrat, sans-serif;
    position: relative;
    border-radius: 10px;
}

.header-logo {
    display: flex;
    align-items: center;
}

.header-logo img {
    height: 50px;
    width: auto;
    object-fit: contain;
}

.header-company {
    font-size: 18px;
    font-weight: 500;
    color: white;
    margin-left: 15px;
}

.header-page-number {
    font-size: 14px;
    font-weight: 600;
}
body {
    margin: -30px !important;
}
.row-actions {
    position: unset !important;
}

span.preview {
    float: left !important;
    margin-right: 10px;
}

.meta-box-sortables select {
    max-width: 90% !important;
}

/* Day Field Group Styles */
.day-field-group {
    margin: 20px 0;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    border: 1px solid #e9ecef;
    border-left: 4px solid #0073aa;
}

.day-field-group p {
    margin: 0 0 10px 0;
    font-weight: 600;
    color: #495057;
    font-size: 14px;
}

.day-field-group p.description {
    font-weight: normal;
    color: #6c757d;
    font-size: 12px;
    margin: 8px 0 0 0;
    font-style: italic;
}

.day-field-group textarea {
    font-family: inherit;
    font-size: 14px;
    border: 1px solid #ced4da;
    border-radius: 4px;
    padding: 10px;
}

.day-field-group textarea:focus {
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.2);
}

/* Per-day section styles in frontend */
.day-included-activities,
.day-meals-included,
.day-optional-activities {
    background: transparent;
    margin: 10px 0px;
    padding: 10px 0px 0px 0px !important;
}

.day-included-activities {
    border-left-color: #28a745;
}

.day-meals-included {
    border-left-color: #fd7e14;
}

.day-optional-activities {
    border-left-color: #6f42c1;
}

/* SVG icons added in PHP templates instead of CSS pseudo-elements */

.day-included-activities h4,
.day-meals-included h4,
.day-optional-activities h4 {
    color: #11315f;
    margin-top: 0;
    margin-bottom: 4px;
    font-size: 17px;
    border-bottom: 1px solid #dee2e6;
    padding-bottom: 3px;
}


/* Print styles for per-day sections */
@media print {
    .day-field-group {
        background: #fff !important;
        border: 1px solid #ddd !important;
        margin: 15px 0 !important;
        padding: 5px !important;
    }
    
    /* SVG icons added in PHP templates instead of CSS pseudo-elements */
    .tour-days .day
    .day-included-activities,
    .day-meals-included,
    .day-optional-activities {
        margin: 5px 0px;
        padding: 10px 5px 0px 5px !important;
    }
}

/* Responsive styles */
@media (max-width: 768px) {
    .day-field-group {
        padding: 15px;
        margin: 15px 0;
    }
    
    .day-included-activities,
    .day-meals-included,
    .day-optional-activities {
        padding: 15px;
        margin: 15px 0;
    }
}.cancellation-list


/* Ensure no margins in print */
@media print {
    @page {
        size: A4;
        margin: 10mm !important;
    }
    
    * {
        -webkit-print-color-adjust: exact !important;
        print-color-adjust: exact !important;
        box-sizing: border-box !important;
    }
    
    html, body {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        height: auto !important;
        overflow: visible !important;
    }
    
    .preview-container {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: none !important;
        overflow: visible !important;
    }
    
    .tour-itinerary {
        margin: 0 !important;
        padding: 0 !important;
        width: 100% !important;
        max-width: none !important;
        overflow: visible !important;
    }
    
    .tour-header-section {
        background-color: #11315f !important;
        color: #fff !important;
        padding: 8px 10px !important;
        position: relative;
        margin: 0 0 8px 0 !important;
        border-radius: 3px !important;
        width: 100% !important;
        overflow: visible !important;
    }
    
    .tour-header {
        margin: 0 !important;
        padding: 5px 0 !important;
        overflow: visible !important;
    }
    
    .tour-section {
        margin: 8px 0 !important;
        padding: 8px !important;
        page-break-inside: avoid;
        overflow: visible !important;
    }
    
    .day {
        page-break-inside: avoid;
        margin: 8px 0 !important;
        overflow: visible !important;
    }
    
    .day-content {
        page-break-inside: avoid;
        overflow: visible !important;
    }
    
    .day-article {
        page-break-inside: avoid;
        overflow: visible !important;
    }
    
    .pricing-table {
        page-break-inside: avoid;
        overflow: visible !important;
    }
    
    .preview-content {
        padding: 0 !important;
        margin: 0 !important;
        overflow: visible !important;
    }
    .pricing-table td {
    font-size: 13px !important;
}
    .header-company {
       color: #fff !important;
       font-size: 16px;
    }
    .header-page-number {
        font-size: 14px;
        font-weight: 400;
    }
    .tour-section li {
        margin-bottom: 0px;
        padding-left: 20px;
        color: #555;
        line-height: 25px !important; 
    }
    
    /* Ensure images don't get cut off */
    img {
        max-width: 100% !important;
        height: auto !important;
        page-break-inside: avoid;
    }
    
    /* Ensure tables don't get cut off */
    table {
        page-break-inside: auto;
    }
    
    tr {
        page-break-inside: avoid;
        page-break-after: auto;
    }
}


/* SVG icons added in PHP templates instead of CSS pseudo-elements */

.tour-meta {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(30%, 1fr));
    gap: 5px;
}
.wp-die-message, p {
    font-size: 15px;
    font-family: Montserrat, sans-serif;
}
/* Tour Itinerary Main Styles */
.tour-itinerary {
    font-family: Montserrat, sans-serif;
    max-width: 1000px;
    margin: 0 auto;
    line-height: 1.6;
    color: #333;
}

.tour-header {
    padding: 0px 10px 15px 10px;
    border-radius: 8px;
    margin-bottom: 20px;
    margin-top:10px;
}

.tour-header h1 {
    color: #11315f;
    margin-top: 10px;
    margin-bottom: 15px;
    font-size: 25px;
    border-bottom: 1px solid #dedede;
}

/* Export Buttons */
.export-buttons {
    margin: 25px 0;
    text-align: center;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 6px;
}

.export-btn {
    background: #0073aa;
    color: white;
    padding: 12px 25px;
    border-radius: 5px;
    display: inline-block;
    margin: 0 10px;
    border: none;
    cursor: pointer;
    font-size: 14px;
    transition: background 0.3s;
}

.export-btn:hover {
    background: #005a87;
}

.export-btn.print-btn {
    background: #28a745;
}

.export-btn.print-btn:hover {
    background: #218838;
}

/* Tour Days */
.tour-days {
    margin: 10px 0;
}

.tour-days h2 {
    color: #0073aa;
    border-bottom: 1px solid #d5d5d5;
    padding-bottom: 10px;
    margin-bottom: 25px;
    /* Use text instead of emoji for PDF */
    content: "Tour Itinerary";
}

/* SVG icons added in PHP templates instead of CSS pseudo-elements */

.day {
    margin-bottom: 10px;
    padding: 0px;
    background: #f3f3f300;
    border-radius: 8px;
}

.day h3 {
    color: #11315f;
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 15px;
}

/* Day accordion styling */
.day-header {
    cursor: pointer;
    position: relative;
}

.day-toggle-icon {
    float: right;
    font-size: 24px;
    font-weight: bold;
    color: #ffffff;
    margin-right: 10px;
}

.day.expanded .day-toggle-icon {
    color: #ffffff;
}

.day-content-wrapper {
    transition: all 0.3s ease;
}

/* Section headers with text alternatives for PDF */
.tour-section h3:before {
    /* Use text content that will work in PDF */
    display: inline-block;
    margin-right: 8px;
    font-size: 14px;
}

/* SVG icons added in PHP templates instead of CSS pseudo-elements */

/* Hide emojis in print/PDF */


/* PDF-optimized styles */
@media print {
    .preview-container {
        box-shadow: 0 5px 15px rgb(0 0 0 / 0%) !important;
    }
    body.wp-admin .tour-header {
        margin-top: 10px;
    }
    .preview-header {
        display: none !important;
        background: transparent;
    }
    body {
        font-family: Montserrat, sans-serif !important;
        color: #555 !important;
        margin: 0px;
        line-height: 1.4;
        font-size: 13px;
    }
    .tour-header h1 {
        border-bottom: 1px solid #dedede;
        padding-bottom: 5px;
        margin-top: 1px;
        font-size: 25px;
        color: #11315f !important;
    }
    .tour-section h3 {
        font-size: 17px;
        color:#11315f !important;
    }
     .tour-days h2 {
        margin-bottom: 0px;
        padding-bottom: 5px;
    }
    .tour-section h3:before {
        font-size: 13px;
    }
    .tour-itinerary {
        max-width: none !important;
        margin: 0 !important;
    }
    
    .tour-header {
        background: #f8f9fa !important;
        border: 0px solid #dee2e6 !important;
        margin-bottom: 10px;
        padding: 0px 10px 15px 10px;
        margin-top:10px !important;
    }
    .day h3 {
    	font-size: 15px;
    	padding: 10px 10px 9px 10px;
    	background: linear-gradient(135deg, #11315f, #008dad);
    	color: #fff !important;
    	border-radius: 7px 7px;
    	font-family: Montserrat, sans-serif;
    	font-weight: 500;
	}
    .tour-section {
        border: 0px solid #dee2e6 !important;
        padding: 5px 0px 0px 0px !important;
        margin: 10px 0 0px 0 !important;
    }
    .tour-section ul {
        padding-left: 0px;
        font-size: 15px;
    }
    .day {
        margin: 10px 0px !important;
        padding: 0px !important;
        background: #f3f3f300 !important;
    }
    .day-article {
        padding: 0px !important;
        border: 1px solid #dedede;
        padding: 5px 15px 15px 15px;
        border-radius: 10px;
    }
    .no-print, .export-buttons {
        display: none !important;
    }
    
    /* Ensure good contrast for printing */
    h1, h2, h3 {
        color: #000 !important;
    }
    
    .pricing-table th,
    .pricing-table tr,
    .pricing-table td {
        padding: 10px 18px !important;
        color: #11315f; !important;
        font-size: 19px;
    }
    .pricing-table th {
        background-color: #bdbdbd !important;
        color: #fff !important;
    }
}


/* Form Tables (Admin Style) */
.form-table {
    width: 100%;
    border-collapse: collapse;
    margin: 15px 0;
    background: white;
    border-radius: 6px;
    overflow: hidden;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.form-table th {
    background: #f8f9fa;
    text-align: left;
    padding: 15px;
    font-weight: 600;
    color: #333;
    border-bottom: 1px solid #dee2e6;
    width: 200px;
}

.form-table td {
    padding: 15px;
    border-bottom: 1px solid #dee2e6;
}

.form-table input[type="text"],
.form-table input[type="number"],
.form-table textarea {
    width: 100%;
    padding: 8px 12px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.form-table input:focus,
.form-table textarea:focus {
    border-color: #0073aa;
    outline: none;
    box-shadow: 0 0 0 2px rgba(0,115,170,0.2);
}

/* Pricing Table */
.pricing-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
}

.pricing-table th {
    background: linear-gradient(135deg, #0073aa, #005a87);
    color: white;
    padding: 10px;
    text-align: center;
    font-weight: 600;
    font-size: 16px;
    border: none;
}

.pricing-table td {
    padding: 10px;
    text-align: center;
    border: 1px solid #e9ecef;
    font-size: 19px;
    font-weight: 400;
    color: #11315f;
}

.pricing-table tr:nth-child(even) {
    background: #f8f9fa;
}

.pricing-table tr:hover {
    background: #e9ecef;
    transition: background 0.3s;
}

/* Tour Sections */
.tour-section {
    padding: 10px 0px 5px 0px;
    border-radius: 8px;
    padding: 10px 0px;
}

.tour-section h3 {
    color: #11315f;
    border-bottom: 1px solid #dbdbdb;
    padding-bottom: 0px;
    margin-top: 0;
    margin-bottom: 5px;
    font-size: 17px;
}

.tour-section ul {
    margin: 5px 0;
    padding-left: 0px;
    font-size: 15px;
}

.tour-section li {
    margin-bottom: 0px;
    padding-left: 20px;
    color: #555;
    line-height: 25px !important;
    list-style-type: none;
}

.tour-section li:before {
    content: "•";
    color: #5f5f5f;
    font-weight: bold;
    display: inline-block;
    width: 15px;
    margin-left: 0em;
    font-size: 20px;
}

/* Premium styling for Additional Notes section */
.tour-section h3.notes {
    background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
    color: white !important;
    padding: 12px 15px;
    border-radius: 8px;
    border-bottom: none !important;
    margin-bottom: 15px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(102, 126, 234, 0.3);
}

.tour-section h3.notes .icon-inline {
    color: white !important;
}

.tour-section h3.notes .icon-inline svg {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.tour-section h3.notes + ul {
    background: linear-gradient(135deg, #f5f7fa 0%, #c3cfe2 100%);
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid #e1e8ed;
    box-shadow: inset 0 2px 4px rgba(0,0,0,0.05);
}

.tour-section h3.notes + ul li {
    color: #2c3e50;
    font-weight: 500;
    padding-left: 0px;
    line-height: 28px !important;
}

.tour-section h3.notes + ul li:before {
    color: #667eea;
    font-size: 22px;
}

/* Premium styling for Important Notice section */
.tour-section h3.important-notice {
    background: linear-gradient(135deg, #FF9800 0%, #a776ff 100%);
    color: white !important;
    padding: 12px 15px;
    border-radius: 8px;
    border-bottom: none !important;
    margin-bottom: 15px;
    font-weight: 600;
    box-shadow: 0 4px 15px rgba(245, 87, 108, 0.3);
}

.tour-section h3.important-notice .icon-inline {
    color: white !important;
}

.tour-section h3.important-notice .icon-inline svg {
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}

.tour-section h3.important-notice + ul {
    background: linear-gradient(135deg, #fffbf1 0%, #fff5d6 100%);
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid #ffccd5;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tour-section h3.important-notice + ul li {
    color: #2c3e50;
    font-weight: 500;
    padding-left: 0px;
    line-height: 28px !important;
}

.tour-section h3.important-notice + ul li:before {
    color: #f5576c;
    font-size: 22px;
}

/* Important Notice content styling for editor */
.tour-section .important-notice-content {
    background: linear-gradient(135deg, #fffbf1 0%, #fff5d6 100%);
    padding: 15px 20px;
    border-radius: 8px;
    border: 1px solid #ffccd5;
    box-shadow: inset 0 2px 4px rgba(0, 0, 0, 0.05);
}

.tour-section .important-notice-content p {
    color: #2c3e50;
    font-weight: 500;
    line-height: 28px !important;
    margin: 0 0 10px 0;
}

.tour-section .important-notice-content p:last-child {
    margin-bottom: 0;
}

.tour-section .important-notice-content ul {
    padding-left: 0px;
    margin: 0px 0;
}

.tour-section .important-notice-content ul li {
    color: #11315f;
    font-weight: 500;
    line-height: 28px !important;
    padding-left: 2px;
}

.tour-section .important-notice-content ul li:before {
    color: #f5576c;
    font-size: 22px;
}

/* No Print Styles */
.no-print {
    display: block;
}

@media print {
    .no-print {
        display: none !important;
    }
    p {
        font-size: 13px;
        font-family: Montserrat, sans-serif;
    }
    .preview-content {
        font-family: Montserrat, sans-serif;
        font-size: 13px;
        border: 0px;
        margin: 0 !important;
        padding: 0 !important;
    }
    .tour-itinerary {
        max-width: none;
        margin: 0 !important;
        padding: 0 !important;
        font-size: 13px;
    }
    
    .tour-section {
        box-shadow: none;
        border: 0px solid #ddd;
        margin: 20px 0;
    }

    .preview-header {
        display: none !important;
        background: #23282d00;
    }
    .preview-container {
        margin-top: 0px !important;
    }
}

/* Responsive Design */
@media (max-width: 768px) {
    .tour-itinerary {
        padding: 0 15px;
    }
    
    .form-table th,
    .form-table td {
        display: block;
        width: 100%;
        text-align: left;
    }
    
    .form-table th {
        background: #f8f9fa;
        border-bottom: none;
        padding-bottom: 5px;
    }
    
    .form-table td {
        padding-top: 5px;
        padding-bottom: 15px;
    }
    
    .pricing-table {
        font-size: 14px;
    }
    
    .pricing-table th,
    .pricing-table td {
        padding: 12px 8px;
        
    }
    
    .export-buttons {
        text-align: left;
    }
    
    .export-btn {
        display: block;
        margin: 10px 0;
        text-align: center;
    }
}

/* Admin Preview Specific Styles */
body.wp-admin .tour-itinerary {
    margin: 10px 0;
    padding: 10px 20px;
}

body.wp-admin .tour-header {
    background: #f5f5f5;
}



/* Hide admin elements in preview */
body.wp-admin .tour-itinerary {
    margin-top: 0px;
    padding: 0;
}

/* Ensure no admin styles interfere */
body.wp-admin #wpcontent,
body.wp-admin #wpbody-content,
body.wp-admin .wrap {
    margin: 0 !important;
    padding: 0 !important;
}

body.wp-admin #adminmenumain,
body.wp-admin #wpadminbar,
body.wp-admin .update-nag,
body.wp-admin .notice {
    display: none !important;
}

body.wp-admin {
    background: #fff;
}

/* Preview specific styles */
.preview-container {
    max-width: 950px;
    margin: 15px auto;
    background: white;
    border-radius: 10px;
    overflow: hidden;
    margin-top: 10px;
    box-shadow: 0 5px 15px rgb(0 0 0 / 14%);
}

.preview-header {
    background: #11315f00;
    color: white;
    border-bottom: 0px;
    padding: 5px 10px;
    position: fixed;
    width: 100%;
    left: 0;
    right: 0;
    z-index: 9999;
    margin-top: 0px;
}

.preview-nav a {
	background: #11315f;
    color: white;
    text-decoration: none;
    margin-right: 15px;
    padding: 8px 15px;
    border-radius: 4px;
    transition: background 0.3s;
    border: 1px solid rgba(255,255,255,0.2);
}

.preview-nav a:hover {
    background: rgba(255,255,255,0.1);
}

.preview-actions button {
    background: #0073aa;
    color: white;
    border: none;
    padding: 10px 20px;
    border-radius: 4px;
    cursor: pointer;
    margin-left: 10px;
    font-size: 14px;
    transition: background 0.3s;
}

.preview-actions button:hover {
    background: #005a87;
}

.preview-actions button:last-child {
    background: #00732a;
}

.preview-actions button:last-child:hover {
    background: #218838;
}

.preview-content {
    margin: 0px;
    padding: 20px 25px;
    font-family: Montserrat, sans-serif;
    font-size: 15px;
    border-radius: 10px;
}

/* Responsive preview header */
@media (max-width: 768px) {
    .preview-header {
        flex-direction: column;
        gap: 15px;
        text-align: center;
    }
    
    .preview-nav, .preview-actions {
        width: 100%;
        justify-content: center;
    }
    
    .preview-nav a {
        display: inline-block;
        margin: 5px;
    }
    
    .preview-actions button {
        margin: 5px;
    }
    
    .preview-content {
        padding: 20px;
    }
}

/* Rest of your existing tour styles remain the same */
.tour-itinerary {
    font-family: Montserrat, sans-serif;
    max-width: 1200px;
    margin: 0 auto;
    line-height: 1.6;
}

/* Day Image Styles */
.day-image {
    text-align: center;
    margin: 15px 0;
}

.day-image img {
    max-width: 100%;
    height: auto;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.day-image img:hover {
    transform: scale(1.02);
}

/* Admin Day Image Upload Styles */
.day-image-upload {
    margin: 15px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.day-image-upload .image-preview img {
    max-width: 200px;
    height: auto;
    border-radius: 4px;
    border: 2px solid #e1e1e1;
}

.upload-day-image,
.remove-day-image {
    margin-right: 10px !important;
}

/* Print styles for day images */
@media print {
    .day-image img {
        max-width: 100% !important;
        margin: 10px auto !important;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
        border: 1px solid #ddd !important;
    }
}

/* Responsive day images */
@media (max-width: 768px) {
    .day-image img {
        max-width: 100% !important;
    }
}


/* Multiple Images Grid Layout - BELOW CONTENT */

.day-image-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    background: white;
}

.day-image-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0,0,0,0.15);
}

.day-image-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.day-image-item:hover img {
    transform: scale(1.05);
}

/* Print styles for image grid */
@media print {
    body.wp-admin .tour-itinerary {
        margin: 0 !important;
        padding: 0 !important;
    }
    .day-images-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 8px !important;
    }
    .day-image-item img {
        height: 220px !important;
    }
}

/* Responsive grid for mobile */
@media (max-width: 768px) {
    .day-images-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 12px;
        padding: 15px;
    }
    
    .day-image-item img {
        height: 200px;
    }
}

@media (max-width: 480px) {
    .day-images-grid {
        grid-template-columns: 1fr;
        padding: 12px;
    }
    
    .day-image-item img {
        height: 200px;
    }
}

/* Admin Styles - Images below content in admin too */
.tour-day {
    position: relative;
    margin-bottom: 30px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #f9f9f9;
}

.day-images-upload {
    margin: 20px 0 10px 0;
    padding: 15px;
    background: white;
    border-radius: 5px;
    border: 1px solid #ccc;
}

.images-grid-preview {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(100px, 1fr));
    gap: 10px;
    margin: 10px 0;
}

.image-preview-item {
    position: relative;
}

.image-preview-item img {
    width: 100px;
    height: 80px;
    object-fit: cover;
    border-radius: 4px;
    border: 2px solid #ddd;
}

.remove-single-image {
    position: absolute;
    top: -5px;
    right: -5px;
    background: #dc3232;
    color: white;
    border: none;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    font-size: 12px;
    line-height: 1;
    padding: 0;
    cursor: pointer;
}

.remove-single-image:hover {
    background: #a00;
}



/* Preview Page Specific Fixes */
body.wp-admin .preview-content .day-image img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
    max-width: 100% !important;
    height: auto !important;
}

/* Admin Day Image Upload Styles */
.day-image-upload {
    margin: 15px 0;
    padding: 15px;
    background: #f9f9f9;
    border-radius: 5px;
    border: 1px solid #ddd;
}

.day-image-upload .image-preview img {
    max-width: 200px;
    height: auto;
    border-radius: 4px;
    border: 2px solid #e1e1e1;
    display: block !important;
}

.upload-day-image,
.remove-day-image {
    margin-right: 10px !important;
}

/* Responsive day images */
@media (max-width: 768px) {
    .day-image img {
        max-width: 100% !important;
    }
    
    @media print {
        .day-image img {
            max-width: 90% !important;
        }
    }
}

/* Force image display in all contexts */
.tour-itinerary img,
.day-image img,
.day-content img {
    display: block !important;
    visibility: visible !important;
    opacity: 1 !important;
}

/* Remove Day Button Styles */
.remove-day {
    background: #dc3232 !important;
    color: white !important;
    border-color: #dc3232 !important;
    margin-top: 10px;
}

.remove-day:hover {
    background: #a00 !important;
    border-color: #a00 !important;
}

/* Button danger style for WordPress consistency */
.button-danger {
    background: #dc3232 !important;
    color: white !important;
    border-color: #dc3232 !important;
}

.button-danger:hover {
    background: #a00 !important;
    border-color: #a00 !important;
}

/* Tour day container styling */
.tour-day {
    position: relative;
    margin-bottom: 20px;
    padding: 20px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background: #f9f9f9;
}


/* Day Article Layout */
.day-article {
    margin: 15px 0;
    border: 1px solid #dedede;
    padding: 4px 15px 15px 15px;
    border-radius: 10px;
}

.day-content {
    padding: 0px;
    line-height: 1.7;
    font-size: 15px;
    color: #444;
}

.day-content p {
    margin-bottom: 15px;
    font-family: Montserrat, sans-serif;
}

.day-content p:last-child {
    margin-bottom: 0;
}

/* Images Section - Below Article */
.day-images-section h4 {
    color: #11315f;
    margin: 0 0 20px 0;
    font-size: 17px;
    font-weight: 600;
    border-bottom: 1px dashed #b9b9b9;
    padding-bottom: 2px;
    margin-top: 15px;
    font-family: Montserrat, sans-serif;
}

/* Multiple Images Grid Layout - Below Article */
.day-images-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 10px;
    margin-top: 20px;
}

.day-image-item {
    position: relative;
    overflow: hidden;
    border-radius: 8px;
    box-shadow: 0 3px 15px rgba(0,0,0,0.1);
    transition: all 0.3s ease;
    background: white;
}

.day-image-item:hover {
    transform: translateY(-3px);
    box-shadow: 0 5px 25px rgba(0,0,0,0.15);
}

.day-image-item img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.day-image-item:hover img {
    transform: scale(1.08);
}

/* Print styles for article layout */
@media print {
    .day-article {
        box-shadow: none !important;
        border: 1px solid #dedede;
        margin-top: 10px;
        padding: 5px 15px 15px 15px !important;
        border-radius: 10px;
    }
    .day-header {
        margin-bottom: 0px !important;
    }
    .day-content {
        padding: 5px !important;
    }
    
    .day-images-section {
        padding: 15px !important;
        background: transparent !important;
    }
    
    .day-images-section h4 {
        color: #11315f !important;
        border-bottom: 1px solid #dee2e6 !important;
        font-size: 17px !important;
        font-weight: 600;
        margin-bottom: 0px !important;
    }
    
    .day-images-grid {
        grid-template-columns: repeat(3, 1fr) !important;
        gap: 10px !important;
        margin-top: 10px;
    }
    
    .day-image-item {
        box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
    }
    
    .day-image-item img {
        height: 200px !important;
        border: 1px solid #ddd !important;
    }
    
    .day-image-item:hover {
        transform: none !important;
        box-shadow: 0 1px 3px rgba(0,0,0,0.1) !important;
    }
    body.wp-admin .day-images-section {
        background: transparent;
    }
}

/* Responsive design for article layout */
@media (max-width: 1024px) {
    .day-images-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 15px;
    }
    
    .day-image-item img {
        height: 200px;
    }
}

@media (max-width: 768px) {
    .day-article {
        margin: 10px 0;
    }
    
    .day-content {
        padding: 20px;
    }
    
    .day-images-section {
        padding: 20px;
    }
    
    .day-images-grid {
        grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
        gap: 12px;
    }
    
    .day-image-item img {
        height: 180px;
    }
    
    .day-images-section h4 {
        font-size: 16px;
        margin-bottom: 10px;
    }
}

@media (max-width: 480px) {
    .day-content {
        padding: 15px;
    }
    
    .day-images-section {
        padding: 15px;
    }
    
    .day-images-grid {
        grid-template-columns: 1fr;
        gap: 10px;
    }
    
    .day-image-item img {
        height: 200px;
    }
}

/* Day header styling */
.day h3 {
    font-size: 15px;
    padding: 10px 15px 9px 15px;
    background: linear-gradient(135deg, #11315f, #008dad);
    color: white;
    font-weight: 600 !important;
    border-radius: 7px 7px;
    font-family: Montserrat, sans-serif;
    font-weight: 500;
}

/* Admin preview specific styles */

body.wp-admin .day-images-section {
    background: transparent;
}

/* Ensure proper spacing between days */
.tour-days .day {
    margin-bottom: 10px;
    border-radius: 8px;
    overflow: hidden;
}

.tour-days .day:last-child {
    margin-bottom: 0;
}


/* Add these to your existing section header styles */
/* SVG icons added in PHP templates instead of CSS pseudo-elements */
h4.meals-included {margin: 5px;}
h4.included-activities {margin: 5px;}
h4.optional-activities {margin: 5px;}

/* Print styles for the new sections */
@media print {
    /* SVG icons added in PHP templates instead of CSS pseudo-elements */
}

/* Day Header with Pickup Time */
.day-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    flex-wrap: wrap;
    gap: 15px;
}

.day-header h3 {
    margin: 0;
    flex: 1;
    min-width: 300px;
}
.day-pickup-time {
    font-size: 14px;
    color: #FFC107 !important;
    float: right;
}

.day-pickup-time strong {
    color: #fff;
}

/* Responsive design for day header */
@media (max-width: 768px) {
    .day-header {
        flex-direction: column;
        align-items: flex-start;
    }
    
    .day-header h3 {
        min-width: auto;
        width: 100%;
    }
    
    .day-pickup-time {
        align-self: flex-start;
    }
}

/* Print styles for pickup time */
@media print {
    .day-pickup-time {
        font-size: 14px;
    	color: #FFC107 !important;
    	float: right;
    }
}

/* Rich Text Editor Styles */
.tour-day-editor {
    border: 1px solid #ddd;
    border-radius: 4px;
    min-height: 200px;
}

.wp-editor-tools {
    background: #f5f5f5;
    padding: 10px;
    border-bottom: 1px solid #ddd;
}

.mce-toolbar-grp {
    background: #f9f9f9 !important;
}

/* Frontend content styles for formatted text */
.day-content ul, 
.day-content ol {
    margin: 15px 0;
    padding-left: 39px;
}

.day-content ul {
    list-style-type: disc;
}

.day-content ol {
    list-style-type: decimal;
}

.day-content li {
    margin-bottom: 0px;
    line-height: 1.6;
}

.day-content strong {
    font-weight: 600;
    color: #11315f;
}

.day-content em {
    font-style: italic;
    color: #555;
}

.day-content u {
    text-decoration: underline;
}

.day-content a {
    color: #0073aa;
    text-decoration: none;
}

.day-content a:hover {
    text-decoration: underline;
    color: #005a87;
}

/* Print styles for formatted content */
@media print {
    .day-content ul, 
    .day-content ol {
        margin: 10px 0;
        padding: 15px;
    }
    .day-content li {
        margin-bottom: 0px;
}
    .day-content strong {
        font-weight: 600;
        color: #11315f;
    }
    
    .day-content em {
        font-style: italic;
    }
    
    .day-content u {
        text-decoration: underline;
    }
    
    .day-content a {
        color: #000;
        text-decoration: underline;
    }
}

/* Exclude include Columns */
    div.column-header.included-header, div.column-header.excluded-header {
        padding: 2px 22px;
        margin-bottom: 15px;
    }
    div.column-header.included-header h3, div.column-header.excluded-header h3  {
        margin: 2px 0;
        color: #656565;
        font-size: 16px;
    }
        
        .page-title {
            text-align: center;
            margin-bottom: 40px;
            color: #2c3e50;
            font-weight: 600;
        }
        
        .columns-container {
            display: flex;
            flex-wrap: wrap;
            gap: 20px;
            margin: 30px 0 40px 0;
            width: 100%;
        }
        
        .tour-column {
             flex: 1;
            min-width: 300px;
            background: white;
            border-radius: 10px;
            box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
            overflow: hidden;
            border: 1px solid #e5e5e5;
        }
        
        .column-header {
            padding: 20px;
            color: white;
        }
        
        .included-header {
            background: linear-gradient(135deg, #baffbd, #baffbd);
        }
        
        .excluded-header {
            background: linear-gradient(135deg, #ffc7c1, #ffc7c1);
        }
        
        .tour-section-inex {
            padding: 5px 25px;
        }
        
        .tour-section-inex h3 {
            margin-bottom: 20px;
            font-size: 1.5rem;
            font-weight: 600;
        }
        
        .tour-section-inex ul {
            list-style-type: none;
            padding: 0;
            margin: 0;
        }
        
        .tour-section-inex li {
            padding: 0px 0 3px 0;
            margin-bottom: 3px;
            border-bottom: 1px solid #eee;
            position: relative;
            padding-left: 30px;
            font-size: 13px;
        }
        
        .tour-section-inex li:last-child {
            border-bottom: none;
        }
        
        .included li:before {
            content: "✓";
            color: #27ae60;
            font-weight: bold;
            position: absolute;
            left: 0;
            font-size: 15px;
        }
        
        .excluded li:before {
            content: "✕";
            color: #e74c3c;
            font-weight: bold;
            position: absolute;
            left: 0;
            font-size: 14px;
        }
        
        .code-container {
            background: #2c3e50;
            border-radius: 8px;
            padding: 25px;
            margin-top: 40px;
            color: white;
            overflow-x: auto;
        }
        
        .code-container h3 {
            margin-bottom: 15px;
            color: #ecf0f1;
        }
        
        pre {
            white-space: pre-wrap;
            line-height: 1.5;
        }
        
        .code-comment {
            color: #7f8c8d;
        }
        
        .php-tag {
            color: #e74c3c;
        }
        
        .php-function {
            color: #3498db;
        }
        
        .html-tag {
            color: #e67e22;
        }
        
        .css-class {
            color: #9b59b6;
        }
        
        
    /* Print styles for formatted content */
    @media print {
    .columns-container {
        display: grid;
        grid-template-columns: repeat(auto-fill, minmax(48%, 1fr));
        gap: 10px;
        margin: 10px 0 40px 0;
        width: 100%;
    }
    .tour-column {
        flex: 1;
        min-width: 300px;
        background: white;
        border-radius: 10px;
        box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08);
        overflow: hidden;
    }
    .tour-section-inex li {
        font-size: 13px;
    }
    div.column-header.included-header h3, div.column-header.excluded-header h3 {
    font-size: 16px;
    color: #656565;
    }
    }
        
    @media (max-width: 768px) {
    .columns-container {
        flex-direction: column;
    }
            
    .tour-column {
        min-width: 100%;
    }
    }
        
        


/* Tour Status Badge Styles */
.tour-status-badge {
    display: inline-block;
    padding: 13px 56px;
    border-radius: 20px;
    font-size: 32px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0px 0 0px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
}

/* Status Colors */
.status-pending {
    background: linear-gradient(135deg, #ff9800, #f57c00);
    color: white;
    border-color: #e65100;
    position: absolute;
    left: 50%;
    transform: translate(-50%, 128%) rotate(-19deg);
    opacity: 0.1;
    z-index: 1000;
}

.status-confirmed {
    background: linear-gradient(135deg, #4caf50, #388e3c);
    color: white;
    border-color: #1b5e20;
    position: absolute;
    left: 50%;
    transform: translate(-50%, 128%) rotate(-19deg);
    opacity: 0.1;
    z-index: 1000;
}

.status-rejected {
    background: linear-gradient(135deg, #f44336, #d32f2f);
    color: white;
    border-color: #b71c1c;
    position: absolute;
    left: 50%;
    transform: translate(-50%, 128%) rotate(-19deg);
    opacity: 0.1;
    z-index: 1000;
}

.status-cancelled {
    background: linear-gradient(135deg, #9e9e9e, #616161);
    color: white;
    border-color: #424242;
    position: absolute;
    left: 50%;
    transform: translate(-50%, 128%) rotate(-19deg);
    opacity: 0.1;
    z-index: 1000;
}

/* Tour Day Accordion Styles */
.tour-day {
    position: relative;
    margin-bottom: 15px;
    border: 1px solid #ddd;
    border-radius: 8px;
    background: #fff;
    overflow: hidden;
}

.tour-day-header {
    background: linear-gradient(135deg, #f8f9fa, #e9ecef);
    padding: 15px 20px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: space-between;
    border-bottom: 1px solid #dee2e6;
    transition: all 0.3s ease;
    user-select: none;
}

.tour-day-header:hover {
    background: linear-gradient(135deg, #e9ecef, #dee2e6);
}

.tour-day-header .day-info {
    display: flex;
    align-items: center;
    gap: 10px;
    flex: 1;
}

.tour-day-header .drag-handle {
    cursor: move;
    color: #6c757d;
    font-size: 16px;
    padding: 5px;
    border-radius: 4px;
    transition: all 0.3s ease;
}

.tour-day-header .drag-handle:hover {
    background: #0073aa;
    color: white;
}

.tour-day-header .day-number {
    font-weight: 600;
    color: #495057;
    font-size: 16px;
    min-width: 80px;
}

.tour-day-header .day-title {
    font-weight: 500;
    color: #0073aa;
    flex: 1;
}

.tour-day-header .day-pickup {
    color: #28a745;
    font-size: 14px;
    margin-right: 15px;
}

.tour-day-header .toggle-icon {
    width: 24px;
    height: 24px;
    background: #0073aa;
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
    font-weight: bold;
    transition: all 0.3s ease;
}

.tour-day-header:hover .toggle-icon {
    background: #005a87;
}

.tour-day-content {
    display: none;
    padding: 20px;
    background: #fff;
}

.tour-day.expanded .tour-day-content {
    display: block;
}

.tour-day.expanded .tour-day-header {
    background: linear-gradient(135deg, #0073aa, #005a87);
}

.tour-day.expanded .tour-day-header .day-number,
.tour-day.expanded .tour-day-header .day-title,
.tour-day.expanded .tour-day-header .day-pickup {
    color: white;
}

.tour-day.expanded .tour-day-header .drag-handle {
    color: rgba(255,255,255,0.8);
}

.tour-day.expanded .tour-day-header .drag-handle:hover {
    background: rgba(255,255,255,0.2);
    color: white;
}

.tour-day.expanded .tour-day-header .toggle-icon {
    background: white;
    color: #0073aa;
}

/* Sortable placeholder */
.sortable-placeholder {
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    height: 80px;
    margin: 10px 0;
}

/* Drag handle animation */
.tour-day.sortable-helper {
    box-shadow: 0 5px 15px rgba(0,0,0,0.1);
    transform: rotate(2deg);
}

/* Responsive design for accordion */
@media (max-width: 768px) {
    .tour-day-header {
        padding: 12px 15px;
        flex-wrap: wrap;
    }
    
    .tour-day-header .day-info {
        flex-wrap: wrap;
        gap: 8px;
    }
    
    .tour-day-header .day-number {
        min-width: 60px;
        font-size: 14px;
    }
    
    .tour-day-header .day-title {
        font-size: 14px;
    }
    
    .tour-day-header .day-pickup {
        font-size: 12px;
        margin-right: 10px;
    }
    
    .tour-day-content {
        padding: 15px;
    }
}

/* Animation for accordion */
.tour-day-content {
    animation: slideDown 0.3s ease-out;
}

@keyframes slideDown {
    from {
        opacity: 0;
        transform: translateY(-10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Print styles for accordion */
@media print {
    .tour-day-header {
        background: #f8f9fa !important;
        border-bottom: 1px solid #ddd !important;
    }
    
    .tour-day-content {
        display: block !important;
    }
    
    .drag-handle,
    .toggle-icon {
        display: none !important;
    }
}

/* Print styles for status badges */
@media print {
    .tour-status-badge {
    display: inline-block;
    padding: 13px 56px !important;
    border-radius: 20px;
    font-size: 32px !important;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin: 0px 0 0px 0;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    border: 2px solid transparent;
}
    
    .status-pending { border-left: 4px solid #ff9800; }
    .status-confirmed { border-left: 4px solid #4caf50; }
    .status-rejected { border-left: 4px solid #f44336; }
    .status-cancelled { border-left: 4px solid #9e9e9e; }
}

/* Responsive status badge */
@media (max-width: 768px) {
    .tour-status-badge {
        font-size: 12px;
        padding: 6px 12px;
        margin: 8px 0 12px 0;
    }
}
