/* ==========================================================
   Interactive port berth map
   ========================================================== */

.port-berth-app {
    --port-navy: #082f49;
    --port-blue: #0369a1;
    --port-light-blue: #e0f2fe;
    --port-border: #d7e2ea;
    --port-text: #173042;
    --port-muted: #5b6b78;
    --port-background: #f5f8fa;
    --port-white: #ffffff;
    --port-focus: #f59e0b;
    color: var(--port-text);
}
/*
.port-map-instructions {
    margin: 0 0 18px;
    padding: 16px 18px;
    border-left: 5px solid var(--port-blue);
    border-radius: 6px;
    background: var(--port-light-blue);
}

.port-map-instructions strong {
    display: block;
    margin-bottom: 4px;
    color: var(--port-navy);
    font-size: 18px;
}

.port-map-instructions p {
    margin: 0;
}
*/
.port-map-instructions {
    padding: 0;
    margin-bottom: 18px;
    border: none;
    background: transparent;
}

.port-map-layout {
    display: grid;
    grid-template-columns: minmax(0, 2fr) minmax(300px, 0.8fr);
    gap: 20px;
    align-items: start;
}

.port-berth-map {
    width: 100%;
	height: 620px;
    min-height: 620px;
    border: 1px solid var(--port-border);
    border-radius: 12px;
    overflow: hidden;
    background: #dce7ed;
    box-shadow: 0 12px 30px rgba(8, 47, 73, 0.12);
}

.port-berth-panel {
    min-height: 620px;
	overflow-y: auto;
    border: 1px solid var(--port-border);
    border-radius: 12px;
    overflow: hidden;
    background: var(--port-white);
    box-shadow: 0 12px 30px rgba(8, 47, 73, 0.12);
}

.port-panel-placeholder {
    display: flex;
    min-height: 620px;
    padding: 30px;
    flex-direction: column;
    justify-content: center;
    text-align: center;
    background:
        linear-gradient(
            145deg,
            rgba(3, 105, 161, 0.08),
            rgba(8, 47, 73, 0.02)
        );
}

.port-panel-placeholder h2 {
    margin: 0 0 10px;
    color: var(--port-navy);
}

.port-panel-placeholder p {
    margin: 0;
    color: var(--port-muted);
}

.port-berth-card {
    padding: 26px;
	min-height: 620px;
	box-sizing: border-box;
}

.port-card-header {
    display: flex;
    gap: 16px;
    align-items: flex-start;
    justify-content: space-between;
}

.port-card-eyebrow {
    margin: 0 0 3px;
    color: var(--port-blue);
    font-size: 12px;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.port-card-header h2 {
    margin: 0;
    color: var(--port-navy);
    font-size: 28px;
    line-height: 1.15;
}

.port-card-description {
    margin: 8px 0 0;
    color: var(--port-muted);
}

.port-card-close {
    display: inline-flex;
    width: 38px;
    height: 38px;
    padding: 0;
    flex: 0 0 38px;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--port-border);
    border-radius: 50%;
    color: var(--port-navy);
    background: var(--port-white);
    font-size: 25px;
    line-height: 1;
    cursor: pointer;
}

.port-card-close:hover {
    border-color: var(--port-blue);
    color: var(--port-white);
    background: var(--port-blue);
}

.port-card-close:focus-visible,
.port-berth-table-button:focus-visible,
.port-table-search input:focus-visible {
    outline: 3px solid var(--port-focus);
    outline-offset: 3px;
}

.port-status {
    display: inline-flex;
    margin: 20px 0;
    padding: 6px 11px;
    border-radius: 999px;
    font-size: 13px;
    font-weight: 700;
}

.status-operational {
    color: #14532d;
    background: #dcfce7;
}

.status-restricted {
    color: #7c2d12;
    background: #ffedd5;
}

.status-closed {
    color: #7f1d1d;
    background: #fee2e2;
}

.status-neutral {
    color: #334155;
    background: #e2e8f0;
}

.port-card-details {
    margin: 0;
}

.port-card-details > div {
    display: grid;
    grid-template-columns: minmax(0, 1.25fr) minmax(90px, 0.75fr);
    gap: 12px;
    padding: 12px 0;
    border-bottom: 1px solid #edf1f4;
}

.port-card-details dt {
    color: var(--port-muted);
    font-weight: 400;
}

.port-card-details dd {
    margin: 0;
    color: var(--port-navy);
    font-weight: 700;
    text-align: right;
}

.port-card-notes {
    margin-top: 22px;
    padding: 15px;
    border-radius: 8px;
    background: var(--port-background);
}

.port-card-notes strong {
    color: var(--port-navy);
}

.port-card-notes p {
    margin: 5px 0 0;
}

.port-table-section {
    margin-top: 38px;
}

.port-table-heading {
    display: flex;
    gap: 24px;
    margin-bottom: 16px;
    align-items: flex-end;
    justify-content: space-between;
}

.port-table-heading h2 {
    margin: 0 0 5px;
    color: var(--port-navy);
}

.port-table-heading p {
    margin: 0;
    color: var(--port-muted);
}

.port-table-search {
    width: 100%;
    max-width: 320px;
}

.port-table-search label {
    display: block;
    margin-bottom: 5px;
    color: var(--port-navy);
    font-size: 13px;
    font-weight: 700;
}

.port-table-search input {
    width: 100%;
    min-height: 44px;
    padding: 9px 12px;
    border: 1px solid #aebdc7;
    border-radius: 6px;
    background: var(--port-white);
}
.port-table-scroll {
    overflow-x: auto;
    background: transparent;
    border: none;
}

.port-berth-table {
    width: 100%;
    min-width: 1100px;
    border-collapse: collapse;
    border-spacing: 0;
    background: #fff;
}

.port-berth-table thead th {
    background: #3c446d;
    color: #fff;
    font-size: 16px;
    font-weight: 500;
    text-transform: none;
    white-space: nowrap;
    text-align: center;
    padding: 14px 18px;
    border: none;
}

.port-berth-table tbody th,
.port-berth-table tbody td {
    padding: 14px 18px;
    border: 1px solid #e6e6e6;
    text-align: center;
    background: #f7f7f7;
}

.port-berth-table tbody tr:nth-child(even) th,
.port-berth-table tbody tr:nth-child(even) td {
    background: #efefef;
}

.port-berth-table tbody th {
    text-align: left;
    font-weight: 400;
}

.port-berth-table tbody tr {
    cursor: pointer;
}

.port-berth-table tbody tr.is-hover th,
.port-berth-table tbody tr.is-hover td {
    background: #e9f4fa;
}

.port-berth-table tbody tr.is-active th,
.port-berth-table tbody tr.is-active td {
    background: #d9edf8;
}

.port-berth-table-button {
    display: block;
    width: 100%;
    border: none;
    background: none;
    color: inherit;
    font: inherit;
    font-weight: inherit;
    text-align: left;
    cursor: pointer;
    padding: 0;
}

.port-berth-table-button:hover {
    color: inherit;
    text-decoration: none;
}

.port-berth-colour {
    display: none;
}
.port-map-disclaimer {
    margin-top: 24px;
    padding: 16px 18px;
    border: 1px solid #f5d78e;
    border-radius: 8px;
    color: #533f10;
    background: #fff8e7;
}

.port-map-disclaimer p {
    margin: 0;
}

/* Tablet */
@media only screen and (max-width: 989px) {
    .port-map-layout {
        grid-template-columns: 1fr;
    }

    .port-berth-map {
        min-height: 520px;
    }

    .port-berth-panel {
        min-height: 0;
    }

    .port-panel-placeholder {
        min-height: 220px;
    }
}

/* Mobile */
@media only screen and (max-width: 767px) {
    .port-berth-map {
        min-height: 440px;
        border-radius: 8px;
    }

    .port-berth-panel {
        border-radius: 8px;
    }

    .port-berth-card {
        padding: 20px;
    }

    .port-card-header h2 {
        font-size: 24px;
    }

    .port-table-heading {
        align-items: stretch;
        flex-direction: column;
    }

    .port-table-search {
        max-width: none;
    }
}

/* Reduced animation preference */
@media (prefers-reduced-motion: reduce) {
    .port-berth-table tbody tr {
        transition: none;
    }
}


.gm-style * {
	transition: none !important;
}

.berth-tooltip {
    padding: 4px 6px;
    font-size: 13px;
    color: #082f49;
    line-height: 1.4;
}

.berth-tooltip strong {
    display: block;
    font-weight: 700;
}




/* Marine info page cards */
.card-image img {
    width: 100%;
    aspect-ratio: 1 / 1;
    object-fit: cover;
    display: block;
/*
    clip-path: polygon(
        0 0,
        88% 0,
        100% 12%,
        100% 100%,
        12% 100%,
        0 88%
    );
	*/
}


/* Notices to Mariners Cards */

/* Grid Container */
.pocf-ntm-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 24px;
    margin: 20px 0;
}

/* Individual Card - Squared with 2px border */
.pocf-ntm-card {
    background: #ffffff;
    border: 2px solid #cbd5e1; /* 2px border */
    border-radius: 2px; /* Much sharper, square corners */
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.05);
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    overflow: hidden;
    position: relative;
}

/* Hover Effect: Lift card and show shadow */
.pocf-ntm-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 15px -3px rgba(0, 0, 0, 0.1);
}

/* Card Content Wrapper */
.pocf-ntm-card-content {
    padding: 20px;
}

/* Notice Number Badge */
.pocf-ntm-badge {
    display: inline-block;
    background: #0f172a; /* Dark navy */
    color: #ffffff;
    font-size: 0.8rem;
    font-weight: 600;
    padding: 4px 10px;
    border-radius: 4px;
    margin-bottom: 12px;
}

/* Title & Date */
.pocf-ntm-title {
    font-size: 1.25rem;
    margin: 0 0 10px 0;
    line-height: 1.3;
    color: #1e293b;
}

.pocf-ntm-date {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

/* Excerpt Content - Hidden by default, reveals on hover */
.pocf-ntm-excerpt {
    font-size: 0.95rem;
    color: #475569;
    margin-top: 15px;
    max-height: 0;
    opacity: 0;
    overflow: hidden;
    transition: max-height 0.4s ease, opacity 0.4s ease, margin-top 0.4s ease;
}

.pocf-ntm-card:hover .pocf-ntm-excerpt {
    max-height: 150px;
    opacity: 1;
    margin-top: 15px;
}

/* Card Footer & Button - Matched to theme screenshot */
.pocf-ntm-card-footer {
    padding: 20px;
    background: #f8fafc;
    border-top: 2px solid #cbd5e1; /* Matched 2px border */
    text-align: center;
}

.pocf-ntm-btn {
    display: inline-block;
    /*background: #233142;  Dark navy from your theme screenshot */
    color: #ffffff;
    text-decoration: none;
    font-weight: 600;
    padding: 10px 20px;
    border-radius: 2px; /* Squared off button corners */
    transition: background 0.2s ease;
    width: 100%;
    box-sizing: border-box;
}

.pocf-ntm-btn:hover {
    /*background: #141d28;  Slightly darker navy for hover state */
    /*color: #ffffff;*/
}

.pocf-ntm-no-file {
    color: #94a3b8;
    font-style: italic;
    font-size: 0.9rem;
}

.pocf-ntm-full-width {
	display:block !important;
	width: 100%;
	box-sizing:border-box;
	text-align:center;
	margin: 0 !important;
}
/* Styling for the Year Grouping Heading */
.pocf-ntm-year-heading {
    margin: 40px 0 20px 0;
    font-size: 2rem;
    color: #233142; /* Matches your navy theme */
    border-bottom: 2px solid #233142; /* Optional: adds a nice underline to the year */
    padding-bottom: 10px;
    display: inline-block;
}

/* Styling for the Line Break between years */
.pocf-ntm-year-divider {
    border: 0;
    height: 1px;
    background: #cbd5e1;
    margin: 50px 0 30px 0;
    clear: both;
}