/**
 * Homepage — Consolidated BEM Styles (v3.0.0)
 *
 * All homepage section styles for the child template override.
 * Replaces: hero-homepage.css, homepage-about.css, homepage-residences.css,
 * and homepage sections from header-overrides.css.
 *
 * Sections:
 *   1. Hero Banner
 *   2. Search Card
 *   3. Top Cities Grid
 *   4. Featured Residences
 *   5. Journey Panels
 *   6. Testimonials
 *   7. Responsive Breakpoints
 *
 * @version 3.0.0
 */


/* ================================================================
   1. HERO BANNER
   ================================================================ */

.uksr-home-hero {
    height: 620px;
    overflow: hidden;
    position: relative;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

/* Bottom-up dark gradient overlay */
.uksr-home-hero__overlay {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        to top,
        rgba(0, 0, 50, 0.85) 0%,
        rgba(0, 0, 50, 0.55) 40%,
        rgba(0, 0, 50, 0.15) 70%,
        transparent 100%
    );
    pointer-events: none;
}

/* Hero content — centered, pushed to bottom */
.uksr-home-hero__inner {
    position: absolute;
    inset: 0;
    z-index: 2;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: flex-end;
    padding: 0 24px 80px;
    text-align: center;
}

/* Trust badge — frosted glass pill */
.uksr-home-hero__badge {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 20px;
    margin-bottom: 20px;
    background: rgba(255, 255, 255, 0.12);
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.25);
    border-radius: 9999px;
    color: rgba(255, 255, 255, 0.9);
    font-size: 13px;
    font-weight: 600;
    letter-spacing: 0.02em;
    white-space: nowrap;
    order: -2;
}

.uksr-home-hero__badge em {
    font-style: normal;
    color: var(--uksr-green, #B1CB0C);
    font-weight: 700;
}

/* Title */
.uksr-home-hero__title {
    max-width: 800px;
    font-family: var(--uksr-font-primary);
    font-size: 58px;
    font-weight: 800;
    font-style: normal;
    line-height: 1.1;
    color: #fff;
    text-align: center;
    letter-spacing: -0.02em;
    margin: 0 0 24px;
    padding: 0;
}

/* Magenta accent line below title */
.uksr-home-hero__title::after {
    content: '';
    display: block;
    width: 60px;
    height: 4px;
    background: var(--uksr-magenta, #E6007E);
    margin: 20px auto 0;
    border-radius: 2px;
}

/* Subtitle */
.uksr-home-hero__subtitle {
    font-size: 19px;
    font-weight: 400;
    line-height: 1.5;
    color: rgba(255, 255, 255, 0.85);
    text-align: center;
    max-width: 520px;
    margin: 0;
    order: 2;
}


/* ================================================================
   2. SEARCH CARD
   ================================================================ */

/* ID included to override parent #home-listings-bg { padding: 50px 0 } */
#home-listings-bg.uksr-home-search {
    background: transparent;
    margin-top: -48px;
    position: relative;
    z-index: 10;
    padding: 0 0 40px;
}

.uksr-home-search__card {
    max-width: 960px;
    margin: 0 auto;
    padding: 0 24px;
}

.uksr-home-search__form {
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 12px 48px rgba(0, 0, 50, 0.18), 0 2px 8px rgba(0, 0, 50, 0.08);
    padding: 28px 36px;
}

.uksr-home-search__row {
    display: flex;
    align-items: flex-end;
    gap: 16px;
    flex-wrap: nowrap;
}

.uksr-home-search__field {
    flex: 1 1 0%;
}

.uksr-home-search__field--submit {
    flex: 0 0 auto;
}

/* Labels */
.uksr-home-search__label {
    display: block;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.06em;
    color: var(--uksr-dark-blue, #29235C);
    margin-bottom: 8px;
}

/* Inputs + Select */
.uksr-home-search__select,
.uksr-home-search__date {
    width: 100%;
    font-size: 15px;
    border: 1.5px solid #b0b8c1;
    border-radius: 8px;
    padding: 10px 14px;
    height: 46px;
    background: #fff;
    color: var(--uksr-grey-800, #343a40);
    box-shadow: none;
    box-sizing: border-box;
    transition: border-color 0.2s ease;
}

/* Native select chevron */
.uksr-home-search__select {
    -webkit-appearance: none;
    -moz-appearance: none;
    appearance: none;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8'%3E%3Cpath d='M1 1l5 5 5-5' stroke='%2329235C' stroke-width='1.5' fill='none'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 14px center;
    padding-right: 36px;
    cursor: pointer;
}

.uksr-home-search__select:focus,
.uksr-home-search__date:focus {
    border-color: var(--uksr-green, #B1CB0C);
    outline: none;
}

/* Submit button */
.uksr-home-search__submit {
    background: var(--uksr-magenta, #E6007E);
    color: #fff;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.04em;
    height: 46px;
    padding: 0 28px;
    cursor: pointer;
    transition: background 0.2s ease, transform 0.15s ease;
    white-space: nowrap;
}

.uksr-home-search__submit:hover {
    background: var(--uksr-magenta-dark, #b80064);
    transform: translateY(-1px);
}

/* Warning message */
.uksr-home-search .search_warning {
    margin-top: 12px;
    padding: 10px 16px;
    background: #fff3f3;
    border: 1px solid #e74c3c;
    border-radius: 8px;
    color: #c0392b;
    font-size: 14px;
    text-align: center;
}


/* ================================================================
   3. TOP CITIES GRID
   ================================================================ */

.uksr-home-cities {
    padding: 48px 0 56px;
    background: #fff;
}

.uksr-home-cities__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 24px;
}

/* Heading — centered with magenta underline */
.uksr-home-cities__title {
    background: none;
    color: var(--uksr-dark-blue, #29235C);
    font-family: var(--uksr-font-primary);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    text-transform: none;
    letter-spacing: 0;
    padding: 0 0 8px;
    margin: 0 0 32px;
    text-align: center;
    position: relative;
}

.uksr-home-cities__title::after {
    content: '';
    display: block;
    width: 300px;
    max-width: 80%;
    height: 3px;
    background: var(--uksr-magenta, #E6007E);
    margin: 15px auto 0;
}

/* Grid — 3 columns */
.uksr-home-cities__grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    max-width: 1100px;
    margin: 0 auto;
}

/* City card — background image with gradient overlay */
.uksr-home-cities__card {
    display: block;
    position: relative;
    overflow: hidden;
    border-radius: 16px;
    aspect-ratio: 4 / 3;
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    box-shadow: 0 4px 16px rgba(0, 0, 50, 0.12);
    transition: box-shadow 0.4s ease, transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
    text-decoration: none;
}

.uksr-home-cities__card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 50, 0.2);
    transform: scale(1.06);
    text-decoration: none;
}

/* Bottom gradient for text legibility */
.uksr-home-cities__card::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 65%;
    background: linear-gradient(
        to top,
        rgba(0, 0, 50, 0.7) 0%,
        rgba(0, 0, 50, 0.25) 50%,
        transparent 100%
    );
    z-index: 1;
    pointer-events: none;
    transition: opacity 0.4s ease;
}

.uksr-home-cities__card:hover::after {
    opacity: 0.85;
}

/* City name — bottom-left */
.uksr-home-cities__card-name {
    position: absolute;
    bottom: 20px;
    left: 24px;
    z-index: 2;
    color: #fff;
    font-family: var(--uksr-font-primary);
    font-size: 22px;
    font-weight: 700;
    letter-spacing: 0.01em;
    text-shadow: 0 2px 8px rgba(0, 0, 0, 0.3);
    margin: 0;
    padding: 0;
    line-height: 1.2;
    transition: transform 0.3s ease;
}

.uksr-home-cities__card:hover .uksr-home-cities__card-name {
    transform: translateX(4px);
}


/* ================================================================
   4. FEATURED RESIDENCES
   ================================================================ */

/* Section container */
.uksr-featured-residences {
    background: var(--uksr-grey-50, #f9fafb);
    padding: 56px 0 64px;
    overflow: hidden;
}

/* Heading — centered with magenta underline */
.uksr-featured-residences__title {
    font-family: var(--uksr-font-primary);
    font-size: 32px;
    font-weight: 700;
    color: var(--uksr-dark-blue, #29235C);
    text-align: center;
    margin: 0 0 8px;
    padding: 0 24px;
}

.uksr-featured-residences__title::after {
    content: '';
    display: block;
    width: 300px;
    max-width: 80%;
    height: 3px;
    background: var(--uksr-magenta, #E6007E);
    margin: 15px auto 0;
}

/* Carousel track */
.uksr-featured-residences__carousel {
    max-width: 1200px;
    margin: 40px auto 0;
    padding: 0 48px;
    position: relative;
}

/* Slick overrides — spacing & equal-height cards */
.uksr-featured-residences .slick-list {
    overflow: hidden;
    padding: 8px 0;
}

.uksr-featured-residences .slick-track {
    display: flex !important;
    align-items: stretch;
}

.uksr-featured-residences .slick-slide {
    padding: 0 12px;
    height: auto !important;
    display: flex !important;
}

.uksr-featured-residences .slick-slide > div {
    display: flex;
    width: 100%;
}

.uksr-featured-residences .uksr-residence-card-wrap {
    display: flex;
    width: 100%;
}

.uksr-featured-residences .uksr-residence-card {
    flex: 1;
}

/* Dots — pill-style pagination */
.uksr-featured-residences .slick-dots {
    position: relative;
    bottom: auto;
    margin-top: 32px;
    padding: 0;
    list-style: none;
    display: flex !important;
    justify-content: center;
    gap: 8px;
}

.uksr-featured-residences .slick-dots li {
    width: 10px;
    height: 10px;
    margin: 0;
    padding: 0;
}

.uksr-featured-residences .slick-dots li button {
    width: 10px;
    height: 10px;
    padding: 0;
    border: none;
    border-radius: 50%;
    background: var(--uksr-dark-blue, #29235C);
    opacity: 0.2;
    font-size: 0;
    line-height: 0;
    cursor: pointer;
    transition: opacity 0.2s ease, background 0.2s ease;
}

.uksr-featured-residences .slick-dots li button:before {
    display: none;
}

.uksr-featured-residences .slick-dots li.slick-active button {
    background: var(--uksr-magenta, #E6007E);
    opacity: 1;
}

/* Arrows — circular with chevrons */
.uksr-featured-residences .slick-prev,
.uksr-featured-residences .slick-next {
    position: absolute !important;
    top: 35%;
    transform: translateY(-50%);
    width: 40px;
    height: 40px;
    z-index: 5;
    background: #fff !important;
    border-radius: 50%;
    box-shadow: 0 2px 8px rgba(0, 0, 50, 0.15);
    transition: box-shadow 0.2s ease;
    border: none;
    font-size: 0;
    line-height: 0;
    cursor: pointer;
    display: flex !important;
    align-items: center;
    justify-content: center;
}

.uksr-featured-residences .slick-prev:hover,
.uksr-featured-residences .slick-next:hover {
    background: #fff !important;
    box-shadow: 0 4px 16px rgba(0, 0, 50, 0.25);
}

.uksr-featured-residences .slick-prev { left: -20px; }
.uksr-featured-residences .slick-next { right: -20px; }

.uksr-featured-residences .slick-prev:before {
    content: '\f053';
    font-family: 'FontAwesome';
    color: var(--uksr-dark-blue, #29235C);
    font-size: 16px;
    opacity: 1;
}

.uksr-featured-residences .slick-next:before {
    content: '\f054';
    font-family: 'FontAwesome';
    color: var(--uksr-dark-blue, #29235C);
    font-size: 16px;
    opacity: 1;
}

/* Residence Card */
.uksr-residence-card {
    display: flex !important;
    flex-direction: column;
    background: #fff;
    border-radius: 12px;
    box-shadow: 0 4px 16px rgba(0, 0, 50, 0.08);
    overflow: hidden;
    text-decoration: none !important;
    color: inherit !important;
    transition: box-shadow 0.3s ease, transform 0.3s ease;
    height: 100%;
}

.uksr-residence-card:hover {
    box-shadow: 0 12px 32px rgba(0, 0, 50, 0.16);
    transform: translateY(-4px);
    text-decoration: none !important;
    color: inherit !important;
}

/* Card image */
.uksr-residence-card__media {
    position: relative;
    overflow: hidden;
    aspect-ratio: 4 / 3;
    flex-shrink: 0;
}

.uksr-residence-card__media img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.uksr-residence-card:hover .uksr-residence-card__media img {
    transform: scale(1.05);
}

/* City pill overlay */
.uksr-residence-card__city-pill {
    position: absolute;
    top: 12px;
    right: 12px;
    padding: 4px 12px;
    background: rgba(41, 35, 92, 0.85);
    color: #fff;
    font-family: var(--uksr-font-primary);
    font-size: 11px;
    font-weight: 600;
    border-radius: 9999px;
    z-index: 2;
    letter-spacing: 0.5px;
    text-transform: uppercase;
}

/* Card content */
.uksr-residence-card__content {
    padding: 20px 24px 24px;
    display: flex;
    flex-direction: column;
    flex: 1;
}

.uksr-residence-card__title {
    font-family: var(--uksr-font-primary);
    font-size: 18px;
    font-weight: 700;
    color: var(--uksr-dark-blue, #29235C);
    margin: 0 0 8px;
    line-height: 1.3;
}

.uksr-residence-card__excerpt {
    font-family: var(--uksr-font-primary);
    font-size: 14px;
    line-height: 1.6;
    color: #475467;
    margin: 0 0 20px;
    flex: 1;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Card CTA */
.uksr-residence-card__cta {
    display: inline-block;
    font-family: var(--uksr-font-primary);
    font-size: 14px;
    font-weight: 600;
    color: #fff !important;
    background: var(--uksr-magenta, #E6007E);
    padding: 10px 24px;
    border-radius: 999px;
    text-decoration: none !important;
    text-align: center;
    transition: background 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    box-shadow: 0 4px 12px rgba(230, 0, 126, 0.2);
    align-self: flex-start;
}

.uksr-residence-card__cta:hover {
    background: #b80066;
    box-shadow: 0 8px 20px rgba(230, 0, 126, 0.35);
    transform: translateY(-1px);
    color: #fff !important;
    text-decoration: none !important;
}


/* ================================================================
   5. JOURNEY PANELS
   ================================================================ */

.uksr-home-journey {
    overflow: hidden;
}

/* Panel backgrounds */
.uksr-home-journey__panel--students {
    background: linear-gradient(135deg, #f6f9e8 0%, #f0f5dc 100%);
}

.uksr-home-journey__panel--partners {
    background: linear-gradient(135deg, rgba(230, 0, 126, 0.05) 0%, rgba(230, 0, 126, 0.02) 100%);
}

.uksr-home-journey__panel--trust {
    background: var(--uksr-dark-blue, #29235C);
}

/* Panel inner — split grid */
.uksr-home-journey__panel-inner {
    display: grid;
    grid-template-columns: 1fr 1fr;
    max-width: 1200px;
    margin: 0 auto;
    align-items: center;
    gap: 40px;
    padding: 56px 24px;
}

/* Partners panel: image left, text right */
.uksr-home-journey__panel--partners .uksr-home-journey__content {
    order: 2;
}

.uksr-home-journey__panel--partners .uksr-home-journey__image {
    order: 1;
}

/* Trust panel: single column, centered */
.uksr-home-journey__panel--trust .uksr-home-journey__panel-inner {
    grid-template-columns: 1fr;
    text-align: center;
    padding: 40px 24px;
    gap: 16px;
}

/* Journey content */
.uksr-home-journey__content {
    padding: 16px 0;
}

/* Eyebrow */
.uksr-home-journey__eyebrow {
    display: block;
    font-family: var(--uksr-font-primary);
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1.1px;
    color: var(--uksr-magenta, #E6007E);
    margin-bottom: 12px;
}

/* Heading */
.uksr-home-journey__heading {
    font-family: var(--uksr-font-primary);
    font-size: 32px;
    font-weight: 700;
    line-height: 1.3;
    color: var(--uksr-dark-blue, #29235C);
    margin: 0 0 16px;
}

/* Description */
.uksr-home-journey__desc {
    font-family: var(--uksr-font-primary);
    font-size: 16px;
    line-height: 1.65;
    color: var(--uksr-grey-600, #6b7280);
    margin: 0 0 24px;
}

/* Chips row */
.uksr-home-journey__chips {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 28px;
}

.uksr-home-journey__chip {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 14px;
    background: rgba(0, 51, 102, 0.07);
    border-radius: 9999px;
    font-family: var(--uksr-font-primary);
    font-size: 13px;
    font-weight: 600;
    color: var(--uksr-dark-blue, #29235C);
    white-space: nowrap;
}

.uksr-home-journey__chip i {
    font-size: 12px;
    color: var(--uksr-magenta, #E6007E);
}

/* CTA button — magenta pill */
.uksr-home-journey__cta {
    display: inline-block;
    font-family: var(--uksr-font-primary);
    font-size: 16px;
    font-weight: 600;
    color: #fff !important;
    background: linear-gradient(135deg, var(--uksr-magenta, #E6007E), #b80066);
    padding: 14px 32px;
    border-radius: 999px;
    text-decoration: none !important;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    box-shadow: 0 4px 16px rgba(230, 0, 126, 0.25);
}

.uksr-home-journey__cta:hover {
    transform: translateY(-2px);
    box-shadow: 0 8px 24px rgba(230, 0, 126, 0.35);
    color: #fff !important;
    text-decoration: none !important;
}

/* Journey image */
.uksr-home-journey__image {
    width: 100%;
    border-radius: 16px;
    overflow: hidden;
    box-shadow: 0 8px 32px rgba(0, 0, 50, 0.12);
}

.uksr-home-journey__image img {
    width: 100%;
    height: auto;
    display: block;
    aspect-ratio: 3 / 2;
    object-fit: cover;
    transition: transform 0.6s cubic-bezier(0.25, 0.46, 0.45, 0.94);
}

.uksr-home-journey__image:hover img {
    transform: scale(1.03);
}

/* ── Trust panel overrides (white text on dark bg) ── */
.uksr-home-journey__panel--trust .uksr-home-journey__eyebrow {
    color: var(--uksr-green, #B1CB0C);
}

.uksr-home-journey__panel--trust .uksr-home-journey__heading {
    color: #fff;
    font-size: 28px;
    margin-bottom: 8px;
}

.uksr-home-journey__panel--trust .uksr-home-journey__desc {
    color: rgba(255, 255, 255, 0.75);
    font-size: 15px;
    margin-bottom: 20px;
}

.uksr-home-journey__panel--trust .uksr-home-journey__chips {
    justify-content: center;
    margin-bottom: 24px;
}

.uksr-home-journey__panel--trust .uksr-home-journey__chip {
    background: rgba(255, 255, 255, 0.12);
    color: #fff;
}

.uksr-home-journey__panel--trust .uksr-home-journey__chip i {
    color: var(--uksr-green, #B1CB0C);
}

.uksr-home-journey__panel--trust .uksr-home-journey__cta {
    background: var(--uksr-green, #B1CB0C);
    color: var(--uksr-dark-blue, #29235C) !important;
    box-shadow: 0 4px 16px rgba(177, 203, 12, 0.3);
}

.uksr-home-journey__panel--trust .uksr-home-journey__cta:hover {
    box-shadow: 0 8px 24px rgba(177, 203, 12, 0.45);
}


/* ================================================================
   6. TESTIMONIALS
   ================================================================ */

.uksr-home-testimonials {
    padding: 48px 20px 28px;
    background: #f0f4ff;
}

.uksr-home-testimonials__inner {
    max-width: 1200px;
    margin: 0 auto;
}

/* Heading */
.uksr-home-testimonials__title {
    background: none;
    color: var(--uksr-dark-blue, #29235C);
    font-family: var(--uksr-font-primary);
    font-size: 2rem;
    font-weight: 700;
    line-height: 1.3;
    text-transform: none;
    letter-spacing: 0;
    padding: 0 0 8px;
    margin: 0 0 16px;
    text-align: center;
    position: relative;
}

.uksr-home-testimonials__title::after {
    content: '';
    display: block;
    width: 300px;
    max-width: 80%;
    height: 3px;
    background: var(--uksr-magenta, #E6007E);
    margin: 15px auto 0;
}

/* Carousel items — grid layout (image left, quote right) */
.uksr-home-testimonials .item {
    display: grid !important;
    grid-template-columns: 96px 1fr;
    align-items: center;
    gap: 28px;
    text-align: left;
    padding: 0;
    max-width: 720px;
    margin: 0 auto;
}

.uksr-home-testimonials .item::after {
    display: none !important;
}

/* Author image — 96px circle */
.uksr-home-testimonials .item .author_image {
    width: 96px;
    min-width: 96px;
    height: 96px;
    float: none;
    margin: 0;
    border-radius: 9999px;
    overflow: hidden;
}

.uksr-home-testimonials .item .author_image img {
    width: 100%;
    height: 100%;
    max-width: 100%;
    object-fit: cover;
    border-radius: 9999px;
}

/* Testimonial content */
.uksr-home-testimonials .item .testimonial_cont {
    width: auto;
    float: none;
    margin: 0;
    padding: 0;
    background: none;
    color: var(--uksr-dark-blue, #29235C);
    line-height: 1.6;
    font-size: 15px;
}

/* Author name */
.uksr-home-testimonials .item .testimonial_cont span {
    display: block;
    margin-top: 12px;
    font-weight: 700;
    font-size: 14px;
    color: var(--uksr-dark-blue, #29235C);
}

/* Owl dots */
.uksr-home-testimonials .owl-theme .owl-dots .owl-dot span {
    background: var(--uksr-dark-blue, #29235C) !important;
    opacity: 0.5;
}

.uksr-home-testimonials .owl-theme .owl-dots .owl-dot.active span {
    background: var(--uksr-magenta, #E6007E) !important;
    opacity: 1;
}


/* ================================================================
   7. RESPONSIVE — Tablet (max-width: 1024px)
   ================================================================ */

@media (max-width: 1024px) {
    /* Hero */
    .uksr-home-hero { height: 560px; }
    .uksr-home-hero__title { font-size: 44px; }
    .uksr-home-hero__subtitle { font-size: 17px; }

    /* Cities */
    .uksr-home-cities__grid { gap: 16px; }
    .uksr-home-cities__card-name { font-size: 20px; }

    /* Featured Residences */
    .uksr-featured-residences { padding: 44px 0 52px; }
    .uksr-featured-residences__title { font-size: 28px; }
    .uksr-featured-residences__carousel { padding: 0 16px; }
    .uksr-featured-residences .slick-prev { left: 4px; }
    .uksr-featured-residences .slick-next { right: 4px; }

    /* Journey Panels */
    .uksr-home-journey__panel-inner { gap: 32px; padding: 48px 24px; }
    .uksr-home-journey__heading { font-size: 28px; }
}


/* ================================================================
   8. RESPONSIVE — Small tablet / landscape (max-width: 899px)
   ================================================================ */

@media (max-width: 899px) {
    /* Hero */
    .uksr-home-hero { height: 480px; }
    .uksr-home-hero__inner { padding: 0 16px 50px; }
    .uksr-home-hero__title { font-size: 32px; max-width: 480px; margin-bottom: 16px; }
    .uksr-home-hero__title::after { width: 48px; height: 3px; margin-top: 12px; }
    .uksr-home-hero__badge { font-size: 12px; padding: 6px 16px; margin-bottom: 10px; }
    .uksr-home-hero__subtitle { font-size: 16px; max-width: 400px; }

    /* Search card stacks */
    .uksr-home-search__card { padding: 0 16px; }
    .uksr-home-search__form { padding: 20px; border-radius: 12px; }
    .uksr-home-search__row { flex-wrap: wrap; gap: 12px; }
    .uksr-home-search__field { flex: 1 1 100%; }
    .uksr-home-search__field--submit { flex: 1 1 100%; }
    .uksr-home-search__submit { width: 100%; }
}


/* ================================================================
   9. RESPONSIVE — Mobile (max-width: 768px)
   ================================================================ */

@media (max-width: 768px) {
    /* Cities */
    .uksr-home-cities__grid {
        grid-template-columns: repeat(2, 1fr);
        gap: 12px;
    }
    .uksr-home-cities__card { border-radius: 12px; }
    .uksr-home-cities__card-name { font-size: 18px; bottom: 14px; left: 16px; }

    /* Featured Residences */
    .uksr-featured-residences { padding: 36px 0 48px; }
    .uksr-featured-residences__title { font-size: 26px; }
    .uksr-featured-residences__carousel { margin-top: 28px; padding: 0 12px; }
    .uksr-featured-residences .slick-slide { padding: 0 8px; }

    /* Journey Panels */
    .uksr-home-journey__panel-inner {
        grid-template-columns: 1fr !important;
        gap: 24px;
        padding: 40px 20px;
    }
    .uksr-home-journey__image { order: 1 !important; }
    .uksr-home-journey__content { order: 2 !important; }
    .uksr-home-journey__heading { font-size: 26px; }
    .uksr-home-journey__desc { font-size: 15px; }
    .uksr-home-journey__chips { justify-content: flex-start; }
    .uksr-home-journey__cta { display: block; text-align: center; padding: 14px 24px; }
    .uksr-home-journey__panel--trust .uksr-home-journey__chips { justify-content: center; }
    .uksr-home-journey__panel--trust .uksr-home-journey__cta { display: inline-block; }

    /* Testimonials */
    .uksr-home-testimonials .item {
        grid-template-columns: 1fr !important;
        justify-items: center;
        text-align: center !important;
        gap: 16px;
    }
}


/* ================================================================
   10. RESPONSIVE — Small phone (max-width: 480px)
   ================================================================ */

@media (max-width: 480px) {
    /* Hero */
    .uksr-home-hero { height: 440px; }
    .uksr-home-hero__inner { padding: 0 12px 40px; }
    .uksr-home-hero__title { font-size: 26px; letter-spacing: -0.01em; margin-bottom: 12px; }
    .uksr-home-hero__badge { font-size: 11px; padding: 5px 14px; gap: 4px; margin-bottom: 8px; }
    .uksr-home-hero__subtitle { font-size: 15px; max-width: 320px; margin-top: 4px; }
    .uksr-home-hero__title::after { margin-top: 10px; }

    /* Search */
    .uksr-home-search { margin-top: -24px; }
    .uksr-home-search__form { padding: 16px; border-radius: 10px; }

    /* Cities */
    .uksr-home-cities__grid { grid-template-columns: 1fr; gap: 12px; }
    .uksr-home-cities__card { aspect-ratio: 16 / 9; }

    /* Featured Residences */
    .uksr-featured-residences__title { font-size: 24px; }
    .uksr-residence-card__content { padding: 16px 20px 20px; }

    /* Journey Panels */
    .uksr-home-journey__panel-inner { padding: 32px 16px; }
    .uksr-home-journey__heading { font-size: 24px; }
    .uksr-home-journey__cta { font-size: 15px; padding: 12px 20px; width: 100%; box-sizing: border-box; }
    .uksr-home-journey__panel--trust .uksr-home-journey__cta { width: auto; }
}
