/* Destinations Container - works with base template */
.destinations-container {
    max-width: 100%;
    padding: 20px;
}

/* Page Header */
.page-header {
    text-align: center;
    margin-bottom: 40px;
}

.page-header h1 {
    font-size: 2.5rem;
    margin-bottom: 10px;
    color: #09538b;
}

.page-header p {
    font-size: 1.25rem;
    color: #666;
}

/* Breadcrumbs - Minimal, clean design */
.breadcrumbs {
    margin: 0 0 30px 0;
    padding: 0 0 15px 0;
    font-size: 14px;
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    border-bottom: 1px solid #e9ecef;
}

.breadcrumbs a {
    color: #6c757d;
    text-decoration: none;
    font-weight: 400;
    transition: color 0.2s ease;
    position: relative;
}

.breadcrumbs a:hover {
    color: #0066cc;
}

/* Add subtle underline on hover */
.breadcrumbs a::after {
    content: '';
    position: absolute;
    bottom: -2px;
    left: 0;
    width: 0;
    height: 1px;
    background: #0066cc;
    transition: width 0.3s ease;
}

.breadcrumbs a:hover::after {
    width: 100%;
}

/* Style separator - make it minimal */
.breadcrumbs span:not(:last-child) {
    margin: 0 10px;
    color: #dee2e6;
}

/* Current page - just bold, no background */
.breadcrumbs span:last-child {
    color: #09538b;
    font-weight: 600;
}

/* Destination Grid */
.destination-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, 300px);
    gap: 20px;
    margin: 20px 0;
    justify-content: center;
}

/* Destination Card Link */
.destination-card-link {
    text-decoration: none;
    color: inherit;
    display: block;
    width: 100%;
}

/* Destination Cards - restored and improved */
.destination-card {
    position: relative;
    height: 250px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.1);
    background-color: #f8f9fa;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
}

/* Default background image for cards without custom images */
.destination-card::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/static/images/cruise-bros-logo.png');
    background-size: 60%;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
    z-index: 1;
}

/* When a custom image is set via inline style, it takes precedence */
.destination-card[style*="background-image"] {
    background-size: cover;
    background-position: center;
    background-color: transparent;
}

.destination-card[style*="background-image"]::before {
    display: none;
}

.destination-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 12px rgba(0, 0, 0, 0.15);
}

/* Card Overlay */
.card-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: linear-gradient(to bottom, rgba(0,0,0,0.3) 0%, rgba(0,0,0,0.6) 100%);
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: background 0.3s ease;
}

/* Remove overlay on hover */
.destination-card:hover .card-overlay {
    background: transparent;
}

/* Card Content */
.card-content {
    padding: 20px;
    color: white;
    width: 100%;
    z-index: 3;
    text-align: center;
}

.card-title {
    font-size: 24px;
    font-weight: bold;
    margin: 0;
    text-shadow: 2px 2px 4px rgba(0,0,0,0.7);
    text-align: center;
    color: whitesmoke;
    letter-spacing: 1px;
}

.card-subtitle {
    font-size: 16px;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    opacity: 0.9;
    text-align: center;
}

.card-description {
    font-size: 14px;
    line-height: 1.4;
    margin-bottom: 15px;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.7);
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.card-link {
    display: inline-block;
    padding: 10px 20px;
    background: rgba(255, 255, 255, 0.9);
    color: #0066cc;
    text-decoration: none;
    border-radius: 4px;
    font-weight: 500;
    transition: background 0.3s ease;
}

.card-link:hover {
    background: rgba(255, 255, 255, 1);
}

/* Hero Section */
.destination-hero {
    position: relative;
    height: 400px;
    margin: -20px -2.5% 30px -2.5%;
    overflow: hidden;
    background-color: #f8f9fa;
}

/* Default hero background */
.destination-hero::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-image: url('/static/images/cruise-bros-logo.png');
    background-size: 30%;
    background-position: center;
    background-repeat: no-repeat;
    opacity: 0.15;
    z-index: 1;
}

/* When a custom image is set via inline style */
.destination-hero[style*="background-image"] {
    background-size: cover;
    background-position: center;
}

.destination-hero[style*="background-image"]::before {
    display: none;
}

.hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
}

.hero-title {
    font-size: 48px;
    font-weight: bold;
    color: white;
    text-align: center;
    text-shadow: 3px 3px 6px rgba(0,0,0,0.7);
    z-index: 3;
}

/* Destination Layout */
.destination-layout {
    max-width: 1000px;
    margin: 30px auto;
    padding: 0 20px;
}

.destination-main h1 {
    font-size: 2.5rem;
    margin-bottom: 30px;
    color: #09538b;
}

/* Destination Description Section */
.destination-description-section {
    margin: 30px auto;
}

.description-content {
    line-height: 1.8;
    color: #6c757d;
    font-size: 1.1rem;
}

.description-content p {
    margin-bottom: 1.2em;
}

/* Destination Full Content (detail page) */
.destination-full-content {
    line-height: 1.8;
    color: #6c757d;
    font-size: 1.1rem;
}

.destination-full-content p {
    margin-bottom: 1.2em;
}

.destination-full-content h2,
.destination-full-content h3 {
    color: #09538b;
    margin-top: 1.5em;
    margin-bottom: 0.8em;
}



/* Buttons */
.btn {
    display: inline-block;
    padding: 10px 20px;
    text-decoration: none;
    border-radius: 4px;
    transition: background 0.3s ease;
}

.btn-primary {
    background: #0066cc;
    color: white;
}

.btn-primary:hover {
    background: #0052a3;
}

.btn-secondary {
    background: #6c757d;
    color: white;
}

.btn-secondary:hover {
    background: #545b62;
}

/* Mobile Responsiveness */
@media (max-width: 768px) {
    .destination-grid {
        grid-template-columns: 1fr;
    }
    
    .destination-card {
        height: 200px;
    }
    
    .card-title {
        font-size: 20px;
    }
    
    .destination-hero {
        height: 300px;
        margin: -20px -5% 30px -5%;
    }
    
    .hero-title {
        font-size: 36px;
    }
    
    .destination-layout {
        padding: 0 15px;
    }
}

/* Extra small devices */
@media (max-width: 576px) {
    .page-header h1 {
        font-size: 2rem;
    }
    
    .page-header p {
        font-size: 1rem;
    }
    
    .destination-card {
        height: 180px;
    }
    
    .card-title {
        font-size: 18px;
    }
    
    .card-description {
        font-size: 12px;
    }
    
    .hero-title {
        font-size: 28px;
    }
}