/* Opt-in area map and nearby listing cards (university pages, search). Mobile first. */
.thb-area-map { margin: 18px 0 26px; }
.thb-area-map__canvas { position: relative; height: min(60vh, 440px); min-height: 280px; border-radius: 16px; overflow: hidden; border: 1px solid #e2e8f0;
    background-color: #eef3f8;
    background-image: linear-gradient(#dfe7f0 1px, transparent 1px), linear-gradient(90deg, #dfe7f0 1px, transparent 1px),
        radial-gradient(circle at 30% 40%, #d8ead9 0 70px, transparent 71px), radial-gradient(circle at 75% 65%, #d8e6f3 0 90px, transparent 91px);
    background-size: 32px 32px, 32px 32px, 100% 100%, 100% 100%; }
.thb-area-map__cover { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 10px;
    padding: 20px; text-align: center; background: rgba(255,255,255,.55); }
.thb-area-map__icon { font-size: 2.2rem; color: #ea7317; }
.thb-area-map__title { font-weight: 800; color: #16203a; font-size: 1.05rem; }
.thb-area-map__open { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 0; background: #16203a; color: #fff;
    font-weight: 700; border-radius: 999px; padding: 11px 26px; min-height: 44px; cursor: pointer; box-shadow: 0 8px 20px rgba(15,23,42,.18); }
.thb-area-map__open:hover, .thb-area-map__open:focus-visible { background: #24305a; outline: 2px solid #f47b20; outline-offset: 2px; }
.thb-area-map__open:disabled { opacity: .8; cursor: progress; }
.thb-area-map__note { font-size: .84rem; color: #475569; margin: 0; max-width: 460px; }
.thb-area-map__approx { font-size: .78rem; color: #6b7280; margin: 2px 0 4px; }
@media (max-width: 575px) { .thb-area-map__canvas { height: 320px; } .thb-area-map__open { width: 100%; max-width: 280px; } }

.thb-nearby { margin: 8px 0 40px; }
.thb-nearby h2 { font-size: 1.5rem; font-weight: 800; color: #16203a; margin-bottom: 4px; }
.thb-nearby__lead { color: #5b6473; margin-bottom: 16px; }
.thb-nearby__grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.thb-nearby__card { display: flex; flex-direction: column; background: #fff; border: 1px solid #eef1f6; border-radius: 16px; overflow: hidden;
    text-decoration: none; color: inherit; box-shadow: 0 10px 26px rgba(15,23,42,.06); transition: transform .14s, box-shadow .14s; }
.thb-nearby__card:hover, .thb-nearby__card:focus-visible { transform: translateY(-2px); box-shadow: 0 16px 34px rgba(15,23,42,.1); }
.thb-nearby__img { position: relative; aspect-ratio: 4 / 3; background: #f1f5f9; display: flex; align-items: center; justify-content: center; color: #94a3b8; font-size: 2rem; }
.thb-nearby__img img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
@media (max-width: 575px) { .thb-nearby__img { aspect-ratio: 16 / 9; } }
.thb-nearby__body { padding: 14px 16px 16px; }
.thb-nearby__name { font-weight: 800; color: #16203a; font-size: 1rem; margin-bottom: 2px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.thb-nearby__meta { color: #5b6473; font-size: .86rem; }
.thb-nearby__price { font-weight: 800; color: #16203a; margin-top: 8px; }
.thb-nearby__price span { font-weight: 500; color: #5b6473; font-size: .85rem; }
.thb-nearby__dist { display: inline-flex; align-items: center; gap: 6px; margin-top: 6px; font-size: .84rem; font-weight: 600; color: #0f766e; }
.thb-nearby__more { display: inline-block; margin-top: 18px; font-weight: 700; color: #e86c10; text-decoration: underline; }
.thb-nearby__empty { background: #f7f9fc; border-radius: 16px; padding: 22px; color: #4b5563; }
.thb-nearby__empty a { color: #e86c10; font-weight: 700; text-decoration: underline; }
.thb-distance-chip { display: inline-flex; align-items: center; gap: 6px; font-size: .85rem; font-weight: 600; color: #0f766e; margin: 2px 0 6px; }

.thb-alert-cta { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; }
.thb-alert-cta__btn { display: inline-flex; align-items: center; min-height: 44px; border-radius: 999px; padding: 9px 20px; font-weight: 700;
    background: #16203a; color: #fff !important; border: 0; text-decoration: none; }
.thb-alert-cta__btn:hover, .thb-alert-cta__btn:focus-visible { background: #24305a; outline: 2px solid #f47b20; outline-offset: 2px; }
.thb-alert-cta__note { font-size: .85rem; color: #5b6473; }
@media (max-width: 575px) { .thb-alert-cta form, .thb-alert-cta__btn { width: 100%; justify-content: center; } }

/* University picker on the search form */
.thb-uni-picker { position: absolute; z-index: 1050; left: 0; right: 0; top: calc(100% + 4px); margin: 0; padding: 6px; list-style: none;
    background: #fff; border: 1px solid #e2e8f0; border-radius: 14px; box-shadow: 0 18px 40px rgba(15,23,42,.18);
    max-height: min(60vh, 380px); overflow-y: auto; text-align: left; min-width: 260px; }
.thb-uni-picker li { display: flex; flex-direction: column; justify-content: center; gap: 1px; min-height: 44px; padding: 7px 12px; border-radius: 10px; cursor: pointer; }
.thb-uni-picker li[aria-selected="true"], .thb-uni-picker li:hover { background: #fff4ea; }
.thb-uni-picker__name { font-weight: 700; color: #16203a; font-size: .93rem; line-height: 1.25; }
.thb-uni-picker__city { font-size: .8rem; color: #64748b; }
.thb-uni-picker li.thb-uni-picker__none { cursor: default; color: #5b6473; font-size: .88rem; background: none; }
.thb-uni-picker-host { position: relative; z-index: 30 !important; }
.thb-uni-picker-open { overflow: visible !important; z-index: 30; }
