/* ============================================
   PAGE PORT - Styles spécifiques
   ============================================ */

.port-show-page {
    overflow-x: clip;
}

/* Navigation - Responsive visibility */
.nav-mobile-only {
    display: none !important;
}

.nav-desktop-only {
    display: inline-flex !important;
}

@media (max-width: 768px) {
    .nav-mobile-only {
        display: inline-flex !important;
    }

    .nav-desktop-only {
        display: none !important;
    }
}

/* Hero Port */
.port-hero {
    position: relative;
    width: 100%;
    height: 500px;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-top: -2rem;
    margin-bottom: 0;
}

/* Page port show - hero et position user/share */
.port-show-page .port-hero {
    margin-top: calc(-2rem - 10px);
}

body:has(.port-show-page) .user-account-bar {
    top: 211px !important;
}

body:has(.port-show-page) .user-account-bar.sticky-scrolled {
    top: 20px !important;
}

body:has(.port-show-page) .share-bar {
    top: 46px !important;
}

body:has(.port-show-page) .share-bar.sticky-scrolled {
    top: -145px !important;
}

.port-hero-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    bottom: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.4) 0%,
        rgba(0, 0, 0, 0.6) 100%
    );
}

.port-hero-content {
    position: relative;
    z-index: 2;
    text-align: center;
    color: white;
    padding: 2rem;
    max-width: 1200px;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.8);
}

.port-hero-content h1 {
    font-size: 3.5rem;
    margin: 0 0 1rem 0;
    font-weight: 700;
    color: white;
    text-shadow:
        2px 2px 4px rgba(0, 0, 0, 0.8),
        0 0 20px rgba(0, 0, 0, 0.5);
}

.port-country {
    font-size: 1.5rem;
    margin: 0;
    font-weight: 500;
    color: white;
    text-shadow:
        1px 1px 3px rgba(0, 0, 0, 0.8),
        0 0 15px rgba(0, 0, 0, 0.5);
}

/* Desktop adjustments for port page */
@media (min-width: 769px) {
    .port-hero {
        margin-top: calc(-2rem + 45px);
    }

    .port-show-page ~ .user-account-bar,
    body:has(.port-show-page) .user-account-bar {
        top: 202px;
    }

    .port-show-page ~ .share-bar,
    body:has(.port-show-page) .share-bar {
        top: 37px;
    }
}

@media (max-width: 768px) {
    .port-hero {
        height: 350px;
    }

    .port-hero-content h1 {
        font-size: 2.5rem;
    }

    .port-country {
        font-size: 1.2rem;
    }

    .port-show-page .page-header-row {
        flex-direction: column;
        gap: 0;
        margin-top: 15px;
    }

    .port-show-page .page-header-row > div:first-child {
        margin-bottom: 0;
    }

    .port-show-page .page-header-row .breadcrumb {
        margin-bottom: 0;
        padding: 0;
        flex-wrap: nowrap;
        max-width: 100%;
    }

    .port-show-page .breadcrumb-text a,
    .port-show-page .breadcrumb-current {
        padding: 0.2rem 0.3rem;
        font-size: 0.75rem;
    }

    .port-show-page .breadcrumb-current {
        white-space: nowrap;
    }

    .port-show-page .breadcrumb-separator {
        padding: 0 0.2rem;
        font-size: 0.75rem;
    }

    .port-show-page .page-header-actions {
        margin-top: 5px;
        margin-bottom: 15px;
        justify-content: flex-end;
        width: 100%;
    }

    .port-show-page .page-header-actions .favorite-button,
    .port-show-page .page-header-actions .like-button,
    .port-show-page .page-header-actions .share-button {
        height: 36px;
        padding: 0 12px;
        font-size: 12px;
    }

    .port-show-page .port-hero {
        margin-top: -8px;
    }

    .port-show-page .page-navigation {
        border-radius: 0;
    }

    .port-show-page ~ .user-account-bar,
    body:has(.port-show-page) .user-account-bar {
        top: 205px;
    }

    .port-show-page ~ .user-account-bar.sticky-scrolled,
    body:has(.port-show-page) .user-account-bar.sticky-scrolled {
        top: 8px;
    }

    .port-show-page ~ .share-bar,
    body:has(.port-show-page) .share-bar {
        top: 48px;
    }

    .port-show-page ~ .share-bar.sticky-scrolled,
    body:has(.port-show-page) .share-bar.sticky-scrolled {
        top: -145px;
    }

    .port-show-page .section-footer .btn-lg {
        font-size: 0.9rem;
        padding: 0.6rem 1rem;
    }

    /* Réduction des espaces entre sections */
    .port-show-page .port-access-section,
    .port-show-page .city-access-section {
        margin: 1.5rem 0;
        padding: 1.25rem;
    }

    .port-show-page .port-access-section h2,
    .port-show-page .city-access-section h2 {
        font-size: 1.4rem;
        margin-bottom: 1rem;
    }

    .port-show-page .highlights-section {
        margin: 1.5rem 0;
        padding: 2rem 1rem;
    }

    .port-show-page .highlights-section > h2 {
        margin-bottom: 1.5rem;
    }

    .port-show-page .upcoming-cruises-section {
        margin: 1.5rem 0;
        padding: 1.5rem 0;
    }

    .port-show-page .upcoming-cruises-section .section-header {
        margin-bottom: 1.5rem;
    }

    .port-show-page .upcoming-cruises-section .section-header h2 {
        font-size: 1.6rem;
    }

    .port-show-page .activities-section {
        margin-left: -1rem;
        margin-right: -1rem;
        padding-left: 1rem;
        padding-right: 1rem;
        border-radius: 0;
    }

    /* Ship Calendar mobile */
    .port-show-page .ship-calendar {
        margin: 1.5rem -1rem;
        padding: 1rem;
        border-radius: 0;
    }

    .port-show-page .ship-calendar h2 {
        font-size: 1.2rem;
        margin-bottom: 1rem;
    }

    .port-show-page .calendar-legend {
        gap: 0.75rem;
        margin-bottom: 1rem;
        font-size: 0.8rem;
    }

    .port-show-page .legend-color {
        width: 16px;
        height: 16px;
    }

    .port-show-page .calendar-tabs {
        display: flex;
        overflow-x: auto;
        flex-wrap: nowrap;
        gap: 0.5rem;
        margin-bottom: 1rem;
        padding-bottom: 0.5rem;
        -webkit-overflow-scrolling: touch;
    }

    .port-show-page .calendar-tab {
        flex-shrink: 0;
        padding: 0.5rem 0.75rem;
        font-size: 0.8rem;
    }

    .port-show-page .calendar-days {
        grid-template-columns: repeat(4, 1fr);
        gap: 0.5rem;
    }

    .port-show-page .calendar-day {
        padding: 0.5rem;
        border-radius: 6px;
    }

    .port-show-page .calendar-day .day-number {
        font-size: 1rem;
        font-weight: 700;
    }

    .port-show-page .calendar-day .day-name {
        font-size: 0.6rem;
    }

    .port-show-page .calendar-day .ship-count {
        font-size: 0.7rem;
    }
}

@media (max-width: 480px) {
    .port-hero {
        height: 300px;
    }

    .port-hero-content h1 {
        font-size: 2rem;
    }

    .port-country {
        font-size: 1rem;
    }
}

/* Sections Accès Port et Ville */
.port-access-section {
    background: #f0f9ff;
    border-left: 4px solid #0077BE;
    border-radius: 8px;
    padding: 2rem;
    margin: 3rem 0;
}

.port-access-section h2 {
    margin: 0 0 1.5rem 0;
    color: #2d3748;
    font-size: 1.8rem;
}

.port-access-content {
    color: #4a5568;
    line-height: 1.8;
}

.port-access-content p {
    margin-bottom: 1rem;
}

.port-access-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.port-access-content li {
    margin-bottom: 0.5rem;
}

.port-access-content strong {
    color: #2d3748;
}

.city-access-section {
    background: #f8f9fa;
    border-left: 4px solid #667eea;
    border-radius: 8px;
    padding: 2rem;
    margin: 3rem 0;
}

.city-access-section h2 {
    margin: 0 0 1.5rem 0;
    color: #2d3748;
    font-size: 1.8rem;
}

.city-access-content {
    color: #4a5568;
    line-height: 1.8;
}

.city-access-content p {
    margin-bottom: 1rem;
}

.city-access-content ul {
    margin: 1rem 0;
    padding-left: 1.5rem;
}

.city-access-content li {
    margin-bottom: 0.5rem;
}

.city-access-content strong {
    color: #2d3748;
}

/* Section incontournables - Style Art Déco années 50-60 */
.highlights-section {
    background: var(--cream);
    padding: 4rem 2rem;
    margin: 3rem 0;
    position: relative;
}

/* Motif géométrique art déco en arrière-plan */
.highlights-section::before {
    content: '';
    position: absolute;
    inset: 0;
    background-image:
        radial-gradient(circle at 25% 25%, var(--gold) 1px, transparent 1px),
        radial-gradient(circle at 75% 75%, var(--gold) 1px, transparent 1px);
    background-size: 40px 40px;
    opacity: 0.15;
    pointer-events: none;
}

.highlights-section > h2 {
    position: relative;
    z-index: 1;
    margin: 0 0 3rem 0;
    color: var(--dark-navy);
    font-size: 2.2rem;
    font-family: var(--font-display);
    font-weight: 900;
    text-align: center;
    text-transform: uppercase;
    letter-spacing: 0.1em;
}

.highlights-section > h2::after {
    content: '';
    display: block;
    width: 120px;
    height: 4px;
    background: linear-gradient(90deg, var(--gold), var(--deep-red), var(--azur-blue));
    margin: 1rem auto 0;
}

/* Grille des cartes highlights */
.highlights-grid {
    position: relative;
    z-index: 1;
}

.highlights-grid > div {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 2rem;
}

/* Cartes Art Déco */
.highlights-grid section {
    background: white;
    padding: 0;
    position: relative;
    overflow: hidden;
    border: 3px solid var(--dark-navy);
    box-shadow: 6px 6px 0px var(--dark-navy);
    transition: all 0.3s ease;
}

.highlights-grid section:hover {
    transform: translate(-4px, -4px);
    box-shadow: 10px 10px 0px var(--dark-navy);
}

/* En-tête coloré de chaque carte */
.highlights-grid section::before {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 70px;
    z-index: 0;
}

/* Couleurs des en-têtes par catégorie - palette vintage */
.highlights-grid section:nth-child(1)::before { background: linear-gradient(135deg, #C9A961 0%, #D4A574 100%); }
.highlights-grid section:nth-child(2)::before { background: linear-gradient(135deg, #8B1E3F 0%, #A52A4A 100%); }
.highlights-grid section:nth-child(3)::before { background: linear-gradient(135deg, #D4A574 0%, #C9A961 100%); }
.highlights-grid section:nth-child(4)::before { background: linear-gradient(135deg, #0077BE 0%, #003A70 100%); }
.highlights-grid section:nth-child(5)::before { background: linear-gradient(135deg, #A7C4BC 0%, #7BA396 100%); }
.highlights-grid section:nth-child(6)::before { background: linear-gradient(135deg, #1A2332 0%, #2D3A4D 100%); }

/* Icône emoji flottante */
.highlights-grid section::after {
    position: absolute;
    top: 12px;
    right: 15px;
    font-size: 2.5rem;
    z-index: 2;
    filter: drop-shadow(2px 2px 2px rgba(0,0,0,0.3));
}

.highlights-grid section:nth-child(1)::after { content: '🍕'; }
.highlights-grid section:nth-child(2)::after { content: '🍷'; }
.highlights-grid section:nth-child(3)::after { content: '🎁'; }
.highlights-grid section:nth-child(4)::after { content: '🏛️'; }
.highlights-grid section:nth-child(5)::after { content: '📸'; }
.highlights-grid section:nth-child(6)::after { content: '✨'; }

/* Titres h3 dans les cartes */
.highlights-grid h3 {
    position: relative;
    z-index: 1;
    color: white;
    font-size: 1rem;
    margin: 0;
    padding: 1.25rem 1.5rem;
    padding-right: 4rem;
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1.3;
    min-height: 70px;
    display: flex;
    align-items: center;
    text-shadow: 1px 1px 2px rgba(0,0,0,0.3);
}

/* Contenu de la carte */
.highlights-grid section > p,
.highlights-grid section > h4 {
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.highlights-grid section > p:first-of-type {
    margin-top: 1.25rem;
}

.highlights-grid section > p:last-child,
.highlights-grid section > h4:last-child + p {
    padding-bottom: 1.5rem;
}

/* Sous-titres h4 */
.highlights-grid h4 {
    color: var(--dark-navy);
    font-size: 0.95rem;
    margin: 1.25rem 0 0.25rem 0;
    font-family: var(--font-display);
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
    position: relative;
}

.highlights-grid h4::before {
    content: '◆';
    color: var(--gold);
    margin-right: 0.5rem;
    font-size: 0.7rem;
}

.highlights-grid section > h4:first-of-type {
    margin-top: 1.25rem;
}

/* Paragraphes */
.highlights-grid p {
    margin: 0 0 0.6rem 0;
    color: #4a5568;
    font-size: 0.9rem;
    line-height: 1.55;
    padding-left: 1.5rem;
    padding-right: 1.5rem;
}

.highlights-grid p:last-child {
    margin-bottom: 0;
    padding-bottom: 1.5rem;
}

/* Style des éléments strong */
.highlights-grid strong {
    color: var(--dark-navy);
    font-weight: 600;
}

/* Listes */
.highlights-grid ul {
    margin: 0.5rem 0;
    padding-left: 2.75rem;
    padding-right: 1.5rem;
}

.highlights-grid li {
    margin-bottom: 0.4rem;
    color: #4a5568;
    font-size: 0.9rem;
    line-height: 1.5;
}

.highlights-grid li:last-child {
    margin-bottom: 0;
}

/* Coins décoratifs art déco */
.highlights-grid section > h3::before,
.highlights-grid section > h3::after {
    content: '';
    position: absolute;
    width: 20px;
    height: 20px;
    border: 2px solid rgba(255,255,255,0.4);
}

.highlights-grid section > h3::before {
    top: 8px;
    left: 8px;
    border-right: none;
    border-bottom: none;
}

.highlights-grid section > h3::after {
    bottom: 8px;
    left: 8px;
    border-right: none;
    border-top: none;
}

/* Responsive highlights */
@media (max-width: 1024px) {
    .highlights-grid > div {
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
}

@media (max-width: 768px) {
    .highlights-section {
        padding: 3rem 1rem;
    }

    .highlights-section > h2 {
        font-size: 1.6rem;
        letter-spacing: 0.05em;
    }

    .highlights-grid > div {
        display: grid;
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .highlights-grid section {
        box-shadow: 4px 4px 0px var(--dark-navy);
    }

    .highlights-grid section:hover {
        transform: translate(-2px, -2px);
        box-shadow: 6px 6px 0px var(--dark-navy);
    }

    .highlights-grid h3 {
        font-size: 0.8rem;
        padding: 1rem 1.25rem;
        padding-right: 3.5rem;
        min-height: 60px;
    }

    .highlights-grid section::before {
        height: 60px;
    }

    .highlights-grid section::after {
        font-size: 2rem;
        top: 10px;
        right: 12px;
    }

    .highlights-grid section > p {
        padding: 0 1rem;
        margin: 0 0 0.5rem 0;
        font-size: 0.85rem;
        font-weight: 400;
    }

    .highlights-grid section > p:first-of-type {
        margin-top: 1rem;
    }

    .highlights-grid section > p:last-child {
        padding-bottom: 1rem;
        margin-bottom: 0;
    }
}

/* Section croisières au départ du port */
.upcoming-cruises-section {
    margin: 4rem 0;
    padding: 3rem 0;
    border-top: 3px solid var(--gold);
}

.upcoming-cruises-section .section-header {
    text-align: center;
    margin-bottom: 3rem;
}

.upcoming-cruises-section .section-header h2 {
    font-size: 2.5rem;
    margin-bottom: 1rem;
    color: var(--dark-navy);
    font-family: var(--font-display);
    text-align: center;
    display: block;
    position: static;
    left: auto;
    transform: none;
    padding-bottom: 10px;
    border-bottom: 4px solid;
    border-image: linear-gradient(90deg, var(--gold), var(--deep-red), var(--azur-blue)) 1;
    width: fit-content;
    margin-left: auto;
    margin-right: auto;
}

.upcoming-cruises-section .section-intro {
    font-size: 1.1rem;
    color: #4a5568;
    max-width: 600px;
    margin: 0 auto;
    text-align: center;
}

.cruises-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 2rem;
    margin-bottom: 3rem;
}

.cruise-card {
    background: white;
    border: 3px solid var(--dark-navy);
    border-radius: 0;
    overflow: hidden;
    transition: all 0.3s ease;
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.1);
}

.cruise-card:hover {
    transform: translate(-4px, -4px);
    box-shadow: 10px 10px 0px rgba(0, 0, 0, 0.15);
}

.cruise-card-header {
    height: 200px;
    background: #f7fafc;
    border-bottom: 3px solid var(--dark-navy);
    display: flex;
    align-items: center;
    justify-content: center;
    overflow: hidden;
}

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

.cruise-ship-placeholder {
    font-size: 64px;
    color: #cbd5e0;
}

.cruise-card-body {
    padding: 1.5rem;
}

.cruise-meta {
    margin-bottom: 0.75rem;
}

.cruise-company {
    display: inline-block;
    padding: 0.25rem 0.75rem;
    background: var(--gold);
    color: var(--dark-navy);
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    font-family: var(--font-display);
}

.cruise-title {
    margin: 0 0 0.5rem 0;
    font-size: 1.25rem;
    line-height: 1.3;
}

.cruise-title a {
    color: var(--dark-navy);
    text-decoration: none;
    font-weight: 700;
    font-family: var(--font-display);
}

.cruise-title a:hover {
    color: var(--gold);
}

.cruise-ship {
    color: #4a5568;
    font-size: 1rem;
    margin: 0 0 1rem 0;
    font-weight: 500;
}

.cruise-details {
    display: flex;
    gap: 1.5rem;
    margin-top: 1rem;
    padding-top: 1rem;
    border-top: 2px solid #e2e8f0;
}

.cruise-date,
.cruise-duration {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    color: var(--dark-navy);
    font-size: 0.95rem;
    font-weight: 600;
}

.cruise-date i,
.cruise-duration i {
    font-size: 1.1rem;
    color: var(--gold);
}

@media (max-width: 768px) {
    .cruises-grid {
        grid-template-columns: 1fr;
        gap: 1.5rem;
    }

    .upcoming-cruises-section .section-header h2 {
        font-size: 2rem;
    }

    .cruise-details {
        flex-direction: column;
        gap: 0.75rem;
    }
}

/* Statistiques des activités */
.activities-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.5rem;
    margin: 2rem 0;
    padding: 1.5rem 0;
}

.stat-card {
    display: flex;
    align-items: center;
    gap: 1rem;
    padding: 1.5rem;
    background: white;
    border: 3px solid var(--dark-navy);
    box-shadow: 6px 6px 0px rgba(0, 0, 0, 0.1);
    transition: all 0.3s ease;
}

.stat-card:hover {
    transform: translate(-2px, -2px);
    box-shadow: 8px 8px 0px rgba(0, 0, 0, 0.15);
}

.stat-icon {
    font-size: 2.5rem;
    line-height: 1;
}

.stat-content {
    flex: 1;
}

.stat-number {
    font-size: 2rem;
    font-weight: 700;
    color: var(--dark-navy);
    font-family: var(--font-display);
    line-height: 1;
    margin-bottom: 0.25rem;
}

.stat-label {
    font-size: 0.9rem;
    color: #4a5568;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
}

.stat-verified {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    margin-top: 6px;
    padding: 3px 10px;
    background: linear-gradient(135deg, #28a745 0%, #20c997 100%);
    color: white;
    font-size: 0.75rem;
    font-weight: 600;
    border-radius: 12px;
}

.stat-verified i {
    font-size: 0.7rem;
}

@media (max-width: 768px) {
    .activities-stats {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .stat-card {
        padding: 1.25rem;
    }

    .stat-icon {
        font-size: 2rem;
    }

    .stat-number {
        font-size: 1.75rem;
    }

    .stat-label {
        font-size: 0.85rem;
    }
}