/* ================================
   TOUR LAYOUTS & CARDS
   ================================ */

.tour-list {
    list-style: none;
    padding: 0;
}

.tour-list li {
    margin-bottom: 1rem;
    padding: var(--spacing-xl);
}

.tour-item {
    margin-bottom: 2rem;
    padding: 2rem;
}

.tour-item h3 {
    color: var(--white);
    margin-bottom: 0.5rem;
    text-shadow: 0 2px 4px rgba(0, 0, 0, 0.3);
}

.tour-item p {
    color: rgba(255, 255, 255, 0.9);
    margin-bottom: 1rem;
}

.tour-meta {
    color: var(--text-secondary);
    font-size: var(--font-size-caption);
    margin-bottom: 1rem;
    padding: 0.75rem 1rem;
    background: var(--glass-bg-subtle);
    border-radius: var(--radius-sm);
    border: var(--border-light);
    font-weight: 500;
}

/* ================================
   TOUR IMAGES
   ================================ */

.tour-image-header {
    margin-bottom: 2rem;
    border-radius: var(--radius-lg);
    overflow: hidden;
    box-shadow: var(--shadow-md);
    position: relative;
}

.tour-main-image {
    width: 100%;
    aspect-ratio: 4/3;
    display: block;
    object-fit: cover;
    background: var(--glass-bg-light);
}

/* Placeholder styling for missing images */
.tour-main-image::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(135deg, var(--brand-primary), var(--brand-secondary));
    opacity: 0.1;
}

/* Ensure image quality on all screens */
.tour-list-thumbnail {
    image-rendering: -webkit-optimize-contrast;
    image-rendering: crisp-edges;
}

/* ================================
   PRIVATE TOUR ITEMS
   ================================ */

.private-tour-item {
    display: flex;
    gap: 1.5rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background: var(--glass-bg-card);
    backdrop-filter: var(--glass-blur);
    border: var(--border-subtle);
}

.tour-thumbnail {
    flex-shrink: 0;
    width: 200px;
}

.tour-thumb-image {
    width: 100%;
    height: 125px;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
}

/* ================================
   FULL-WIDTH TOUR LAYOUT
   ================================ */

.tour-item-full {
    display: flex;
    gap: 2rem;
    padding: 0;
    align-items: flex-start;
    margin: 0;
}

.tour-image-large {
    flex-shrink: 0;
    width: 500px;
    aspect-ratio: 4/3;
}

.tour-main-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-md);
    transition: transform var(--transition-base);
}

.tour-main-thumbnail:hover {
    transform: scale(1.02);
}

.tour-info-section {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.tour-id-badge {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #e8f0fb;
    border: 1px solid #b0c8f0;
    border-radius: 4px;
    padding: 2px 10px;
    font-size: 0.78rem;
    font-weight: 700;
    color: #0D2B5A;
    letter-spacing: 0.5px;
}
.tour-id-badge i { color: #0095d9; font-size: 0.72rem; }

.tour-title-large {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--brand-primary);
    margin: 0;
    line-height: 1.3;
}

.tour-excerpt-large {
    font-size: 1rem;
    color: var(--text-secondary);
    line-height: 1.6;
    margin: 0;
}

.tour-meta-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 0.75rem;
    margin: 1rem 0;
}

.meta-item {
    padding: 0.5rem 0.75rem;
    background: var(--glass-bg-subtle);
    border-radius: var(--radius-sm);
    border: var(--border-light);
    font-size: 0.9rem;
}

.meta-item strong {
    color: var(--brand-primary);
}

.tour-highlights-section h4 {
    margin: 0 0 0.5rem 0;
    color: var(--text-primary);
    font-size: 1rem;
}

.highlights-list {
    margin: 0;
    padding-left: 1.2rem;
    list-style: none;
}

.highlights-list li {
    position: relative;
    margin-bottom: 0.3rem;
    color: var(--text-secondary);
    line-height: 1.4;
}

.highlights-list li:before {
    content: "✓";
    position: absolute;
    left: -1.2rem;
    color: var(--brand-primary);
    font-weight: bold;
}

.more-highlights {
    font-style: italic;
    color: var(--text-muted);
}

.more-highlights:before {
    content: "...";
}

.tour-actions {
    margin-top: 1rem;
}

/* ================================
   TOUR ITEM CARD LAYOUT
   ================================ */

.tour-item-card {
    display: flex;
    gap: 1.8rem;
    margin-bottom: 2rem;
    padding: 1.5rem;
    border-radius: var(--radius-lg);
    background: var(--glass-bg-card);
    backdrop-filter: var(--glass-blur);
    border: var(--border-subtle);
    box-shadow: var(--shadow-sm);
    min-height: 180px;
    align-items: flex-start;
}

.tour-thumbnail-container {
    flex-shrink: 0;
    width: 280px;
    aspect-ratio: 4/3;
}

.tour-list-thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: var(--radius-md);
    box-shadow: var(--shadow-sm);
    background: var(--glass-bg-light);
    transition: transform var(--transition-base);
}

.tour-list-thumbnail:hover {
    transform: var(--scale-md);
}

.tour-content {
    flex: 1;
}

.tour-content-wrapper {
    flex: 1;
}

.tour-content-wrapper h3 {
    color: var(--text-primary);
    margin-bottom: 0.75rem;
    font-size: var(--font-size-xl);
}

.tour-content-wrapper p {
    color: var(--text-secondary);
    margin-bottom: 1rem;
    line-height: 1.5;
}

.tour-details {
    margin: 1rem 0;
    padding: 0.75rem;
    background: var(--glass-bg-subtle);
    border-radius: var(--radius-sm);
    border: var(--border-light);
}

.tour-details p {
    margin: 0.25rem 0;
    color: var(--text-primary);
    font-size: var(--font-size-sm);
}

.tour-details strong {
    color: var(--brand-primary);
}

.tour-highlights-preview {
    margin-top: 1rem;
}

.tour-highlights-preview p {
    color: var(--text-secondary);
    font-weight: 500;
    margin-bottom: 0.5rem;
}

.tour-highlights-preview ul {
    margin: 0;
    padding-left: 1.2rem;
}

.tour-highlights-preview li {
    color: var(--text-light);
    font-size: var(--font-size-sm);
    margin-bottom: 0.25rem;
}

/* ================================
   PRIVATE TOUR — ITINERARY + ROUTE MAP
   ================================ */

.pt-itinerary-layout {
    display: flex;
    gap: 16px;
    align-items: flex-start;
}

.pt-itinerary-layout .pt-timeline {
    flex: 2;
    min-width: 0;
}

.pt-map-col {
    flex: 1;
    min-width: 180px;
    display: flex;
    flex-direction: column;
    gap: 6px;
    position: sticky;
    top: 60px;
}

.pt-map-label {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #0095d9;
    display: flex;
    align-items: center;
    gap: 5px;
}

.pt-map-wrapper {
    position: relative;
    width: 100%;
    aspect-ratio: 4 / 5;
    background: #c8e6f5;
    border-radius: 8px;
    border: 1.5px solid #9fc8e4;
    overflow: hidden;
    cursor: zoom-in;
}

/* Expand button — bottom-right corner of wrapper */
.pt-map-expand-btn {
    position: absolute;
    bottom: 5px;
    right: 5px;
    width: 22px;
    height: 22px;
    padding: 0;
    border: 1px solid rgba(0, 149, 217, 0.35);
    border-radius: 5px;
    background: rgba(255, 255, 255, 0.82);
    color: #0095d9;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.15s, border-color 0.15s;
    z-index: 2;
    backdrop-filter: blur(2px);
    -webkit-backdrop-filter: blur(2px);
}
.pt-map-expand-btn:hover {
    background: rgba(0, 149, 217, 0.15);
    border-color: #0095d9;
}

/* ================================
   ROUTE MAP — MODAL OVERLAY
   ================================ */

.pt-map-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 16px;
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
}

.pt-map-modal-inner {
    background: #fff;
    border-radius: 16px;
    padding: 16px;
    width: min(560px, 92vw);
    height: min(90vh, 820px);
    box-shadow: 0 24px 80px rgba(0, 0, 0, 0.4);
    display: flex;
    flex-direction: column;
    gap: 10px;
    overflow: hidden;
}

.pt-map-modal-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    flex-shrink: 0;
}

.pt-map-modal-title {
    font-size: 0.68rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.5px;
    color: #0095d9;
    display: flex;
    align-items: center;
}

.pt-map-modal-close {
    width: 28px;
    height: 28px;
    border-radius: 50%;
    border: 1px solid #e0e0e0;
    background: #f5f5f5;
    cursor: pointer;
    font-size: 13px;
    line-height: 1;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #666;
    flex-shrink: 0;
    transition: background 0.15s, color 0.15s;
}
.pt-map-modal-close:hover {
    background: #ffe0e0;
    border-color: #e08080;
    color: #c00;
}

.pt-map-modal-svg-wrap {
    flex: 1;
    min-height: 0;
    width: 100%;
    border-radius: 8px;
    overflow: hidden;
    background: #c8e6f5;
}
.pt-map-modal-svg-wrap svg {
    display: block;
    width: 100%;
    height: 100%;
}

@media (max-width: 680px) {
    .pt-itinerary-layout {
        flex-direction: column;
    }
    .pt-map-col {
        width: 100%;
        min-width: unset;
        position: static;
    }
    .pt-map-wrapper {
        width: 100%;
        aspect-ratio: 16 / 9;
    }
    .pt-map-modal-inner {
        width: 100%;
        height: min(90vh, 520px);
        padding: 12px;
    }
}