/* Cruise Maps Pro - Main Styles */

.cruise-map-container {
    position: relative;
    width: 100%;
    height: 100vh;
    overflow: hidden;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif;
}

.cruise-map {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    z-index: 1;
}

/* Sidebar Styles */
.cruise-map-sidebar {
    position: absolute;
    top: 0;
    right: 0;
    width: 350px;
    height: 100%;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(10px);
    border-left: 1px solid rgba(0, 0, 0, 0.1);
    z-index: 2;
    transform: translateX(100%);
    transition: transform 0.3s ease-in-out;
    overflow-y: auto;
}

.cruise-map-sidebar.active {
    transform: translateX(0);
}

.cruise-map-sidebar-header {
    padding: 20px;
    border-bottom: 1px solid rgba(0, 0, 0, 0.1);
    background: linear-gradient(135deg, #6ec2e2 0%, #764ba2 100%);
    color: white;
}

.cruise-map-sidebar-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 600;
}

.cruise-map-sidebar-content {
    padding: 20px;
}

/* Cruise List Styles */
.cruise-list {
    display: flex;
    flex-direction: column;
    gap: 15px;
}

.cruise-item {
    background: white;
    border-radius: 12px;
    padding: 15px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
    cursor: pointer;
    border: 2px solid transparent;
}

.cruise-item:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
    border-color: #6ec2e2;
}

.cruise-item-image {
    width: 100%;
    height: 120px;
    border-radius: 8px;
    overflow: hidden;
    margin-bottom: 10px;
}

.cruise-item-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cruise-item-info h4 {
    margin: 0 0 8px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    font-family: Montserrat;
}

.cruise-item-meta {
    display: flex;
    gap: 10px;
    font-size: 14px;
    color: #666;
}

.cruise-item-meta .duration {
    background: #e3f2fd;
    color: #1976d2;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
}

.cruise-item-meta .price {
    background: #e8f5e8;
    color: #2e7d32;
    padding: 2px 8px;
    border-radius: 12px;
    font-weight: 500;
}

/* Info Window Styles */
.cruise-info-window {
    padding: 15px;
    min-width: 300px;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, sans-serif;
}

.cruise-info-window h4 {
    margin: 0 0 10px 0;
    font-size: 16px;
    font-weight: 600;
    color: #333;
    font-family: Montserrat;
}

.cruise-info-window p {
    margin: 0 0 15px 0;
    font-size: 14px;
    font-family: Poppins;
    color: #666;
    line-height: 1.4;
}

.cruise-info-image {
    margin-bottom: 10px;
}

.cruise-info-image img {
    width: 100%;
    height: 120px;
    object-fit: cover;
    border-radius: 8px;
    display: block;
}

.cruise-find-more {
    background: linear-gradient(135deg, #6ec2e2 0%, #764ba2 100%);
    color: white;
    border: none;
    padding: 8px 16px;
    border-radius: 6px;
    font-size: 14px;
    font-weight: 500;
    cursor: pointer;
    transition: box-shadow 0.3s ease, background 0.3s ease;
    width: 100%;
    position: relative;
    z-index: 1;
}

.cruise-find-more:hover {
    box-shadow: 0 4px 12px rgba(102, 126, 234, 0.4);
    background: linear-gradient(135deg, #5bb1d1 0%, #6a4190 100%);
}

.cruise-find-more:disabled {
    opacity: 0.7;
    cursor: not-allowed;
    transform: none;
    box-shadow: none;
}

/* Modal Styles */
.cruise-detail-modal {
    display: none;
    position: fixed;
    z-index: 1000;
    left: 0;
    top: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    backdrop-filter: blur(5px);
}

.cruise-detail-modal.active {
    display: block;
}

.cruise-detail-content {
    position: absolute;
    top: 50%;
    right: 0;
    transform: translateY(-50%) translateX(100%);
    width: 400px;
    height: 80vh;
    background: white;
    border-radius: 12px 0 0 12px;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow: hidden;
}

.cruise-detail-modal.active .cruise-detail-content {
    transform: translateY(-50%) translateX(0);
}

.cruise-detail-close {
    position: absolute;
    top: 15px;
    right: 20px;
    font-size: 24px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    z-index: 10;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.cruise-detail-close:hover {
    background: #f44336;
    color: white;
}

.cruise-detail-body {
    height: 100%;
    overflow-y: auto;
}

.cruise-detail-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.cruise-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cruise-detail-info {
    padding: 25px;
}

.cruise-detail-title {
    margin: 0 0 15px 0;
    font-size: 24px;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
}

.cruise-detail-description {
    margin: 0 0 20px 0;
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

.cruise-detail-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 20px;
}

.cruise-detail-duration,
.cruise-detail-price,
.cruise-detail-capacity,
.cruise-detail-address,
.cruise-detail-coordinates {
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.cruise-detail-duration::before {
    content: "\f017";
    font-family: "Font Awesome 6 Pro";
    font-weight: 900;
    margin-right: 10px;
    font-size: 18px;
}

.cruise-detail-price::before {
    content: "\f0d6";
    font-family: "Font Awesome 6 Pro";
    font-weight: 900;
    margin-right: 10px;
    font-size: 18px;
}

.cruise-detail-capacity::before {
    content: "\f0c0";
    font-family: "Font Awesome 6 Pro";
    font-weight: 900;
    margin-right: 10px;
    font-size: 18px;
}

.cruise-detail-address::before {
    content: "\f3c5";
    font-family: "Font Awesome 6 Pro";
    font-weight: 900;
    margin-right: 10px;
    font-size: 18px;
}

.cruise-detail-coordinates::before {
    content: "\f124";
    font-family: "Font Awesome 6 Pro";
    font-weight: 900;
    margin-right: 10px;
    font-size: 18px;
}

/* Cruise Locations List Styles */
.cruise-locations-list {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 20px;
    padding: 20px;
}

.cruise-location-item {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.cruise-location-item:hover {
    transform: translateY(-5px);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.15);
}

.location-image {
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.location-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.cruise-location-item:hover .location-image img {
    transform: scale(1.05);
}

.location-info {
    padding: 20px;
}

.location-info h3 {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: 600;
    color: #333;
}

.location-address {
    margin: 0 0 15px 0;
    font-size: 14px;
    color: #666;
    font-style: italic;
}

.location-description {
    font-size: 15px;
    line-height: 1.6;
    color: #555;
}

/* Responsive Design */
@media (max-width: 768px) {
    .cruise-map-sidebar {
        width: 100%;
        transform: translateY(100%);
    }
    
    .cruise-map-sidebar.active {
        transform: translateY(0);
    }
    
    .cruise-detail-content {
        width: 100%;
        height: 100vh;
        border-radius: 0;
    }
    
    .cruise-locations-list {
        grid-template-columns: 1fr;
        padding: 15px;
    }
}

/* Loading States */
.cruise-map-loading {
    position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    z-index: 10;
    background: rgba(255, 255, 255, 0.9);
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.1);
}

.cruise-map-loading::after {
    content: "";
    display: block;
    width: 30px;
    height: 30px;
    border: 3px solid #f3f3f3;
    border-top: 3px solid #6ec2e2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

/* Custom Google Maps Info Window */
.gm-style .gm-style-iw-c {
    padding: 0 !important;
    border-radius: 12px !important;
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15) !important;
    max-width: 350px !important;
}

.gm-style .gm-style-iw-d {
    overflow: hidden !important;
}

.gm-style .gm-style-iw-t::after {
    background: linear-gradient(45deg, rgba(255,255,255,1) 50%, rgba(255,255,255,0) 51%, rgba(255,255,255,0) 100%) !important;
}

/* Ensure images in Google Maps info windows display properly */
.gm-style .cruise-info-window img {
    max-width: 100% !important;
    height: auto !important;
    display: block !important;
}

.gm-style .cruise-info-image {
    margin-bottom: 10px !important;
}

.gm-style .cruise-info-image img {
    width: 100% !important;
    height: 120px !important;
    object-fit: cover !important;
    border-radius: 8px !important;
    display: block !important;
}

/* Override Google Maps default styling for better image display */
.gm-style .gm-style-iw-c .gm-style-iw-d {
    overflow: visible !important;
}

.gm-style .gm-style-iw-c .gm-style-iw-d .cruise-info-window {
    overflow: hidden !important;
}

/* Cruise Detail Slide-out Sidebar Styles */
.cruise-detail-sidebar {
    position: fixed;
    top: 0;
    right: 0;
    width: 800px;
    max-width: 100vw;
    height: 100vh;
    background: white;
    box-shadow: -5px 0 30px rgba(0, 0, 0, 0.3);
    z-index: 1000;
    transform: translateX(100%);
    transition: transform 0.4s cubic-bezier(0.4, 0, 0.2, 1);
    overflow-y: auto;
    border-radius: 0;
    display: block;
}

.cruise-detail-sidebar.active {
    transform: translateX(0);
}

.cruise-detail-sidebar-content {
    position: relative;
    height: 100%;
    padding: 20px;
    font-family: Poppins;
    font-size: 13px;
}

.cruise-detail-close {
    position: absolute;
    top: 20px;
    right: 20px;
    font-size: 24px;
    font-weight: bold;
    color: #666;
    cursor: pointer;
    z-index: 10;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    transition: all 0.3s ease;
}

.cruise-detail-close:hover {
    background: #293894;
    color: white;
}

.cruise-detail-body {
    height: 100%;
    overflow-y: auto;
    padding: 40px 25px 25px 25px;
}

.cruise-detail-image {
    width: 100%;
    height: 400px;
    border-radius: 10px;
    overflow: hidden;
    margin-bottom: 20px;
}

.cruise-detail-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cruise-detail-info {
    padding: 0;
}

.cruise-detail-title {
    margin: 0 0 15px 0;
    font-size: 24px;
    font-weight: 700;
    color: #333;
    line-height: 1.2;
}

.cruise-detail-description {
    margin: 0 0 20px 0;
    font-size: 16px;
    line-height: 1.6;
    color: #666;
}

.cruise-detail-meta {
    display: flex;
    flex-direction: column;
    gap: 12px;
    padding: 20px;
    background: #f8f9fa;
    border-radius: 8px;
    margin-top: 20px;
}

.cruise-detail-duration,
.cruise-detail-price,
.cruise-detail-capacity,
.cruise-detail-address,
.cruise-detail-coordinates {
    display: flex;
    align-items: center;
    font-size: 16px;
    font-weight: 500;
    color: #333;
}

.cruise-detail-duration::before {
    content: "\f017";
    font-family: "Font Awesome 6 Pro";
    font-weight: 900;
    margin-right: 10px;
    font-size: 18px;
}

.cruise-detail-price::before {
    content: "\f0d6";
    font-family: "Font Awesome 6 Pro";
    font-weight: 900;
    margin-right: 10px;
    font-size: 18px;
}

.cruise-detail-capacity::before {
    content: "\f0c0";
    font-family: "Font Awesome 6 Pro";
    font-weight: 900;
    margin-right: 10px;
    font-size: 18px;
}

.cruise-detail-address::before {
    content: "\f3c5";
    font-family: "Font Awesome 6 Pro";
    font-weight: 900;
    margin-right: 10px;
    font-size: 18px;
}

.cruise-detail-coordinates::before {
    content: "\f124";
    font-family: "Font Awesome 6 Pro";
    font-weight: 900;
    margin-right: 10px;
    font-size: 18px;
}

@media (max-width: 600px) {
    .cruise-detail-sidebar {
        width: 100vw;
        max-width: 100vw;
    }
    .cruise-detail-body {
        padding: 40px 10px 10px 10px;
    }
}

/* Loading States */
.loading-spinner {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    color: #666;
    font-style: italic;
}

.loading-spinner::before {
    content: '';
    width: 20px;
    height: 20px;
    border: 2px solid #f3f3f3;
    border-top: 2px solid #6ec2e2;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 10px;
}

.loading-placeholder {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    height: 200px;
    background: #f8f9fa;
    border: 2px dashed #dee2e6;
    border-radius: 8px;
    color: #666;
    font-style: italic;
}

.loading-placeholder::before {
    content: '🖼️';
    font-size: 24px;
    margin-right: 10px;
}

/* Gallery Carousel Styles */
.cruise-gallery-carousel {
    position: relative;
    width: 100%;
    height: 450px;
    border-radius: 12px;
    overflow: hidden;
    background: #f5f5f5;
}

.carousel-container {
    position: relative;
    width: 100%;
    height: 100%;
}

.carousel-slide {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    opacity: 0;
    transition: opacity 0.3s ease-in-out;
    display: flex;
    align-items: center;
    justify-content: center;
}

.carousel-slide.active {
    opacity: 1;
}

.carousel-slide img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    border-radius: 12px;
}

/* Navigation Arrows */
.carousel-nav {
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    background: rgba(255, 255, 255, 0.9);
    border: none;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    font-size: 18px;
    font-weight: bold;
    color: #333;
    cursor: pointer;
    transition: all 0.3s ease;
    z-index: 20;
    display: flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.2);
}

.carousel-nav:hover {
    background: rgba(255, 255, 255, 1);
    transform: translateY(-50%) scale(1.1);
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.3);
}

.carousel-prev {
    left: 15px;
}

.carousel-next {
    right: 15px;
}

/* Single Image Fallback */
.cruise-detail-image img {
    width: 100%;
    height: 450px;
    object-fit: cover;
    border-radius: 12px;
    display: block;
}

.no-image {
    width: 100%;
    height: 450px;
    background: #f5f5f5;
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #999;
    font-style: italic;
}

/* Responsive Carousel */
@media (max-width: 768px) {
    .cruise-gallery-carousel {
        height: 300px;
    }

    .cruise-detail-image {
        width: 100%;
        height: 300px;
        border-radius: 10px;
        overflow: hidden;
        margin-bottom: 20px;
    }
    
    .carousel-nav {
        width: 35px;
        height: 35px;
        font-size: 16px;
    }
}

@media (max-width: 480px) {
    .cruise-gallery-carousel,
    .cruise-detail-image img,
    .no-image {
        height: 300px;
    }
    
    .carousel-nav {
        width: 30px;
        height: 30px;
        font-size: 14px;
    }
    
    .carousel-prev {
        left: 5px;
    }
    
    .carousel-next {
        right: 5px;
    }

    .cruise-detail-image {
        width: 100%;
        height: 300px;
        border-radius: 10px;
        overflow: hidden;
        margin-bottom: 20px;
    }
}

.sku-bubbles {
    display: flex;
    gap: 8px;
    margin-top: 24px;
    flex-wrap: wrap;
    position: relative;
}
.sku-bubble {
    background: #6ec2e2;
    color: #fff;
    border-radius: 50%;
    width: 36px;
    height: 36px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-weight: bold;
    font-size: 16px;
    box-shadow: 0 2px 6px rgba(102,126,234,0.15);
    cursor: pointer;
    transition: background 0.2s;
}
.sku-bubble:hover {
    background: #293894;
}
.sku-tooltip {
    position: absolute;
    background: #fff;
    color: #222;
    border: 1px solid #ddd;
    border-radius: 8px;
    box-shadow: 0 4px 16px rgba(0,0,0,0.12);
    padding: 12px 16px;
    min-width: 180px;
    z-index: 100;
    top: 48px;
    left: 0;
    font-size: 14px;
}
.sku-tooltip ul {
    margin: 0;
    padding: 0;
    list-style: none;
}
.sku-tooltip li {
    margin-bottom: 6px;
}
.sku-tooltip li:last-child {
    margin-bottom: 0;
}
.sku-tooltip a {
    color: #6ec2e2;
    text-decoration: none;
}
.sku-tooltip a:hover {
    text-decoration: underline;
}

.cruise-detail-sidebar, .cruise-detail-sidebar-content {
    scrollbar-width: thin;
    scrollbar-color: #5ea2d0 #e3f6ff;
}

.cruise-detail-sidebar::-webkit-scrollbar, .cruise-detail-sidebar-content::-webkit-scrollbar {
    width: 10px;
    background: #e3f6ff;
}

.cruise-detail-sidebar::-webkit-scrollbar-thumb, .cruise-detail-sidebar-content::-webkit-scrollbar-thumb {
    border-radius: 8px;
    background: linear-gradient(135deg, #5ea2d0 0%, #293894 100%);
}

.cruise-detail-sidebar::-webkit-scrollbar-track, .cruise-detail-sidebar-content::-webkit-scrollbar-track {
    background: #e3f6ff;
    border-radius: 8px;
}
