* {
    box-sizing: border-box;
}

body {
    margin: 0;
    font-family: Arial, Helvetica, sans-serif;
    background: #f4f7fb;
    color: #1f2937;
}

.site-header {
    background: white;
    border-bottom: 1px solid #e5e7eb;
    padding: 16px 40px;

    display: flex;
    justify-content: space-between;
    align-items: center;

    min-height: 70px;
    position: sticky;
    top: 0;
    z-index: 1000;
}

.logo img {
    max-height: 75px;
    width: auto;
    display: block;
    margin-right: 24px;
}

.logo a {
    text-decoration: none;
    color: #062b4f;
    font-size: 1.2rem;
    font-weight: 700;
}

.site-header nav {
    display: flex;
    gap: 28px;
}

.site-header nav a {
    text-decoration: none;
    color: #374151;
    font-size: 0.95rem;
    font-weight: 600;
}

.site-header nav a:hover {
    color: #0b4f75;
}

.hero {
    background: linear-gradient(135deg, #062b4f, #0b4f75);
    color: white;
    padding: 56px 40px;
}

.hero-content {
    max-width: 1150px;
    margin: 0 auto;
}

.eyebrow {
    text-transform: uppercase;
    letter-spacing: 0.12em;
    font-size: 13px;
    font-weight: 700;
    color: #b8e3ff;
    margin: 0 0 10px;
}

h1 {
    font-size: 44px;
    margin: 0;
}

.subtitle {
    font-size: 18px;
    max-width: 650px;
    margin: 14px 0 0;
    color: #dbeafe;
}

.page {
    max-width: 1150px;
    margin: 0 auto;
    padding: 32px 24px 60px;
}

.search-panel {
    background: white;
    padding: 24px;
    border-radius: 18px;
    box-shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
    margin-bottom: 24px;
}

.filter-form {
    display: flex;
    flex-direction: column;
    gap: 18px;
}

.filter-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: end;
}

.filter-row label {
    display: flex;
    flex-direction: column;
    gap: 7px;
    font-size: 13px;
    font-weight: 700;
    color: #374151;
}

select,
input {
    min-width: 150px;
    padding: 11px 12px;
    border: 1px solid #d1d5db;
    border-radius: 10px;
    background: white;
    font-size: 14px;
}

select:focus,
input:focus {
    outline: none;
    border-color: #0b4f75;
    box-shadow: 0 0 0 3px rgba(11, 79, 117, 0.12);
}

.filter-actions {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    justify-content: space-between;
    gap: 16px;
    border-top: 1px solid #e5e7eb;
    padding-top: 16px;
}

.checkbox-label {
    display: flex;
    align-items: center;
    gap: 8px;
    font-weight: 600;
    color: #374151;
}

.checkbox-label input {
    min-width: auto;
}

.clear-link {
    display: inline-block;
    padding: 10px 18px;
    background: #f3f4f6;
    color: #1f2937;
    text-decoration: none;
    border: 1px solid #d1d5db;
    border-radius: 999px;
    font-weight: 700;
    transition: all 0.2s ease;
}

.clear-link:hover {
    background: #e5e7eb;
    border-color: #9ca3af;
}

.results-summary {
    font-size: 18px;
    margin: 24px 0;
    color: #374151;
}

.results-list {
    display: flex;
    flex-direction: column;
    gap: 24px;
}

.sailing-card {
    background: white;
    border-radius: 22px;
    box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
    overflow: hidden;
    border: 1px solid #e5e7eb;
}

.card-main {
    display: flex;
    justify-content: space-between;
    gap: 32px;
    padding: 30px;
}

.card-info {
    flex: 1;
}

.cruise-line-badge {
    display: inline-block;
    background: #e8f2ff;
    color: #063b66;
    border: 1px solid #bcd7f5;
    padding: 5px 12px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    margin-bottom: 14px;
}

.sailing-card h2 {
    font-size: 28px;
    margin: 0 0 6px;
    color: #062b4f;
}

.sailing-card h3 {
    font-size: 19px;
    font-weight: 600;
    margin: 0 0 18px;
    color: #374151;
    line-height: 1.35;
}

.trip-meta {
    display: flex;
    flex-direction: column;
    gap: 7px;
    color: #4b5563;
    font-size: 15px;
}

.price-panel {
    min-width: 210px;
    text-align: right;
    display: flex;
    flex-direction: column;
    justify-content: center;
}

.from-label {
    font-size: 13px;
    font-weight: 800;
    letter-spacing: 0.14em;
    color: #6b7280;
}

.from-price {
    font-size: 46px;
    line-height: 1.1;
    font-weight: 800;
    color: #047857;
    margin-top: 4px;
}

.price-note {
    font-size: 13px;
    color: #6b7280;
    margin-top: 6px;
}

.cabin-details {
    border-top: 1px solid #e5e7eb;
    padding: 0 30px 28px;
}

summary {
    cursor: pointer;
    font-weight: 800;
    color: #063b66;
    padding: 18px 0;
}

summary:hover {
    color: #0b4f75;
}

table {
    width: 100%;
    border-collapse: collapse;
    background: white;
    color: #1f2937;
}

th {
    background: #062b4f;
    color: white;
    padding: 12px;
    text-align: left;
    font-size: 13px;
}

td {
    padding: 12px;
    border-bottom: 1px solid #e5e7eb;
    font-size: 14px;
    color: #1f2937;
}

tbody tr:nth-child(even) {
    background: #f8fbff;
}

tbody tr:hover {
    background: #eef6fc;
}

tr:hover td {
    background: #f8fbff;
}

.price {
    color: #047857;
    font-weight: 800;
}

@media (max-width: 800px) {
    .hero {
        padding: 40px 24px;
    }

    h1 {
        font-size: 34px;
    }

    .card-main {
        flex-direction: column;
    }

    .price-panel {
        text-align: left;
        min-width: auto;
    }

    .from-price {
        font-size: 38px;
    }
}

.company-summary {
    margin-top: 14px;
    padding: 12px 14px;
    background: #f8fbff;
    border: 1px solid #dbeafe;
    border-radius: 12px;
    color: #374151;
    font-size: 14px;
}

:root {
    --navy: #062b4f;
    --ocean: #0b4f75;
    --ice: #e8f4fb;
    --snow: #f8fbff;
    --text: #1f2937;
    --muted: #6b7280;
    --border: #e5e7eb;
    --success: #047857;
    --warning: #b45309;
}

.company-grid{
    display:grid;
    grid-template-columns:repeat(auto-fill,minmax(320px,1fr));
    gap:28px;
}

.company-card{
    background:white;
    border-radius:18px;
    padding:28px;
    border:1px solid var(--border);
    box-shadow:0 8px 24px rgba(0,0,0,.06);
    transition:.2s;
}

.company-card:hover{
    transform:translateY(-4px);
    box-shadow:0 14px 34px rgba(0,0,0,.10);
}

.company-card h2{
    margin-top:0;
    color:var(--navy);
}

.company-tags{
    display:flex;
    flex-wrap:wrap;
    gap:8px;
    margin:20px 0;
}

.company-tags span{
    background:var(--ice);
    color:var(--navy);
    padding:6px 12px;
    border-radius:999px;
    font-size:.85rem;
    font-weight:600;
}

.learn-more{
    display:inline-block;
    margin-top:10px;
    text-decoration:none;
    font-weight:700;
    color:var(--ocean);
}

.site-header nav a.active{
    color:var(--navy);
    font-weight:700;
}

.included-note {
    margin-top: 14px;
    padding: 10px 14px;
    background: #ecfdf5;
    border: 1px solid #a7f3d0;
    border-radius: 10px;
    color: #065f46;
    font-size: 14px;
    font-weight: 600;
}

.activity-note {
    margin-top: 12px;
    padding: 10px 14px;
    background: #f8fbff;
    border: 1px solid #dbeafe;
    border-radius: 10px;
    color: #374151;
    font-size: 14px;
    line-height: 1.5;
}

.details-link {
    display: inline-block;
    margin-top: 14px;
    padding: 10px 16px;
    border-radius: 999px;
    background: #062b4f;
    color: white;
    text-decoration: none;
    font-weight: 800;
    font-size: 14px;
}

.details-link:hover {
    background: #0b4f75;
}

.savings-badge {
    display: inline-block;
    margin-top: 4px;
    padding: 3px 8px;
    border-radius: 999px;
    background: #ecfdf5;
    color: #047857;
    font-size: 12px;
    font-weight: 800;
}

.fly-cruise-badge {
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    margin-left: 0.5rem;
    padding: 0.2rem 0.55rem;
    border-radius: 999px;
    font-size: 0.75rem;
    font-weight: 700;
    line-height: 1.2;
    white-space: nowrap;
    background: #e8f3ff;
    color: #164e7a;
    border: 1px solid #a8cce8;
    vertical-align: middle;
}

.inquiry-card {
    margin-top: 18px;
    padding: 16px;
    border-radius: 12px;
    background: #f7f9fb;
    border: 1px solid #dfe6ee;
    text-align: center;
}

.inquiry-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 6px;
}

.inquiry-subtitle {
    font-size: 13px;
    color: #667085;
    margin-bottom: 12px;
}

.inquiry-button {
    width: 100%;
    padding: 11px 18px;

    background: #0b4f6c;
    color: white;

    border: none;
    border-radius: 8px;

    font-size: 14px;
    font-weight: 600;

    cursor: pointer;
    transition: all .2s ease;
}

.inquiry-button:hover {
    background: #083b52;
    transform: translateY(-1px);
}

/* Results toolbar and card/list view switcher */
.results-toolbar {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 18px;
    margin: 24px 0;
}

.results-toolbar .results-summary {
    margin: 0;
}

.view-switcher {
    display: inline-flex;
    align-items: center;
    gap: 0;
    padding: 4px;
    background: #e9eef4;
    border: 1px solid #d4dde7;
    border-radius: 12px;
}

.view-switcher-label {
    padding: 0 10px 0 8px;
    color: #5d6977;
    font-size: 13px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}

.view-toggle-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;
    min-width: 92px;
    padding: 9px 13px;
    border: 0;
    border-radius: 9px;
    background: transparent;
    color: #4b5563;
    font: inherit;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
    transition: background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

.view-toggle-button:hover {
    color: #062b4f;
}

.view-toggle-button.is-active {
    background: #ffffff;
    color: #062b4f;
    box-shadow: 0 2px 8px rgba(15, 23, 42, 0.12);
}

.view-toggle-button:focus-visible {
    outline: 3px solid rgba(11, 79, 117, 0.2);
    outline-offset: 2px;
}

/* Keep the pricing/action column aligned in card view. */
.results-list.card-view .price-panel {
    flex: 0 0 250px;
    width: 250px;
    min-width: 250px;
}

.results-list.card-view .details-link,
.results-list.card-view .price-history-button,
.results-list.card-view .inquiry-button {
    width: 100%;
    text-align: center;
}

.results-list.card-view .price-history-button {
    display: block;
}

/* Compact list view */
.results-list.list-view {
    gap: 12px;
}

.results-list.list-view .sailing-card {
    border-radius: 14px;
    box-shadow: 0 5px 16px rgba(15, 23, 42, 0.06);
    transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.results-list.list-view .sailing-card:hover {
    transform: translateY(-1px);
    border-color: #c8d6e4;
    box-shadow: 0 9px 24px rgba(15, 23, 42, 0.09);
}

.results-list.list-view .card-main {
    display: grid;
    grid-template-columns: minmax(0, 1fr) 230px;
    align-items: center;
    gap: 22px;
    padding: 18px 22px;
}

.results-list.list-view .card-info {
    min-width: 0;
}

.results-list.list-view .cruise-line-badge {
    margin: 0 0 7px;
    padding: 4px 9px;
    font-size: 10px;
}

.results-list.list-view .sailing-card h2 {
    display: inline;
    margin: 0 10px 0 0;
    font-size: 20px;
}

.results-list.list-view .sailing-card h3 {
    display: inline;
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.results-list.list-view .fly-cruise-badge {
    margin-top: 8px;
}

.results-list.list-view .trip-meta {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 6px 18px;
    margin-top: 10px;
    font-size: 13px;
}

.results-list.list-view .activity-note,
.results-list.list-view .included-note,
.results-list.list-view .cabin-details,
.results-list.list-view .price-history-panel,
.results-list.list-view .company-summary,
.results-list.list-view .inquiry-card,
.results-list.list-view .price-history-button {
    display: none !important;
}

.results-list.list-view .price-panel {
    width: 230px;
    min-width: 230px;
    text-align: right;
    justify-self: end;
}

.results-list.list-view .from-label {
    font-size: 11px;
}

.results-list.list-view .from-price {
    margin-top: 1px;
    font-size: 30px;
}

.results-list.list-view .price-note {
    margin-top: 3px;
    font-size: 11px;
}

.results-list.list-view .details-link {
    margin-top: 9px;
    padding: 8px 14px;
    font-size: 12px;
}

@media (max-width: 800px) {
    .results-toolbar {
        align-items: stretch;
        flex-direction: column;
    }

    .view-switcher {
        align-self: flex-start;
    }

    .results-list.card-view .price-panel {
        width: 100%;
        min-width: 0;
        flex-basis: auto;
    }

    .results-list.list-view .card-main {
        grid-template-columns: 1fr;
        gap: 14px;
    }

    .results-list.list-view .sailing-card h2,
    .results-list.list-view .sailing-card h3 {
        display: block;
    }

    .results-list.list-view .sailing-card h2 {
        margin: 0 0 4px;
    }

    .results-list.list-view .price-panel {
        width: 100%;
        min-width: 0;
        text-align: left;
        justify-self: stretch;
        padding-top: 12px;
        border-top: 1px solid #e5e7eb;
    }

    .results-list.list-view .details-link {
        width: auto;
    }
}

@media (max-width: 480px) {
    .view-switcher {
        width: 100%;
    }

    .view-switcher-label {
        display: none;
    }

    .view-toggle-button {
        flex: 1;
    }
}
