/**
 * ShoreTour Frontend Styles
 * 
 * Minimal, semantic styles that inherit from theme.
 * Mobile-first approach with responsive design.
 * 
 * @package ShoreTour
 * @since 1.0.0
 */

/* ==========================================================================
   Variables (will inherit from theme where possible)
   ========================================================================== */

:root {
    --st-primary: #0073aa;
    --st-secondary: #23282d;
    --st-success: #46b450;
    --st-danger: #dc3232;
    --st-warning: #ffb900;
    --st-border: #ddd;
    --st-gray-light: #f7f7f7;
    --st-gray: #999;
    --st-radius: 4px;
    --st-shadow: 0 2px 4px rgba(0,0,0,0.1);
    --st-shadow-lg: 0 4px 12px rgba(0,0,0,0.15);
    --st-transition: all 0.3s ease;
}

/* ==========================================================================
   Search Form Containers
   ========================================================================== */

/* Isolate from Visual Composer */
.st-isolated,
.st-isolated * {
    animation-duration: 0.3s !important;
    transition-duration: 0.3s !important;
}

.st-isolated [data-vc-accordion],
.st-isolated [data-vc-tab] {
    pointer-events: auto !important;
}

.st-ship-search-wrapper,
.st-port-search-wrapper {
    max-width: 1200px;
    margin: 0 auto 2rem;
    padding: 0 1rem;
}

.st-search-form {
    background: var(--st-gray-light);
    padding: 1.5rem;
    border-radius: var(--st-radius);
    margin-bottom: 2rem;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
    position: relative;
}
/* Reset button - top right corner */
.st-reset-btn {
    position: absolute; 
    display: flex;
    align-items: center;
    gap: 5px;
    background: #fff;
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius);
    padding: 0 5px 0 5px;
    font-size: 10px;
    color: var(--st-secondary);
    cursor: pointer;
    transition: var(--st-transition);
    margin-left: auto; 
    margin-bottom: 2px;
	margin-top: -34px;
}

.st-reset-btn:hover {
    background: var(--st-danger);
    color: #fff;
    border-color: var(--st-danger);
}

.st-reset-btn .dashicons {
	font-size: 12px;
    width: 10px;
    height: 12px;
}

.st-selection-summary .st-reset-btn {
	margin-top: -42px;
}
/* Keep form layout during loading */
.st-search-form.st-loading-active {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    gap: 12px;
}

/* Loading overlay - subtle and non-intrusive */
.st-ship-search-wrapper .st-loading,
.st-port-search-wrapper .st-loading {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(247, 247, 247, 0.85);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 10;
    backdrop-filter: blur(2px);
}

.st-ship-search-wrapper {
    position: relative;
}

.st-port-search-wrapper {
    position: relative;
}

.st-ship-search-wrapper .st-loading p,
.st-port-search-wrapper .st-loading p {
    margin: 0 0 0 0.5rem;
    font-size: 0.85rem;
    color: var(--st-secondary);
    font-weight: 500;
}

.st-ship-search-wrapper .st-spinner,
.st-port-search-wrapper .st-spinner {
    width: 18px;
    height: 18px;
    display: inline-block;
    vertical-align: middle;
    margin: 0;
    border-width: 3px;
}

.st-form-group {
    margin-bottom: 10px;
}

.st-form-group:last-child {
    margin-bottom: 0;
}

.st-select,
.st-input {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius);
    font-size: 1rem;
    background: #fff;
    transition: var(--st-transition);
}

.st-select:focus,
.st-input:focus {
    outline: none;
    border-color: var(--st-primary);
    box-shadow: 0 0 0 1px var(--st-primary);
}

.st-select:disabled {
    background: #f5f5f5;
    color: var(--st-gray);
    cursor: not-allowed;
}

.st-form-actions {
    text-align: center;
    margin-top: 1rem;
	grid-column: 1 / -1;
}

/* ==========================================================================
   Buttons
   ========================================================================== */

.st-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border: none;
    border-radius: var(--st-radius);
    font-size: 14px;
    font-weight: 400;
    text-align: center;
    text-decoration: none;
    cursor: pointer;
    transition: var(--st-transition);
    line-height: 1.5;
}

.st-btn:disabled {
    opacity: 0.5;
    cursor: not-allowed;
}

.st-btn-primary {
    background: var(--st-primary);
    color: #fff;
}

.st-btn-primary:hover:not(:disabled) {
    background: #005177;
    color: #fff;
}

.st-btn-secondary {
    background: #fff;
    color: var(--st-secondary);
    border: 1px solid var(--st-border);
}

.st-btn-secondary:hover:not(:disabled) {
    background: var(--st-gray-light);
}

.st-btn-large {
    display: block;
    width: 100%;
    padding: 1rem 1.5rem;
    margin-bottom: 1rem;
}

.st-btn-large .dashicons {
    font-size: 1.5rem;
    vertical-align: middle;
    margin-right: 0.5rem;
}

/* ==========================================================================
   Loading & Messages
   ========================================================================== */

.st-loading {
    text-align: center;
    padding: 2rem 1rem;
    grid-column: 1 / -1;
    display: none;
}

.st-loading.st-inline {
    padding: 1rem;
    background: rgba(255, 255, 255, 0.9);
}

.st-spinner {
    width: 40px;
    height: 40px;
    margin: 0 auto 1rem;
    border: 4px solid var(--st-gray-light);
    border-top-color: var(--st-primary);
    border-radius: 50%;
    animation: st-spin 0.8s linear infinite;
}

@keyframes st-spin {
    to { transform: rotate(360deg); }
}

.st-error {
    background: #fef7f7;
    border-left: 4px solid var(--st-danger);
    padding: 1rem;
    margin: 1rem 0;
    border-radius: var(--st-radius);
    color: #444;
}

.st-info-message {
    background: #f0f8ff;
    border-left: 4px solid var(--st-primary);
    padding: 1rem;
    margin: 1rem 0;
    border-radius: var(--st-radius);
}

.st-success-message {
    background: #f0f9f0;
    border-left: 4px solid var(--st-success);
    padding: 1rem;
    margin: 1rem 0;
    border-radius: var(--st-radius);
}

.st-no-results {
    text-align: center;
    padding: 3rem 1rem;
    color: var(--st-gray);
    font-size: 1.1rem;
}

.st-help-text {
    font-size: 0.9rem;
    color: var(--st-gray);
    margin-top: 0.5rem;
}

/* ==========================================================================
   Tour Cards
   ========================================================================== */

.st-results {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
    margin-top: 2rem;
}

.st-tour-card {
    background: #fff;
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius);
    overflow: hidden;
    transition: var(--st-transition);
    display: flex;
    flex-direction: column;
}

.st-tour-card__image {
    position: relative;
    width: 100%;
    padding-top: 66.67%; /* 3:2 aspect ratio */
    overflow: hidden;
    background: var(--st-gray-light);
}

.st-tour-card__image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.st-tour-card__badge {
    position: absolute;
    top: 1rem;
    right: 1rem;
    padding: 0.5rem 1rem;
    border-radius: var(--st-radius);
    font-weight: 600;
    font-size: 0.9rem;
}

.st-tour-card__badge--sold-out {
    background: var(--st-danger);
    color: #fff;
	    padding: 8px 20px;
    font-size: 16px;
}

.st-tour-card__body {
    padding: 1.5rem;
    flex-grow: 1;
}

.st-tour-card__title {
    margin: 0 0 1rem;
    font-size: 16px;
    line-height: 1.4;
	color: #2c328f;
}

.st-tour-card__title a {
    color: inherit;
    text-decoration: none;
}

.st-tour-card__title a:hover {
    color: var(--st-primary);
}

.st-tour-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    margin-bottom: 1rem;
    font-size: 0.9rem;
    color: var(--st-secondary);
}

.st-tour-card__meta > div {
    display: flex;
    align-items: center;
    gap: 0.25rem;
	font-size: 12px;
}

.st-tour-card__meta .dashicons {
    font-size: 2.2rem;
}

.st-tour-card__price {
    font-size: 1.1rem;
}

.st-tour-card__description {
    color: #666;
    line-height: 1.6;
    margin-bottom: 1rem;
}

.st-tour-card__footer {
    padding: 1rem 1.5rem;
    border-top: 1px solid var(--st-border);
}

.st-tour-card__actions {
    display: flex;
    gap: 10px;
    align-items: stretch;
}

.st-tour-card__actions .st-btn-icon {
    width: 100px;
    flex-shrink: 0;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
}

.st-tour-card__actions .st-btn-icon .dashicons {
    font-size: 24px;
    width: 24px;
    height: 24px;
}

.st-tour-card__actions .st-btn-primary {
    flex: 1;
}

.st-tour-card__footer .st-btn {
    text-align: center;
}

.st-tour-card--sold-out {
    opacity: 0.7;
}

.st-tour-card--sold-out .st-tour-card__image {
    filter: grayscale(50%);
}

/* ==========================================================================
   Modal
   ========================================================================== */

.st-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 999999;
    overflow-y: auto;
    padding: 20px;
}

.st-modal-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0,0,0,0.7);
    z-index: -1;
}

.st-modal-content {
    position: relative;
    max-width: 900px;
    width: 100%;
    margin: 120px auto 40px; /* 120px top margin for header clearance */
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 4px 20px rgba(0,0,0,0.3);
    max-height: calc(100vh - 160px); /* Limit height so it fits on screen */
    display: flex;
    flex-direction: column;
}

.st-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 2.5rem;
    height: 2.5rem;
    border: none;
    background: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    color: var(--st-gray);
    transition: var(--st-transition);
    z-index: 1;
}

.st-modal-close:hover {
    color: var(--st-secondary);
}
.st-modal-header {
    flex-shrink: 0; /* Header doesn't shrink */
    padding: 20px;
    border-bottom: 1px solid #ddd;
}
.st-modal-body {
    flex: 1; /* Take remaining space */
    overflow-y: auto; /* Scrollbar here */
    padding: 20px;
}

.st-modal-body h2 {
    margin-top: 0;
    margin-bottom: 1rem;
}

/* Mobile: Full screen modal */
@media (max-width: 768px) {
    .st-modal {
        padding: 0;
    }
    
    .st-modal-content {
        max-width: 100%;
        max-height: 100%;
        border-radius: 0;
        height: 100%;
    }
    
    .st-modal-body {
        padding: 1.5rem;
        padding-top: 3rem; /* Space for close button */
    }
}

/* Blurred backdrop for info popup */
.st-info-popup-overlay {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 999999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .st-info-popup-overlay {
        padding: 10px;
    }
    
    .st-info-popup-overlay .st-modal-content {
        max-width: 95%;
        margin: 0 auto;
    }
    
    .st-info-popup-overlay .st-modal-body {
        max-height: 70vh;
    }
}

/* Info popup content styling */
.st-info-popup-overlay .st-booking-form h2 {
    font-size: 22px;
    padding-bottom: 8px;
}

.st-info-popup-overlay .st-booking-details {
    display: block;
    padding: 18px;
    background-color: #f8f80042;
    border-radius: 4px;
}

.st-info-popup-overlay .st-booking-details p {
    font-size: 18px;
    margin: 0;
    line-height: 1.6;
}



/* ==========================================================================
   Booking Forms
   ========================================================================== */

.st-booking-type-selector {
    text-align: center;
}

.st-booking-type-selector h2 {
    margin-bottom: 0.5rem;
}

.st-booking-type-selector > p {
    margin-bottom: 2rem;
    color: var(--st-gray);
}

.st-booking-type-buttons {
    display: grid;
    gap: 1rem;
}

.st-booking-form h2,
.st-cruise-passenger-form h2,
.st-day-visitor-form h2 {
    margin-bottom: 0.5rem;
}

.st-booking-form > p,
.st-cruise-passenger-form > p,
.st-day-visitor-form > p {
    margin-bottom: 1.5rem;
    color: var(--st-gray);
}

.st-booking-details {
	display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 1rem;
    margin-bottom: 5px;
    margin-top: 5px;
    padding: 5px 10px;
    background: #f9f9f9;
    border-radius: 4px;
    border: 1px solid #e5e5e5;
}

.st-booking-details p {
    margin: 0px;
    font-size: 12px;
    line-height: 14px;
	margin-bottom: 2px;
}

.st-booking-details strong {
    display: inline;
    color: #000000;
    font-weight: 400;
    font-size: 12px;
    margin-bottom: 0.25rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

/* Responsive: Stack on mobile */
@media (max-width: 768px) {
    .st-booking-details {
        grid-template-columns: 1fr;
        gap: 0.75rem;
    }
}

.st-pricing-options {
    margin-bottom: 10px;
}

.st-pricing-options h3 {
    font-size: 16px;
    margin-bottom: 5px;
	display: none;
}

.st-pricing-option {
    padding: 0.75rem;
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius);
    margin-bottom: 0.75rem;
    transition: var(--st-transition);
}

.st-pricing-option:hover {
    border-color: var(--st-primary);
    background: #f9f9f9;
}

.st-pricing-option label {
    display: flex;
    align-items: center;
    gap: 1rem;
    cursor: pointer;
}

.st-pricing-option input[type="number"] {
    width: 80px;
    padding: 0.5rem;
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius);
    text-align: center;
}

.st-pricing-option__label {
    flex-grow: 1;
}

.st-booking-total {
    background: var(--st-primary);
    color: #fff;
    padding: 1rem;
    border-radius: var(--st-radius);
    margin-bottom: 1.5rem;
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.st-booking-total p {
    margin: 0;
    font-size: 1.1rem;
}

.st-booking-notes {
    background: #fffbf0;
    border-left: 4px solid var(--st-warning);
    padding: 1rem;
    border-radius: var(--st-radius);
    margin-bottom: 1.5rem;
}

.st-booking-notes h3 {
    font-size: 16px;
    margin-top: 0;
    margin-bottom: 5px;
}

.st-booking-notes ul {
    margin: 0;
    padding-left: 1.5rem;
}

.st-booking-notes li {
    margin-bottom: 0.5rem;
    line-height: 1.6;
}

.st-booking-notes a {
    color: var(--st-primary);
    text-decoration: underline;
}

.st-booking-error {
    background: #fef7f7;
    border-left: 4px solid var(--st-danger);
    padding: 1rem;
    margin-bottom: 1.5rem;
    border-radius: var(--st-radius);
    color: #444;
}

.st-booking-error a {
    color: var(--st-danger);
    text-decoration: underline;
    font-weight: 600;
}

.st-booking-actions,
.st-modal-actions {
    display: flex;
    gap: 1rem;
    justify-content: flex-end;
    margin-top: 10px;
}

.st-booking-actions .st-btn,
.st-modal-actions .st-btn {
    flex: 1;
}

@media (max-width: 480px) {
    .st-booking-actions,
    .st-modal-actions {
        flex-direction: column;
    }
    
    .st-booking-total {
        flex-direction: column;
        gap: 0.5rem;
        text-align: center;
    }
}

/* ==========================================================================
   Tour Instance Cards (Day Visitor)
   ========================================================================== */

.st-tour-instance-card {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    padding: 1rem;
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius);
    margin-bottom: 1rem;
    background: #fff;
}

.st-tour-instance-info p {
    margin: 0.25rem 0;
    font-size: 0.9rem;
}

@media (max-width: 600px) {
    .st-tour-instance-card {
        flex-direction: column;
        align-items: stretch;
    }
    
    .st-tour-instance-card .st-btn {
        width: 100%;
    }
}

/* ==========================================================================
   Responsive Adjustments
   ========================================================================== */

@media (max-width: 768px) {
    .st-results {
        grid-template-columns: 1fr;
    }
    
    .st-search-form {
        padding: 1rem;
    }
    
    .st-tour-card__meta {
        flex-direction: column;
        gap: 0.5rem;
    }
}

@media (min-width: 769px) and (max-width: 1024px) {
    .st-results {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* ==========================================================================
   Print Styles
   ========================================================================== */

@media print {
    .st-modal,
    .st-btn,
    .st-form-actions {
        display: none !important;
    }
}

/* ==========================================================================
   Product Info Modal - Tabs & Gallery
   ========================================================================== */

/* Product Info Modal Container */
.st-product-info-modal {
    width: 100%;
}

.st-product-info-modal h2 {
    margin: 0 0 1.5rem;
    padding-bottom: 1rem;
    border-bottom: 2px solid var(--st-border);
	font-size: 22px;
    color: var(--st-secondary);
}

/* Tabs Navigation */
.st-tabs {
    width: 100%;
}

.st-tabs__nav {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--st-border);
}

.st-tabs__tab {
    background: none;
    border: none;
    padding: 0.75rem 1.5rem;
    font-size: 18px;
    font-weight: 400;
    color: var(--st-gray);
    cursor: pointer;
    transition: var(--st-transition);
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.st-tabs__tab:hover {
    color: var(--st-primary);
    background: var(--st-gray-light);
}

.st-tabs__tab--active {
    color: var(--st-primary);
    border-bottom-color: var(--st-primary);
}

/* Tab Panels */
.st-tabs__content {
    width: 100%;
}

.st-tabs__panel {
    display: none;
    animation: fadeIn 0.3s ease;
}

.st-tabs__panel--active {
    display: block;
}

@keyframes fadeIn {
    from {
        opacity: 0;
        transform: translateY(10px);
    }
    to {
        opacity: 1;
        transform: translateY(0);
    }
}

/* Product Description */
.st-product-description {
    line-height: 1.8;
    color: #333;
}

.st-product-description p {
    margin-bottom: 1rem;
}

.st-product-description ul,
.st-product-description ol {
    margin: 1rem 0;
    padding-left: 2rem;
}

.st-product-description li {
    margin-bottom: 0.5rem;
}

.st-product-description a {
    color: var(--st-primary);
    text-decoration: underline;
}

.st-product-description a:hover {
    color: var(--st-secondary);
}

/* Product Attributes Table */
.st-product-attributes {
    width: 100%;
    border-collapse: collapse;
    margin: 0;
}

.st-product-attributes tr {
    border-bottom: 1px solid var(--st-border);
}

.st-product-attributes tr:last-child {
    border-bottom: none;
}

.st-product-attributes th {
    text-align: left;
    padding: 0.75rem 1rem;
    font-weight: 600;
    color: var(--st-secondary);
    background: var(--st-gray-light);
    width: 40%;
}

.st-product-attributes td {
    padding: 0.75rem 1rem;
    color: #333;
}

/* Product Gallery Grid */
.st-product-gallery {
    display: grid;
    grid-template-columns: repeat(6, 1fr);
    gap: 1rem;
}

.st-product-gallery__item {
    position: relative;
    width: 100%;
    padding-top: 100%; /* Square aspect ratio */
    overflow: hidden;
    border-radius: var(--st-radius);
    border: 1px solid var(--st-border);
    background: var(--st-gray-light);
    cursor: pointer;
    transition: var(--st-transition);
}

.st-product-gallery__item:hover {
    transform: scale(1.05);
    box-shadow: var(--st-shadow-lg);
    z-index: 1;
}

.st-product-gallery__item img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Responsive Gallery */
@media (max-width: 1024px) {
    .st-product-gallery {
        grid-template-columns: repeat(4, 1fr);
    }
}

@media (max-width: 768px) {
    .st-product-gallery {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .st-tabs__nav {
        flex-wrap: wrap;
    }
    
    .st-tabs__tab {
        padding: 0.5rem 1rem;
        font-size: 0.9rem;
    }
    
    .st-product-attributes th,
    .st-product-attributes td {
        padding: 0.5rem;
        font-size: 0.9rem;
    }
}

@media (max-width: 480px) {
    .st-product-gallery {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .st-tabs__nav {
        gap: 0.25rem;
    }
    
    .st-tabs__tab {
        padding: 0.5rem 0.75rem;
        font-size: 0.85rem;
    }
    
    .st-product-attributes th {
        width: 35%;
    }
}

/* ==========================================================================
   Lightbox
   ========================================================================== */

.st-lightbox {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 9999999;
    display: flex;
    align-items: center;
    justify-content: center;
    opacity: 0;
    transition: opacity 0.3s ease;
}

.st-lightbox--active {
    opacity: 1;
}

.st-lightbox__overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.9);
    cursor: pointer;
}

.st-lightbox__content {
    position: relative;
    max-width: 90vw;
    max-height: 90vh;
    z-index: 1;
}

.st-lightbox__content img {
    display: block;
    max-width: 100%;
    max-height: 90vh;
    width: auto;
    height: auto;
    border-radius: var(--st-radius);
    box-shadow: 0 10px 40px rgba(0, 0, 0, 0.5);
}

.st-lightbox__close {
    position: absolute;
    top: -3rem;
    right: 0;
    width: 3rem;
    height: 3rem;
    border: none;
    background: rgba(255, 255, 255, 0.9);
    color: #333;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    border-radius: 50%;
    transition: var(--st-transition);
    display: flex;
    align-items: center;
    justify-content: center;
}

.st-lightbox__close:hover {
    background: #fff;
    transform: rotate(90deg);
}

/* Mobile Lightbox */
@media (max-width: 768px) {
    .st-lightbox__close {
        top: 1rem;
        right: 1rem;
        background: rgba(255, 255, 255, 0.95);
    }
    
    .st-lightbox__content img {
        max-width: 95vw;
        max-height: 80vh;
    }
}

/* Product Info Modal - Wider for Gallery */
#st-product-info-modal .st-modal-content {
    max-width: 900px;
}

@media (max-width: 1024px) {
    #st-product-info-modal .st-modal-content {
        max-width: 90vw;
    }
}


/* ==========================================================================
   Booking Modal - Breadcrumb & Summary Updates
   ========================================================================== */

/* Breadcrumb above tour name */
.st-booking-breadcrumb {
	font-size: 11px;
    color: #000d57;
    margin-bottom: 2px;
    padding-bottom: 0px;
    border-bottom: 1px solid #000d3970;
}

/* Make tour name bigger */
.st-booking-form h2 {
    font-size: 1.75rem;
    margin-bottom: -5px;
}

/* New booking summary layout (replaces st-booking-total) */
.st-booking-summary {
    background: #fff;
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius);
padding: 2px 10px 10px 10px;
    margin-bottom: 10px;
}

.st-booking-summary__row {
    padding: 0px;
}

.st-booking-summary__row + .st-booking-summary__row {
    border-top: 1px solid var(--st-border);
}

.st-booking-summary__row--total {
    font-size: 16px;
    font-weight: 400;
    color: var(--st-primary);
    padding-top: 5px;
    margin-top: 0.5rem;
    border-top: 2px solid var(--st-border) !important;
}

.st-booking-summary__label {
    font-weight: 400;
    color: var(--st-secondary);
    text-align: left;
}

.st-booking-summary__price {
font-size: 18px;
    font-weight: 400;
    color: #2c328f;
}

/* Inline warning messages */
.st-booking-warning-inline {
    font-weight: normal;
    font-size: 11px;
}

.st-booking-warning-inline a {
    text-decoration: underline;
    font-weight: 600;
}

.st-booking-warning-inline--info {
    color: #8f8f8f
}

.st-booking-warning-inline--error {
    color: #c80013
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .st-booking-form h2 {
        font-size: 1.4rem;
    }
    
    .st-booking-breadcrumb {
        font-size: 0.85rem;
    }
    
    .st-booking-summary__row--total {
        font-size: 1.1rem;
    }
    
    .st-booking-summary__price {
        font-size: 1.3rem;
    }
    
    .st-booking-warning-inline {
        font-size: 0.85rem;
        display: block;
        margin-top: 0.25rem;
    }
}



/* ==========================================================================
   Add to Cart Success Message
   ========================================================================== */

.st-add-to-cart-success {
    text-align: center;
    padding: 2rem;
}

.st-success-icon {
    width: 80px;
    height: 80px;
    margin: 0 auto 1.5rem;
    background: var(--st-success);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
}

.st-success-icon .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: #fff;
}

.st-add-to-cart-success h2 {
    color: var(--st-success);
    margin-bottom: 1rem;
    font-size: 2rem;
}

.st-success-price {
    font-size: 18px;
    font-weight: 500;
    color: #2c328f;
    margin-bottom: 14px ! Important;
}

.st-success-actions {
    display: flex;
    gap: 1rem;
    justify-content: center;
    flex-wrap: wrap;
}

.st-success-actions .st-btn {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.75rem 1.5rem;
    font-size: 14px;
}

.st-success-actions .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

/* Mobile adjustments */
@media (max-width: 480px) {
    .st-add-to-cart-success {
        padding: 1.5rem;
    }
    
    .st-success-icon {
        width: 60px;
        height: 60px;
    }
    
    .st-success-icon .dashicons {
        font-size: 36px;
        width: 36px;
        height: 36px;
    }
    
    .st-add-to-cart-success h2 {
        font-size: 1.5rem;
    }
    
    .st-success-price {
        font-size: 1.25rem;
    }
    
    .st-success-actions {
        flex-direction: column;
    }
    
    .st-success-actions .st-btn {
        width: 100%;
        justify-content: center;
    }
}
/* ==========================================================================
   Selection Summary Banner - Visual Journey Design
   ========================================================================== */

.st-selection-summary {
    background: #ffffff;
    border: 2px solid #dee2e6;
    border-radius: 12px;
    padding: 6px;
    margin-bottom: 2rem;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

/* Journey layout - horizontal flow */
.st-selection-summary__journey {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
}

/* Arrow separator */
.st-selection-summary__arrow {
    font-size: 2rem;
    color: var(--st-primary);
    font-weight: bold;
    flex-shrink: 0;
}

/* 1. Brand Logo (small) */
.st-selection-summary__brand {
    flex-shrink: 0;
}

.st-selection-summary__brand-logo {
    width: 180px;
    height: auto;
    object-fit: contain;
    border-radius: 8px;
	border: none;
    background: #fff;
    padding: 8px;
}

.st-selection-summary__brand-icon {
    font-size: 60px;
    width: 60px;
    height: 60px;
    color: var(--st-primary);
}

/* 2. Ship Image (bigger with name overlay) */
.st-selection-summary__ship {
    flex-shrink: 0;
}

.st-selection-summary__ship-image-wrapper {
    position: relative;
    width: 300px;
    height: auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.st-selection-summary__ship-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.st-selection-summary__ship-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
    padding: 0.75rem 1rem;
font-weight: 400;
    font-size: 14px;
    text-align: center;
}

.st-selection-summary__ship-placeholder {
    width: 180px;
    height: 120px;
    background: var(--st-gray-light);
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.st-selection-summary__ship-placeholder .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: var(--st-gray);
}

.st-selection-summary__ship-placeholder .st-selection-summary__ship-name {
    position: static;
    background: none;
    color: var(--st-secondary);
    padding: 0;
    font-size: 0.9rem;
}

/* 3. Info Block (center) */
.st-selection-summary__info {
    display: flex;
    flex-direction: column;
    gap: 1rem;
    padding: 1rem 1.5rem;
    background: #fff;
    border-radius: 8px;
    border: 1px solid #dee2e6;
    min-width: 250px;
	align-items: center; 
    text-align: center;   
}

.st-selection-summary__voyage {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--st-secondary);
    font-size: 12px;    
	line-height: 16px;
}

.st-selection-summary__voyage .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: var(--st-primary);
}

.st-selection-summary__count {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--st-secondary);
    font-size: 12px;
    font-weight: 500;
}

.st-selection-summary__count .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
    color: var(--st-primary);
}

.st-selection-summary__count strong {
    font-size: 1.2rem;
}

.st-selection-summary__info .st-btn {
    margin-top: 0.5rem;
}

/* 4. Port Image (bigger) */
.st-selection-summary__port {
    flex-shrink: 0;
}

.st-selection-summary__port-image-wrapper {
    position: relative;
    width: 250px;
    height: auto;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.15);
}

.st-selection-summary__port-image {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.st-selection-summary__port-name {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.8), transparent);
    color: #fff;
    padding: 0.75rem 1rem;
    font-weight: 400;
    font-size: 14px;
    text-align: center;
}

.st-selection-summary__port-placeholder {
    width: 180px;
    height: 120px;
    background: var(--st-gray-light);
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.st-selection-summary__port-placeholder .dashicons {
    font-size: 48px;
    width: 48px;
    height: 48px;
    color: var(--st-gray);
}

.st-selection-summary__port-placeholder .st-selection-summary__port-name {
    position: static;
    background: none;
    color: var(--st-secondary);
    padding: 0;
    font-size: 0.9rem;
}

/* Small button style */
.st-btn-small {
    padding: 0.5rem 1rem;
    font-size: 0.85rem;
}

.st-btn-small .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
    margin-right: 0.25rem;
}

/* Responsive: Stack vertically on mobile */
@media (max-width: 1024px) {
    .st-selection-summary {
        padding: 1.5rem;
    }
    
    .st-selection-summary__journey {
        flex-direction: column;
        gap: 1.5rem;
    }
    
    .st-selection-summary__arrow {
        transform: rotate(90deg);
        font-size: 1.5rem;
    }
    
    .st-selection-summary__ship-image-wrapper,
    .st-selection-summary__ship-placeholder,
    .st-selection-summary__port-image-wrapper,
    .st-selection-summary__port-placeholder {
        width: 100%;
        max-width: 300px;
    }
    
    .st-selection-summary__info {
        width: 100%;
        max-width: 300px;
    }
}

@media (max-width: 768px) {
    .st-selection-summary {
        padding: 1rem;
    }
    
    .st-selection-summary__brand-logo,
    .st-selection-summary__brand-icon {
        width: 180px;
        height: auto
        font-size: 50px;
    }
}

/* ==========================================================================
   Port Navigation Buttons
   ========================================================================== */

.st-port-navigation {
    display: flex;
    gap: 0.5rem;
    margin-top: 1rem;
    justify-content: center;
}

.st-port-nav-btn {
    display: flex;
    align-items: center;
    gap: 5px;
    padding: 0px 12px;
    background: var(--st-primary);
    color: #fff;
    border: none;
    border-radius: var(--st-radius);
    font-size: 10px;
    font-weight: 300;
    cursor: pointer;
    transition: var(--st-transition);
}

.st-port-nav-btn:hover {
    background: #005177;
    transform: translateY(-1px);
    box-shadow: var(--st-shadow);
}

.st-port-nav-btn .dashicons {
    font-size: 16px;
    width: 16px;
    height: 16px;
}

.st-port-nav-prev .dashicons {
    margin-right: 0.25rem;
}

.st-port-nav-next .dashicons {
    margin-left: 0.25rem;
}

/* Mobile */
@media (max-width: 768px) {
    .st-port-navigation {
        flex-direction: column;
    }
    
    .st-port-nav-btn {
        justify-content: center;
        width: 100%;
    }
}

/* =================================================================
   Book This Tour Button & Voyage Selector Modal
   ================================================================= */

/* Hide WooCommerce notices on product pages (we have our own) */
.single-product .woocommerce-notices-wrapper {
    display: none !important;
}

/* Remove crying face icon from empty cart */
.with-empty-cart-icon::before {
    display: none !important;
}

/* Book This Tour Button Container */
.shoretour-product-booking {
    margin: 2px 0;
    padding: 2px 0;
}

/* Book This Tour Button - matches .product_list_widget__buttons a style */
.shoretour-book-tour-btn {
    display: inline-block;
    padding: 2px 10px;
    background-color: #2d3494cc;
    color: #fff;
    text-decoration: none;
    text-transform: uppercase;
    border: none;
    border-radius: 4px;
    font-size: 14px;
    font-weight: 400;
    cursor: pointer;
    transition: background-color 0.3s ease;
}

.shoretour-book-tour-btn:hover {
background-color: #2d3494;
    color: #fff;
}

.shoretour-book-tour-btn:focus {
    outline: 2px solid #2271b1;
    outline-offset: 2px;
}

/* Voyage Selector Modal - smaller size */
.st-modal-content--small {
    max-width: 500px;
    margin: 0 auto;
    position: relative;
    top: 50%;
    transform: translateY(-50%);
}

.st-modal-content--small .st-modal-body {
    padding: 40px 30px;
    text-align: center;
}

.st-modal-content--small .st-modal-body h3 {
    margin: 0 0 30px 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

/* Voyage Modal Action Buttons */
.st-voyage-modal-actions {
    display: flex;
    flex-direction: column;
    gap: 15px;
    margin-top: 20px;
}

.st-voyage-modal-actions .st-btn {
    width: 100%;
    padding: 15px 20px;
    font-size: 16px;
    text-align: center;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.st-voyage-modal-actions .st-btn-primary {
    background-color: #2271b1;
    color: #fff;
}

.st-voyage-modal-actions .st-btn-primary:hover {
    background-color: #135e96;
}

.st-voyage-modal-actions .st-btn-secondary {
    background-color: #f0f0f1;
    color: #2c3338;
    border: 1px solid #c3c4c7;
}

.st-voyage-modal-actions .st-btn-secondary:hover {
    background-color: #e5e5e5;
}

/* Responsive */
@media (max-width: 768px) {
    .st-modal-content--small {
        max-width: 90%;
        margin: 20px;
    }
    
    .st-modal-content--small .st-modal-body {
        padding: 30px 20px;
    }
    
    .st-modal-content--small .st-modal-body h3 {
        font-size: 18px;
    }
}

.wc-block-components-quantity-selector {
    display: none !important;
}

#st-stopoff-select,
label[for="st-stopoff-select"] {
    display: none !important;
}

/* Also hide the form group container if needed */
.st-form-group[data-depends-on="voyage"] {
    display: none !important;
}

/* Port Images Selector */
.st-port-selector {
    margin: 2rem 0;
}

/* Navigation buttons below port images */
.st-port-selector .st-port-navigation {
    display: flex;
    justify-content: center;
    gap: 1rem;
    margin-top: 2rem;
    padding: 1rem 0;
}

.st-port-selector .st-port-nav-btn {
    padding: 2px 10px;
    background: #2271b1;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 12px;
    display: flex;
    align-items: center;
    gap: 0.5rem;
    transition: background 0.3s ease;
}

.st-port-selector .st-port-nav-btn:hover {
    background: #135e96;
}

.st-port-selector .st-port-nav-btn .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}
.st-port-images-container {
    display: flex;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 1.5rem;
    justify-content: center;
    align-items: flex-start;
}

.st-port-image-item {
    cursor: pointer;
    transition: all 0.3s ease;
    max-width: 300px;
    width: 100%;
}

/* Active port - color + 20% larger */
.st-port-image-item.st-port-active {
    transform: scale(1.2);
}

.st-port-image-item.st-port-active .st-selection-summary__port-image {
    filter: none;
    opacity: 1;
}

/* Inactive port - grayscale + smaller */
.st-port-image-item.st-port-inactive {
    transform: scale(1);
}

.st-port-image-item.st-port-inactive .st-selection-summary__port-image {
    filter: grayscale(100%);
    opacity: 0.6;
}

/* Hover effect */
.st-port-image-item:hover {
    transform: scale(1.05);
}

.st-port-image-item.st-port-active:hover {
    transform: scale(1.22);
}

/* Port image wrapper styling */
.st-port-image-item .st-selection-summary__port-image-wrapper {
    position: relative;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
}

.st-port-image-item .st-selection-summary__port-image {
    width: 100%;
    height: auto;
    display: block;
    transition: filter 0.3s ease, opacity 0.3s ease;
}

.st-port-image-item .st-selection-summary__port-name {
    text-align: center;
    margin-top: 0.5rem;
    font-weight: 600;
    font-size: 1rem;
}

/* Mobile responsive - already vertical by default */
@media (max-width: 768px) {
    .st-port-images-container {
        gap: 1rem;
    }
    
    .st-port-image-item {
        max-width: 250px;
    }
}


/* ==========================================================================
   Port Image Grid - Simple Clean Layout
   ========================================================================== */

.st-port-images-container {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 1.5rem;
    padding: 2rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

/* Port image item */
.st-port-image-item {
    transition: transform 0.3s ease, filter 0.3s ease;
    cursor: pointer;
}

/* All ports in color */
.st-port-image-item {
    filter: grayscale(0%);
}

.st-port-image-item:not(.st-port-active):hover {
    transform: translateY(-3px);
}

/* Active port - blue border only, NO zoom */
.st-port-image-item.st-port-active .st-selection-summary__port-image-wrapper {
    border: 3px solid #2d3494;
    box-shadow: 0 4px 12px rgba(45, 52, 148, 0.3);
}

/* Port image wrapper sizing */
.st-port-image-item .st-selection-summary__port-image-wrapper {
    width: 100%;
    height: 200px;
    transition: transform 0.3s ease, border 0.3s ease, box-shadow 0.3s ease;
}
/* Port name overlay - bottom left corner, subtle background */
.st-port-image-item .st-selection-summary__port-name {
    position: absolute;
    bottom: 2px;
    left: 0px;
    background: rgb(252 252 252);
    color: #2d3494;
    padding: 2px 0;
    margin: 0;
    border-radius: 0;
    line-height: 1;
}

/* Day number - underlined */
.st-port-day {
    display: block;
    font-size: 12px;
    font-weight: 400;
    text-decoration: underline;
    margin-bottom: 2px;
    color: #000000;
}

/* Port name */
.st-port-name-text {
    display: block;
    font-size: 14px;
    font-weight: 400;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .st-port-images-container {
        grid-template-columns: 1fr;
        gap: 1rem;
        padding: 1rem 0;
    }
    
    .st-port-image-item .st-selection-summary__port-image-wrapper {
        height: 180px;
    }
}

@media (max-width: 480px) {
    .st-port-image-item .st-selection-summary__port-image-wrapper {
        height: 150px;
    }
}


/* ==========================================================================
   Selection Summary - Minimal Breadcrumb with Hover Popups
   ========================================================================== */

.st-selection-summary__breadcrumb {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 1rem;
    padding: 2px;
}

/* Breadcrumb item container */
.st-breadcrumb-item {
    position: relative;
    display: inline-block;
}

/* Breadcrumb text */
.st-breadcrumb-text {
    font-size: 16px;
    font-weight: 500;
    color: var(--st-secondary);
    cursor: default;
}

/* Items with hover get pointer cursor and color change */
.st-breadcrumb-item--hover .st-breadcrumb-text {
    cursor: pointer;
    color: #2d3494;
    transition: color 0.3s ease;
}

.st-breadcrumb-item--hover:hover .st-breadcrumb-text {
    color: #005177;
}

/* Arrow separator */
.st-breadcrumb-arrow {
    font-size: 1.5rem;
    color: var(--st-primary);
    font-weight: bold;
}

/* Hover popup - hidden by default */
.st-breadcrumb-popup {
    position: absolute;
    top: 100%;
    left: 50%;
    transform: translateX(-50%) translateY(10px);
    background: #fff;
    border: 2px solid var(--st-primary);
    border-radius: 12px;
    padding: 0.5rem;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.2);
    z-index: 1000;
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease, transform 0.3s ease;
    pointer-events: none;
    min-width: 200px;
    max-width: 300px;
}

/* Show popup on hover */
.st-breadcrumb-item--hover:hover .st-breadcrumb-popup {
    opacity: 1;
    visibility: visible;
    transform: translateX(-50%) translateY(0);
}

/* Popup image */
.st-breadcrumb-popup img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 8px;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .st-selection-summary__breadcrumb {
        flex-direction: column;
        gap: 0.5rem;
		display: inline;
        text-align: center;
    }
    
    .st-breadcrumb-arrow {
        transform: rotate(90deg);
    }
    
    .st-breadcrumb-text {
        font-size: 1rem;
    }
    
    .st-breadcrumb-popup {
        left: 0;
        right: 0;
        transform: translateX(0) translateY(10px);
        margin: 0 1rem;
    }
    
    .st-breadcrumb-item--hover:hover .st-breadcrumb-popup {
        transform: translateX(0) translateY(0);
    }
}


/* ==========================================================================
   Version 2: Port Label Row with Hover Images
   ========================================================================== */

.st-port-labels-row {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem;
    justify-content: center;
    padding: 1.5rem 0;
    max-width: 1200px;
    margin: 0 auto;
}

.st-port-label-item {
    position: relative;
    background: #f8f9fa;
    border: 2px solid #dee2e6;
    border-radius: 8px;
    padding: 0.75rem 1.5rem;
    cursor: pointer;
    transition: all 0.3s ease;
}

.st-port-label-item:hover {
    background: #e9ecef;
    transform: translateY(-2px);
}

/* Active port - blue border */
.st-port-label-item.st-port-active {
    border-color: #2d3494;
    background: #f0f1ff;
}

/* Label text */
.st-port-label-text {
    font-size: 14px;
    font-weight: 500;
    color: #333;
    white-space: nowrap;
}

.st-port-label-item.st-port-active .st-port-label-text {
    color: #2d3494;
}

/* Hover image popup */
.st-port-label-hover-image {
    position: absolute;
    top: calc(100% + 10px);
    left: 50%;
    transform: translateX(-50%);
    width: 300px;
    height: 200px;
    border: 3px solid #2d3494;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.3);
    opacity: 0;
    visibility: hidden;
    transition: opacity 0.3s ease, visibility 0.3s ease;
    z-index: 100;
    pointer-events: none;
}

.st-port-label-item:hover .st-port-label-hover-image {
    opacity: 1;
    visibility: visible;
}

.st-port-label-hover-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Mobile adjustments */
@media (max-width: 768px) {
    .st-port-labels-row {
        gap: 0.5rem;
    }
    
    .st-port-label-item {
        padding: 0.5rem 1rem;
    }
    
    .st-port-label-hover-image {
        width: 250px;
        height: 150px;
    }
}

/* ==========================================================================
   Version 3: Horizontal Timeline
   ========================================================================== */

.st-port-timeline {
    display: flex;
    align-items: stretch;
    gap: 0;
    padding: 1rem 0 0 0;  /* Changed from 2rem 0 to 1rem 0 0 0 */
    max-width: 1200px;
    margin: 0 auto;
    overflow-x: auto;
}

.st-timeline-item {
    flex: 1;
    min-width: 120px;
    border: 2px solid #dee2e6;
    border-right: none;
    background: #f8f9fa;
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: all 0.3s ease;
    position: relative;
}

.st-timeline-item:first-child {
    border-top-left-radius: 8px;
    border-bottom-left-radius: 8px;
}

.st-timeline-item:last-child {
    border-right: 2px solid #dee2e6;
    border-top-right-radius: 8px;
    border-bottom-right-radius: 8px;
}

.st-timeline-item:hover {
background: #e9ecef;
    transform: translateY(-5px);
}

/* Active timeline item */
.st-timeline-item.st-timeline-active {
background: #f0f1ff;
    border: 2px solid #2d3494;
    border-left: 5px solid #2d3494;
    z-index: 2;
}

.st-timeline-item.st-timeline-active + .st-timeline-item {

}


/* Day number */
.st-timeline-day {
    display: block;
    font-size: 18px;
    font-weight: 400;
    color: #2d3494;
    margin-bottom: 0.5rem;
}
.st-timeline-item.st-timeline-active .st-timeline-day {
    font-size: 18px;
	    font-weight: 600;
}

/* Port name */
.st-timeline-port {
    display: block;
    font-size: 13px;
    font-weight: 500;
    color: #333;
    line-height: 1.3;
}

.st-timeline-item.st-timeline-active .st-timeline-port {
    color: #2d3494;
}


/* Mobile - stack vertically */
@media (max-width: 768px) {
    .st-port-timeline {
   /*      flex-direction: column; */
    display: flex;
    flex-direction: row; /* Force horizontal */
    overflow-x: auto; /* Enable horizontal scroll */
    overflow-y: hidden;
    gap: 0.75rem;
    padding: 1rem 0;
    -webkit-overflow-scrolling: touch; /* Smooth scrolling on iOS */
    scroll-behavior: smooth; /* Smooth scrolling */
    }
    
    .st-timeline-item {
        border-right: 2px solid #dee2e6;
        border-bottom: none;
    }
    
    .st-timeline-item:first-child {
        border-radius: 8px 8px 0 0;
    }
    
    .st-timeline-item:last-child {
        border-bottom: 2px solid #dee2e6;
        border-radius: 0 0 8px 8px;
    }
	/* Hide scrollbar on mobile for cleaner look, but keep functionality */
	.st-port-timeline {
		scrollbar-width: thin; /* Firefox */
}

	.st-port-timeline::-webkit-scrollbar {
		height: 6px; /* Thin scrollbar */
}

	.st-port-timeline::-webkit-scrollbar-thumb {
		background: #ccc;
		border-radius: 3px;
}
}


/* ==========================================================================
   No Tours Message
   ========================================================================== */

.st-no-tours-message {
    text-align: center;
    padding: 4rem 2rem;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 12px;
    margin: 2rem auto;
    max-width: 600px;
}

.st-no-tours-icon {
    margin-bottom: 1rem;
}

.st-no-tours-icon .dashicons {
    font-size: 64px;
    width: 64px;
    height: 64px;
    color: #6c757d;
}

.st-no-tours-message h3 {
    font-size: 1.5rem;
    color: #333;
    margin: 0 0 0.5rem 0;
    font-weight: 600;
}

.st-no-tours-message p {
    font-size: 1rem;
    color: #6c757d;
    margin: 0;
}

/* Mobile */
@media (max-width: 768px) {
    .st-no-tours-message {
        padding: 3rem 1.5rem;
    }
    
    .st-no-tours-icon .dashicons {
        font-size: 48px;
        width: 48px;
        height: 48px;
    }
    
    .st-no-tours-message h3 {
        font-size: 1.25rem;
    }
}

/* ==========================================================================
   Minimum Party Size Warning
   ========================================================================== */

.st-min-party-warning {
    display: flex;
    gap: 1rem;
    padding: 1.5rem;
    margin: 1.5rem 0;
    background: #fff3cd;
    border: 2px solid #ffc107;
    border-radius: 8px;
}

.st-min-party-warning__icon {
    flex-shrink: 0;
}

.st-min-party-warning__icon .dashicons {
    font-size: 32px;
    width: 32px;
    height: 32px;
    color: #856404;
}

.st-min-party-warning__content p {
    margin: 0 0 0.75rem 0;
}

.st-min-party-warning__content p:last-child {
    margin-bottom: 0;
}

.st-min-party-warning__note {
    margin-top: 1rem !important;
    padding-top: 1rem;
    border-top: 1px solid #ffc107;
}

.st-min-party-warning__link {
    color: #004085;
    text-decoration: underline;
    font-weight: 600;
}

.st-min-party-warning__link:hover {
    color: #002752;
}

/* Mobile */
@media (max-width: 768px) {
    .st-min-party-warning {
        flex-direction: column;
        padding: 1rem;
    }
    
    .st-min-party-warning__icon {
        text-align: center;
    }
}

/* ==========================================================================
   Indemnity Form (Passenger Details)
   ========================================================================== */

.st-indemnity-form {
    padding: 2rem;
}

.st-indemnity-form h2 {
    margin: 0 0 0.5rem 0;
    font-size: 1.5rem;
}

.st-indemnity-intro {
    color: var(--st-secondary);
    margin-bottom: 2rem;
}

/* Indemnity prompt (in success message) */
.st-indemnity-prompt {
    background: #f8f9fa;
    border: 2px solid var(--st-border);
    border-radius: var(--st-radius);
    padding: 1.5rem;
    margin: 2rem 0;
    text-align: center;
}

.st-indemnity-prompt h3 {
    margin: 0 0 0.5rem 0;
    font-size: 1.2rem;
}

.st-indemnity-prompt p {
    margin: 0 0 1rem 0;
    color: var(--st-secondary);
    font-size: 0.95rem;
}

.st-indemnity-buttons {
    display: flex;
    gap: 1rem;
    justify-content: center;
}

.st-divider {
    border: none;
    border-top: 1px solid var(--st-border);
    margin: 2rem 0;
}

/* Passenger list */
.st-passenger-list {
    margin-bottom: 1.5rem;
}

.st-passenger-row {
    background: #f8f9fa;
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius);
    padding: 1rem;
    margin-bottom: 1rem;
}

.st-passenger-row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    padding-bottom: 0.5rem;
    border-bottom: 1px solid var(--st-border);
}

.st-passenger-number {
    font-weight: 600;
    color: var(--st-primary);
}

.st-remove-passenger {
    background: none;
    border: none;
    color: var(--st-danger);
    cursor: pointer;
    padding: 0.25rem;
    display: flex;
    align-items: center;
    transition: var(--st-transition);
}

.st-remove-passenger:hover {
    color: #c0392b;
}

.st-remove-passenger .dashicons {
    font-size: 20px;
    width: 20px;
    height: 20px;
}

.st-passenger-section .st-passenger-fields {
    display: grid !important;
    grid-template-columns: 1fr 1fr 1fr !important;
    gap: 0.2rem;
}

.st-passenger-section .st-field-wide {
    grid-column: 1 / -1;
}

.st-field {
    display: flex;
    flex-direction: column;
}

.st-field-wide {
    grid-column: 1 / -1;
}

.st-field label {
    font-size: 0.9rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: var(--st-secondary);
}

.st-field input,
.st-field textarea {
    padding: 0.5rem;
    border: 1px solid var(--st-border);
    border-radius: var(--st-radius);
    font-size: 1rem;
    font-family: inherit;
}

.st-field input:focus,
.st-field textarea:focus {
    outline: none;
    border-color: var(--st-primary);
}

.st-field textarea {
    resize: vertical;
    min-height: 60px;
}

/* Add passenger button */
.st-add-passenger {
    width: 100%;
    justify-content: center;
    margin-bottom: 1.5rem;
}

/* Terms agreement */
.st-terms-agreement {
    background: #fff3cd;
    border: 1px solid #ffc107;
    border-radius: var(--st-radius);
    padding: 1rem;
    margin-bottom: 1.5rem;
}

.st-checkbox-label {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    cursor: pointer;
}

.st-checkbox-label input[type="checkbox"] {
    margin-top: 0.25rem;
    cursor: pointer;
}

.st-checkbox-label span {
    font-size: 12px;
}

.st-checkbox-label a {
    color: var(--st-primary);
    text-decoration: underline;
}

.st-checkbox-label a:hover {
    text-decoration: none;
}

/* Indemnity error message */
.st-indemnity-error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
    padding: 1rem;
    border-radius: var(--st-radius);
    margin-bottom: 1rem;
}

/* Indemnity actions */
.st-indemnity-actions {
    display: flex;
    gap: 1rem;
    justify-content: space-between;
}

/* Mobile responsive */
@media (max-width: 768px) {
    .st-passenger-fields {
        grid-template-columns: 1fr;
    }
    
    .st-indemnity-buttons {
        flex-direction: column;
    }
    
    .st-indemnity-actions {
        flex-direction: column;
    }
}


//* Product description formatting - FORCE proper spacing */
.st-product-description {
    line-height: 1.8;
    font-size: 15px;
}

.st-product-description p {
    margin-bottom: 1.2em;
    display: block;
}

.st-product-description strong {
    font-weight: 700;
}

.st-product-description u {
    text-decoration: underline;
}

.st-product-description a {
    color: #2271b1;
    text-decoration: underline;
}

.st-product-description br {
    display: block;
    margin-bottom: 0.5em;
    content: "";
}

.st-product-description ul,
.st-product-description ol {
    margin: 1em 0 1em 2em;
    padding-left: 1em;
}

.st-product-description li {
    margin-bottom: 0.5em;
    list-style: disc;
}

/* Override any conflicting modal styles */
.st-modal-body .st-product-description,
.st-tabs__panel .st-product-description {
    white-space: normal !important;
}

.st-modal-body .st-product-description p,
.st-tabs__panel .st-product-description p {
    display: block !important;
    margin-bottom: 1.2em !important;
}

.st-modal-body .st-product-description br,
.st-tabs__panel .st-product-description br {
    display: block !important;
    content: "" !important;
    margin-bottom: 0.5em !important;
}

/* Lightbox navigation arrows */
.st-lightbox__prev,
.st-lightbox__next {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
        background: rgb(255 255 255 / 47%);
	border-radius: 25px;
    border: none;
    font-size: 48px;
        padding: 0px 20px 10px 20px;
    cursor: pointer;
    z-index: 10;
    transition: background 0.2s;
    color: #333;
    line-height: 1;
}

.st-lightbox__prev:hover,
.st-lightbox__next:hover {
    background: rgba(255,255,255,1);
}

.st-lightbox__prev {
    left: 20px;
}

.st-lightbox__next {
    right: 20px;
}

/* Image counter */
.st-lightbox__counter {
    position: absolute;
    bottom: 20px;
    left: 50%;
    transform: translateX(-50%);
    background: rgba(0,0,0,0.7);
    color: #fff;
    padding: 8px 16px;
    border-radius: 4px;
    font-size: 14px;
}
/* Timeline info icon */
.st-timeline-info {
    display: block;
    text-align: center;
    margin: 5px 0 0 0;
    padding: 0;
    cursor: pointer;
    color: #3498db;
    line-height: 1;
}

.st-timeline-info:hover {
    color: #2980b9;
}

.st-timeline-info svg {
    display: block;
    margin: 0 auto;
}

.st-stopoff-date {
    display: inline;
    font-size: 18px;
    font-weight: 400;
    color: rgb(45, 52, 148);
    margin-left: 0.5rem;
}

.st-modal-footer {
    padding: 20px;
    border-top: 1px solid #ddd;
    background: #f9f9f9;
    text-align: center;
}

.st-btn-book-from-info {
    min-width: 200px;
}

.st-tabs__tab--book {
    background-color: #0073aa !important;
    color: white !important;
    border-radius: 15px;
    margin-bottom: 5px !important;
    padding: 5px 30px;
    margin-left: 20px;
}

.st-tabs__tab--book:hover {
    background-color: #005177 !important;
}
/* ============================================
   CHECKOUT PASSENGER SECTION
   ============================================ */

.st-passenger-section {
    margin: 2rem 0;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    padding: 1.5rem;
    background: #fff;
}

.st-passenger-section-title {
    font-size: 18px;
    font-weight: 400;
    margin: 0 0 0.5rem 0;
    color: #1e1e1e;
}}

.st-passenger-section-intro {
    color: #666;
    font-size: 0.95rem;
    margin: 0 0 1.5rem 0;
}

.st-passenger-tour-block {
    border: 1px solid #e0e0e0;
    border-radius: 6px;
    margin-bottom: 1rem;
    overflow: hidden;
}

.st-passenger-tour-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 0.875rem 1rem;
    background: #f5f5f5;
    cursor: pointer;
    user-select: none;
    gap: 1rem;
}

.st-passenger-tour-header:hover {
    background: #eeeeee;
}

.st-passenger-tour-name {
    font-weight: 400;
    font-size: 16px;
    line-height: 16px;
    flex: 1;
    color: #2b3d8a;
}

.st-passenger-tour-count {
    font-size: 12px;
    color: #fff;
    background: #2b398f;
    padding: 2px 12px;
    border-radius: 20px;
}

.st-passenger-tour-toggle {
    font-size: 0.8rem;
    color: #666;
}

.st-passenger-tour-body {
    padding: 1rem;
}

.st-passenger-row {
    background: #fafafa;
    border: 1px solid #e8e8e8;
    border-radius: 6px;
    padding: 1rem;
    margin-bottom: 0.75rem;
}

.st-passenger-row:last-child {
    margin-bottom: 0;
}

.st-passenger-row-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 0.875rem;
    padding-bottom: 0.625rem;
    border-bottom: 1px solid #e8e8e8;
}

.st-passenger-row-header strong {
    font-size: 14px;
    color: #1e1e1e;
}

.st-copy-to-all-btn,
.st-copy-btn {
    background-color: rgba(43, 61, 138, 0.22);
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 12px;
    cursor: pointer;
    color: #2b3d8a;
    font-family: inherit;
    transition: background 0.2s;
}

.st-copy-btn:hover {
    background-color: rgba(43, 61, 138, 0.35);
}

.st-copy-to-all-btn:hover {
    background: #e0e0e0;
}

.st-passenger-fields {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 0.875rem;
}

.st-passenger-section .st-field {
    display: flex;
    flex-direction: column;
}

.st-passenger-section .st-field-wide {
    grid-column: 1 / -1;
}

.st-passenger-section .st-field label {
    font-size: 14px;
    font-weight: 500;
    margin-bottom: 0.3rem;
    color: #444;
}

.st-passenger-section .st-field input,
.st-passenger-section .st-field textarea {
    width: 100%;
    padding: 10px 12px !important;
    border: 1px solid #d0d0d0 !important;
    border-radius: 4px !important;
font-size: 14px !important;
}


.st-passenger-terms label {
    display: flex;
    align-items: flex-start;
    gap: 0.625rem;
    cursor: pointer;
    font-size: 16px;
    color: #444;
}

.st-passenger-terms input[type="checkbox"] {
    margin-top: 8px;
    width: 16px;
    height: 16px;
    cursor: pointer;
    flex-shrink: 0;
}

.st-copy-paste-btns {
    display: flex;
    gap: 6px;
    align-items: center;
}

.st-paste-btn {
    background-color: #b4b4b438;
    border: 1px solid #d0d0d0;
    border-radius: 4px;
    padding: 4px 10px;
    font-size: 12px;
    cursor: pointer;
    color: #2b3d8a;
    font-family: inherit;
    transition: background 0.2s;
}

.st-paste-btn:hover {
    background-color: rgba(43, 61, 138, 0.35);
}

.st-paste-btn.st-paste-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.st-paste-btn:hover {
    background-color: rgba(43, 61, 138, 0.35);
}

.st-paste-btn.st-paste-disabled {
    opacity: 0.4;
    cursor: not-allowed;
}

.wc-item-meta li .wc-item-meta-label {
    display: none !important;
}
.st-hide-price { display: none !important; }

.st-tour-card__price {
    font-size: 18px !important;
    font-weight: 500 !important;
    color: #2b398f !important;
}

.st-timeline-info {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 18px;
    height: 18px;
    cursor: pointer;
    pointer-events: auto;
}