.re-container {
    margin: 0 auto;
    max-width: min(1180px, calc(100% - 32px));
}

.re-page,
.re-detail,
.re-shortcode {
    padding: 42px 0 64px;
}

.re-page__header,
.re-detail__hero {
    margin-bottom: 28px;
}

.re-page__header h1,
.re-detail__hero h1 {
    font-size: clamp(30px, 4.4vw, 56px);
    letter-spacing: 0;
    line-height: 1.08;
    margin: 0 0 10px;
}

.re-page__header p,
.re-detail__hero p {
    color: #5f6b7a;
    font-size: 16px;
    line-height: 1.7;
    margin: 0;
    max-width: 760px;
}

.re-page__header--taxonomy,
.re-detail__hero {
    align-items: center;
    display: grid;
    gap: 28px;
    grid-template-columns: minmax(0, 1.05fr) minmax(280px, .75fr);
}

.re-page__header--taxonomy i {
    align-items: center;
    background: #eef6ff;
    border-radius: 8px;
    color: #2368b5;
    display: inline-flex;
    font-size: 24px;
    height: 46px;
    justify-content: center;
    margin-bottom: 12px;
    width: 46px;
}

.re-taxonomy-image img,
.re-detail__image img {
    aspect-ratio: 16 / 10;
    border-radius: 8px;
    display: block;
    object-fit: cover;
    width: 100%;
}

.re-search {
    align-items: end;
    background: #f7fafc;
    border: 1px solid #e4ebf2;
    border-radius: 8px;
    display: grid;
    gap: 10px;
    grid-template-columns: minmax(220px, 1.4fr) repeat(auto-fit, minmax(150px, 1fr)) auto;
    margin-bottom: 28px;
    padding: 12px;
}

.re-search--compact {
    grid-template-columns: minmax(180px, 1fr) auto;
}

.re-search input,
.re-search select {
    background: #fff;
    border: 1px solid #dce5ee;
    border-radius: 6px;
    color: #1f2937;
    height: 42px;
    min-width: 0;
    padding: 0 12px;
    width: 100%;
}

.re-search button {
    background: #2368b5;
    border: 0;
    border-radius: 6px;
    color: #fff;
    font-weight: 700;
    height: 42px;
    padding: 0 18px;
    white-space: nowrap;
}

.re-grid {
    display: grid;
    gap: 20px;
    grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
}

.re-card {
    background: #fff;
    border: 1px solid #e6edf4;
    border-radius: 8px;
    overflow: hidden;
}

.re-card__image {
    background: #eef2f6;
    display: block;
}

.re-card__image img {
    aspect-ratio: 16 / 10;
    display: block;
    object-fit: cover;
    transition: transform .25s ease;
    width: 100%;
}

.re-card:hover .re-card__image img {
    transform: scale(1.035);
}

.re-card__body {
    padding: 16px;
}

.re-card__meta {
    color: #2368b5;
    display: flex;
    flex-wrap: wrap;
    font-size: 12px;
    font-weight: 700;
    gap: 8px;
    margin-bottom: 8px;
    text-transform: uppercase;
}

.re-card h3 {
    font-size: 19px;
    letter-spacing: 0;
    line-height: 1.28;
    margin: 0 0 10px;
}

.re-card h3 a {
    color: #182230;
    text-decoration: none;
}

.re-card__location {
    color: #64748b;
    font-size: 14px;
    line-height: 1.5;
    margin-bottom: 12px;
}

.re-card__facts {
    align-items: center;
    display: flex;
    flex-wrap: wrap;
    gap: 8px 12px;
}

.re-card__facts strong {
    color: #c2410c;
    font-size: 16px;
}

.re-card__facts span {
    color: #334155;
    font-weight: 600;
}

.re-detail__facts {
    display: grid;
    gap: 12px;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    margin: 24px 0 34px;
}

.re-detail__facts div {
    background: #fff;
    border: 1px solid #e6edf4;
    border-radius: 8px;
    padding: 14px 16px;
}

.re-detail__facts span {
    color: #64748b;
    display: block;
    font-size: 12px;
    margin-bottom: 5px;
    text-transform: uppercase;
}

.re-detail__facts strong {
    color: #172033;
}

.re-content {
    font-size: 16px;
    line-height: 1.8;
    margin-bottom: 34px;
}

.re-section {
    margin-top: 36px;
}

.re-section h2 {
    font-size: 26px;
    letter-spacing: 0;
    margin: 0 0 16px;
}

.re-gallery {
    display: grid;
    gap: 14px;
    grid-template-columns: repeat(auto-fill, minmax(190px, 1fr));
}

.re-gallery a {
    background: #eef2f6;
    border-radius: 8px;
    color: #fff;
    display: block;
    overflow: hidden;
    position: relative;
}

.re-gallery img {
    aspect-ratio: 4 / 3;
    display: block;
    object-fit: cover;
    width: 100%;
}

.re-gallery span {
    background: rgba(15, 23, 42, .68);
    border-radius: 999px;
    bottom: 10px;
    font-size: 12px;
    font-weight: 700;
    left: 10px;
    padding: 5px 10px;
    position: absolute;
}

.re-map {
    border: 0;
    border-radius: 8px;
    height: 420px;
    width: 100%;
}

.re-private {
    background: #fff7ed;
    border: 1px solid #fed7aa;
    border-radius: 8px;
    padding: 18px;
}

.re-empty,
.re-pagination {
    margin-top: 22px;
}

@media (max-width: 768px) {
    .re-page__header--taxonomy,
    .re-detail__hero,
    .re-search {
        grid-template-columns: 1fr;
    }

    .re-search button {
        width: 100%;
    }
}
