/* Spring MIST 2027 — Edinburgh */

body {
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
    color: #1a1a1a;
}

a {
    color: #002E40;
}

p a {
    text-decoration: underline;
}

a:hover {
    color: hsl(43, 27%, 56%);
}

.star-icon {
  font-size: 0.8rem!important;
  vertical-align: middle;
}

/* ---------- NAVBAR ---------- */
.mist-navbar {
    background-color: #fafafa;
    border-bottom: 1px solid #3d545d;
}

.mist-navbar .navbar-brand {
    font-weight: bold;
    color: #002433 !important;
    font-size: 1.25rem;
    display: flex;
    align-items: center;
}

.mist-navbar .navbar-brand img {
    height: 52px;
    width: auto;
    margin-right: 10px;
}

.mist-navbar .bgs-logo {
    height: 48px;
    width: auto;
    margin-left: 16px;
}

.mist-navbar .navbar-logos {
    display: flex;
    align-items: center;
}

.mist-navbar .nav-link {
    color: #002433 !important;
    font-weight: 500;
}

.mist-navbar .nav-link.active {
    font-weight: bold;
}

/* ---------- HERO BANNER ---------- */
.mist-hero {
    position: relative;
    background-image: url('/research/meetings/resources/2027/MIST/hero.jpg');
    background-size: cover;
    background-position: center;
    color: #fff;
    padding: clamp(50px, 10vw, 110px) 20px;
    text-align: center;
    z-index: 0;
    overflow: hidden;
    background-color: #b8d5da;
}

.mist-hero::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(255, 255, 255, 0.6);
    z-index: 1;
}

.mist-hero h1,
.mist-hero h2 {
    color: #2b2b2b !important;
    position: relative;
    z-index: 2;
}

.lead{
    font-size:1rem;
}

.mist-hero h2{
    font-weight: 600;
}

@media (max-width: 575px) {
    .mist-navbar .navbar-brand img {
        height: 32px;
        margin-right: 6px;
    }
    .mist-navbar .bgs-logo {
        height: 26px;
        margin-left: 8px;
    }
}

.banner{
    position: relative;
    background-image: url('/research/meetings/resources/2027/MIST/hero.jpg');
    background-size: cover;
    background-position: center;
    height:max(150px, 20vh);
    opacity:0.5;
}

/* ---------- PAGE HEADER ---------- */
.mist-page-header {
    background-color: #002433;
    color: #fff;
    padding: 40px 20px;
    text-align: center;
}

.mist-page-header h1 {
    color: #fff !important;
}

.header-hero{
    padding: 60px 20px!important;
}

/* ---------- SECTION SPACING ---------- */
.mist-section {
    padding: clamp(20px, 5vw, 40px) 0;
}

.mist-section h2 {
    color: #002433;
    display: inline-block;
    padding-bottom: 6px;
    margin-bottom: 1rem;
}

/* ===== Scroll reveal base state ===== */
.mist-section {
  opacity: 0;
  transform: translateY(24px);
  transition: opacity 0.6s ease-out, transform 0.6s ease-out;
  will-change: opacity, transform;
}

.mist-section.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.mist-section:nth-child(odd) {
  transition-delay: 0.05s;
}

.mist-section:nth-child(even) {
  transition-delay: 0.1s;
}

/* Respect reduced motion */
@media (prefers-reduced-motion: reduce) {
  .mist-section {
    transition: none;
    opacity: 1;
    transform: none;
  }
}

/* ---------- BLOCKS ---------- */
.el-block {
    border: 2px dashed #b9c4c8;
    border-radius: 4px;
    background-color: rgb(237, 243, 244);
    padding: clamp(30px, 6vw, 60px) 20px;
    text-align: center;
    color: #53727d;
}

.el-block .bi,
.el-block svg {
    opacity: 0.6;
}

/* ---------- CARDS ---------- */
.mist-card {
    border: none;
    border-radius: 0;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.1);
    height: 100%;
}

.mist-card .card-header {
    background-color: #002E40;
    color: #fff;
    font-weight: bold;
    border-radius: 0;
}

/* ---------- MAP ---------- */
#mist-map, #kings-map {
    width: 100%;
    height: 60vh;
    min-height: 350px;
    max-height: 600px;
}

/* ---------- FOOTER ---------- */
.mist-footer {
    background-color: #002433;
    color: #d6e7e9;
    padding: 30px 20px;
    margin-top: 40px;
}

.mist-footer a {
    color: #fff;
}

.mist-footer a:hover {
    color: hsl(43, 27%, 56%);
}

.mist-footer small {
    color: #8fa6ad;
}

/* ---------- CONTENT IMAGES ---------- */
.el-figure {
    border:#8fa6ad7d 1px solid;
    border-radius: 4px;
    background-color: rgb(237, 243, 244);
    padding: clamp(10px, 2vw, 60px) 12px;
    text-align: center;
    color: #53727d;
    overflow: hidden;
}
 
.el-figure img {
    width: 100%;
    height: auto;
    max-height: 360px;
    object-fit: cover;
    display: block;
}
 
.el-figure figcaption {
    font-size: 0.8rem;
    color: #53727d;
    padding: 8px 2px 0;
    line-height: 1.3;
}

/* ---------- RECOMMENDATION FILTERS & TABLE ---------- */
.rec-filters {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 1.25rem;
}

.rec-chip {
    background-color: #edf3f4;
    color: #002433;
    border: none;
    border-radius: 999px;
    padding: 8px 16px;
    font-size: 0.9rem;
    font-weight: 500;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease;
}

.rec-chip:hover {
    background-color: #d6e7e9;
}

.rec-chip.active {
    background-color: #002433;
    color: #fff;
}

.rec-table-wrap {
    overflow-x: auto;
    border: 2px solid #edf3f4;
    border-radius: 8px;
}

.rec-table {
    width: 100%;
    border-collapse: collapse;
    font-size: 0.95rem;
}

.rec-table thead th {
    text-align: left;
    padding: 12px 16px;
    background-color: #fafafa;
    color: #53727d;
    font-size: 0.8rem;
    text-transform: uppercase;
    letter-spacing: 0.03em;
    border-bottom: 2px solid #edf3f4;
}

.rec-table td {
    padding: 12px 16px;
    border-bottom: 2px solid #edf3f4;
    vertical-align: middle;
}

.rec-table tbody tr:last-child td {
    border-bottom: none;
}

.rec-table tbody tr:hover {
    background-color: #d1d1d1;
}

.rec-table td:first-child strong {
    display: block;
}

.rec-table td:second-child {
    color: #53727d;
}

.rec-badge {
    display: inline-block;
    margin-top: 4px;
    padding: 2px 10px;
    border-radius: 999px;
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.02em;
}

.badge-pub {
    background-color: #f5ecd9;
    color: #7a5a10;
}

.badge-food {
    background-color: #ddeaec;
    color: #1f5a63;
}

.badge-sight {
    background-color: #e4e9df;
    color: #3f5230;
}

@media (max-width: 575px) {
    .rec-table thead {
        display: none;
    }
    .rec-table, .rec-table tbody, .rec-table tr, .rec-table td {
        display: block;
        width: 100%;
    }
    .rec-table tr {
        padding: 12px 16px;
        border-bottom: 1px solid #edf3f4;
    }
    .rec-table td {
        border-bottom: none;
        padding: 2px 0;
    }
}

/* ---------- ACCOMMODATION CARDS ---------- */
.accom-card {
    height: 100%;
    border-radius: 4px;
    padding: 24px 18px;
    text-align: center;
    display: flex;
    flex-direction: column;
    align-items: center;
}

.accom-card i {
    font-size: 2.2rem;
}

.accom-filled,
.accom-filled-blue {
    border: 1px solid #d3dee0;
    background-color: #f5f9f8;
    box-shadow: 0 4px 6px rgba(0, 0, 0, 0.06), 0 1px 3px rgba(0, 0, 0, 0.08);
}

.accom-filled-blue {
    background-color: #e0eaec!important;
}

.accom-filled i,
.accom-filled-blue i {
    color: #002E40;
}

.accom-filled h3,
.accom-filled-blue h3 {
    font-size: 1.05rem;
    font-weight: bold;
    color: #002433;
    margin: 10px 0 0;
}

.accom-sub {
    font-size: 0.85rem;
    color: #53727d;
    margin-bottom: 10px;
}

.accom-detail {
    font-size: 0.82rem;
    color: #555;
    margin-bottom: 2px;
}

.accom-link {
    margin-top: 10px;
    font-size: 0.85rem;
    font-weight: 600;
    text-decoration: none;
}

.accom-link i {
    font-size: 0.75rem;
    vertical-align: 1px;
}

.accom-link:hover {
    text-decoration: underline;
}

@media (max-width: 767px) {
    .accom-card {
        padding: 20px 16px;
    }
}

.accom-offer {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(240px, 300px);
    margin-bottom: 28px;
    overflow: hidden;
    border: 1px solid #d3dee0;
    border-left: 4px solid #002e40;
    border-radius: 4px;
    background: #f5f9f8;
    color: #1a1a1a;
}

.accom-offer-content {
    padding: 26px;
}

.accom-offer-eyebrow {
    margin: 0 0 8px;
    color: #53727d;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.accom-offer h3 {
    margin: 0 0 20px;
    color: #002433;
    font-size: 1.35rem;
    font-weight: 700;
}

.accom-offer-discounts {
    display: grid;
    gap: 14px;
    margin: 0 0 20px;
    padding: 0;
    list-style: none;
}

.accom-offer-discounts li {
    display: grid;
    grid-template-columns: 100px minmax(0, 1fr);
    align-items: baseline;
    gap: 12px;
}

.accom-offer-discounts strong {
    color: #002e40;
    font-size: 1.35rem;
    white-space: nowrap;
}

.accom-offer-terms {
    margin: 0;
    color: #555;
    font-size: 0.85rem;
    line-height: 1.5;
}

.accom-offer-booking {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 26px;
    border-left: 1px solid #d3dee0;
    background: #e0eaec;
    text-align: center;
}

.accom-offer-booking p {
    margin: 0;
    font-size: 0.9rem;
}

.accom-offer-code {
    display: inline-block;
    margin: 10px 0 18px;
    padding: 6px 20px;
    border: 1px dashed #53727d;
    border-radius: 4px;
    background: #fff;
    color: #002433;
    font-size: 1.6rem;
    letter-spacing: 0.12em;
}

.accom-offer .accom-offer-button {
    padding: 10px 16px;
    border: 1px solid #002e40;
    background: #002e40;
    color: #fff;
    font-size: 0.9rem;
    font-weight: 600;
    text-decoration: none;
    white-space: normal;
}

.accom-offer .accom-offer-button:hover {
    border-color: #16495b;
    background: #16495b;
    color: #fff;
}

.accom-offer .accom-offer-button:focus-visible {
    outline: 3px solid #002e40;
    outline-offset: 3px;
}

.accom-offer-booking .accom-offer-help {
    margin-top: 12px;
    color: #425b65;
    font-size: 0.8rem;
    line-height: 1.5;
}

@media (max-width: 767px) {
    .accom-offer {
        grid-template-columns: 1fr;
    }

    .accom-offer-content,
    .accom-offer-booking {
        padding: 22px 18px;
    }

    .accom-offer-booking {
        border-top: 1px solid #d3dee0;
        border-left: 0;
    }

    .accom-offer-discounts li {
        grid-template-columns: 1fr;
        gap: 2px;
    }
}

/* Dashed voucher with a folded corner */
.accom-code-ticket {
    position: relative;
    display: block;
    width: 100%;
    max-width: 250px;
    margin: 16px 0 20px;
    padding: 16px 28px;
    border: 1px dashed #53727d;
    border-radius: 4px;
    background: #fff;
    color: #002433;
    font: inherit;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.15s ease,
                box-shadow 0.15s ease;
}

/* Turned-over top-right corner */
.accom-code-ticket::after {
    content: "";
    position: absolute;
    top: -1px;
    right: -1px;
    width: 24px;
    height: 24px;
    background: linear-gradient(
        45deg,
        #bdcfd3 0%,
        #d3e0e3 49%,
        #e0eaec 50%
    );
    border-bottom-left-radius: 4px;
    box-shadow: -2px 2px 3px rgba(0, 36, 51, 0.12);
    pointer-events: none;
}

.accom-code-ticket-label {
    display: block;
    margin-bottom: 5px;
    color: #53727d;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
}

.accom-code-ticket-action {
    display: block;
    font-size: 1.15rem;
    font-weight: 700;
}

.accom-code-ticket:hover {
    background: #f5f9f8;
    box-shadow: 0 3px 8px rgba(0, 36, 51, 0.1);
}

.accom-code-ticket:hover .accom-code-ticket-action {
    text-decoration: underline;
}

.accom-code-ticket:focus-visible {
    outline: 3px solid #002e40;
    outline-offset: 4px;
}

#accom-code-modal .modal-content {
    border: 1px solid #d3dee0;
    border-radius: 4px;
}

#accom-code-modal .modal-header {
    background: #edf3f4;
}

#accom-code-modal .modal-title {
    color: #002433;
    font-size: 1.2rem;
    font-weight: 700;
}

#accom-code-modal .accom-modal-email {
    overflow-wrap: anywhere;
}

@media (prefers-reduced-motion: reduce) {
    .accom-code-ticket {
        transition: none;
    }
}

.venue-fact {
    padding: 20px 24px;
    border-left: 4px solid #53727d;
    border-radius: 4px;
    background: #edf3f4;
}

.venue-fact h3 {
    margin: 0 0 8px;
    color: #002433;
    font-size: 1.05rem;
    font-weight: 700;
}

.venue-fact p {
    font-size: 0.95rem;
    line-height: 1.6;
}