#reneighbourhood-map-viewer {
    display: flex;
    flex-direction: column;
    width: 100vw;
    border-top: 1px solid #e5e7eb; 
    border-bottom: 1px solid #e5e7eb; 
}

@media screen and (min-width: 1024px) {
    #reneighbourhood-map-viewer {
        flex-direction: row;
        min-height: 100dvh;
    }
}

#remap { 
    flex: 1;
    width: 100%;
    height: 60vw;
    min-height: 60vw;
    position: sticky;
    top: 80px;
}

@media screen and (min-width: 1024px) {
    #remap { 
        flex: 0 0 40vw;
        min-height: 520px; 
        height: 100dvh; 
        position: sticky;
        top: 107px;
    }
}

@media screen and (min-width: 1280px) {
    #remap { 
        flex: 0 0 50vw;
    }
}

.info-box { 
    flex: 1;
    width: 100%;
    height: 65dvh;
    overflow: auto;
    background: white;
    padding: 32px 20px 48px; 
}

@media screen and (min-width: 1024px) {
    .info-box { 
        flex: 0 0 60vw;
        height: auto;
        min-height: 100dvh; 
        padding: 64px 32px 80px; 
        
    }
}

@media screen and (min-width: 1280px) {
    .info-box { 
        flex: 0 0 50vw;
    }
}

.info-box__inner {
    display: flex;
    flex-direction: column;
    flex-wrap: wrap;
    gap: 24px;
}

@media screen and (min-width: 1580px) {
    .info-box__inner {
        flex-direction: row;
    }
}

.redata-group {
    width: 100%;
    background: #f8f8f8;
    padding: 28px 20px;
    border-radius: 8px;
    display: flex;
    flex-direction: row;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
    transition: opacity 1s 3s ease-in-out;
    opacity: 0;
}

.inactive .redata-group {
    opacity: 0;
}

.active .redata-group {
    opacity: 1;
}

@media screen and (min-width: 1580px) {
    .redata-group {
        width: calc(50% - 12px);
    }
}

.redata-group__icon {
    width: 56px;
    flex-shrink: 0;
}

@media screen and (min-width: 1200px) {
    .redata-group__icon {
        width: 64px;
    }
}

@media screen and (min-width: 1580px) {
    .redata-group__icon {
        width: 80px;
    }
}

.redata-group__icon img {
    width: 100%;
    height: auto;
}

.redata-group__content {
    width: 100%;
}

.redata-group__content h5 {
    text-transform: uppercase;
    font-size: 16px;
    letter-spacing: 0.04em;
    margin-bottom: 24px;
}

.redata-group__content h6 {
    text-transform: uppercase;
    font-size: 13px;
    letter-spacing: 0.02em;
    margin-top: 0;
    margin-bottom: 16px;
}

.re-readmore-wrapper {
    margin-top: -1.5em;
}

.re-readmore {
    text-decoration: underline;
}

.re-comparison-row {
    display: flex;
    flex-direction: row;
    justify-content: flex-start;
    gap: 32px;
    align-items: center;
    margin-top: 20px;
}

.re-comparison-row.centred {
    justify-content: center;
}

.re-comparison-item {
    display: flex;
    flex-direction: row;
    align-items: center;
    gap: 8px;
    color: #014357;
    font-size: 18px;
}

.re-comparison-item--col {
    flex-direction: column;
    align-items: flex-start;
    gap: 0;
}

.re-comparison-item--col.centred {
    align-items: center;
}

.re-comparison-item--col h6 {
    margin-bottom: 2px;
    color: #212529;
    font-style: normal;
}

.re-comparison-item + h6 {
    margin-top: 8px;
}

.re-comparison-content-item ul {
    margin-bottom: 0;
}

.re-comparison-content-item p {
    margin-bottom: 0;
}

.re-comparison-row__col.centred {
    display: flex;
    flex-direction: column;
    align-items: center;
}

.re-comparison-row__col .re-comparison-item + .re-comparison-item {
    margin-top: 20px;
}

.re-comparison-item.current {
    color: #f37321;
}

.re-comparison-item__abrv {
    font-weight: bold;
    font-size: 18px;
    font-style: italic;
    text-align: center;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: center;
    border-radius: 99px;
    width: 32px;
    height: 32px;
    color: white;
    background-color: #014357;
    text-indent: -4px;
}

.re-comparison-item__abrv.current {
    background: #f37321;
}

.re-comparison-item__icon {
    width: 48px;
}

#re-household-type .re-comparison-item__icon {
    width: 52px;
    margin-right: -12px;
}

#re-tenure .re-comparison-item__icon {
    width: 64px;
    margin-right: -12px;
}

#re-monthly-costs .re-comparison-item__icon {
    width: 64px;
    margin-bottom: 4px;
}

.re-comparison-item__icon img {
    width: 100%;
    height: auto;
}

.transparent {
    opacity: 0;
}

/* Smooth transitions for neighbourhood content */
.neighbourhood-content {
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

/* Alpine.js x-cloak directive */
[x-cloak] {
    display: none !important;
}

/* Ensure content transitions work smoothly */
.info-box {
    position: relative;
    overflow: hidden;
}

/* Position neighbourhood content for smooth transitions */
.neighbourhood-content {
    position: relative;
    z-index: 1;
}

/* Removed staggered animation styles - redata-group elements display normally */

/* Alpine.js transition classes */
.transition {
    transition-property: all;
    transition-timing-function: cubic-bezier(0.4, 0, 0.2, 1);
    transition-duration: 150ms;
}

.ease-out {
    transition-timing-function: cubic-bezier(0, 0, 0.2, 1);
}

.ease-in {
    transition-timing-function: cubic-bezier(0.4, 0, 1, 1);
}

.duration-200 {
    transition-duration: 200ms;
}

.duration-300 {
    transition-duration: 300ms;
}

.duration-500 {
    transition-duration: 500ms;
}

.opacity-0 {
    opacity: 0;
}

.opacity-100 {
    opacity: 1;
}

.scale-95 {
    transform: scale(0.95);
}

.scale-100 {
    transform: scale(1);
}

.translate-y-4 {
    transform: translateY(1rem);
}

.-translate-y-4 {
    transform: translateY(-1rem);
}

.translate-y-0 {
    transform: translateY(0);
}

/* Map interaction transitions */
.mapboxgl-canvas {
    transition: cursor 0.2s ease;
}

/* Chart container transitions */
.chart-container {
    transition: opacity 0.5s ease-in-out;
}

/* Smooth hover transitions for buttons */
.standard-btn {
    transition: all 0.2s ease-in-out;
}

.standard-btn:hover {
    transform: translateY(-1px);
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

/* Read more/less link transitions */
.re-readmore {
    transition: color 0.2s ease-in-out;
}

.fade-in-out-enter {
    opacity: 0;
    transform: translateY(10px);
}

.fade-in-out-enter-to {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-out-leave {
    opacity: 1;
    transform: translateY(0);
}

.fade-in-out-leave-to {
    opacity: 0;
    transform: translateY(-10px);
}

/* Overview Section Charts Styling */
.chart-section {
}

.chart-section .chart-container {
    background: white;
    border-radius: 6px;
    padding: 15px;
    box-shadow: 0 2px 4px rgba(0, 0, 0, 0.05);
}

.chart-section .chart-container.chart-container--simple {
    padding: 0;
    box-shadow: none;
}

.chart-section p {
    line-height: 1.5;
}

@media (max-width: 768px) {
    .chart-section {
        padding: 15px;
        margin: 15px 0;
    }
    
    .chart-section .chart-container {
        height: 200px !important;
    }
}

/* Contact Developer Support Page Specific Styles */
.standard-card.standard-card--dev-support {
    display: flex;
    flex-direction: row;
}

.standard-card.standard-card--dev-support.team-member figure {
    width: 135px;
    aspect-ratio: 1 / 1;
}

.standard-card.standard-card--dev-support.team-member figure img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}