/* AgencyOffice Website Builder — Base Styles */
/* Theme variables (--wb-*) are injected from _Layout.cshtml via WB_SiteConfig */

*, *::before, *::after { box-sizing: border-box; }

html { font-size: 16px; scroll-behavior: smooth; }

body {
    margin: 0;
    font-family: var(--wb-font-body);
    line-height: 1.6;
    color: #1a1a2e;
    background: #fff;
}

h1, h2, h3, h4, h5, h6 {
    font-family: var(--wb-font-heading);
    line-height: 1.2;
    margin-top: 0;
}

a { color: var(--wb-primary); text-decoration: none; }
a:hover { text-decoration: underline; }

img { max-width: 100%; height: auto; display: block; }

/* Container */
.wb-container { max-width: 1200px; margin: 0 auto; padding: 0 1.5rem; }

/* Sections */
.wb-section { padding: 3rem 0; }

/* ======================== */
/* Header                   */
/* ======================== */
.wb-header {
    background: #fff;
    border-bottom: 1px solid #e5e7eb;
    padding: 1rem 0;
    position: sticky;
    top: 0;
    z-index: 100;
}

.wb-header .wb-container {
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.wb-logo img { height: var(--wb-logo-height, 48px); width: auto; }
.wb-logo span { font-size: 1.25rem; font-weight: 700; color: var(--wb-secondary); }

.wb-nav-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: flex;
    gap: 1.5rem;
}

.wb-nav-item a {
    color: #374151;
    font-weight: 500;
    font-size: 0.95rem;
    padding: 0.5rem 0;
    transition: color 0.2s;
}

.wb-nav-item a:hover { color: var(--wb-primary); text-decoration: none; }
.wb-nav-item { position: relative; }
.wb-nav-item.has-children > a::after { content: " \25BE"; font-size: 0.7em; opacity: 0.6; }
.wb-nav-dropdown {
    display: none; position: absolute; top: 100%; left: 0; z-index: 100;
    list-style: none; margin: 0; padding: 0.5rem 0;
    background: #fff; border: 1px solid #e5e7eb; border-radius: 6px;
    box-shadow: 0 4px 12px rgba(0,0,0,0.1); min-width: 200px;
}
.wb-nav-dropdown li a {
    display: block; padding: 0.5rem 1rem; color: #374151; font-size: 0.9rem;
    white-space: nowrap; text-decoration: none;
}
.wb-nav-dropdown li a:hover { background: #f3f4f6; color: var(--wb-primary); }
.wb-nav-item:hover > .wb-nav-dropdown { display: block; }

.wb-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 0.5rem;
    flex-direction: column;
    gap: 5px;
}

.wb-nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #374151;
    transition: 0.2s;
}

/* ======================== */
/* Hero                     */
/* ======================== */
.wb-hero {
    background-color: var(--wb-secondary);
    color: #fff;
    padding: 5rem 0;
    text-align: center;
    background-size: cover;
    background-position: center;
    position: relative;
    overflow: hidden;
}
.wb-hero-content { position: relative; z-index: 2; }
.wb-hero--slideshow { background-image: none !important; }
.wb-hero-slides { position: absolute; inset: 0; z-index: 1; }
.wb-hero-slide {
    position: absolute; inset: 0;
    background-size: cover; background-position: center;
    opacity: 0; transition: opacity 1.2s ease-in-out;
}
.wb-hero-slide--active { opacity: 1; }
.wb-hero::after {
    content: ''; position: absolute; inset: 0; z-index: 1;
    background: rgba(0,0,0,0.35); pointer-events: none;
}
.wb-hero:not(.wb-hero--slideshow):not([style*="background-image"])::after { display: none; }

.wb-hero h1 { font-size: 2.75rem; margin-bottom: 1rem; }
.wb-hero-sub { font-size: 1.25rem; opacity: 0.9; max-width: 600px; margin: 0 auto 2rem; }

/* ======================== */
/* Buttons                  */
/* ======================== */
.wb-btn {
    display: inline-block;
    padding: 0.75rem 1.5rem;
    border-radius: 6px;
    font-weight: 600;
    font-size: 0.95rem;
    text-decoration: none;
    transition: all 0.2s;
    cursor: pointer;
    border: none;
}

.wb-btn--primary {
    background: var(--wb-primary);
    color: #fff;
}

.wb-btn--primary:hover { opacity: 0.9; text-decoration: none; }
.wb-btn--lg { padding: 1rem 2rem; font-size: 1.05rem; }
.wb-btn--sm { padding: 0.4rem 0.9rem; font-size: 0.8rem; }

/* ======================== */
/* Property Grid            */
/* ======================== */
.wb-property-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
    gap: 1.5rem;
}

.wb-property-card {
    display: block;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    transition: box-shadow 0.2s, transform 0.2s;
    color: inherit;
    text-decoration: none;
}

.wb-property-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
    text-decoration: none;
}

.wb-property-card-image {
    aspect-ratio: 16/10;
    overflow: hidden;
    background: #f3f4f6;
    position: relative;
}

.wb-property-card-image img { width: 100%; height: 100%; object-fit: cover; }

.wb-property-card-noimage {
    width: 100%; height: 100%;
    display: flex; align-items: center; justify-content: center;
    color: #9ca3af; font-size: 0.9rem;
}
.wb-property-card--confidential .wb-property-card-noimage {
    background: #1a1a2e; color: #d1d5db; font-weight: 500;
}

.wb-property-card-status {
    position: absolute; top: 0.75rem; left: 0.75rem;
    background: var(--wb-primary); color: #fff;
    padding: 0.25rem 0.75rem; border-radius: 4px;
    font-size: 0.75rem; font-weight: 600; text-transform: uppercase;
    letter-spacing: 0.03em;
}

.wb-property-card-body { padding: 1.25rem; }
.wb-property-card-body h3 { font-size: 1.1rem; margin-bottom: 0.25rem; }
.wb-property-location { color: #6b7280; font-size: 0.9rem; margin: 0 0 0.5rem; }
.wb-property-price { font-size: 1.25rem; font-weight: 700; color: var(--wb-primary); margin: 0 0 0.5rem; }
.wb-property-price-qual { font-size: 0.8rem; font-weight: 400; color: #6b7280; }
.wb-property-card-tags { display: flex; gap: 0.35rem; flex-wrap: wrap; }
.wb-property-tag { display: inline-block; background: #f3f4f6; color: #374151; padding: 0.2rem 0.6rem; border-radius: 999px; font-size: 0.75rem; }
.wb-property-card-cta { display: block; margin-top: auto; padding-top: 0.75rem; font-size: 0.875rem; font-weight: 600; color: var(--wb-primary); }
.wb-property-card:hover .wb-property-card-cta { text-decoration: underline; }
.wb-property-card-body { display: flex; flex-direction: column; }

/* ======================== */
/* Property Detail          */
/* ======================== */

/* Image Gallery */
.wb-gallery { margin-bottom: 2rem; }
.wb-gallery-main {
    position: relative; border-radius: 8px; overflow: hidden;
    background: #f3f4f6; aspect-ratio: 16/9;
}
.wb-gallery-main img { width: 100%; height: 100%; object-fit: cover; display: block; }
.wb-gallery-nav {
    position: absolute; top: 50%; transform: translateY(-50%);
    background: rgba(0,0,0,0.5); color: #fff; border: none;
    width: 44px; height: 44px; border-radius: 50%;
    font-size: 1.5rem; cursor: pointer; display: flex; align-items: center; justify-content: center;
    transition: background 0.2s;
}
.wb-gallery-nav:hover { background: rgba(0,0,0,0.75); }
.wb-gallery-nav--prev { left: 1rem; }
.wb-gallery-nav--next { right: 1rem; }
.wb-gallery-counter {
    position: absolute; bottom: 1rem; right: 1rem;
    background: rgba(0,0,0,0.6); color: #fff;
    padding: 0.25rem 0.75rem; border-radius: 4px;
    font-size: 0.8rem;
}
.wb-gallery-thumbs {
    display: flex; gap: 0.5rem; margin-top: 0.75rem;
    overflow-x: auto; padding-bottom: 0.25rem;
}
.wb-gallery-thumb {
    flex-shrink: 0; width: 80px; height: 60px;
    border-radius: 4px; overflow: hidden; cursor: pointer;
    border: 2px solid transparent; padding: 0; background: none;
    transition: border-color 0.2s, opacity 0.2s;
    opacity: 0.6;
}
.wb-gallery-thumb:hover { opacity: 0.9; }
.wb-gallery-thumb--active { border-color: var(--wb-primary); opacity: 1; }
.wb-gallery-thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Property Header */
.wb-property-header {
    display: flex; justify-content: space-between; align-items: flex-start;
    gap: 1.5rem; flex-wrap: wrap; margin-bottom: 1.5rem;
}
.wb-property-header h1 { margin-bottom: 0.25rem; }
.wb-property-location-large { color: #6b7280; font-size: 1rem; margin: 0; }
.wb-property-price-badge { text-align: right; flex-shrink: 0; }
.wb-property-price-qualifier { display: block; font-size: 0.8rem; color: #6b7280; }
.wb-property-price-large { font-size: 1.75rem; font-weight: 700; color: var(--wb-primary); }

/* Key Details Bar */
.wb-property-key-details {
    display: flex; flex-wrap: wrap; gap: 1px;
    background: #e5e7eb; border-radius: 8px; overflow: hidden;
    margin-bottom: 2rem;
}
.wb-property-key-item {
    flex: 1 1 auto; min-width: 120px;
    background: #f9fafb; padding: 1rem 1.25rem;
    text-align: center;
}
.wb-property-key-label { display: block; font-size: 0.75rem; color: #6b7280; text-transform: uppercase; letter-spacing: 0.05em; margin-bottom: 0.25rem; }
.wb-property-key-value { display: block; font-size: 0.95rem; font-weight: 600; color: #111827; }
.wb-property-status-value { color: var(--wb-primary); }

.wb-breadcrumb ol { display: flex; flex-wrap: wrap; list-style: none; padding: 0; margin: 0 0 1.5rem; font-size: 0.875rem; }
.wb-breadcrumb li { display: flex; align-items: center; color: #6b7280; }
.wb-breadcrumb li + li::before { content: "\203A"; margin: 0 0.5rem; color: #9ca3af; }
.wb-breadcrumb a { color: var(--wb-primary); text-decoration: none; }
.wb-breadcrumb a:hover { text-decoration: underline; }
.wb-breadcrumb li[aria-current="page"] { color: #111827; font-weight: 500; }

.wb-property-detail-grid { display: grid; grid-template-columns: 1fr 360px; gap: 2rem; }
.wb-property-detail-main h2 { font-size: 1.25rem; margin-bottom: 1rem; border-bottom: 2px solid var(--wb-primary); padding-bottom: 0.5rem; display: inline-block; }
.wb-property-description { line-height: 1.7; }
.wb-property-negotiator { font-size: 0.9rem; margin-bottom: 1rem; color: #374151; }
.wb-property-ref { font-size: 0.8rem; color: #9ca3af; margin: 0.25rem 0 0; }
.wb-property-tenure-label { display: block; font-size: 0.85rem; color: #374151; margin-top: 0.25rem; }

/* Property Sections */
.wb-property-section { margin-bottom: 2rem; }
.wb-property-section h2 { font-size: 1.25rem; margin-bottom: 1rem; border-bottom: 2px solid var(--wb-primary); padding-bottom: 0.5rem; display: inline-block; }
.wb-property-description { line-height: 1.7; }
.wb-property-description li { display: list-item; list-style: disc inside; padding-left: 0.5rem; margin-bottom: 0.35rem; line-height: 1.5; }
.wb-property-description ul, .wb-property-description ol { margin: 0; padding: 0 0 0 1.25rem; }

/* Videos */
.wb-property-video { margin-bottom: 1rem; }

/* Documents */
.wb-property-documents { display: flex; flex-direction: column; gap: 0.5rem; }
.wb-property-doc-link {
    display: flex; align-items: center; gap: 0.75rem;
    padding: 0.75rem 1rem; background: #f9fafb; border: 1px solid #e5e7eb;
    border-radius: 6px; color: inherit; text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
    font-size: 0.9rem;
}
.wb-property-doc-link:hover { border-color: var(--wb-primary); background: #fff; text-decoration: none; }
.wb-property-doc-icon {
    flex-shrink: 0; width: 36px; height: 36px;
    display: flex; align-items: center; justify-content: center;
    background: var(--wb-primary); color: #fff;
    border-radius: 4px; font-size: 0.7rem; font-weight: 700;
}

/* ======================== */
/* Cards                    */
/* ======================== */
.wb-card {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
}

.wb-card h3 { margin-bottom: 1rem; }

/* Team Grid */
.wb-team-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 1.5rem; }
.wb-team-card { text-align: center; padding: 1.5rem 1rem; background: #fff; border: 1px solid #e5e7eb; border-radius: 8px; }
.wb-team-photo { width: 100px; height: 100px; border-radius: 50%; object-fit: cover; margin-bottom: 0.75rem; }
.wb-team-avatar {
    width: 100px; height: 100px; border-radius: 50%; margin: 0 auto 0.75rem;
    background: var(--wb-primary); color: #fff; font-size: 1.5rem; font-weight: 700;
    display: flex; align-items: center; justify-content: center;
}
.wb-team-card h3 { font-size: 1.05rem; margin: 0 0 0.25rem; }
.wb-team-title { color: #6b7280; font-size: 0.875rem; margin: 0 0 0.5rem; }
.wb-team-contact { display: flex; justify-content: center; gap: 0.75rem; font-size: 0.85rem; }
.wb-team-link { color: var(--wb-primary); text-decoration: none; }
.wb-team-link:hover { text-decoration: underline; }
.wb-section-heading { font-size: 1.75rem; margin-bottom: 1.5rem; }
.wb-section-subtitle { font-size: 1rem; opacity: 0.7; margin-top: -1rem; margin-bottom: 1.5rem; }

/* Social Share */
.wb-social-share { margin-top: 1rem; }
.wb-social-share-links { display: flex; flex-direction: column; gap: 0.5rem; }
.wb-social-btn { display: flex; align-items: center; gap: 0.5rem; padding: 0.6rem 1rem; border-radius: 6px; font-size: 0.875rem; font-weight: 500; text-decoration: none; color: #fff; transition: opacity 0.15s; }
.wb-social-btn:hover { opacity: 0.85; }
.wb-social-btn--facebook { background: #1877f2; }
.wb-social-btn--linkedin { background: #0a66c2; }
.wb-social-btn--x { background: #000; }
.wb-social-btn--email { background: #6b7280; }

/* ======================== */
/* CTA Section              */
/* ======================== */
.wb-cta {
    background: var(--wb-secondary);
    color: #fff;
    text-align: center;
}

.wb-cta h2 { margin-bottom: 0.5rem; }
.wb-cta p { opacity: 0.9; margin-bottom: 1.5rem; }

/* ======================== */
/* Forms                    */
/* ======================== */
.wb-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; margin-bottom: 1.5rem; }
.wb-form-group--full { grid-column: 1 / -1; }
.wb-form-group label { display: block; font-weight: 500; margin-bottom: 0.25rem; font-size: 0.9rem; }
.wb-form-group input,
.wb-form-group textarea {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.95rem;
}
.wb-form-group input:focus,
.wb-form-group textarea:focus { outline: none; border-color: var(--wb-primary); box-shadow: 0 0 0 3px rgba(248,141,47,0.15); }

/* ======================== */
/* Footer                   */
/* ======================== */
.wb-footer {
    background: #1a1a2e;
    color: #d1d5db;
    padding: 3rem 0 1.5rem;
    margin-top: 2rem;
}

.wb-footer-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 2rem; margin-bottom: 2rem; }
.wb-footer-brand strong { color: #fff; font-size: 1.1rem; }
.wb-footer-links { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 1rem; }
.wb-footer-links a { color: #9ca3af; font-size: 0.9rem; }
.wb-footer-links a:hover { color: #fff; }
.wb-footer-bottom { border-top: 1px solid #374151; padding-top: 1.5rem; display: flex; justify-content: space-between; font-size: 0.85rem; }
.wb-footer-powered a { color: var(--wb-primary); }

/* ======================== */
/* Articles                 */
/* ======================== */
.wb-article-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
    gap: 1.5rem;
}

.wb-article-grid--cols-1 { grid-template-columns: minmax(0, 1fr); }
.wb-article-grid--cols-2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.wb-article-grid--cols-3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.wb-article-grid--cols-4 { grid-template-columns: repeat(4, minmax(0, 1fr)); }

@media (max-width: 1024px) {
    .wb-article-grid--cols-3,
    .wb-article-grid--cols-4 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
    .wb-article-grid--cols-2,
    .wb-article-grid--cols-3,
    .wb-article-grid--cols-4 { grid-template-columns: minmax(0, 1fr); }
}

.wb-article-card {
    display: block;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    overflow: hidden;
    color: inherit;
    text-decoration: none;
    transition: box-shadow 0.2s, transform 0.2s;
}

.wb-article-card:hover {
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transform: translateY(-2px);
    text-decoration: none;
}

.wb-article-card-image { aspect-ratio: 16/9; overflow: hidden; background: #f3f4f6; }
.wb-article-card-image img { width: 100%; height: 100%; object-fit: cover; }
.wb-article-card-body { padding: 1.25rem; }
.wb-article-card-body h3 { font-size: 1.1rem; margin: 0.25rem 0 0.5rem; }
.wb-article-card-body p { color: #6b7280; font-size: 0.9rem; margin: 0 0 0.5rem; }
.wb-article-card-body time { color: #9ca3af; font-size: 0.8rem; }
.wb-article-category { display: inline-block; background: var(--wb-primary); color: #fff; padding: 0.15rem 0.6rem; border-radius: 999px; font-size: 0.75rem; font-weight: 600; text-transform: uppercase; letter-spacing: 0.5px; }

.wb-article-hero-image { border-radius: 8px; overflow: hidden; margin-bottom: 1.5rem; max-height: 400px; }
.wb-article-hero-image img { width: 100%; height: 100%; object-fit: cover; }
.wb-article-meta { color: #6b7280; margin-bottom: 2rem; }
.wb-article-body { line-height: 1.8; }
.wb-article-body h2 { margin-top: 2rem; }
.wb-article-body img { border-radius: 8px; margin: 1.5rem 0; }

/* ======================== */
/* Alerts                   */
/* ======================== */
.wb-alert { padding: 1rem; border-radius: 6px; margin-bottom: 1.5rem; font-size: 0.9rem; }
.wb-alert--error { background: #fef2f2; color: #991b1b; border: 1px solid #fecaca; }
.wb-alert--success { background: #f0fdf4; color: #166534; border: 1px solid #bbf7d0; }

/* ======================== */
/* Video Block               */
/* ======================== */
.wb-video-wrapper { position: relative; padding-bottom: 56.25%; height: 0; overflow: hidden; border-radius: 8px; }
.wb-video-wrapper iframe { position: absolute; top: 0; left: 0; width: 100%; height: 100%; border: none; }

/* ======================== */
/* Gallery Block             */
/* ======================== */
.wb-gallery-grid {
    display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 0.75rem;
}
.wb-gallery-item { display: block; border-radius: 6px; overflow: hidden; aspect-ratio: 4/3; }
.wb-gallery-item img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.3s; }
.wb-gallery-item:hover img { transform: scale(1.05); }

/* ======================== */
/* Stats Bar                 */
/* ======================== */
.wb-stats-bar { background: var(--wb-secondary); color: #fff; }
.wb-stats-grid { display: flex; justify-content: center; flex-wrap: wrap; gap: 2rem; text-align: center; }
.wb-stat-item { min-width: 120px; }
.wb-stat-value { display: block; font-size: 2rem; font-weight: 700; line-height: 1.2; }
.wb-stat-label { display: block; font-size: 0.85rem; opacity: 0.8; margin-top: 0.25rem; }

/* ======================== */
/* Category Grid             */
/* ======================== */
.wb-category-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 1rem; }
.wb-category-card {
    display: flex; align-items: center; justify-content: center;
    padding: 1.5rem; background: #f9fafb; border: 1px solid #e5e7eb; border-radius: 8px;
    text-decoration: none; color: inherit; transition: border-color 0.2s, box-shadow 0.2s;
    text-align: center;
}
.wb-category-card:hover { border-color: var(--wb-primary); box-shadow: 0 2px 8px rgba(0,0,0,0.06); text-decoration: none; }
.wb-category-card h3 { margin: 0; font-size: 1rem; }

/* ======================== */
/* Map Block                 */
/* ======================== */
.wb-map-embed { border-radius: 8px; overflow: hidden; }
.wb-map-embed iframe { display: block; }

/* ======================== */
/* Property Search           */
/* ======================== */
.wb-search-form {
    background: #f9fafb;
    border: 1px solid #e5e7eb;
    border-radius: 8px;
    padding: 1.5rem;
    margin-bottom: 2rem;
}
.wb-search-fields {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
    gap: 1rem;
    align-items: end;
}
.wb-search-field label {
    display: block;
    font-size: 0.85rem;
    font-weight: 500;
    margin-bottom: 0.25rem;
    color: #374151;
}
.wb-search-field input,
.wb-search-field select {
    width: 100%;
    padding: 0.6rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-family: inherit;
    font-size: 0.9rem;
}
.wb-search-field input:focus,
.wb-search-field select:focus {
    outline: none;
    border-color: var(--wb-primary);
    box-shadow: 0 0 0 3px rgba(248,141,47,0.15);
}
.wb-search-results-info {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 1rem;
    color: #6b7280;
    font-size: 0.9rem;
}
.wb-pagination {
    display: flex;
    justify-content: center;
    gap: 0.35rem;
    margin-top: 2rem;
}
.wb-pagination a,
.wb-pagination span {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 36px;
    height: 36px;
    padding: 0 0.5rem;
    border: 1px solid #d1d5db;
    border-radius: 6px;
    font-size: 0.85rem;
    color: #374151;
    text-decoration: none;
    transition: border-color 0.2s, background 0.2s;
}
.wb-pagination a:hover {
    border-color: var(--wb-primary);
    background: rgba(248,141,47,0.05);
}
.wb-pagination .wb-pagination-active {
    background: var(--wb-primary);
    color: #fff;
    border-color: var(--wb-primary);
}

/* ======================== */
/* Responsive               */
/* ======================== */
@media (max-width: 768px) {
    .wb-nav { display: none; }
    .wb-nav.open { display: block; position: absolute; top: 100%; left: 0; right: 0; background: #fff; border-bottom: 1px solid #e5e7eb; padding: 1rem; }
    .wb-nav.open .wb-nav-list { flex-direction: column; gap: 0; }
    .wb-nav.open .wb-nav-item a { display: block; padding: 0.75rem 0; }
    .wb-nav-toggle { display: flex; }

    .wb-hero h1 { font-size: 2rem; }
    .wb-search-fields { grid-template-columns: 1fr; }
    .wb-property-grid { grid-template-columns: 1fr; }
    .wb-article-grid { grid-template-columns: 1fr; }
    .wb-property-detail-grid { grid-template-columns: 1fr; }
    .wb-property-header { flex-direction: column; }
    .wb-property-price-badge { text-align: left; }
    .wb-gallery-thumb { width: 60px; height: 45px; }
    .wb-form-grid { grid-template-columns: 1fr; }
    .wb-footer-grid { grid-template-columns: 1fr; }
    .wb-footer-bottom { flex-direction: column; gap: 0.5rem; }
    .wb-grid-row { grid-template-columns: 1fr; }
    .wb-grid-col { grid-column: span 1 !important; }
}

/* ======================== */
/* Scroll-triggered animations */
/* ======================== */
.wb-anim {
    opacity: 0;
    transition: opacity 0.7s ease-out, transform 0.7s ease-out;
    will-change: opacity, transform;
}
.wb-anim--fade-in    { /* opacity only */ }
.wb-anim--fade-up    { transform: translateY(24px); }
.wb-anim--slide-left { transform: translateX(-40px); }
.wb-anim--slide-right{ transform: translateX(40px); }
.wb-anim--zoom-in    { transform: scale(0.94); }

.wb-anim.wb-anim--in {
    opacity: 1;
    transform: none;
}

/* If the user has reduced-motion preference, skip animation entirely */
@media (prefers-reduced-motion: reduce) {
    .wb-anim { opacity: 1 !important; transform: none !important; transition: none !important; }
}

/* ======================== */
/* Grid block (responsive)  */
/* ======================== */
.wb-grid-row {
    display: grid;
    grid-template-columns: repeat(12, 1fr);
    gap: 1.5rem;
    align-items: start;
}

.wb-grid-col {
    grid-column: span var(--wb-col-span, 6);
    min-width: 0; /* allow children (e.g. images) to shrink rather than overflow */
    overflow-wrap: break-word;
    word-wrap: break-word;
}

/* Images/media inside a grid column must scale down with the column, otherwise
   the intrinsic image width pushes the column wider than its grid slot and
   squeezes adjacent columns to one-word-per-line on narrow viewports
   (reported by Sidney Phillips, May 2026). */
.wb-grid-col img,
.wb-grid-col video,
.wb-grid-col iframe { max-width: 100%; height: auto; }

.wb-grid-col > *:first-child { margin-top: 0; }
.wb-grid-col > *:last-child { margin-bottom: 0; }

@media (max-width: 960px) {
    /* Tablet: relax to a 2-up if span is small, otherwise keep configured span */
    .wb-grid-row { gap: 1rem; }
}

/* Below tablet, force every column to stack full-width. Previously this lived
   inside the generic 768px block at the top of the file, but the configured
   spans can still bite at narrow widths if a column's intrinsic content is
   wider than its grid slot — so promote to its own rule with !important and
   widen the breakpoint a touch so it also catches small tablets in portrait. */
@media (max-width: 820px) {
    .wb-grid-row { grid-template-columns: 1fr !important; }
    .wb-grid-col { grid-column: 1 / -1 !important; }
}

/* ========================== */
/* Property-search radius map */
/* ========================== */
.wb-psr-map-wrapper { position: relative; }

.wb-psr-map-radius-panel {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--wb-surface, #ffffff);
    border: 1px solid rgba(0,0,0,0.1);
    border-radius: 8px;
    box-shadow: 0 6px 20px rgba(0,0,0,0.12);
    padding: 14px 16px;
    width: 240px;
    z-index: 500;
    font-size: 0.9rem;
}

.wb-psr-map-radius-header {
    font-weight: 600;
    margin-bottom: 6px;
    color: var(--wb-text, #111827);
}

.wb-psr-map-radius-hint {
    margin: 0 0 10px 0;
    font-size: 0.78rem;
    color: var(--wb-text-muted, #6b7280);
    line-height: 1.4;
}

.wb-psr-map-radius-row {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    margin-bottom: 10px;
}

.wb-psr-map-radius-row > span {
    color: var(--wb-text, #111827);
    font-weight: 500;
}

.wb-psr-map-radius-select {
    flex: 1;
    padding: 4px 6px;
    border: 1px solid rgba(0,0,0,0.15);
    border-radius: 4px;
    background: #fff;
    font-size: 0.9rem;
}

.wb-psr-map-radius-actions {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
}

.wb-psr-map-search-btn {
    flex: 1;
    padding: 6px 10px;
    font-size: 0.85rem;
}

.wb-psr-map-search-btn[disabled] {
    opacity: 0.5;
    cursor: not-allowed;
}

.wb-psr-map-clear {
    font-size: 0.8rem;
    color: var(--wb-text-muted, #6b7280);
}

@media (max-width: 640px) {
    /* Move panel below the map on small screens so it doesn't cover the map */
    .wb-psr-map-radius-panel {
        position: static;
        margin-top: 8px;
        width: 100%;
    }
}

/* ======================== */
/* Radio Blocks             */
/* ======================== */

/* On Air Now */
.wb-on-air-card {
    display: flex;
    align-items: center;
    gap: 1.5rem;
    padding: 2rem;
    background: var(--wb-secondary, #1a1a2e);
    color: #fff;
    border-radius: 12px;
    position: relative;
    overflow: hidden;
}
.wb-on-air-pulse {
    position: absolute;
    top: 1rem;
    left: 1rem;
    width: 10px;
    height: 10px;
    background: #ef4444;
    border-radius: 50%;
    animation: wb-pulse 2s ease-in-out infinite;
}
@keyframes wb-pulse {
    0%, 100% { opacity: 1; box-shadow: 0 0 0 0 rgba(239,68,68,0.6); }
    50% { opacity: 0.8; box-shadow: 0 0 0 8px rgba(239,68,68,0); }
}
.wb-on-air-photo { flex-shrink: 0; }
.wb-on-air-avatar {
    width: 80px;
    height: 80px;
    border-radius: 50%;
    background: rgba(255,255,255,0.1);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 2rem;
}
.wb-on-air-info { flex: 1; }
.wb-on-air-label {
    margin: 0;
    font-size: 0.75rem;
    font-weight: 700;
    letter-spacing: 0.1em;
    color: #ef4444;
    text-transform: uppercase;
}
.wb-on-air-dj { margin: 0.25rem 0 0; font-size: 1.5rem; }
.wb-on-air-show { margin: 0.25rem 0 0; opacity: 0.7; font-size: 0.95rem; }
.wb-on-air-listeners { margin: 0.5rem 0 0; font-size: 0.85rem; opacity: 0.6; display: flex; align-items: center; gap: 0.4rem; }
.wb-on-air-listener-dot {
    width: 6px;
    height: 6px;
    background: #22c55e;
    border-radius: 50%;
    display: inline-block;
}
.wb-on-air-listen { flex-shrink: 0; }
@media (max-width: 640px) {
    .wb-on-air-card { flex-direction: column; text-align: center; }
    .wb-on-air-listen { width: 100%; text-align: center; }
}

/* DJ Schedule */
.wb-schedule-grid {
    display: grid;
    grid-template-columns: repeat(7, 1fr);
    gap: 0.5rem;
}
.wb-schedule-day {
    background: var(--wb-surface, #f9fafb);
    border-radius: 8px;
    padding: 1rem;
    min-height: 120px;
}
.wb-schedule-day--today {
    background: var(--wb-primary, #F88D2F);
    color: #fff;
}
.wb-schedule-day-name {
    margin: 0 0 0.75rem;
    font-size: 0.85rem;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    display: flex;
    align-items: center;
    gap: 0.5rem;
}
.wb-schedule-live-badge {
    font-size: 0.65rem;
    background: #ef4444;
    color: #fff;
    padding: 0.1rem 0.4rem;
    border-radius: 4px;
    font-weight: 700;
}
.wb-schedule-slots { font-size: 0.85rem; }
.wb-schedule-empty { margin: 0; opacity: 0.5; font-style: italic; font-size: 0.8rem; }
.wb-schedule-note { text-align: center; color: var(--wb-text-muted, #6b7280); font-size: 0.85rem; margin-top: 1rem; }
@media (max-width: 768px) {
    .wb-schedule-grid { grid-template-columns: 1fr; }
    .wb-schedule-day { min-height: auto; }
}

/* Mix Gallery */
.wb-mix-filters {
    display: flex;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
    flex-wrap: wrap;
}
.wb-mix-filter {
    background: var(--wb-surface, #f9fafb);
    border: 1px solid #e5e7eb;
    padding: 0.4rem 1rem;
    border-radius: 20px;
    cursor: pointer;
    font-size: 0.85rem;
    transition: all 0.2s;
}
.wb-mix-filter:hover,
.wb-mix-filter--active {
    background: var(--wb-primary, #F88D2F);
    color: #fff;
    border-color: var(--wb-primary, #F88D2F);
}
.wb-mix-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 1.5rem;
}
.wb-mix-empty { grid-column: 1 / -1; text-align: center; color: var(--wb-text-muted, #6b7280); padding: 2rem 0; }

/* DJ Roster */
.wb-dj-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
    gap: 1.5rem;
}
.wb-dj-empty { grid-column: 1 / -1; text-align: center; color: var(--wb-text-muted, #6b7280); padding: 2rem 0; }

/* DJ Bio */
.wb-dj-bio-header {
    display: flex;
    gap: 2rem;
    align-items: flex-start;
    margin-bottom: 2rem;
}
.wb-dj-bio-photo {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    object-fit: cover;
    flex-shrink: 0;
}
.wb-dj-bio-avatar {
    width: 200px;
    height: 200px;
    border-radius: 50%;
    background: var(--wb-surface, #f9fafb);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 4rem;
    flex-shrink: 0;
}
.wb-dj-bio-intro { flex: 1; }
.wb-dj-bio-intro h2 { margin: 0 0 0.5rem; font-size: 2rem; }
.wb-dj-bio-socials { display: flex; gap: 0.75rem; flex-wrap: wrap; }
.wb-dj-bio-social-link {
    display: inline-block;
    padding: 0.3rem 0.8rem;
    background: var(--wb-surface, #f9fafb);
    border-radius: 20px;
    font-size: 0.85rem;
    text-decoration: none;
    color: inherit;
    transition: background 0.2s;
}
.wb-dj-bio-social-link:hover {
    background: var(--wb-primary, #F88D2F);
    color: #fff;
    text-decoration: none;
}
.wb-dj-bio-body { margin-bottom: 2rem; line-height: 1.8; }
.wb-dj-bio-schedule,
.wb-dj-bio-mixes { margin-top: 2rem; }
.wb-dj-bio-schedule h3,
.wb-dj-bio-mixes h3 { margin-bottom: 1rem; }
@media (max-width: 640px) {
    .wb-dj-bio-header { flex-direction: column; align-items: center; text-align: center; }
    .wb-dj-bio-photo, .wb-dj-bio-avatar { width: 150px; height: 150px; }
}

/* Request Line */
.wb-request-form .wb-form-optional { font-weight: 400; opacity: 0.6; font-size: 0.85em; }
.wb-request-success { color: #22c55e; font-weight: 600; margin-top: 1rem; }

/* Station Chat */
.wb-chat-container {
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    background: var(--wb-surface, #f9fafb);
}
.wb-chat-messages {
    flex: 1;
    overflow-y: auto;
    padding: 1rem;
}
.wb-chat-placeholder {
    text-align: center;
    color: var(--wb-text-muted, #6b7280);
    padding: 2rem 0;
}
.wb-chat-input {
    display: flex;
    gap: 0.5rem;
    padding: 0.75rem;
    border-top: 1px solid #e5e7eb;
    background: #fff;
}
.wb-chat-input input {
    flex: 1;
    padding: 0.5rem 0.75rem;
    border: 1px solid #d1d5db;
    border-radius: 8px;
    font-size: 0.9rem;
}
.wb-chat-input button { flex-shrink: 0; }

/* Podcast Feed */
.wb-podcast-header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    margin-bottom: 1.5rem;
}
.wb-podcast-header .wb-section-heading { margin-bottom: 0; }
.wb-podcast-rss {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.8rem;
    background: var(--wb-surface, #f9fafb);
    border-radius: 6px;
    font-size: 0.85rem;
    color: inherit;
    text-decoration: none;
    transition: background 0.2s;
}
.wb-podcast-rss:hover { background: #e5e7eb; text-decoration: none; }
.wb-podcast-rss svg { color: #f97316; }
.wb-podcast-episodes { }
.wb-podcast-empty { text-align: center; color: var(--wb-text-muted, #6b7280); padding: 2rem 0; }

/* Events Grid */
.wb-events-grid { background: var(--wb-secondary, #1a1a2e); color: #fff; }
.wb-events-grid .wb-section-heading { color: #fff; }
.wb-events-grid .wb-section-subtitle { color: rgba(255,255,255,0.7); margin-bottom: 2rem; }
.wb-events-cards {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}
.wb-events-card {
    background: rgba(255,255,255,0.06);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.wb-events-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.wb-events-card-image { position: relative; aspect-ratio: 16/9; background: rgba(255,255,255,0.04); }
.wb-events-card-placeholder {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.25);
}
.wb-events-card-body { padding: 1.25rem; }
.wb-events-card-body h3 { margin: 0 0 0.5rem; font-size: 1.1rem; }
.wb-events-meta { display: flex; flex-wrap: wrap; gap: 0.75rem; align-items: center; margin-bottom: 0.75rem; font-size: 0.85rem; }
.wb-events-date { opacity: 0.8; }
.wb-events-location {
    display: inline-flex; align-items: center; gap: 0.3rem;
    padding: 0.15rem 0.6rem; border-radius: 12px; font-size: 0.8rem;
}
.wb-events-location--online { background: rgba(34,197,94,0.2); color: #4ade80; }
.wb-events-location--venue { background: rgba(59,130,246,0.2); color: #60a5fa; }
.wb-events-days { margin: 0.75rem 0; padding: 0.75rem; background: rgba(255,255,255,0.04); border-radius: 8px; font-size: 0.85rem; }
.wb-events-day-row { padding: 0.25rem 0; }
.wb-events-day-row + .wb-events-day-row { border-top: 1px solid rgba(255,255,255,0.08); }
/* Hero variant */
.wb-events-hero {
    display: grid; grid-template-columns: 1fr 1fr; gap: 2rem;
    background: rgba(255,255,255,0.06); border-radius: 12px; overflow: hidden; margin-bottom: 2rem;
}
.wb-events-hero-image { position: relative; min-height: 280px; background: rgba(255,255,255,0.04); }
.wb-events-hero-placeholder {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.25);
}
.wb-events-hero-content { padding: 2rem; display: flex; flex-direction: column; justify-content: center; }
.wb-events-hero-title { margin: 0 0 1rem; font-size: 1.75rem; }
/* Compact list variant */
.wb-events-list-item {
    display: flex; align-items: center; gap: 1.5rem;
    padding: 1rem 0; border-bottom: 1px solid rgba(255,255,255,0.08);
}
.wb-events-list-item:last-child { border-bottom: none; }
.wb-events-list-date { min-width: 120px; font-size: 0.9rem; opacity: 0.8; }
.wb-events-list-info { flex: 1; }
.wb-events-list-info h3 { margin: 0 0 0.25rem; font-size: 1rem; }
@media (max-width: 768px) {
    .wb-events-hero { grid-template-columns: 1fr; }
    .wb-events-hero-image { min-height: 180px; }
    .wb-events-list-item { flex-direction: column; align-items: flex-start; gap: 0.5rem; }
    .wb-events-list-date { min-width: auto; }
}

/* Spotify Playlist Grid */
.wb-spotify-grid { background: var(--wb-secondary, #1a1a2e); color: #fff; }
.wb-spotify-grid .wb-section-heading { color: #fff; }
.wb-spotify-grid .wb-section-subtitle { color: rgba(255,255,255,0.7); margin-bottom: 2rem; }
.wb-spotify-cards {
    display: grid;
    gap: 1.25rem;
}
.wb-spotify-card {
    background: rgba(255,255,255,0.06);
    border-radius: 12px;
    overflow: hidden;
    transition: transform 0.2s, box-shadow 0.2s;
}
.wb-spotify-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.wb-spotify-card-cover { position: relative; aspect-ratio: 1; background: rgba(255,255,255,0.04); }
.wb-spotify-card-placeholder {
    position: absolute; inset: 0;
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.2);
}
.wb-spotify-card-body { padding: 1rem; }
.wb-spotify-card-title { margin: 0 0 0.25rem; font-size: 0.95rem; font-weight: 600; display: block; }
.wb-spotify-card-tracks { font-size: 0.8rem; opacity: 0.6; display: block; margin-bottom: 0.75rem; }
.wb-btn--spotify { background: #1db954; color: #fff; border-color: #1db954; }
.wb-btn--spotify:hover { background: #1ed760; border-color: #1ed760; }
@media (max-width: 768px) {
    .wb-spotify-cards { grid-template-columns: repeat(2, 1fr) !important; }
}
@media (max-width: 480px) {
    .wb-spotify-cards { grid-template-columns: 1fr !important; }
}

/* Weekly Chart */
.wb-weekly-chart { background: var(--wb-secondary, #1a1a2e); color: #fff; }
.wb-weekly-chart .wb-section-heading { color: #fff; margin-bottom: 0; }
.wb-weekly-chart .wb-section-subtitle { color: rgba(255,255,255,0.7); margin-bottom: 1.5rem; }
.wb-chart-header {
    display: flex; align-items: baseline; justify-content: space-between;
    margin-bottom: 1.5rem; flex-wrap: wrap; gap: 0.5rem;
}
.wb-chart-period {
    font-size: 0.85rem; padding: 0.3rem 0.8rem;
    background: rgba(255,255,255,0.1); border-radius: 16px;
}
.wb-chart-list { display: flex; flex-direction: column; gap: 0; }
.wb-chart-entry {
    display: flex; align-items: center; gap: 1rem;
    padding: 0.75rem 1rem; border-radius: 8px;
    transition: background 0.15s;
}
.wb-chart-entry:hover { background: rgba(255,255,255,0.06); }
.wb-chart-entry:nth-child(odd) { background: rgba(255,255,255,0.02); }
.wb-chart-entry:nth-child(odd):hover { background: rgba(255,255,255,0.06); }
.wb-chart-rank {
    min-width: 2rem; text-align: center; font-weight: 700;
    font-size: 1.1rem; opacity: 0.5;
}
.wb-chart-rank--top { opacity: 1; color: var(--wb-primary, #F88D2F); font-size: 1.25rem; }
.wb-chart-cover { width: 48px; height: 48px; border-radius: 6px; overflow: hidden; flex-shrink: 0; }
.wb-chart-cover-placeholder {
    width: 100%; height: 100%;
    background: rgba(255,255,255,0.06);
    display: flex; align-items: center; justify-content: center;
    color: rgba(255,255,255,0.2);
}
.wb-chart-info { flex: 1; min-width: 0; }
.wb-chart-title { display: block; font-weight: 600; font-size: 0.95rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.wb-chart-dj { display: block; font-size: 0.8rem; opacity: 0.6; }
.wb-chart-stats { display: flex; gap: 1rem; flex-shrink: 0; }
.wb-chart-stat {
    display: inline-flex; align-items: center; gap: 0.3rem;
    font-size: 0.8rem; opacity: 0.6;
}
@media (max-width: 640px) {
    .wb-chart-entry { gap: 0.5rem; padding: 0.6rem 0.5rem; }
    .wb-chart-cover { width: 40px; height: 40px; }
    .wb-chart-stats { flex-direction: column; gap: 0.1rem; }
}

/* Platform Links Grid */
.wb-platform-links { background: var(--wb-secondary, #1a1a2e); color: #fff; }
.wb-platform-links .wb-section-heading { color: #fff; }
.wb-platform-links .wb-section-subtitle { color: rgba(255,255,255,0.7); margin-bottom: 2rem; }
.wb-platform-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1.25rem;
}
.wb-platform-card {
    background: rgba(255,255,255,0.06);
    border-radius: 12px;
    padding: 1.5rem;
    text-align: center;
    transition: transform 0.2s, box-shadow 0.2s;
}
.wb-platform-card:hover { transform: translateY(-2px); box-shadow: 0 8px 24px rgba(0,0,0,0.3); }
.wb-platform-icon {
    width: 56px; height: 56px; margin: 0 auto 1rem;
    display: flex; align-items: center; justify-content: center;
    background: rgba(255,255,255,0.08); border-radius: 50%;
    color: var(--wb-primary, #F88D2F);
}
.wb-platform-label { margin: 0 0 0.25rem; font-size: 1.1rem; }
.wb-platform-desc { font-size: 0.85rem; opacity: 0.6; margin: 0 0 1rem; }
.wb-btn--outline {
    background: transparent; color: #fff;
    border: 1px solid rgba(255,255,255,0.25);
}
.wb-btn--outline:hover {
    background: var(--wb-primary, #F88D2F); border-color: var(--wb-primary, #F88D2F);
    color: #fff;
}
@media (max-width: 768px) {
    .wb-platform-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 480px) {
    .wb-platform-grid { grid-template-columns: 1fr; }
}

/* ----- Multi-column page layouts -----------------------------------------
   The wb-layout-* class on .wb-page is set from WB_Pages.LayoutTemplate.
   On multi-column layouts the page renders two regions (wb-region-main +
   wb-region-sidebar) — full-width pages skip the grid entirely so existing
   single-column markup still flows edge-to-edge inside its own .wb-section.
   --------------------------------------------------------------------- */

.wb-page.wb-layout-sidebar-right,
.wb-page.wb-layout-sidebar-left,
.wb-page.wb-layout-two-column {
    display: grid;
    gap: 2rem;
    max-width: var(--wb-container-max, 1280px);
    margin: 0 auto;
    padding: 2rem 1rem;
    align-items: start;
}

.wb-page.wb-layout-sidebar-right { grid-template-columns: minmax(0, 1fr) minmax(0, 320px); }
.wb-page.wb-layout-sidebar-left  { grid-template-columns: minmax(0, 320px) minmax(0, 1fr); }
.wb-page.wb-layout-two-column    { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }

/* On sidebar-left layouts, render the aside FIRST visually via grid order. */
.wb-page.wb-layout-sidebar-left .wb-region-sidebar { order: 0; }
.wb-page.wb-layout-sidebar-left .wb-region-main    { order: 1; }
.wb-page.wb-layout-sidebar-right .wb-region-main    { order: 0; }
.wb-page.wb-layout-sidebar-right .wb-region-sidebar { order: 1; }

.wb-region-main,
.wb-region-sidebar {
    min-width: 0; /* prevents grid blowout from long unbreakable content */
}

/* Sidebar regions: tighter padding inside their child sections so they read
   as sidebar widgets rather than full-bleed page sections. */
.wb-region-sidebar > .wb-section,
.wb-region-sidebar > [data-wb-animate] > .wb-section {
    padding: 1rem 0;
}
.wb-region-sidebar > .wb-section > .wb-container,
.wb-region-sidebar > [data-wb-animate] > .wb-section > .wb-container {
    padding: 0;
}

/* Stack to one column on narrow screens. */
@media (max-width: 900px) {
    .wb-page.wb-layout-sidebar-right,
    .wb-page.wb-layout-sidebar-left,
    .wb-page.wb-layout-two-column {
        grid-template-columns: 1fr;
        gap: 1rem;
    }
    .wb-page.wb-layout-sidebar-left .wb-region-sidebar { order: 1; }
    .wb-page.wb-layout-sidebar-left .wb-region-main    { order: 0; }
}
