/* Cruise cards horizontal layout */

.cruise-cards-list {
    display: flex;
    flex-direction: row;
    gap: 24px;
    overflow-x: auto;
    max-width: 100%;
    width: 100%;
    min-width: 0;
    margin-bottom: 32px;
    padding-bottom: 8px;
    -webkit-overflow-scrolling: touch;
}

.cruise-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 8px #0001;
    min-width: 0;
    max-width: 360px;
    width: min(340px, 85vw);
    padding: 24px 32px;
    transition: box-shadow 0.2s;
    margin-bottom: 0;
    flex: 0 0 min(340px, calc(100vw - 64px));
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    box-sizing: border-box;
}
.cruise-card:hover {
    box-shadow: 0 4px 16px #0002;
}
.cruise-card > div {
    margin-bottom: 10px;
}
.cruise-card > div:last-child {
    margin-bottom: 0;
}
/* Información Importante Card Styles */
.info-card {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 12px rgba(0,0,0,0.08);
    padding: 32px 36px 28px 36px;
    max-width: none;
    margin: 0;
}
.info-card h2 {
    font-size: 1.5rem;
    font-weight: 600;
    margin-bottom: 24px;
    color: #222;
}
/* Cruise page specific styles */

/* Layout */
.container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 20px;
}

section {
    padding: 60px 0;
}

.hero-section {
    background-image: linear-gradient(rgba(0, 0, 0, 0.5), rgba(0, 0, 0, 0.5)), url('../images/shore_tours.jpeg');
    background-size: cover;
    background-position: center;
    height: 100vh;
    width: 100%;
    max-width: 100%;
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    text-align: center;
    color: white;
    position: relative;
}

.hero-content {
    position: relative;
    z-index: 2;
    padding: 0 1.25rem;
    max-width: 100%;
    box-sizing: border-box;
}

.hero-content h1 {
    font-size: 3.5rem;
    margin-bottom: 1rem;
    font-weight: 800;
    text-shadow: 2px 2px 4px rgba(0, 0, 0, 0.3);
    overflow-wrap: anywhere;
}

.hero-content p {
    font-size: 1.5rem;
    max-width: 800px;
    margin: 0 auto;
    text-shadow: 1px 1px 3px rgba(0, 0, 0, 0.3);
    overflow-wrap: anywhere;
}

/* Cruise Schedule Section */
.cruise-schedule {
    background-color: var(--light-bg);
}

.schedule-filters {
    display: flex;
    gap: 15px;
    margin-bottom: 30px;
    flex-wrap: wrap;
}

.filter-btn {
    padding: 10px 20px;
    border: 2px solid var(--primary);
    border-radius: var(--border-radius);
    background: transparent;
    color: var(--primary);
    cursor: pointer;
    transition: var(--transition);
    font-weight: 500;
}

.filter-btn.active,
.filter-btn:hover {
    background: var(--primary);
    color: var(--white);
}

.cruise-calendar {
    display: flex;
    flex-direction: column;
    gap: 20px;
}

.cruise-entry {
    background: var(--white);
    border-radius: var(--border-radius);
    padding: 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    box-shadow: var(--shadow);
}

/* Packages Section */
.cruise-packages {
    padding: 5rem 0;
}

.packages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(min(100%, 300px), 1fr));
    gap: 30px;
    margin-top: 40px;
}

.package-card {
    background: var(--white);
    border-radius: var(--border-radius);
    overflow: hidden;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.package-card:hover {
    transform: translateY(-5px);
}

.package-image {
    position: relative;
    height: 200px;
    overflow: hidden;
}

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

.time-tag {
    position: absolute;
    bottom: 15px;
    right: 15px;
    background: rgba(0, 0, 0, 0.7);
    color: var(--white);
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.9rem;
}

.package-content {
    padding: 1.5rem;
}

.package-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
}

.package-features li {
    display: flex;
    align-items: center;
    gap: 0.5rem;
    margin-bottom: 0.5rem;
    color: #666;
}

.package-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-top: 1.5rem;
    padding-top: 1rem;
    border-top: 1px solid #eee;
}

.price {
    display: flex;
    flex-direction: column;
}

.amount {
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--primary);
}

.per-person {
    font-size: 0.9rem;
    color: #666;
}

.book-btn {
    background: var(--primary);
    color: white;
    border: none;
    padding: 0.75rem 1.5rem;
    border-radius: 25px;
    cursor: pointer;
    transition: all 0.3s ease;
}

.book-btn:hover {
    transform: translateY(-2px);
    box-shadow: 0 4px 15px rgba(10, 77, 104, 0.3);
}

/* Group Rates Section */
.group-rates {
    padding: 5rem 0;
    background: #f8f9fa;
}

.rates-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
}

.rates-and-info {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 2rem;
    margin-top: 2rem;
}

.rate-card {
    background: white;
    border-radius: 12px;
    padding: 2rem;
    text-align: center;
    box-shadow: 0 4px 20px rgba(0,0,0,0.1);
    transition: transform 0.3s ease;
}

.rate-card:hover {
    transform: translateY(-5px);
}

.rate-header i {
    font-size: 2.5rem;
    color: var(--primary);
    margin-bottom: 1rem;
}

.discount {
    background: linear-gradient(135deg, #ff6b35, #ff8c65);
    color: white;
    padding: 0.5rem 1rem;
    border-radius: 20px;
    display: inline-block;
    margin: 1rem 0;
    font-weight: 600;
}

.rate-features {
    list-style: none;
    padding: 0;
    margin: 1rem 0;
    text-align: left;
}

.rate-features li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
}

.rate-features li::before {
    content: '✓';
    position: absolute;
    left: 0;
    color: var(--primary);
}

/* Availability Section */
.real-time-availability {
    padding: 5rem 0;
}

.availability-calendar {
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 10px rgba(0, 0, 0, 0.1);
    margin: 20px 0;
    padding: 20px;
}

.calendar-header {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    text-align: center;
    font-weight: bold;
    margin-bottom: 10px;
}

.calendar-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 5px;
}

.calendar-day {
    aspect-ratio: 1;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    padding: 5px;
    position: relative;
    cursor: pointer;
    transition: transform 0.2s;
}

.calendar-day:hover {
    transform: scale(1.05);
}

.calendar-day.empty {
    background: #f5f5f5;
    cursor: default;
}

.calendar-day .date-number {
    position: absolute;
    top: 5px;
    left: 5px;
    font-size: 14px;
}

.cruise-indicator {
    position: absolute;
    bottom: 5px;
    right: 5px;
    background: #007bff;
    color: white;
    border-radius: 50%;
    width: 20px;
    height: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
}

.calendar-day.high-availability {
    background: #e8f5e9;
}

.calendar-day.low-availability {
    background: #fff3e0;
}

.cruise-details {
    background: white;
    border-radius: 8px;
    box-shadow: 0 4px 15px rgba(0, 0, 0, 0.15);
    margin-top: 20px;
    padding: 20px;
    position: relative;
}

.details-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 15px;
    padding-bottom: 10px;
    border-bottom: 1px solid #e0e0e0;
}

.close-details {
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    padding: 0 5px;
}

.cruise-detail-item {
    padding: 15px 0;
    border-bottom: 1px solid #f0f0f0;
}

.cruise-detail-item:last-child {
    border-bottom: none;
}

.cruise-detail-item h4 {
    margin: 0 0 10px 0;
    color: #333;
}

.availability-info {
    margin-top: 10px;
    color: #666;
}

.availability-number {
    font-weight: bold;
    color: #007bff;
    margin-right: 5px;
}

/* Responsive Design */
@media (max-width: 768px) {
    .hero-content h1 {
        font-size: 1.85rem;
    }

    .hero-content p {
        font-size: 1.05rem;
    }

    .rates-and-info {
        grid-template-columns: 1fr;
    }

    .info-card {
        padding: 24px 20px;
    }

    .cruise-card {
        padding: 20px;
    }

    .cruise-entry {
        flex-direction: column;
        text-align: center;
        gap: 15px;
    }

    .filter-btn {
        width: 100%;
    }

    .calendar-day {
        font-size: 12px;
    }
    
    .cruise-indicator {
        width: 16px;
        height: 16px;
        font-size: 10px;
    }
}

/* Página cruceros / shore: catálogo + arribos laterales */
body.cruceros-page .shore-page {
    padding: calc(28px + 80px) 0 64px;
    background: var(--light-bg);
}

.shore-layout {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(280px, 320px);
    gap: 28px 32px;
    align-items: start;
}

.shore-layout__main {
    min-width: 0;
}

.shore-layout__aside {
    position: sticky;
    top: 100px;
}

.shore-excursions__head {
    text-align: left;
    max-width: none;
    margin: 0 0 22px;
}

.shore-excursions__head h1 {
    margin: 0 0 10px;
    font-size: clamp(1.5rem, 2.5vw, 2rem);
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -0.02em;
}

.shore-excursions__lead {
    margin: 0;
    font-size: 0.98rem;
    line-height: 1.55;
    color: #666;
}

.shore-filters {
    display: grid;
    grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto;
    gap: 12px 14px;
    align-items: end;
    max-width: none;
    margin: 0 0 28px;
    padding: 18px 18px 16px;
    background: #fff;
    border: 1px solid rgba(11, 43, 78, 0.1);
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(11, 43, 78, 0.06);
}

/* Panel Próximos Arribos */
.cruise-arrivals--desktop {
    background: #fff;
    border: 1px solid rgba(11, 43, 78, 0.1);
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(11, 43, 78, 0.06);
    padding: 18px 16px 16px;
}

.cruise-arrivals__title {
    margin: 0 0 6px;
    font-size: 1.1rem;
    font-weight: 800;
    color: #1a1a1a;
    letter-spacing: -0.01em;
}

.cruise-arrivals__lead {
    margin: 0 0 14px;
    font-size: 0.82rem;
    line-height: 1.4;
    color: #7a8ca3;
}

.cruise-arrivals-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 10px;
    max-height: min(70vh, 520px);
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-width: thin;
    scrollbar-color: rgba(11, 43, 78, 0.25) transparent;
}

.cruise-arrivals-list::-webkit-scrollbar {
    width: 6px;
}

.cruise-arrivals-list::-webkit-scrollbar-thumb {
    background: rgba(11, 43, 78, 0.22);
    border-radius: 999px;
}

.cruise-arrival {
    margin: 0;
    padding: 12px 14px;
    background: #f6f8fb;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
}

.cruise-arrival__date {
    margin: 0 0 2px;
    font-size: 0.88rem;
    font-weight: 700;
    color: var(--primary);
}

.cruise-arrival__time {
    margin: 0 0 6px;
    font-size: 0.8rem;
    color: #8a96a8;
}

.cruise-arrival__ship {
    margin: 0 0 4px;
    font-size: 0.95rem;
    font-weight: 700;
    color: #1a1a1a;
    line-height: 1.3;
}

.cruise-arrival__meta {
    margin: 0;
    font-size: 0.78rem;
    color: #666;
}

.cruise-arrivals__empty {
    margin: 0;
    font-size: 0.88rem;
    line-height: 1.5;
    color: #666;
}

/* Mobile: arribos colapsables; desktop: aside sticky */
.cruise-arrivals--mobile {
    display: none;
    margin: 0 0 24px;
    background: #fff;
    border: 1px solid rgba(11, 43, 78, 0.1);
    border-radius: 16px;
    box-shadow: 0 8px 28px rgba(11, 43, 78, 0.06);
    padding: 0 14px 14px;
}

.cruise-arrivals__summary {
    display: flex;
    align-items: center;
    gap: 10px;
    list-style: none;
    cursor: pointer;
    padding: 14px 0 10px;
    font-size: 1rem;
    font-weight: 700;
    color: #1a1a1a;
}

.cruise-arrivals__summary::-webkit-details-marker {
    display: none;
}

.cruise-arrivals__summary::after {
    content: '\f078';
    font-family: 'Font Awesome 6 Free';
    font-weight: 900;
    margin-left: auto;
    font-size: 0.75rem;
    color: #8a96a8;
    transition: transform 0.2s ease;
}

.cruise-arrivals--mobile[open] .cruise-arrivals__summary::after {
    transform: rotate(180deg);
}

.cruise-arrivals__count {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 22px;
    height: 22px;
    padding: 0 6px;
    border-radius: 999px;
    background: rgba(11, 43, 78, 0.08);
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
}

.shore-filter {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 0;
}

.shore-filter__label {
    font-size: 0.72rem;
    font-weight: 700;
    letter-spacing: 0.06em;
    text-transform: uppercase;
    color: #7a8ca3;
}

.shore-filter__control {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 0 14px;
    background: #f6f8fb;
    border: 1px solid #e2e8f0;
    border-radius: 12px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
}

.shore-filter__control:focus-within {
    background: #fff;
    border-color: rgba(11, 43, 78, 0.45);
    box-shadow: 0 0 0 3px rgba(11, 43, 78, 0.12);
}

.shore-filter__control > i.fa-search {
    flex-shrink: 0;
    color: #8a96a8;
    font-size: 0.9rem;
}

.shore-filter__control input[type="search"],
.shore-filter__control select {
    flex: 1;
    min-width: 0;
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.95rem;
    color: #1a1a1a;
    outline: none;
    padding: 12px 0;
}

.shore-filter__control input[type="search"]::-webkit-search-cancel-button {
    cursor: pointer;
}

.shore-filter__control--select {
    position: relative;
    padding-right: 36px;
}

.shore-filter__control--select select {
    appearance: none;
    cursor: pointer;
    padding-right: 4px;
}

.shore-filter__control--select > i.fa-chevron-down {
    position: absolute;
    right: 14px;
    top: 50%;
    transform: translateY(-50%);
    pointer-events: none;
    font-size: 0.75rem;
    color: #8a96a8;
}

.shore-filter-clear {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 8px;
    min-height: 46px;
    padding: 0 18px;
    border: none;
    border-radius: 12px;
    background: var(--primary);
    color: #fff;
    font-family: inherit;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    white-space: nowrap;
    transition: background-color 0.2s ease, transform 0.15s ease;
}

.shore-filter-clear:hover {
    background: #0a2544;
}

.shore-filter-clear:active {
    transform: scale(0.98);
}

.shore-filter-clear:focus-visible {
    outline: 3px solid rgba(11, 43, 78, 0.35);
    outline-offset: 2px;
}

.shore-excursions__grid {
    margin-top: 0;
    max-width: none;
    padding: 0;
    margin-left: 0;
    margin-right: 0;
    grid-template-columns: repeat(3, 1fr);
}

.shore-excursions__grid.is-dimmed {
    opacity: 0.35;
    pointer-events: none;
    transition: opacity 0.2s ease;
}

.shore-no-results {
    text-align: center;
    padding: 40px 16px 8px;
    color: #666;
}

.shore-no-results i {
    display: block;
    font-size: 2.5rem;
    margin-bottom: 1rem;
    opacity: 0.25;
    color: var(--primary);
}

.shore-no-results h3 {
    margin: 0 0 8px;
    font-size: 1.2rem;
    color: #333;
}

.shore-no-results p {
    margin: 0;
    font-size: 0.95rem;
}

@media (max-width: 1200px) {
    .shore-excursions__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 1023px) {
    .shore-layout {
        grid-template-columns: 1fr;
        gap: 0;
    }

    .shore-layout__aside {
        display: none;
        position: static;
    }

    .cruise-arrivals--mobile {
        display: block;
    }

    .cruise-arrivals--mobile .cruise-arrivals-list {
        max-height: none;
    }

    .shore-excursions__grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 900px) {
    .shore-excursions__grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    body.cruceros-page .shore-page {
        padding-top: calc(24px + 72px);
    }

    .shore-filters {
        grid-template-columns: 1fr;
        padding: 16px;
    }

    .shore-filter-clear {
        width: 100%;
    }

    .shore-excursions__grid {
        grid-template-columns: 1fr;
    }
}

.shore-layout__main .excursion-card {
    position: relative;
}

a.excursion-card {
    display: flex;
    flex-direction: column;
    text-decoration: none;
    color: inherit;
    cursor: pointer;
}

.no-upcoming-cruises {
    text-align: center;
    color: #666;
    padding: 24px 12px;
}
