/* ReloExplorer Core: components. Colours come from the child theme's variables, with fallbacks. */
.rex-fresh, .rex-guide-meta, .rex-notice, .rex-disclaimer { border-radius: 10px; padding: 12px 16px; margin: 0 0 20px; font-size: 15px; }
.rex-fresh--ok { background: #e8f4f1; color: #1d5c52; }
.rex-fresh--stale { background: #fdf1e3; color: #7a4a12; border-left: 4px solid #d98a2b; }
.rex-notice { background: #e8f4f1; color: #1d5c52; }
.rex-guide-meta { background: var(--rex-sand, #efe6d8); padding: 16px 20px; }
.rex-guide-meta p { margin: 0 0 6px; }
.rex-disclaimer { font-size: 14px; color: #555; background: transparent; padding: 0; }

.rex-grid { display: grid; gap: 24px; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); margin: 24px 0; }
.rex-card { background: #fff; border-radius: 14px; overflow: hidden; box-shadow: 0 4px 18px rgba(20, 35, 60, .08); transition: transform .2s, box-shadow .2s; }
.rex-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(20, 35, 60, .14); }
.rex-card__img { display: block; position: relative; aspect-ratio: 4 / 3; background: var(--rex-sand, #efe6d8); }
.rex-card__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.rex-card__body { padding: 16px 18px 18px; }
.rex-card__body h3 { font-size: 18px; margin: 0 0 6px; line-height: 1.3; }
.rex-card__body h3 a { color: var(--rex-navy, #16263f); text-decoration: none; }
.rex-card__price { font-weight: 700; color: var(--rex-teal, #2f8f8b); margin: 0 0 4px; font-size: 17px; }
.rex-card__facts { color: #666; font-size: 14px; margin: 0; }
.rex-chip { position: absolute; top: 12px; left: 12px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 99px; }
.rex-chip--stale { background: #fdf1e3; color: #7a4a12; }
.rex-unconfirmed { opacity: .85; }

.rex-country { position: relative; display: block; aspect-ratio: 4 / 5; border-radius: 16px; overflow: hidden; background: var(--rex-navy, #16263f); color: #fff; text-decoration: none; }
.rex-country img { width: 100%; height: 100%; object-fit: cover; transition: transform .4s; }
.rex-country:hover img { transform: scale(1.05); }
.rex-country__label { position: absolute; inset: auto 0 0 0; padding: 40px 18px 18px; background: linear-gradient(transparent, rgba(10, 20, 40, .75)); display: flex; flex-direction: column; }
.rex-country__label strong { font-size: 22px; }
.rex-country__label span { font-size: 14px; opacity: .9; }

.rex-destination-explorer { margin: 28px 0 40px; color: var(--rex-charcoal, #2e3238); }
.rex-destination-explorer__intro { margin-bottom: 20px; }
.rex-eyebrow { color: var(--rex-teal, #2f8f8b); text-transform: uppercase; letter-spacing: .09em; font-size: 12px; font-weight: 700; }
.rex-destination-explorer__intro h2 { color: var(--rex-navy, #16263f); font-size: clamp(26px, 3vw, 38px); line-height: 1.2; margin: 6px 0 8px; }
.rex-destination-explorer__intro p { margin: 0; }
.rex-destination-search { background: var(--rex-sand, #efe6d8); border-radius: 16px; padding: 20px; margin-bottom: 18px; }
.rex-destination-search > label { display: block; font-weight: 700; color: var(--rex-navy, #16263f); margin-bottom: 8px; }
.rex-destination-search__controls { display: flex; gap: 10px; }
.rex-destination-search__controls input { flex: 1; min-width: 0; height: 48px; border: 1px solid #d8d2c8; border-radius: 9px; padding: 0 14px; font: inherit; background: #fff; }
.rex-destination-search__controls button { border: 0; border-radius: 9px; padding: 0 24px; background: var(--rex-teal, #2f8f8b); color: white; font: inherit; font-weight: 700; cursor: pointer; }
.rex-destination-search__hint { color: #5e6267; font-size: 13px; margin: 8px 0 12px; }
.rex-destination-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.rex-map-region-picker { display:flex; align-items:center; justify-content:space-between; gap:12px; margin:18px 0 10px; }
.rex-map-region-picker label { color:var(--rex-navy,#16263f); font-weight:700; }
.rex-map-region-picker select { min-height:40px; border:1px solid #d8d2c8; border-radius:8px; padding:0 34px 0 12px; background:#fff; color:var(--rex-charcoal,#2e3238); font:inherit; }
.rex-map-region-list { display:flex; flex-wrap:wrap; gap:8px; margin-top:10px; }
.rex-map-region-option { border:1px solid rgba(22,38,63,.2); border-radius:999px; padding:8px 13px; color:var(--rex-navy,#16263f); background:#fff; font:inherit; cursor:pointer; }
.rex-map-region-option:hover,.rex-map-region-option:focus-visible,.rex-map-region-option.is-active { border-color:var(--rex-teal,#2f8f8b); background:var(--rex-teal,#2f8f8b); color:#fff; }
.rex-destination-chip { border: 1px solid rgba(22, 38, 63, .2); background: rgba(255,255,255,.72); border-radius: 999px; padding: 7px 13px; color: var(--rex-navy, #16263f); font: inherit; font-size: 14px; cursor: pointer; }
.rex-destination-chip:hover, .rex-destination-chip:focus-visible { background: var(--rex-navy, #16263f); color: #fff; }
.rex-world-map { overflow: hidden; border-radius: 16px; background: #e7eff0; box-shadow: 0 5px 20px rgba(20,35,60,.1); }
.rex-world-map__canvas { width: 100%; height: clamp(340px, 44vw, 540px); background-color: #dbe9eb; }
.rex-world-map__notice { min-height: 48px; padding: 10px 16px; background: #fff; display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.rex-world-map__notice .rex-btn { padding: 8px 16px; }
.rex-destination-result { display: inline-block; }
.rex-world-map__notice span { color: #686d73; font-size: 14px; }
.rex-map-breadcrumbs { display: flex; flex-wrap: wrap; gap: 7px; padding: 10px 14px; background: #f7f6f2; border-bottom: 1px solid #e8e4dc; }
.rex-map-breadcrumbs button { border: 0; background: transparent; color: var(--rex-navy, #16263f); padding: 3px 5px; font: inherit; font-size: 13px; font-weight: 700; cursor: pointer; }
.rex-map-breadcrumbs button + button::before { content: '›'; color: #8a8d90; margin-right: 10px; }
.rex-map-attribution { margin: 0; padding: 7px 12px; background: #fff; color: #646a70; font-size: 11px; line-height: 1.45; }
.rex-map-count-wrap { background: transparent; border: 0; }
.rex-map-region-label { border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; color: #16263f !important; font-size: 9px !important; font-weight: 700 !important; line-height: 1.05 !important; padding: 1px 2px !important; text-align: center; text-shadow: 0 1px 2px #fff, 1px 0 2px #fff, 0 -1px 2px #fff, -1px 0 2px #fff; white-space: nowrap; pointer-events: none; }
.rex-map-region-label::before { display: none !important; }
.rex-map-count { display: flex; width: 42px; height: 42px; border: 2px solid #fff; border-radius: 50%; align-items: center; justify-content: center; color: #fff; background: var(--rex-teal, #2f8f8b); box-shadow: 0 2px 10px rgba(22,38,63,.3); font-size: 13px; font-weight: 800; }
.rex-map-loading .rex-world-map__canvas { cursor: progress; }
.rex-map-property-popup { display: grid; gap: 6px; min-width: 150px; }
.rex-map-property-popup img { width: 190px; height: 105px; object-fit: cover; border-radius: 6px; }
.rex-map-property-popup a { color: var(--rex-navy, #16263f); font-weight: 700; }
.rex-map-property-popup strong { color: var(--rex-teal, #2f8f8b); }
.leaflet-popup-content-wrapper { border-radius: 10px; }
@media (max-width: 640px) {
	.rex-destination-search { padding: 15px; }
	.rex-destination-search__controls { flex-direction: column; }
	.rex-destination-search__controls button { min-height: 46px; }
	.rex-map-region-picker { align-items:flex-start; flex-direction:column; }
	.rex-world-map__canvas { height: 360px; }
}

.rex-btn, .rex-filter button, .rex-report button, .rex-seller-table button { display: inline-block; background: var(--rex-teal, #2f8f8b); color: #fff !important; border: 0; border-radius: 999px; padding: 10px 22px; font-weight: 600; cursor: pointer; text-decoration: none; }
.rex-btn:hover, .rex-filter button:hover, .rex-report button:hover { background: var(--rex-navy, #16263f); }

.rex-report { margin: 32px 0; font-size: 15px; }
.rex-report summary { cursor: pointer; color: #666; }
.rex-report select, .rex-report textarea, .rex-report input[type=email] { width: 100%; max-width: 480px; }
.rex-hp { position: absolute !important; left: -9999px; }

.rex-filter { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; background: var(--rex-sand, #efe6d8); padding: 16px; border-radius: 14px; }
.rex-filter label { display: flex; flex-direction: column; font-size: 14px; font-weight: 600; gap: 4px; }
.rex-pager { display: flex; gap: 8px; }
.rex-pro-details { display: grid; grid-template-columns: max-content 1fr; gap: 6px 16px; background: var(--rex-sand, #efe6d8); padding: 16px 20px; border-radius: 12px; }
.rex-pro-details dt { font-weight: 700; }
.rex-pro-details dd { margin: 0; }

.rex-seller-table { width: 100%; border-collapse: collapse; }
.rex-seller-table th, .rex-seller-table td { padding: 10px; border-bottom: 1px solid #e5e5e5; text-align: left; }
.rex-seller-table button { padding: 6px 12px; font-size: 13px; margin: 2px 0; }
.rex-state-unconfirmed td:nth-child(2), .rex-state-due td:nth-child(2) { color: #b7791f; font-weight: 600; }
.rex-state-expired td:nth-child(2) { color: #c53030; font-weight: 600; }
@media (max-width: 640px) {
	.rex-seller-table thead { display: none; }
	.rex-seller-table td { display: block; border: 0; padding: 4px 0; }
	.rex-seller-table tr { display: block; padding: 10px 0; border-bottom: 1px solid #e5e5e5; }
}
