/*
 * ICP HUB / HOLIDAY-TYPE PAGE STYLES
 * Three completely distinct structures:
 *   1. Places to Stay      → alternating editorial rows (image | text)
 *   2. Top Destinations    → vertical gallery (image on top, info below)
 *   3. Planning Resources  → compact article rows (thumb left, content right)
 * No labels overlaid on images. No badge chips. Information first.
 *
 * Loaded by resources/views/tours/category.blade.php via @section('customcss')
 * Version: 2026-05-22-v3
 */

/* =====================================================
   COMMON
   ===================================================== */

.hub-section-title {
    font-family: var(--font-display);
    text-align: left;
    font-size: 2.2rem;
    font-weight: 600;
    color: #4A6741;
    line-height: 1.2;
    margin-bottom: 1.5rem;
}

.hub-subsection-title {
    margin-bottom: 0 !important;
}

.hub-curated-block {
    padding: 2.5rem 0 1rem;
    border-top: 1px solid #e9ecef;
}

.hub-curated-block:first-of-type {
    border-top: none;
    padding-top: 1rem;
}

.hub-curated-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 1.5rem;
}

.hub-curated-link {
    font-size: 0.875rem;
    font-weight: 500;
    color: #4A6741;
    text-decoration: none;
    white-space: nowrap;
    transition: color 0.2s ease;
}

.hub-curated-link:hover {
    color: #3A5334;
    text-decoration: underline;
}

/* =====================================================
   CUSTOM PLANNER CARD (image + form)
   ===================================================== */

.hub-planner-card {
    width: 100%;
    border: 1px solid #e0e0e0;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.06);
    background-color: #FFFFFF;
    overflow: hidden;
    border-radius: 0;
}

.hub-planner-card-media {
    min-height: 220px;
    background-color: #F9F9F9;
    overflow: hidden;
    position: relative;
}

.hub-planner-card-img {
    width: 100%;
    height: 100%;
    min-height: 220px;
    object-fit: cover;
    display: block;
    border-radius: 0;
}

.hub-planner-card-content {
    display: flex;
    flex-direction: column;
    justify-content: center;
    background-color: #F4F1EA;
}

.hub-planner-card-inner {
    padding: 1.75rem 2rem;
}

.hub-planner-eyebrow {
    display: block;
    font-family: var(--font-display);
    font-size: 0.875rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #4A6741;
    margin-bottom: 0.5rem;
}

.hub-planner-card-title {
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 700;
    color: #4A6741;
    line-height: 1.25;
    margin-bottom: 0.75rem;
}

.hub-planner-card-lead {
    font-family: "Nunito Sans", system-ui, sans-serif;
    font-size: 1rem;
    line-height: 1.6;
    color: #495057;
    margin-bottom: 1.25rem;
}

.hub-planner-form-fields .form-label {
    font-size: 0.875rem;
    color: #495057;
    font-weight: 600;
}

@media (min-width: 992px) {
    .hub-planner-card-media {
        min-height: 100%;
    }

    .hub-planner-card-img {
        min-height: 300px;
    }

    .hub-planner-card-inner {
        padding: 2rem 2.5rem;
    }

    .hub-planner-card-title {
        font-size: 1.75rem;
    }
}

@media (max-width: 991.98px) {
    .hub-planner-card-media {
        max-height: 260px;
        overflow: hidden;
    }

    .hub-planner-card-img {
        min-height: 260px;
        max-height: 260px;
    }

    .hub-planner-card-inner {
        padding: 1.5rem 1.25rem;
    }
}

/* =====================================================
   1. PLACES TO STAY — Alternating editorial rows
      Image on one side, readable content on the other.
      Each lodge gets a generous row with description.
   ===================================================== */

.hub-stays-list {
    display: flex;
    flex-direction: column;
    gap: 2.5rem;
}

.hub-stay-row {
    display: grid;
    grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr);
    gap: 2.25rem;
    align-items: center;
}

.hub-stay-row.is-reversed .hub-stay-row-media {
    order: 2;
}

.hub-stay-row-media {
    display: block;
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    background-color: #f1f3f5;
}

.hub-stay-row-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.7s ease;
}

.hub-stay-row-media:hover img {
    transform: scale(1.04);
}

.hub-stay-row-content {
    padding: 0;
    min-width: 0;
}

.hub-stay-row-eyebrow {
    font-family: var(--font-display);
    font-size: 0.75rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.1em;
    color: #D4A03C;
    margin: 0 0 0.6rem;
}

.hub-stay-row-title {
    font-family: var(--font-display);
    font-size: 1.75rem;
    font-weight: 600;
    line-height: 1.2;
    margin: 0 0 0.75rem;
    color: #2D2A26;
}

.hub-stay-row-title a {
    color: inherit;
    text-decoration: none;
    transition: color 0.2s ease;
}

.hub-stay-row-title a:hover {
    color: #4A6741;
}

.hub-stay-row-location {
    font-size: 0.875rem;
    color: #6C757D;
    margin: 0 0 1rem;
}

.hub-stay-row-location i {
    color: #4A6741;
    margin-right: 0.4rem;
}

.hub-stay-row-desc {
    font-size: 0.9375rem;
    line-height: 1.65;
    color: #495057;
    margin: 0 0 1.25rem;
}

.hub-stay-row-cta {
    display: inline-flex;
    align-items: center;
    font-size: 0.875rem;
    font-weight: 600;
    color: #4A6741;
    text-decoration: none;
    border-bottom: 1px solid transparent;
    transition: color 0.2s ease, border-color 0.2s ease;
}

.hub-stay-row-cta:hover {
    color: #D4A03C;
    border-bottom-color: #D4A03C;
    text-decoration: none;
}

/* =====================================================
   2. TOP DESTINATIONS — Vertical gallery
      Big image on top, name + place + description below.
      Image stays an image; no text overlay.
   ===================================================== */

.hub-destinations-grid > [class*="col-"] {
    display: flex;
}

.hub-dest-block {
    display: flex;
    flex-direction: column;
    background-color: transparent;
    width: 100%;
}

.hub-dest-block-media {
    display: block;
    aspect-ratio: 16 / 10;
    overflow: hidden;
    background-color: #f1f3f5;
}

.hub-dest-block-media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s ease;
}

.hub-dest-block-media:hover img {
    transform: scale(1.05);
}

.hub-dest-block-content {
    padding: 1.1rem 0 0;
}

.hub-dest-block-title {
    font-family: var(--font-display);
    font-size: 1.375rem;
    font-weight: 600;
    line-height: 1.25;
    margin: 0 0 0.5rem;
}

.hub-dest-block-title a {
    color: #2D2A26;
    text-decoration: none;
    transition: color 0.2s ease;
}

.hub-dest-block-title a:hover {
    color: #4A6741;
}

.hub-dest-block-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 0.4rem 1.25rem;
    font-size: 0.8125rem;
    color: #6C757D;
    margin: 0 0 0.75rem;
}

.hub-dest-block-meta i {
    color: #4A6741;
    margin-right: 0.3rem;
}

.hub-dest-block-desc {
    font-size: 0.9125rem;
    line-height: 1.6;
    color: #495057;
    margin: 0;
}

/* =====================================================
   3. PLANNING RESOURCES — Compact article rows
      Thumb on the left, readable content on the right.
   ===================================================== */

.hub-resources-grid > [class*="col-"] {
    display: flex;
}

.hub-resource-row {
    display: flex;
    width: 100%;
    background-color: #fff;
    border: 1px solid #e9ecef;
    transition: border-color 0.2s ease, transform 0.2s ease, box-shadow 0.2s ease;
}

.hub-resource-row:hover {
    border-color: #4A6741;
    transform: translateY(-2px);
    box-shadow: 0 6px 18px rgba(0, 0, 0, 0.06);
}

.hub-resource-thumb {
    display: block;
    flex-shrink: 0;
    width: 150px;
    aspect-ratio: 4 / 3;
    overflow: hidden;
    background-color: #f1f3f5;
}

.hub-resource-thumb img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.5s ease;
}

.hub-resource-row:hover .hub-resource-thumb img {
    transform: scale(1.06);
}

.hub-resource-body {
    flex: 1;
    min-width: 0;
    padding: 0.95rem 1.1rem;
    display: flex;
    flex-direction: column;
    gap: 0.4rem;
}

.hub-resource-eyebrow {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #6C757D;
}

.hub-resource-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    line-height: 1.3;
    margin: 0;
}

.hub-resource-title a {
    color: #2D2A26;
    text-decoration: none;
    transition: color 0.2s ease;
}

.hub-resource-title a:hover {
    color: #4A6741;
}

.hub-resource-excerpt {
    font-size: 0.8125rem;
    line-height: 1.5;
    color: #6C757D;
    margin: 0;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.hub-resource-cta {
    font-size: 0.75rem;
    font-weight: 600;
    color: #4A6741;
    text-decoration: none;
    margin-top: auto;
    transition: color 0.2s ease;
}

.hub-resource-cta:hover {
    color: #D4A03C;
    text-decoration: none;
}

/* =====================================================
   SEO BAND (full-width gray, small muted type)
   ===================================================== */

.hub-seo-band {
    display: block;
    width: 100%;
    margin: 0;
    padding: 2rem 0;
    background-color: #e9ecef;
    border-top: 1px solid #e0e0e0;
    box-sizing: border-box;
}

.hub-seo-band .article-content,
.hub-seo-band .article-content p,
.hub-seo-band .article-content li {
    font-size: 0.875rem;
    line-height: 1.65;
    color: #6C757D;
}

.hub-seo-band .article-content h2 {
    font-size: 1.125rem;
    color: #4A6741;
    margin-top: 1.5rem;
    margin-bottom: 0.75rem;
}

.hub-seo-band .article-content h3 {
    font-size: 1rem;
    color: #2D2A26;
    margin-top: 1.25rem;
    margin-bottom: 0.5rem;
}

/* =====================================================
   WEATHER PATTERNS — Charts + quick stats
   ===================================================== */

.hub-weather-section {
    margin-bottom: 2rem;
}

.hub-weather-block {
    margin-bottom: 2.5rem;
}

.hub-weather-block-head {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1rem;
    flex-wrap: wrap;
    margin-bottom: 0.75rem;
}

.hub-weather-block-title {
    font-family: var(--font-display);
    font-size: 2.2rem;
    font-weight: 600;
    color: #4A6741;
    line-height: 1.2;
    margin: 0;
}

.hub-weather-block-summary {
    display: block;
    width: 100%;
    max-width: none;
    margin: 0 0 1.5rem;
    font-size: 1rem;
    color: #495057;
    line-height: 1.6;
}

.hub-weather-block-link {
    font-size: 0.8125rem;
    font-weight: 600;
    padding: 0.45rem 1rem;
    border: 1px solid #6C757D;
    color: #495057;
    background-color: #fff;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.hub-weather-block-link:hover {
    background-color: #495057;
    color: #fff;
    text-decoration: none;
}

/* Chart cards: faint brand-green border, all sides */
.weather-charts-wrap {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.weather-chart-card {
    padding: 1.25rem 1.5rem;
    background-color: #fff;
    border: 5px solid rgba(74, 103, 65, 0.12);
}

.weather-chart-head {
    margin-bottom: 0.75rem;
}

.weather-chart-title {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: #2D2A26;
    margin: 0;
}

.weather-chart-unit {
    font-weight: 400;
    color: #6C757D;
    font-size: 0.875rem;
    margin-left: 0.25rem;
}

.weather-chart-canvas-wrap {
    position: relative;
    height: 220px;
}

.weather-chart-canvas {
    width: 100% !important;
    height: 100% !important;
}

/* Stats sidebar */
.weather-chart-stats {
    height: 100%;
    padding: 0.85rem 1rem;
    background-color: #fff;
    border: 1px solid #ececec;
    display: flex;
    flex-direction: column;
}

.weather-chart-stats-title {
    font-family: var(--font-display);
    font-size: 0.6875rem;
    font-weight: 700;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #6C757D;
    margin: 0 0 0.75rem;
}

.weather-chart-stat-list {
    margin: 0;
    padding: 0;
    display: flex;
    flex-direction: column;
    gap: 0.65rem;
}

.weather-chart-stat {
    display: flex;
    flex-direction: column;
    gap: 0.15rem;
    padding-bottom: 0.55rem;
    border-bottom: 1px dashed #ececec;
}

.weather-chart-stat:last-child {
    padding-bottom: 0;
    border-bottom: none;
}

.weather-chart-stat dt {
    font-size: 0.6875rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: #6C757D;
    margin: 0;
}

.weather-chart-stat dd {
    font-family: var(--font-display);
    font-size: 1rem;
    font-weight: 600;
    color: #2D2A26;
    margin: 0;
    line-height: 1.2;
}

.weather-chart-stat-unit {
    font-size: 0.8125rem;
    font-weight: 500;
    color: #6C757D;
    margin-left: 0.1rem;
}

.weather-chart-stat-meta {
    display: block;
    font-size: 0.75rem;
    font-weight: 400;
    color: #6C757D;
    margin-top: 0.1rem;
}

.weather-chart-stat-month {
    font-weight: 400;
    color: #6C757D;
    text-transform: none;
    letter-spacing: 0;
    font-size: 0.6875rem;
}

/* Current-month highlight card */
.weather-chart-stat--current {
    padding: 0.6rem 0.75rem;
    background-color: rgba(212, 160, 60, 0.12);
    border: 1px solid rgba(212, 160, 60, 0.4);
    border-radius: 3px;
    margin-bottom: 0.4rem;
}

.weather-chart-stat--current dt {
    color: #8a6a26;
}

.weather-chart-stat--current dd {
    color: #2D2A26;
    font-size: 1.15rem;
}

@media (max-width: 991.98px) {
    .weather-chart-canvas-wrap { height: 200px; }
}

@media (max-width: 575.98px) {
    .weather-chart-card { padding: 0.85rem; border-width: 4px; }
    .weather-chart-canvas-wrap { height: 180px; }
}

/* =====================================================
   RESPONSIVE
   ===================================================== */

@media (max-width: 991.98px) {
    .hub-section-title,
    .hub-weather-block-title {
        font-size: 1.85rem;
    }

    .hub-stay-row {
        gap: 1.5rem;
    }

    .hub-stay-row-title {
        font-size: 1.5rem;
    }
}

@media (max-width: 767.98px) {
    .hub-curated-block {
        padding-top: 2rem;
    }

    .hub-section-title,
    .hub-weather-block-title {
        font-size: 1.55rem;
    }

    /* Stays collapse to single column — image always on top */
    .hub-stay-row,
    .hub-stay-row.is-reversed {
        grid-template-columns: 1fr;
        gap: 1rem;
    }

    .hub-stay-row.is-reversed .hub-stay-row-media {
        order: 0;
    }

    .hub-stay-row-title {
        font-size: 1.25rem;
    }

    .hub-stay-row-desc {
        font-size: 0.875rem;
    }

    /* Destination titles compact */
    .hub-dest-block-title {
        font-size: 1.125rem;
    }

    /* Resource rows: smaller thumb */
    .hub-resource-thumb {
        width: 110px;
    }
}

@media (max-width: 480px) {
    .hub-resource-row {
        flex-direction: column;
    }

    .hub-resource-thumb {
        width: 100%;
        aspect-ratio: 16 / 9;
    }

    .hub-resource-body {
        padding: 0.85rem 1rem 1rem;
    }
}

/* =====================================================
   PACKING LIST — full-width warm strip (between stays & destinations)
   ===================================================== */

.hub-packing-strip {
    width: 100vw;
    position: relative;
    left: 50%;
    right: 50%;
    margin-left: -50vw;
    margin-right: -50vw;
    background-color: var(--bg-warm-green, #E8F0E8);
    padding: 2.5rem 0;
    margin-top: 2rem;
    margin-bottom: 2rem;
    border-top: 1px solid #dde5dd;
    border-bottom: 1px solid #dde5dd;
}

.hub-packing-strip__inner {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 1.5rem 2rem;
    flex-wrap: wrap;
}

.hub-packing-strip__copy {
    flex: 1;
    min-width: 260px;
    max-width: 720px;
}

.hub-packing-strip__eyebrow {
    margin: 0 0 0.35rem 0;
    font-size: 0.8rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--brand-green, #2C5E2E);
}

.hub-packing-strip__title {
    margin: 0 0 0.5rem 0;
    font-family: var(--font-display);
    font-size: 1.5rem;
    font-weight: 600;
    color: var(--text-primary, #1a1a1a);
    line-height: 1.3;
}

.hub-packing-strip__desc {
    margin: 0;
    font-size: 0.95rem;
    line-height: 1.6;
    color: var(--text-secondary, #555);
}

.hub-packing-strip__action {
    flex-shrink: 0;
}

.hub-packing-strip__action .btn {
    border-radius: 0;
    padding: 0.65rem 1.25rem;
    font-weight: 600;
}

@media (max-width: 767.98px) {
    .hub-packing-strip {
        padding: 2rem 0;
    }

    .hub-packing-strip__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .hub-packing-strip__action {
        width: 100%;
    }

    .hub-packing-strip__action .btn {
        width: 100%;
        justify-content: center;
    }
}
