/**
 * Course Description Page Consolidated Styles
 * Version: 1.0
 * Created: 2025-08-21T14:30:00Z
 * Last Updated: 2025-08-21T14:30:00Z
 * 
 * Consolidated from various PHP includes to improve performance and maintainability
 * Sources: search.php, FacultyTab.php, PricingTab.php, travelprotection.php, 
 *          PrepostTab.php, carousel_thumbnail.php, shore_jsonp.php
 * 
 * PRODUCTION ENVIRONMENT: coursedescription.php v1.0
 * COMPATIBILITY: Bootstrap 3.4.1, IE9+, all modern browsers
 */

/* ========================================
   1. FACULTY TAB STYLES
   Source: includes/FacultyTab.php
   ======================================== */
/* Removed .col-sm-3 .call-us - already in global.css and responsive.css overrides it */

/* Row margin override - using more specific selector to win cascade */
#Content .row {
    margin-right: 0;
    margin-left: 0;
}

/* Add top margin to all speaker sections except the first */
#speakers .speakers + .speakers {
    margin-top: 1.5em;
}

/* ========================================
   2. PRICING TAB STYLES
   Source: includes/PricingTab.php
   ======================================== */

/* Modern Layout for Pricing Table Cards - from PricingTab.php */
/* 1. Make ANY <article class="row"> inside the pricing container a flex container */
.pricing.container article.row {
    display: flex;
    flex-wrap: wrap; /* Allows columns to stack on mobile */
}

/* 2. Make the .column divs flex containers as well */
.pricing.container article.row > .column {
    display: flex;
    flex-direction: column;
}

/* 3. Make the .card stretch to fill the entire height of its parent .column */
.pricing.container article.row > .column > .card {
    flex-grow: 1; /* Key property that makes the card fill the available space */
}

/* Container and layout styles */
.pricing.container {
    max-width: 1000px;
    margin-bottom: 1em;
    margin-top: 1em;
}

.pricing.container .col-sm-3 .call-us {
    display: block;
}

.pricing.container .row {
    margin-right: 0;
    margin-left: 0;
}

.pricing.container .header {
    color: #fff;
    background-color: #4D82B8;
}

.pricing.container .box-shadow {
    -webkit-box-shadow: 0 6px 4px -4px #888888;
    -moz-box-shadow: 0 6px 4px -4px #888888;
    box-shadow: 0 6px 4px -4px #888888;
}

.pricing.container .row .card {
    background-color: #fff !important;
    overflow: hidden;
}

.pricing.container .row .col-sm-9.column {
    padding: 10px 1px 1px 10px;
}

.pricing.container .row .col-sm-3.column {
    padding: 10px 10px 1px 1px;
    display: flex;
    align-items: center;
}

.pricing.container .row .col-sm-3.column .card {
    width: -webkit-fill-available;
}

.pricing.container .row .col-xs-12.header {
    padding: 10px;
}

.pricing.container .type-heading {
    margin-top: 10px;
}

.pricing.container .type-heading h4,
.row.typeheading h4 {
    margin: 0px;
}

.pricing.container h3 {
    text-align: left;
}

.pricing.container .glyphicon-chevron-down {
    color: #4FD395;
    font-size: 1em;
}

.pricing.container div.center {
    padding-top: 1.25em;
}

.pricing.container .accordion-toggle {
    font-size: 1em;
}

.pricing.container .type-heading .accordion-toggle:after {
    /* symbol for "opening" panels */
    font-family: 'Glyphicons Halflings';
    content: "\e114";
    color: #4D82B8;
    vertical-align: middle;
    margin-left: 5px;
}

.pricing.container .type-heading .accordion-toggle.collapsed:after {
    /* symbol for "collapsed" panels */
    content: "\e080";
}

.pricing.container .well {
    width: 97.5%;
}

.pricing.container button.md-raised {
    box-shadow: 0 2px 5px 0 rgba(0,0,0,.26);
    color: #4D82B8;
    background-color: rgb(250,250,250);
    margin-left: 10px;
    margin-bottom: 10px;
}

#filters li {
    list-style-type: none;
    display: inline-block;
}

#filters ul {
    width: 100%;
}

.pricing_details {
    padding: 15px;
}

/* Stateroom filter styling */
.stateroom-filters {
    padding: 15px;
    background-color: #f8f9fa;
    border-radius: 4px;
    margin-bottom: 10px;
}

.filter-group-label {
    display: block;
    margin-bottom: 0em;
    color: #333;
}

.radio-group .radio-inline,
.checkbox-group .checkbox-inline {
    margin-right: .75em;
    margin-bottom: .25em;
}

.filter-help {
    padding: 15px;
    text-align: center;
}

/* Proposed pricing table alterations */
.pricing-table {
    max-width: 710px;
    width: 98%;
    background-color: white;
    border: 1px solid black;
    border-collapse: collapse;
    margin: 9px auto;
}

.pricing-table td, 
.pricing-table th {
    border: 1px solid black;
    padding: 0.3em 0.5em;
}

.pricing-table td.image-text {
    text-align: justify;
}

.pricing-table .image-text img {
    max-width: 60%;
    max-height: 90%;
    margin-right: 0.38em;
}

.pricing-header {
    text-align: center;
    letter-spacing: 1px;
    font-weight: bold;
    border: 1px solid black;
}

.pricing-image {
    display: block;
    margin: 0.5em auto;
    max-width: 200px;
    max-height: 150px;
    min-width: 95%;
}

.pricing-text,
.pricing-price,
.pricing-details,
.pricing-misc {
    border: 1px solid black;
    padding: 1em;
}

.pricing-text {
    text-align: justify;
}

.pricing-price {
    text-align: center;
}

.pricing-details,
.pricing-misc {
    width: 90%;
    margin: 1em auto;
    background-color: #fff;
}

.pricing-misc ul li {
    list-style-type: none;
}

.pricing-misc h3, 
.pricing-misc h4 {
    text-align: center;
    line-height: 1.5;
}

.pricing-misc .included ul li {
    list-style-type: circle;
    text-align: left;
}

.pricing-list {
    display: inline-block;
    font-size: 0.875em;
    text-align: left;
    list-style-type: disc;
    margin: 3px 0;
}

.pricing-list ul {
    width: 95%;
}

/* Mobile responsive */
@media only screen and (max-width: 768px) {
    .pricing.container .row .col-sm-9.column {
        padding-top: 5px;
        padding-right: 10px;
        padding-left: 10px;
        padding-bottom: 2px;
    }
    
    .pricing.container .row .col-sm-3.column {
        padding-right: 10px;
        padding-left: 10px;
        padding-bottom: 5px;
        padding-top: 2px;
    }
    
    .pricing.container .row .col-sm-3.column .card {
        width: -webkit-fill-available;
    }
}

/* Accessible staterooms */
.accessible {
    border-left: 4px solid #3498db;
    background-color: #eef7ff;
}

.accessible h4 {
    color: #2980b9;
}

/* ========================================
   3. TRAVEL PROTECTION STYLES
   Source: includes/travelprotection.php
   ======================================== */

#travelprotection {
    padding: 20px;
    background-color: #f9f9f9;
    border-radius: 8px;
    margin: 20px 0;
}

#travelprotection h2 {
    color: #2c3e50;
    border-bottom: 3px solid #3498db;
    padding-bottom: 10px;
    margin-bottom: 20px;
}

#travelprotection h3 {
    color: #34495e;
    margin-top: 25px;
    margin-bottom: 15px;
}

#travelprotection h4 {
    color: #7f8c8d;
    margin-top: 20px;
    margin-bottom: 10px;
    font-style: italic;
}

#travelprotection ul, 
#travelprotection ol {
    margin-left: 20px;
    margin-bottom: 15px;
}

#travelprotection li {
    margin-bottom: 8px;
    line-height: 1.6;
}

#travelprotection .btn {
    background-color: #3498db;
    color: white;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 5px;
    display: inline-block;
    margin: 10px 5px;
    transition: background-color 0.3s;
}

#travelprotection .btn:hover {
    background-color: #2980b9;
}

#travelprotection a[href^="tel:"] {
    color: #e74c3c;
    font-weight: bold;
    text-decoration: none;
}

#travelprotection a[href^="tel:"]:hover {
    text-decoration: underline;
}

#travelprotection .disclaimer {
    background-color: #fff3cd;
    border-left: 4px solid #ffc107;
    padding: 15px;
    margin: 20px 0;
    font-size: 0.9em;
    color: #856404;
}

/* ========================================
   4. PREPOST TAB STYLES
   Source: includes/PrepostTab.php
   ======================================== */

.prepost article {
    background-color: #ececec;
    border-radius: 0px;
    margin-bottom: 15px;
    padding: 10px;
}

.prepost article header {
    border-bottom: #999 1px solid;
    padding-bottom: 8px;
    margin-bottom: 8px;
}

/* Removed duplicate prepost styles - see more specific versions below */

.prepost ul {
    list-style-position: inside;
    -webkit-padding-start: 0px;
}

.col-sm-3 #carousel_wrapper {
    text-align: center;
}

/* Prepost specific styling - from original PrepostTab.php <style> block */
.prepost article {
    background-color: #ececec;
    border-radius: 0px;
    margin-bottom: 15px;
    padding: 10px;
}

.prepost p {
    text-align: justify;
}

.prepost li {
    font-size: 14px;
}

.prepost h2 {
    color: #ffffff;
    background-color: #000000;
    font-size: 20px;
    margin-bottom: 0px;
    margin-top: 0px;
    padding: 10px;
    text-transform: uppercase;
    font-style: bold;
    font-family: century gothic;
}

.prepost h3 {
    color: #000000;
    font-size: 20px;
    font-weight: 600;
    font-family: century gothic;
    margin-top: 3px;
}

.prepost.collapse {
    clear: both;
}

/* Flaired edges, by Tomas Theunissen */
.style-seven {
    background-color: #4D82B8;
    color: #fff;
    font-size: 12px;
    margin-left: auto;
    margin-right: auto;
    margin-top: 20px;
    margin-bottom: 30px;
    clear: both;
    height: 5px;
}

a.view-more.md-raised {
    margin-bottom: 7px;
}

ul, ol {
    list-style-type: circle;
}

.carousel.slide {
    display: block;
}

/* Prepost specific carousel styling */
.prepost .carousel {
    margin-bottom: 20px;
}

.prepost .carousel-caption {
    background: rgba(0,0,0,0.7);
    padding: 10px;
}

/* ========================================
   5. CAROUSEL THUMBNAIL STYLES
   Source: includes/carousel_thumbnail.php
   Note: Dynamic IDs using PHP counter variable
   ======================================== */

/* Flexbox wrapper for carousel */
#carousel_wrapper {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 100%;
    max-width: 400px;
    margin: 0 auto;
}

/* Responsive carousel container */
.carousel {
    width: 100%;
    position: relative;
}

.carousel-inner {
    position: relative;
    width: 100%;
    overflow: hidden;
}

/* Maintain aspect ratio for images - removed to avoid conflict with carousel_thumbnail.php */
/* carousel_thumbnail.php uses aspect-ratio: 16/9 on its specific carousel items */

/* Carousel controls positioning */
.carousel-control {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(0,0,0,0.5);
    color: white;
    padding: 10px;
    text-decoration: none;
}

.carousel-control.left {
    left: 0;
}

.carousel-control.right {
    right: 0;
}

/* Carousel indicators - removed left/transform that conflicts with flexbox positioning */
.carousel-indicators {
    position: absolute;
    bottom: 10px;
    z-index: 15;
    width: auto;
    padding-left: 0;
    margin-left: 0;
    text-align: center;
    list-style: none;
}

.carousel-indicators li {
    display: inline-block;
    width: 10px;
    height: 10px;
    margin: 1px;
    text-indent: -999px;
    cursor: pointer;
    background-color: rgba(255,255,255,0.5);
    border: 1px solid #fff;
    border-radius: 50%;
}

.carousel-indicators .active {
    background-color: #fff;
}

/* Progressive enhancement with feature queries */
@supports (display: flex) {
    #carousel_wrapper {
        display: flex;
    }
}

@supports (object-fit: cover) {
    .carousel-inner .item img {
        object-fit: cover;
    }
}

/* ========================================
   6. SHORE EXCURSIONS STYLES
   Source: includes/shore_jsonp.php
   ======================================== */

/* Material Design inspired button styles */
.shore-excursion-btn {
    display: inline-block;
    padding: 12px 24px;
    margin: 8px;
    background-color: #4CAF50;
    color: white;
    text-align: center;
    text-decoration: none;
    font-size: 16px;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s;
    box-shadow: 0 2px 5px 0 rgba(0,0,0,0.26);
}

.shore-excursion-btn:hover {
    background-color: #45a049;
    box-shadow: 0 4px 8px 0 rgba(0,0,0,0.3);
    transform: translateY(-2px);
}

.shore-excursion-btn:active {
    transform: translateY(0);
    box-shadow: 0 2px 5px 0 rgba(0,0,0,0.26);
}

/* Text alignment utilities - removed duplicates that exist in responsive.css */

/* User selection control */
.no-select {
    -webkit-user-select: none;
    -moz-user-select: none;
    -ms-user-select: none;
    user-select: none;
}

/* ========================================
   7. AGENT QUOTE TAB STYLES  
   Source: includes/AgentQuoteTab.php
   ======================================== */

.agent-quote-container {
    padding: 20px 0;
}

.quote-section {
    margin-bottom: 25px;
    border: 1px solid #ddd;
    border-radius: 5px;
    background-color: #f9f9f9;
}

.quote-section-header {
    background-color: #337ab7;
    color: white;
    padding: 10px 15px;
    margin: 0;
    border-radius: 4px 4px 0 0;
    font-size: 16px;
    font-weight: bold;
}

.quote-section-body {
    padding: 15px;
}

.paragraph-editor {
    margin-bottom: 20px;
}

.paragraph-label {
    font-weight: bold;
    color: #333;
    margin-bottom: 8px;
    display: block;
}

.paragraph-controls {
    margin-bottom: 10px;
}

.paragraph-textarea {
    width: 100%;
    min-height: 100px;
    font-family: 'Courier New', monospace;
    font-size: 13px;
    border: 1px solid #ccc;
    border-radius: 4px;
    padding: 8px;
    resize: vertical;
}

.template-selector {
    width: 200px;
    margin-right: 10px;
}

.customer-info-panel {
    background-color: #d9edf7;
    border: 1px solid #bce8f1;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.program-info-panel {
    background-color: #dff0d8;
    border: 1px solid #d6e9c6;
    border-radius: 4px;
    padding: 15px;
    margin-bottom: 20px;
}

.placeholder-highlight {
    background-color: #fcf8e3;
    color: #8a6d3b;
    padding: 2px 4px;
    border-radius: 3px;
    font-weight: bold;
    border: 1px dashed #faebcc;
}

.placeholder-variable {
    background-color: #e1f5fe;
    color: #0277bd;
    padding: 2px 6px;
    border-radius: 4px;
    font-weight: bold;
    font-family: 'Courier New', monospace;
    font-size: 12px;
    border: 1px solid #b3e5fc;
    cursor: help;
}

.template-mode .paragraph-textarea {
    background-color: #fefefe;
    border: 2px solid #e0e0e0;
}

.final-mode .paragraph-textarea {
    background-color: #f8f9fa;
    border: 2px solid #28a745;
}

.preview-modal-content {
    font-family: 'Times New Roman', serif;
    line-height: 1.6;
    white-space: pre-wrap;
    border: 1px solid #ddd;
    padding: 20px;
    background-color: #fff;
    max-height: 400px;
    overflow-y: auto;
}

.has-placeholders {
    position: relative;
}

.has-placeholders::after {
    content: "Contains {variables}";
    position: absolute;
    top: 5px;
    right: 10px;
    background: #fcf8e3;
    color: #8a6d3b;
    padding: 2px 6px;
    border-radius: 3px;
    font-size: 10px;
    font-weight: bold;
    pointer-events: none;
}

.agent-controls {
    background-color: #f5f5f5;
    padding: 15px;
    border-radius: 4px;
    margin-top: 20px;
}

/* Agent tab styling from CourseInfoDisplayTest.php */
.agent-special-tab {
    background-color: #28a745 !important; /* Bootstrap success green */
    border-color: #1e7e34 !important;
    color: white !important;
    font-weight: bold;
}

.agent-special-tab:hover {
    background-color: #218838 !important; /* Darker green on hover */
    border-color: #1c7430 !important;
    color: white !important;
}

.agent-quote-tab {
    background-color: #28a745 !important;
    border-color: #1e7e34 !important;
    color: white !important;
}

.agent-quote-tab:hover {
    background-color: #218838 !important;
    border-color: #1c7430 !important;
    color: white !important;
}

/* ========================================
   8. EXTRACTED INLINE STYLES UTILITIES
   Replacing repeated inline styles with reusable classes
   ======================================== */

/* Font Size Modifiers */
.font-larger { font-size: larger; }
.font-xl { font-size: 1.33em; }
.font-lg { font-size: 1.1em; }
.font-normal { font-size: 1em; }
.font-sm { font-size: 0.9em; }

/* Color Utilities (using Bootstrap color names) */
.text-danger { color: #d9534f; }
.text-error { color: red; }
.text-secondary { color: #6c757d; }

/* Spacing Utilities */
.padding-sm { padding: .15em; }
.padding-md { padding: .6em; }
.padding-lg { padding: 10px; }
.margin-bottom-sm { margin-bottom: .75em; }
.margin-bottom-md { margin-bottom: 1.5em; }

/* Display Utilities */
.d-block { display: block; }

/* Specific Component Classes for Repeated Inline Styles */
.notice-storm {
    font-size: larger;
    color: #FF0000;
}

.sailed-notice {
    color: red;
    font-weight: bold;
}

.competitive-pricing-notice,
.notice.competitive-pricing {
    color: #fff;
    padding: 10px;
    text-align: center;
}

.tentative-schedule-note {
    text-align: center;
    padding: .15em;
    color: #d9534f;
}

.price-emphasis {
    font-size: 1.33em;
    margin-bottom: .75em;
    font-weight: bold;
}

.call-us-inline {
    font-size: 1em;
    display: inline;
}

.lastmod-display {
    font-size: 0.9em;
    color: #6c757d;
    text-align: right;
}

.port-description {
    margin-bottom: 1.5em;
}

.map-border {
    border: 2px solid red;
}

/* ========================================
   9. RESPONSIVE UTILITIES
   ======================================== */

/* Ensure all tabs are responsive */
@media (max-width: 768px) {
    .pricing.container .col-md-6 {
        width: 100%;
    }
    
    #carousel_wrapper {
        max-width: 100%;
    }
    
    .prepost article {
        padding: 5px;
    }
    
    .pricing-table {
        font-size: 0.9em;
    }
    
    .pricing-table th,
    .pricing-table td {
        padding: 8px 5px;
    }
}

@media (max-width: 480px) {
    .pricing_head h4 {
        font-size: 1.1em;
    }
    
    #travelprotection {
        padding: 10px;
    }
    
    .shore-excursion-btn {
        width: 100%;
        margin: 5px 0;
    }
    
    .agent-quote-tab {
        font-size: 11px;
        padding: 8px 6px;
    }
}