/* SaharaTrek Tour Manager - Frontend Styles */
/* Universal theme-agnostic styling */

/* CSS Custom Properties - Can be overridden by theme */
:root {
    --stm-primary-color: currentColor;
    --stm-text-color: inherit;
    --stm-heading-color: inherit;
    --stm-muted-color: inherit;
    --stm-border-color: currentColor;
    --stm-bg-color: transparent;
    --stm-accent-color: #d4af37;
}

/* Tour Single Page */
.stm-tour-single {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 1rem;
}

/* Hide theme-generated title and date on tour pages */
.single-tour_itinerary .entry-header,
.single-tour_itinerary .entry-title,
.single-tour_itinerary .entry-meta,
.single-tour_itinerary .page-title,
.single-tour_itinerary .post-title,
.single-tour_itinerary .wp-block-post-title,
.single-tour_itinerary .wp-block-post-date,
.single-tour_itinerary header h1,
.single-tour_itinerary header .entry-title,
.single-tour_itinerary article > h1:first-child,
.single-tour_itinerary .content-area > h1:first-child,
.post-type-archive-tour_itinerary .page-header {
    display: none !important;
}

/* Also hide for any tour post within the article */
article.tour_itinerary .entry-header,
article.tour_itinerary .wp-block-post-title,
article.tour_itinerary .wp-block-post-date,
article.post-type-tour_itinerary .entry-header,
article.post-type-tour_itinerary .entry-title,
article.post-type-tour_itinerary .entry-meta {
    display: none !important;
}

/* Hide theme's featured image on tour pages - we only want the hero banner */
.single-tour_itinerary .post-thumbnail,
.single-tour_itinerary .entry-thumbnail,
.single-tour_itinerary .featured-image,
.single-tour_itinerary .wp-post-image,
.single-tour_itinerary .wp-block-post-featured-image,
article.tour_itinerary .post-thumbnail,
article.tour_itinerary .entry-thumbnail,
article.tour_itinerary .featured-image,
article.post-type-tour_itinerary .post-thumbnail,
article.post-type-tour_itinerary .entry-thumbnail {
    display: none !important;
}

/* Remove excessive spacing on tour pages */
.single-tour_itinerary .entry-content,
.single-tour_itinerary article,
.single-tour_itinerary .site-main,
article.tour_itinerary,
article.post-type-tour_itinerary {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.stm-tour-header-image {
    margin: 0 0 3rem 0;
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    max-height: 500px;
    overflow: hidden;
}

/* Make tour content start immediately after header */
.stm-tour-single {
    margin-top: 0 !important;
    padding-top: 0 !important;
}

.stm-tour-header-image img {
    width: 100%;
    height: 500px;
    object-fit: cover;
    object-position: center;
    display: block;
}

.stm-tour-header {
    text-align: center;
    margin-bottom: 4rem;
}

.stm-tour-title {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    font-weight: 700;
    color: var(--stm-heading-color);
    line-height: 1.2;
}

.stm-tour-duration {
    font-size: 1.1rem;
    color: var(--stm-muted-color);
    margin-bottom: 1.5rem;
    font-weight: 500;
}

.stm-tour-excerpt {
    font-size: 1.125rem;
    line-height: 1.7;
    max-width: 800px;
    margin: 0 auto;
    color: var(--stm-text-color);
}

/* Tour Sections */
.stm-tour-section {
    margin-bottom: 4rem;
}

.stm-tour-section h2 {
    font-size: 2rem;
    margin-bottom: 1.5rem;
    border-bottom: 2px solid var(--stm-border-color);
    padding-bottom: 0.5rem;
    opacity: 0.2;
}

/* Highlights List */
.stm-highlights-list {
    list-style: none;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 0.5rem;
}

.stm-highlights-list li:before {
    content: "•";
    color: #d4af37;
    font-weight: bold;
    display: inline-block;
    width: 1em;
    margin-left: -1em;
}

/* Itinerary Days */
.stm-itinerary-days {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.stm-day {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    transition: box-shadow 0.3s;
}

.stm-day:hover {
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
}

.stm-day-header {
    background: #1a1a1a;
    color: white;
    padding: 2rem;
}

.stm-day-number {
    font-size: 0.875rem;
    opacity: 0.8;
    display: block;
    margin-bottom: 0.5rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.stm-day-title {
    margin: 0;
    font-size: 1.75rem;
    font-weight: 700;
    line-height: 1.3;
}

.stm-day-image img {
    width: 100%;
    height: auto;
    display: block;
}

.stm-day-content {
    padding: 2.5rem;
    line-height: 1.8;
    color: #444;
    font-size: 1.0625rem;
}

.stm-day-meta {
    background: #f8f9fa;
    padding: 2rem;
    border-top: 1px solid #e9ecef;
    font-size: 0.9375rem;
}

.stm-day-meta > div {
    margin-bottom: 0.75rem;
    line-height: 1.6;
}

.stm-day-meta > div:last-child {
    margin-bottom: 0;
}

.stm-day-meta strong {
    color: #1a1a1a;
    font-weight: 600;
}

.stm-day-meta a {
    color: #000;
    text-decoration: none;
    font-weight: 500;
    border-bottom: 1px solid transparent;
    transition: border-color 0.2s;
}

.stm-day-meta a:hover {
    border-bottom-color: #000;
}

/* Pricing Calculator */
.stm-pricing-calculator {
    background: #f8f9fa;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.stm-pricing-calculator h3 {
    margin-top: 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
}

.stm-currency-note {
    font-size: 0.9375rem;
    color: #666;
    margin-bottom: 2rem;
}

.stm-pricing-options {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2.5rem;
    margin-bottom: 2.5rem;
}

.stm-pricing-controls {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.stm-pricing-controls label {
    display: flex;
    flex-direction: column;
    font-weight: 600;
    gap: 0.5rem;
    color: #1a1a1a;
    font-size: 0.9375rem;
}

.stm-pricing-controls input,
.stm-pricing-controls select {
    padding: 0.75rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
    background: white;
}

.stm-pricing-controls input:focus,
.stm-pricing-controls select:focus {
    outline: none;
    border-color: #1a1a1a;
}

.stm-price-display {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    text-align: center;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.stm-starting-price {
    font-size: 0.875rem;
    color: #666;
    margin-bottom: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.stm-price-amount {
    font-size: 3.5rem;
    font-weight: 700;
    color: #1a1a1a;
    margin: 0;
    line-height: 1;
}

.stm-price-note {
    font-size: 0.9375rem;
    color: #666;
    margin-top: 0.75rem;
}

.stm-pricing-table-wrapper h4 {
    margin-bottom: 1.25rem;
    font-size: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
}

.stm-pricing-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.stm-pricing-table th,
.stm-pricing-table td {
    padding: 1rem 1.25rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.stm-pricing-table th {
    background: #f8f9fa;
    font-weight: 600;
    color: #1a1a1a;
    font-size: 0.9375rem;
}

.stm-pricing-table tbody tr:last-child td {
    border-bottom: none;
}

/* Availability Form */
.stm-availability-form {
    background: #f8f9fa;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.06);
}

.stm-availability-form h3 {
    margin-top: 0;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
}

.stm-form-row {
    margin-bottom: 1.5rem;
}

.stm-form-row label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #1a1a1a;
    font-size: 0.9375rem;
}

.stm-form-row input,
.stm-form-row select,
.stm-form-row textarea {
    width: 100%;
    padding: 0.875rem 1rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    font-size: 1rem;
    transition: border-color 0.2s;
    background: white;
}

.stm-form-row input:focus,
.stm-form-row select:focus,
.stm-form-row textarea:focus {
    outline: none;
    border-color: #1a1a1a;
}

.stm-form-row-2col {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1.25rem;
}

.stm-form-row-3col {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}

.stm-submit-btn {
    background: #1a1a1a;
    color: white;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    font-size: 1rem;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s, transform 0.2s;
}

.stm-submit-btn:hover {
    background: #000;
    transform: translateY(-2px);
}

.stm-form-message {
    padding: 1.25rem;
    border-radius: 8px;
    margin-top: 1.25rem;
    font-size: 0.9375rem;
}

.stm-form-message.success {
    background: #d4edda;
    color: #155724;
    border: 2px solid #c3e6cb;
}

.stm-form-message.error {
    background: #f8d7da;
    color: #721c24;
    border: 2px solid #f5c6cb;
}

/* Activities & Cities Grids */
.stm-activities-grid,
.stm-cities-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-top: 2.5rem;
}

.stm-activity-tile,
.stm-city-tile {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.stm-activity-tile:hover,
.stm-city-tile:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.stm-tile-image {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stm-tile-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: contain !important;
    object-position: center !important;
    display: block;
    transition: transform 0.3s ease, opacity 0.3s ease;
}

.stm-activity-tile:hover .stm-tile-image img,
.stm-city-tile:hover .stm-tile-image img {
    transform: scale(1.08);
    opacity: 0.9;
}

/* Tour Card Image - Also Show Fully with important flags */
.stm-tour-card-image {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
    height: 220px;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stm-tour-card-image img {
    width: 100% !important;
    height: 100% !important;
    object-fit: cover !important;
    object-position: center !important;
    display: block;
    transition: transform 0.4s ease;
    max-width: 100%;
    max-height: 100%;
}

.stm-tour-card:hover .stm-tour-card-image img {
    transform: scale(1.05);
}

/* Tour Card Price Info Section - Below Image */
.stm-tour-card-price-info {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: white;
    border-bottom: 3px solid #005080;
}

/* Tour Card Price Badge - Inside Price Info */
.stm-tour-card-price-badge {
    padding: 0.75rem 1rem;
    text-align: center;
    border-bottom: 1px solid rgba(255,255,255,0.2);
}

.stm-tour-card-price-badge .stm-price-label {
    display: block;
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 0.95;
    margin-bottom: 0.25rem;
    font-weight: 600;
}

.stm-tour-card-price-badge .stm-price-amount {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    margin: 0.25rem 0;
    line-height: 1;
    text-shadow: 0 1px 3px rgba(0,0,0,0.2);
}

.stm-tour-card-price-badge .stm-price-per {
    display: block;
    font-size: 0.8125rem;
    opacity: 0.9;
    font-weight: 500;
}

/* Tour Card Duration Badge - Inside Price Info */
.stm-tour-card-duration-badge {
    padding: 0.5rem 1rem;
    text-align: center;
    font-size: 0.9375rem;
    font-weight: 600;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
}

.stm-tour-card-duration-badge .dashicons {
    font-size: 1.2em;
}

.stm-tile-content {
    padding: 1.5rem 1.5rem 1rem 1.5rem;
}

.stm-tile-content h3 {
    margin-top: 0;
    margin-bottom: 0.5rem;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}

.stm-tile-content h3 a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s;
}

.stm-tile-content h3 a:hover {
    color: #000;
}

.stm-tile-content p {
    color: #555;
    line-height: 1.6;
    margin-bottom: 0.75rem;
}

.stm-read-more {
    color: #1a1a1a;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
}

.stm-read-more:hover {
    border-bottom-color: #1a1a1a;
}
    text-decoration: none;
    font-weight: bold;
}

.stm-read-more:hover {
    text-decoration: underline;
}

/* Responsive */
@media (max-width: 768px) {
    .stm-pricing-options {
        grid-template-columns: 1fr;
    }
    
    .stm-form-row-2col,
    .stm-form-row-3col {
        grid-template-columns: 1fr;
    }
    
    .stm-activities-grid,
    .stm-cities-grid {
        grid-template-columns: 1fr;
    }
    
    .stm-tour-listings {
        grid-template-columns: 1fr !important;
    }
}

/* Tour Archive & Listings */
.stm-tour-archive {
    max-width: 1200px;
    margin: 0 auto;
    padding: 3rem 1rem;
}

.stm-archive-header {
    text-align: center;
    margin-bottom: 4rem;
}

.stm-archive-header h1 {
    font-size: 2.75rem;
    margin-bottom: 1.25rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.2;
}

.stm-archive-description {
    font-size: 1.125rem;
    color: #555;
    max-width: 800px;
    margin: 0 auto;
    line-height: 1.7;
}

/* Tour Type Filter */
.stm-tour-filter {
    display: flex;
    justify-content: center;
    gap: 0.75rem;
    margin-bottom: 4rem;
    flex-wrap: wrap;
}

.stm-filter-btn {
    padding: 0.75rem 1.5rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    color: #666;
    font-weight: 600;
    font-size: 0.9375rem;
    transition: all 0.2s ease;
    background: white;
}

.stm-filter-btn:hover {
    border-color: #1a1a1a;
    color: #1a1a1a;
    background: #f8f9fa;
}

.stm-filter-btn.active {
    background: #1a1a1a;
    color: white;
    border-color: #1a1a1a;
}

/* Tour Listings Grid */
.stm-tour-listings {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin-bottom: 3rem;
}

.stm-tour-listings[data-columns="2"] {
    grid-template-columns: repeat(2, 1fr);
}

.stm-tour-listings[data-columns="4"] {
    grid-template-columns: repeat(4, 1fr);
}

/* Tour Card */
.stm-tour-card {
    background: white;
    border-radius: 10px;
    overflow: hidden;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
    display: flex;
    flex-direction: column;
    height: 100%;
}

.stm-tour-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 8px 24px rgba(0,0,0,0.12);
}

.stm-tour-card-image {
    position: relative;
    overflow: hidden;
    background: #f5f5f5;
}

.stm-tour-card-image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.stm-tour-card:hover .stm-tour-card-image img {
    transform: scale(1.05);
}

.stm-tour-type-badge {
    position: absolute;
    top: 1.25rem;
    left: 1.25rem;
    background: white;
    padding: 0.5rem 1rem;
    border-radius: 6px;
    font-size: 0.8125rem;
    font-weight: 600;
    color: #1a1a1a;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.stm-tour-card-content {
    padding: 1.5rem 1.5rem 1rem 1.5rem;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.stm-tour-card-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    font-weight: 700;
    line-height: 1.3;
}

.stm-tour-card-title a {
    color: #1a1a1a;
    text-decoration: none;
    transition: color 0.2s;
}

.stm-tour-card-title a:hover {
    color: #000;
}

.stm-tour-card-duration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: #666;
    font-size: 0.9rem;
    margin-bottom: 0.75rem;
    font-weight: 500;
}

.stm-tour-card-duration .dashicons {
    font-size: 18px;
    width: 18px;
    height: 18px;
    color: #1a1a1a;
}

.stm-tour-card-excerpt {
    color: #555;
    line-height: 1.6;
    margin-bottom: 1rem;
    flex: 1;
    font-size: 0.9rem;
}

.stm-tour-card-footer {
    border-top: 1px solid #e9ecef;
    padding-top: 1.25rem;
    margin-top: auto;
}

.stm-tour-card-price {
    margin-bottom: 1rem;
}

.stm-price-label {
    display: block;
    font-size: 0.75rem;
    color: #666;
    margin-bottom: 0.35rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.stm-price-amount {
    display: block;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1;
}

.stm-price-per {
    display: block;
    font-size: 0.8rem;
    color: #666;
    margin-top: 0.35rem;
}

.stm-tour-card-button {
    display: inline-block;
    background: #1a1a1a;
    color: white;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    text-decoration: none;
    font-weight: 600;
    font-size: 0.9rem;
    transition: background 0.2s, transform 0.2s;
    text-align: center;
}

.stm-tour-card-button:hover {
    background: #000;
    transform: translateX(2px);
    color: white;
}

/* Pagination */
.stm-pagination {
    display: flex;
    justify-content: center;
    gap: 0.5rem;
    margin-top: 4rem;
}

.stm-pagination a,
.stm-pagination span {
    padding: 0.75rem 1.25rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    text-decoration: none;
    color: #666;
    font-weight: 600;
    transition: all 0.2s;
    background: white;
}

.stm-pagination a:hover {
    background: #f8f9fa;
    border-color: #1a1a1a;
    color: #1a1a1a;
}

.stm-pagination .current {
    background: #1a1a1a;
    color: white;
    border-color: #1a1a1a;
}

/* Tablet Responsive */
@media (max-width: 1024px) {
    .stm-tour-listings {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .stm-tour-listings[data-columns="4"] {
        grid-template-columns: repeat(2, 1fr);
    }
}

/* Accommodations Section */
.stm-accommodations-section {
    margin-top: 4rem;
}

/* Content Gallery Carousel (Cities & Activities) */
.stm-content-gallery {
    position: relative;
    margin: 3rem 0;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
}

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

.stm-carousel-image {
    width: 100%;
    height: auto;
    display: none;
}

.stm-carousel-image:first-child {
    display: block;
}

.stm-carousel-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 1.5rem;
    pointer-events: none;
}

.stm-carousel-prev,
.stm-carousel-next {
    width: 56px;
    height: 56px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    font-size: 2.5rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 4px 12px rgba(0,0,0,0.2);
    transition: all 0.2s;
    pointer-events: all;
    color: #1a1a1a;
    font-weight: 300;
    display: flex;
    align-items: center;
    justify-content: center;
}

.stm-carousel-prev:hover,
.stm-carousel-next:hover {
    background: white;
    transform: scale(1.1);
    box-shadow: 0 6px 16px rgba(0,0,0,0.25);
}

.stm-accommodation-levels {
    display: flex;
    gap: 1rem;
    margin-bottom: 2.5rem;
    justify-content: center;
}

.stm-level-tab {
    padding: 0.875rem 2rem;
    border: 2px solid #e9ecef;
    border-radius: 8px;
    background: white;
    color: #666;
    font-weight: 600;
    font-size: 1rem;
    cursor: pointer;
    transition: all 0.2s;
}

.stm-level-tab:hover {
    border-color: #1a1a1a;
    color: #1a1a1a;
}

.stm-level-tab.active {
    background: #1a1a1a;
    color: white;
    border-color: #1a1a1a;
}

.stm-accommodations-list {
    display: flex;
    flex-direction: column;
    gap: 3rem;
}

.stm-accommodation-detail {
    background: white;
    padding: 2.5rem;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.08);
}

.stm-accommodation-detail h3 {
    margin-top: 0;
    margin-bottom: 1.5rem;
    font-size: 1.75rem;
    font-weight: 700;
    color: #1a1a1a;
}

.stm-accommodation-detail h3 a {
    color: inherit;
    text-decoration: none;
    border-bottom: 2px solid transparent;
    transition: border-color 0.2s;
}

.stm-accommodation-detail h3 a:hover {
    border-bottom-color: #1a1a1a;
}

.stm-acc-location {
    font-weight: 400;
    color: #666;
    font-size: 1.25rem;
}

.stm-accommodation-master-gallery {
    margin-bottom: 2rem;
}

.stm-accommodation-master-gallery .stm-accommodation-gallery {
    border: 3px solid #e9ecef;
    border-radius: 8px;
}

.stm-accommodation-gallery {
    position: relative;
    margin-bottom: 1.5rem;
    border-radius: 8px;
    overflow: hidden;
}

.stm-accommodation-gallery img {
    width: 100%;
    height: auto;
    display: block;
}

.stm-gallery-nav {
    position: absolute;
    top: 50%;
    left: 0;
    right: 0;
    transform: translateY(-50%);
    display: flex;
    justify-content: space-between;
    padding: 0 1rem;
    pointer-events: none;
}

.stm-gallery-prev,
.stm-gallery-next {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.95);
    border: none;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    box-shadow: 0 2px 8px rgba(0,0,0,0.2);
    transition: background 0.2s, transform 0.2s;
    pointer-events: all;
    color: #1a1a1a;
}

.stm-gallery-prev:hover,
.stm-gallery-next:hover {
    background: white;
    transform: scale(1.1);
}

.stm-accommodation-description {
    color: #444;
    line-height: 1.7;
    font-size: 1.0625rem;
}

.stm-accommodation-description p:last-child {
    margin-bottom: 0;
}

/* Accommodation Preview Bar */
.stm-accommodation-preview {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1rem;
    margin: 1rem 0;
    background: #f8f8f8;
    border: 1px solid #ddd;
    border-radius: 8px;
    transition: background 0.2s;
}

.stm-accommodation-preview:hover {
    background: #f0f0f0;
}

.stm-accommodation-thumb {
    flex-shrink: 0;
    width: 80px;
    height: 80px;
    overflow: hidden;
    border-radius: 4px;
}

.stm-accommodation-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.stm-accommodation-info {
    flex-grow: 1;
}

.stm-accommodation-info strong {
    display: block;
    font-size: 1.125rem;
    margin-bottom: 0.25rem;
}

.stm-accommodation-location {
    color: #666;
    font-size: 0.875rem;
}

.stm-accommodation-expand {
    padding: 0.5rem 1rem;
    background: #0066cc;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 0.875rem;
    font-weight: 600;
    transition: background 0.2s;
    white-space: nowrap;
}

.stm-accommodation-expand:hover {
    background: #0052a3;
}

/* Accommodation Modal */
.stm-accommodation-modal {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 9999;
}

.stm-modal-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: rgba(0, 0, 0, 0.8);
}

.stm-modal-content {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    background: white;
    padding: 2rem;
    border-radius: 8px;
    max-width: 800px;
    max-height: 90vh;
    overflow-y: auto;
    width: 90%;
}

.stm-modal-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 40px;
    height: 40px;
    border: none;
    background: #f0f0f0;
    border-radius: 50%;
    font-size: 2rem;
    line-height: 1;
    cursor: pointer;
    transition: background 0.2s;
}

.stm-modal-close:hover {
    background: #e0e0e0;
}

.stm-modal-location {
    color: #666;
    margin-bottom: 1.5rem;
}

.stm-modal-gallery {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(250px, 1fr));
    gap: 1rem;
    margin: 1.5rem 0;
}

.stm-modal-gallery-item img {
    width: 100%;
    height: 200px;
    object-fit: cover;
    border-radius: 4px;
}

.stm-modal-description {
    line-height: 1.7;
    color: #444;
}

.stm-modal-website {
    margin-top: 1.5rem;
    text-align: center;
}

/* What's Included Section */
.stm-whats-included {
    background: transparent;
    padding: 0;
    border-radius: 0;
    margin: 0;
}

.stm-whats-included h3 {
    margin-top: 0;
    margin-bottom: 0.3rem;
    font-size: 0.9375rem;
    font-weight: 700;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 0.2rem;
}

.stm-included-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.stm-included-list li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.2rem 0;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.75rem;
    line-height: 1.2;
}

.stm-included-list li:last-child {
    border-bottom: none;
    padding-bottom: 0;
}

.stm-included-list .dashicons {
    color: #0073aa;
    flex-shrink: 0;
    font-size: 0.9em;
}

/* Short Description in Accommodation Preview */
.stm-accommodation-short-desc {
    margin: 0.5rem 0 0 0;
    font-size: 0.9rem;
    line-height: 1.5;
    color: #666;
    font-style: italic;
}

/* Modal Title Link Styling */
.stm-modal-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s;
}

.stm-modal-title a:hover {
    color: #0073aa;
}

.stm-external-link-icon {
    font-size: 0.8em;
    margin-left: 0.3rem;
    opacity: 0.6;
}

/* General Description in Modal */
.stm-modal-general-description {
    margin: 1.5rem 0;
    padding: 1rem;
    background: #f9f9f9;
    border-left: 3px solid #0073aa;
    border-radius: 4px;
}

.stm-modal-general-description p:last-child {
    margin-bottom: 0;
}

/* Master Gallery Section */
.stm-modal-master-gallery {
    margin: 1.5rem 0;
}

/* Level-Specific Sections */
.stm-modal-level-description {
    margin: 1.5rem 0;
}

.stm-modal-level-description h3 {
    margin: 0 0 1rem 0;
    font-size: 1.3rem;
    color: #333;
    border-bottom: 2px solid #eee;
    padding-bottom: 0.5rem;
}

.stm-modal-level-gallery {
    margin: 1.5rem 0;
}

/* Improve accommodation tab styling */
.stm-accommodation-levels {
    margin: 1.5rem 0;
    border-bottom: 2px solid #eee;
}

.stm-accommodation-levels .stm-level-tab {
    border-bottom: 3px solid transparent;
    margin-bottom: -2px;
}

.stm-accommodation-levels .stm-level-tab.active {
    border-bottom-color: #0073aa;
}

/* Two-Column Layout with Sidebar */
.stm-tour-layout {
    display: grid;
    grid-template-columns: 1fr 350px;
    gap: 2rem;
    margin-top: 2rem;
}

.stm-tour-main-content {
    min-width: 0; /* Prevents grid blowout */
}

.stm-tour-sidebar {
    position: sticky;
    top: 1rem;
    height: fit-content;
}

/* Sidebar Sections - ULTRA COMPACT VERSION */
.stm-sidebar-section {
    background: #fff;
    border: 1px solid #ddd;
    border-radius: 6px;
    padding: 0.5rem;
    margin-bottom: 0.5rem;
    box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}

.stm-sidebar-section h3 {
    margin: 0 0 0.4rem 0;
    font-size: 1rem;
    color: #1a1a1a;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 0.3rem;
    font-weight: 700;
}

.stm-sidebar-section h2 {
    margin: 0 0 0.4rem 0;
    font-size: 1.1rem;
    color: #1a1a1a;
    font-weight: 700;
}

/* Starting Price Section - Separate and Readable */
.stm-sidebar-section.stm-starting-price-section {
    background: linear-gradient(135deg, #0073aa 0%, #005a87 100%);
    color: white;
    border: none;
    padding: 0.75rem;
    box-shadow: 0 2px 8px rgba(0,115,170,0.25);
    margin-bottom: 0.5rem;
}

.stm-starting-price-box {
    text-align: center;
}

.stm-starting-price-box .stm-price-label {
    font-size: 0.8125rem;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    opacity: 1;
    margin: 0 0 0.25rem 0;
    font-weight: 600;
    color: rgba(255,255,255,0.95);
}

.stm-starting-price-box .stm-price-amount {
    font-size: 2.75rem;
    font-weight: 700;
    margin: 0.25rem 0;
    line-height: 1;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    color: #ffffff;
}

.stm-starting-price-box .stm-price-note {
    font-size: 0.9375rem;
    opacity: 1;
    margin: 0.25rem 0 0.5rem 0;
    font-weight: 500;
    color: rgba(255,255,255,0.95);
}

.stm-starting-price-box .stm-currency-note {
    font-size: 0.8125rem;
    opacity: 0.9;
    font-style: italic;
    margin: 0;
    color: rgba(255,255,255,0.85);
    border-top: 1px solid rgba(255,255,255,0.2);
    padding-top: 0.5rem;
}

/* Pricing Table Section - Separate */
.stm-sidebar-section.stm-pricing-table-section {
    padding: 0.5rem;
    margin-bottom: 0.5rem;
}

.stm-sidebar-section.stm-pricing-table-section h3 {
    font-size: 0.9375rem;
    margin-bottom: 0.4rem;
}

.stm-pricing-table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    border-radius: 4px;
    overflow: hidden;
    font-size: 0.8125rem;
    border: 1px solid #e9ecef;
}

.stm-pricing-table th,
.stm-pricing-table td {
    padding: 0.4rem;
    text-align: left;
    border-bottom: 1px solid #e9ecef;
}

.stm-pricing-table th {
    background: #f8f9fa;
    font-weight: 700;
    color: #1a1a1a;
    font-size: 0.75rem;
}

.stm-pricing-table tbody tr:last-child td {
    border-bottom: none;
}

.stm-pricing-table tbody tr:hover {
    background-color: #f8f9fa;
}

/* What's Included Section - MINIMAL MARGINS */
.stm-whats-included-section {
    padding: 0.3rem 0.5rem !important;
    background: #f8f9fa;
    border: 1px solid #e1e4e8;
    margin-bottom: 0.5rem !important;
}

.stm-whats-included-section h3 {
    font-size: 0.9375rem !important;
    margin: 0 0 0.3rem 0 !important;
    color: #1a1a1a;
    font-weight: 700;
    border-bottom: 2px solid #0073aa;
    padding-bottom: 0.2rem !important;
}

.stm-whats-included-section ul {
    margin: 0 !important;
    padding: 0 !important;
    list-style: none;
}

.stm-whats-included-section li {
    padding: 0.2rem 0;
    padding-left: 1.5rem;
    position: relative;
    border-bottom: 1px solid #e9ecef;
    font-size: 0.75rem;
    color: #2c3e50;
    line-height: 1.2;
    font-weight: 500;
    margin: 0 !important;
}

.stm-whats-included-section li:last-child {
    border-bottom: none;
    padding-bottom: 0 !important;
}

.stm-whats-included-section .dashicons {
    position: absolute;
    left: 0;
    color: #0073aa;
    font-size: 0.9em;
    top: 0.2rem;
}

.stm-whats-included-section li:hover {
    background-color: rgba(0,115,170,0.05);
}

/* Check Availability Button - Fix Overflow */
.stm-sidebar-section.stm-availability-section {
    background: transparent;
    border: none;
    padding: 0 !important;
    margin-bottom: 0.5rem;
    box-shadow: none;
}

.stm-check-availability-btn {
    display: block;
    width: 100%;
    padding: 0.875rem;
    background-color: #0073aa;
    color: white !important;
    text-align: center;
    text-decoration: none;
    border-radius: 6px;
    font-weight: 700;
    font-size: 1rem;
    transition: all 0.3s ease;
    margin: 0;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    box-shadow: 0 2px 6px rgba(0,115,170,0.3);
    border: none;
    box-sizing: border-box;
}

.stm-check-availability-btn:hover {
    background-color: #005a87;
    box-shadow: 0 4px 12px rgba(0,115,170,0.4);
    transform: translateY(-1px);
}

/* Pricing Section in Sidebar - Remove old gradient, use compact */
.stm-sidebar-section.stm-pricing-section {
    background: #fff;
    color: #333;
    border: 1px solid #e0e0e0;
    padding: 1rem;
}

.stm-sidebar-section.stm-pricing-section h3 {
    color: #333;
    border-bottom-color: #0073aa;
}

/* Check Availability Form in Sidebar - COMPACT */
.stm-sidebar-section.stm-availability-section {
    background: #f9f9f9;
    border: 2px solid #0073aa;
    padding: 1rem;
}

.stm-availability-section .stm-submit-btn {
    width: 100%;
    background: #0073aa;
    color: #fff;
    border: none;
    padding: 0.875rem;
    font-size: 1rem;
    border-radius: 4px;
    cursor: pointer;
    transition: background 0.2s;
}

.stm-availability-section .stm-submit-btn:hover {
    background: #005a87;
}

/* Responsive Layout */
@media (max-width: 1024px) {
    .stm-tour-layout {
        grid-template-columns: 1fr 300px;
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .stm-tour-layout {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    
    .stm-tour-sidebar {
        position: static;
    }
}
