/* ============================================================
   JB ACF Shortcodes
   joergbonner.net — Field Guide styles

   Typography, spacing (margin/padding/border) intentionally
   omitted — add overrides in uncode-child/style.css.
   ============================================================ */

/* ------------------------------------------------------------
   Sidebar block wrapper
   ------------------------------------------------------------ */

.jb-sidebar-block {
    width: 100%;
}

.jb-sidebar-heading {
    display: block;
}


.jb-sidebar-link {
    display: block;
    text-decoration: none;
}


/* Global dl/dt/dd resets */
.jb-access-pair,
.jb-shoot-pair,
.jb-location-meta-pair,
.jb-tax-pair,
.jb-meta-item,
.jb-place-pair,
.jb-mountain-pair,
.jb-season-header-meta {
    margin: 0;
    padding: 0;
}
.jb-access-pair dt, .jb-access-pair dd,
.jb-shoot-pair dt, .jb-shoot-pair dd,
.jb-location-meta-pair dt, .jb-location-meta-pair dd,
.jb-tax-pair dt, .jb-tax-pair dd,
.jb-meta-item dt, .jb-meta-item dd,
.jb-place-pair dt, .jb-place-pair dd,
.jb-mountain-pair dt, .jb-mountain-pair dd,
.jb-season-header-meta dt, .jb-season-header-meta dd,
.jb-season-prop-label dt, .jb-season-prop-value dd,
.jb-sidebar-block dl, .jb-mountain-facts dd{

    margin: 0;
    padding: 0;
}


/* ------------------------------------------------------------
   Location Cards  [jb_location_cards]
   ------------------------------------------------------------ */

.jb-location-cards {
    width: 100%;
}

.jb-location-card {
    display: block;
}

.jb-card-name a {
    text-decoration: none;
}

.jb-card-meta {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.jb-meta-item {
    display: block;
}


.jb-meta-value {
    display: inline;
}

.jb-meta-value + .jb-meta-value::before {
    content: ', ';
}

@media (max-width: 569px) {
    .jb-card-meta {
        grid-template-columns: 1fr;
    }
    .jb-meta-label {
        white-space: nowrap;
    }
}


/* ------------------------------------------------------------
   Photography Insights  [jb_photography_insights]
   ------------------------------------------------------------ */

.jb-photography-insights {
    list-style: none;
}

.jb-insight {
    display: flex;
    align-items: flex-start;
}

.jb-insight::before {
    content: '—';
    flex-shrink: 0;
}


/* ------------------------------------------------------------
   Field Notes  [jb_field_notes]
   ------------------------------------------------------------ */

.jb-field-notes {
    width: 100%;
}

.jb-field-note {
    margin-bottom: 2rem;
}

.jb-note-header {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
    gap: 1rem;
    margin-bottom: 0.5rem;
}

.jb-note-date {
    white-space: nowrap;
    flex-shrink: 0;
}

.jb-note-description {
    margin: 0;
}



/* ------------------------------------------------------------
   Location Meta strip  [jb_location_meta]
   ------------------------------------------------------------ */

.jb-location-meta {
    display: flex;
    flex-wrap: wrap;
}

.jb-location-meta-item {
    display: flex;
    flex-direction: column;
}

.jb-location-meta-label {
    display: block;
}

.jb-location-meta-value a {
    text-decoration: none;
}

@media (max-width: 569px) {
    .jb-location-meta {
        flex-direction: column;
    }
}





/* ------------------------------------------------------------
   Info Links  [jb_info_links]
   ------------------------------------------------------------ */

.jb-info-links {
    list-style: none;
}

.jb-info-link a {
    text-decoration: none;
}

.jb-info-link a::after {
    content: ' ↗';
    opacity: 0.5;
}


/* ------------------------------------------------------------
   Place Info  [jb_place_info]
   ------------------------------------------------------------ */

.jb-place-info {
    width: 100%;
}

.jb-place-label {
    display: block;
}


/* ------------------------------------------------------------
   Gear Recommendations  [jb_gear_recommendations]
   ------------------------------------------------------------ */

.jb-gear-list {
    list-style: none;
}

.jb-gear-item {
    display: flex;
    align-items: center;
}

.jb-gear-item::before {
    content: '—';
    flex-shrink: 0;
    opacity: 0.35;
}


/* ------------------------------------------------------------
   Photography Sections  [jb_primary_subject] etc.
   ------------------------------------------------------------ */

.jb-location-section {
    display: block;
}


/* ------------------------------------------------------------
   Shoot Info  [jb_shoot_info]
   ------------------------------------------------------------ */

.jb-shoot-info {
    width: 100%;
}

.jb-shoot-info-row {
    display: flex;
    flex-direction: column;
}

.jb-shoot-info-label {
    display: block;
}


/* ------------------------------------------------------------
   Access Info  [jb_access_info]
   ------------------------------------------------------------ */

.jb-access-info {
    width: 100%;
    display: flex;
    flex-direction: column;
}

.jb-access-row {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

.jb-access-cell {
    display: flex;
    flex-direction: column;
    justify-content: flex-start;
    align-items: flex-start;
}

.jb-access-cell--maps {
    justify-content: flex-end;
}

.jb-access-label {
    display: block;
}

.jb-maps-link {
    text-decoration: none;
    white-space: nowrap;
}

@media (max-width: 569px) {
    .jb-access-row {
        grid-template-columns: 1fr;
    }
}


/* ------------------------------------------------------------
   Route Description  [jb_route_description]
   ------------------------------------------------------------ */

.jb-route-description {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.jb-route-description-text {
    display: flex;
    flex-direction: column;
    flex: 1;
    min-width: 0;
}

.jb-route-description-label {
    display: block;
}

.jb-route-description-link {
    flex-shrink: 0;
    text-decoration: none;
    white-space: nowrap;
}


/* ------------------------------------------------------------
   Nearby Locations  [jb_nearby_locations]
   ------------------------------------------------------------ */

.jb-nearby-locations {
    width: 100%;
}

.jb-nearby-location {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.jb-nearby-location-link {
    text-decoration: none;
    flex: 1;
}

.jb-nearby-location-link::after {
    content: ' →';
}


/* ------------------------------------------------------------
   Related Cards
   ------------------------------------------------------------ */

.jb-related-card {
    display: flex;
    flex-direction: column;
}

.jb-related-card-type {
    display: block;
}

.jb-related-card-title {
    display: block;
    text-decoration: none;
}

.jb-related-card-link {
    display: block;
}


/* ------------------------------------------------------------
   Conditions Sections  [jb_light_behaviour] [jb_seasons] etc.
   ------------------------------------------------------------ */

.jb-light-sections {
    width: 100%;
}

.jb-light-section {
    display: block;
}


/* Seasons */

.jb-seasons-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 9px;
}

.jb-season-card {
    display: flex;
    flex-direction: column;
}

.jb-season-label {
    display: block;
}

.jb-season-val {
    display: block;
}

.jb-season-props {
    margin: 0;
}

.jb-season-prop {
    display: flex;
    justify-content: space-between;
    align-items: baseline;
}


/* When it fails */

.jb-when-fails {
    list-style: none;
}

.jb-when-fails-item {
    display: flex;
    align-items: flex-start;
}

.jb-when-fails-item::before {
    content: '—';
    flex-shrink: 0;
}


/* ------------------------------------------------------------
   Mountain Facts  [jb_mountain_facts] [jb_mountain_link]
   ------------------------------------------------------------ */

.jb-mountain-facts {
    width: 100%;
}

.jb-mountain-fact-row {
    display: block;
}

.jb-mountain-label {
    display: block;
}

.jb-mountain-link {
    display: flex;
    flex-direction: column;
}

.jb-mountain-link-label {
    display: block;
}

.jb-mountain-link-title {
    display: block;
    text-decoration: none;
}

.jb-related-adventures {
    display: flex;
    flex-direction: column;
}

.jb-adventure-link {
    text-decoration: none;
}

.jb-adventure-link::after {
    content: ' →';
}


/* ------------------------------------------------------------
   Guide taxonomies  [jb_guide_taxonomies]
   ------------------------------------------------------------ */

.jb-guide-taxonomies {
    display: flex;
}

.jb-tax-item {
    display: flex;
    flex-direction: column;
}

.jb-tax-label {
    display: block;
}


/* ------------------------------------------------------------
   Web Story column visibility  [jb_web_story]
   ------------------------------------------------------------ */

body:not(.has-web-story) .jb-web-story-column { display: none !important; }
