/* Professional Home Page Styling - SureRent Elite */

/* --- Hero Section: Clean & High Impact --- */
.sr-home-hero {
    position: relative;
    padding: 140px 0;
    /* Warm gold bloom top-right + deep ink base — no janky fixed attachment */
    background:
        radial-gradient(90rem 42rem at 88% -12%, rgba(201, 168, 76, 0.16) 0%, transparent 55%),
        radial-gradient(70rem 36rem at -12% 115%, rgba(13, 31, 53, 0.4) 0%, transparent 60%),
        linear-gradient(180deg, rgba(8, 21, 38, 0.72) 0%, rgba(13, 31, 53, 0.84) 100%),
        url("../images/home-hero.d963d7b8ae4b.jpg") center / cover no-repeat;
    color: white;
    min-height: 88vh;
    display: flex;
    align-items: center;
}

.sr-home-eyebrow {
    display: inline-flex;
    align-items: center;
    padding: 8px 16px;
    background: rgba(201, 168, 76, 0.15);
    border: 1px solid var(--accent-color);
    color: var(--accent-light);
    border-radius: 100px;
    font-size: 13px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 2px;
    margin-bottom: 24px;
}

.sr-home-title {
    font-family: var(--font-display);
    font-size: clamp(2.75rem, 1.7rem + 4.2vw, 4.6rem);
    font-weight: 700;
    line-height: 1.06;
    letter-spacing: -0.015em;
    margin-bottom: 24px;
}

.sr-home-title span {
    color: var(--accent-color);
}

.sr-home-subtitle {
    font-size: 1.2rem;
    color: rgba(255, 255, 255, 0.8);
    max-width: 600px;
    line-height: 1.6;
    margin-bottom: 40px;
}

/* --- Hero Metrics: Clean Alignment --- */
.sr-home-metrics {
    display: flex;
    align-items: center;
    gap: 30px;
    margin-top: 50px;
    padding-top: 30px;
    border-top: 1px solid rgba(255,255,255,0.1);
}

.sr-home-metric strong {
    display: block;
    font-size: 24px;
    color: var(--accent-color);
    font-family: var(--font-display);
}

.sr-home-metric span {
    font-size: 13px;
    color: rgba(255,255,255,0.5);
    text-transform: uppercase;
    letter-spacing: 1px;
}

.sr-home-metric-divider {
    width: 1px;
    height: 40px;
    background: rgba(255,255,255,0.1);
}

/* --- Search Card: Professional --- */
.sr-home-search-card {
    background: white;
    padding: 40px;
    border-radius: 28px;
    border: 1px solid var(--color-border, #e4dfd4);
    box-shadow: 0 4px 8px -2px rgba(13, 31, 53, 0.1), 0 32px 64px -16px rgba(13, 31, 53, 0.28);
    color: var(--text-dark);
}

.sr-home-search-head h2 {
    font-size: 24px;
    font-weight: 700;
    margin-bottom: 5px;
}

.sr-home-search-head p {
    font-size: 14px;
    color: var(--text-mid);
    margin-bottom: 30px;
}

.sr-home-field {
    margin-bottom: 20px;
}

.sr-home-field label {
    display: block;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    color: var(--text-light);
    margin-bottom: 8px;
}

.sr-home-field input,
.sr-home-field select {
    width: 100%;
    height: 52px;
    padding: 0 15px;
    border: 1.5px solid var(--border-color);
    border-radius: 10px;
    font-size: 14px;
    color: var(--text-dark);
    transition: all 0.2s;
    background: var(--bg-light);
}

.sr-home-field input:focus,
.sr-home-field select:focus {
    outline: none;
    border-color: var(--primary-color);
    background: white;
}

.sr-home-search-button {
    width: 100%;
    height: 56px;
    background: var(--primary-color);
    color: white;
    border: none;
    border-radius: 10px;
    font-weight: 700;
    margin-top: 10px;
    transition: all 0.3s;
}

.sr-home-search-button:hover {
    background: var(--primary-dark);
    transform: translateY(-2px);
    box-shadow: 0 10px 20px rgba(13, 31, 53, 0.2);
}

/* --- Section Global Spacing --- */
.sr-home-section {
    padding: 100px 0;
}

.sr-home-section-alt {
    background-color: var(--bg-light);
}

.sr-home-section-head span {
    display: block;
    color: var(--accent-dark);
    font-weight: 700;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 12px;
}

.sr-home-section-head h2 {
    font-family: var(--font-display);
    font-size: clamp(1.9rem, 1.35rem + 1.8vw, 2.7rem);
    font-weight: 700;
    color: var(--primary-color);
}

/* --- Curated Selection Styling --- */
.sr-home-section.bg-white {
    background-color: #ffffff;
    border-top: 1px solid var(--border-color);
}

.sr-home-section-head h2 {
    position: relative;
    padding-bottom: 15px;
}

.sr-home-section-head h2::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    width: 60px;
    height: 4px;
    background: var(--accent-color);
    border-radius: 2px;
}

.sr-home-section-head.text-center h2::after {
    left: 50%;
    transform: translateX(-50%);
}

.sr-prop-card {
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
}

.sr-prop-card:hover {
    box-shadow: 0 30px 60px rgba(13, 31, 53, 0.12);
}

/* --- Location Cards: Elite Grid --- */
.sr-location-card {
    height: 350px;
    border-radius: 16px;
    background-size: cover;
    background-position: center;
    padding: 30px;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    transition: all 0.4s;
    position: relative;
    overflow: hidden;
    text-decoration: none !important;
}

.sr-location-card:hover {
    transform: translateY(-10px);
}

.sr-location-card h3 {
    color: white;
    font-size: 22px;
    font-weight: 700;
    margin-bottom: 10px;
    position: relative;
    z-index: 2;
}

.sr-location-card a {
    color: var(--accent-color);
    font-weight: 600;
    font-size: 14px;
    position: relative;
    z-index: 2;
}

/* --- Curated Selection Styling: Unified Modern Grid --- */
.curated-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 30px;
    margin-top: 50px;
}

.curated-card {
    background: #ffffff;
    border-radius: 20px;
    overflow: hidden;
    box-shadow: 0 10px 30px rgba(0,0,0,0.05);
    transition: all 0.4s cubic-bezier(0.165, 0.84, 0.44, 1);
    border: 1px solid rgba(0,0,0,0.03);
    display: flex;
    flex-direction: column;
    height: 100%;
    text-decoration: none !important;
    color: inherit !important;
}

.curated-card:hover {
    transform: translateY(-10px);
    box-shadow: 0 30px 60px rgba(13, 31, 53, 0.15);
    border-color: var(--accent-color);
}

.curated-img-wrapper {
    position: relative;
    height: 240px;
    overflow: hidden;
}

.curated-img-wrapper img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.curated-card:hover .curated-img-wrapper img {
    transform: scale(1.1);
}

.curated-badge {
    position: absolute;
    top: 20px;
    left: 20px;
    background: rgba(13, 31, 53, 0.85);
    backdrop-filter: blur(8px);
    color: white;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

/* Phase 3.3: promoted ribbon sits under the verified badge. */
.curated-promoted {
    position: absolute;
    top: 56px;
    left: 20px;
    background: linear-gradient(135deg, #c9a84c, #9a7a30);
    color: #081526;
    padding: 6px 14px;
    border-radius: 100px;
    font-size: 11px;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: 1px;
    z-index: 2;
}

.curated-wishlist {
    position: absolute;
    top: 20px;
    right: 20px;
    width: 36px;
    height: 36px;
    background: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    color: var(--primary-color);
    box-shadow: 0 4px 10px rgba(0,0,0,0.1);
    transition: all 0.3s;
    z-index: 2;
}

.curated-wishlist:hover {
    background: var(--accent-color);
    color: white;
}

.curated-content {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.curated-type {
    font-size: 12px;
    font-weight: 700;
    color: var(--accent-color);
    text-transform: uppercase;
    letter-spacing: 1px;
    margin-bottom: 8px;
}

.curated-content h3 {
    font-size: 20px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 10px;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 1;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.curated-location {
    font-size: 14px;
    color: var(--text-mid);
    margin-bottom: 20px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.curated-amenities {
    display: flex;
    gap: 15px;
    padding-top: 15px;
    margin-top: auto;
    border-top: 1px solid var(--border-color);
}

.curated-amenity {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: var(--text-mid);
}

.curated-amenity i {
    color: var(--primary-color);
    font-size: 16px;
}

.curated-footer {
    padding: 20px 25px;
    background: var(--bg-light);
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.curated-price {
    font-size: 20px;
    font-weight: 800;
    color: var(--primary-color);
}

.curated-price span {
    font-size: 13px;
    font-weight: 400;
    color: var(--text-mid);
}

.curated-view-btn {
    width: 32px;
    height: 32px;
    background: var(--primary-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: all 0.3s;
}

.curated-card:hover .curated-view-btn {
    background: var(--accent-color);
    transform: rotate(-45deg);
}

@media (max-width: 1199px) {
    .curated-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 767px) {
    .curated-grid {
        grid-template-columns: 1fr;
        gap: 20px;
    }
}

/* --- Featured Listings Spotlight Grid --- */
.featured-spotlight-grid {
    display: grid;
    grid-template-columns: 1.2fr 1fr 1fr;
    grid-template-rows: 400px 190px;
    gap: 20px;
    margin-top: 50px;
}

.featured-spotlight {
    grid-row: span 2;
}

.spotlight-card {
    display: block;
    height: 100%;
    border-radius: 24px;
    overflow: hidden;
    position: relative;
    text-decoration: none;
    color: white;
}

.spotlight-img {
    position: absolute;
    inset: 0;
    overflow: hidden;
}

.spotlight-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.6s;
}

.spotlight-card:hover .spotlight-img img {
    transform: scale(1.08);
}

.spotlight-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 60px;
    color: var(--text-light);
}

.spotlight-overlay {
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    padding: 25px;
    background: linear-gradient(to bottom, rgba(0,0,0,0.5), transparent);
}

.spotlight-badge {
    background: var(--accent-color);
    color: white;
    padding: 8px 16px;
    border-radius: 100px;
    font-size: 12px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 1px;
}

.spotlight-content {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 30px;
    background: linear-gradient(to top, rgba(0,0,0,0.85), transparent);
}

.spotlight-price {
    font-size: 28px;
    font-weight: 700;
    margin-bottom: 8px;
    color: var(--accent-color);
}

.spotlight-price small {
    font-size: 14px;
    font-weight: 400;
    color: rgba(255,255,0.7);
}

.spotlight-content h3 {
    font-size: 22px;
    font-weight: 600;
    margin-bottom: 8px;
    line-height: 1.3;
}

.spotlight-location {
    font-size: 14px;
    opacity: 0.8;
    margin-bottom: 15px;
}

.spotlight-meta {
    display: flex;
    gap: 15px;
    font-size: 13px;
    opacity: 0.9;
}

.spotlight-meta span {
    display: flex;
    align-items: center;
    background: rgba(255,255,255,0.15);
    padding: 6px 12px;
    border-radius: 8px;
}

.featured-compact .compact-card {
    display: block;
    height: 100%;
    border-radius: 16px;
    overflow: hidden;
    background: white;
    box-shadow: 0 4px 20px rgba(0,0,0,0.08);
    transition: all 0.3s;
    text-decoration: none;
    color: inherit;
}

.featured-compact .compact-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 15px 35px rgba(0,0,0,0.12);
}

.compact-img {
    height: 130px;
    position: relative;
    overflow: hidden;
}

.compact-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s;
}

.compact-card:hover .compact-img img {
    transform: scale(1.05);
}

.compact-placeholder {
    width: 100%;
    height: 100%;
    background: var(--bg-light);
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 30px;
    color: var(--text-light);
}

.compact-badge-verified {
    position: absolute;
    top: 12px;
    right: 12px;
    background: var(--accent-color);
    color: white;
    width: 28px;
    height: 28px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 14px;
}

.compact-content {
    padding: 18px;
}

.compact-price {
    font-size: 18px;
    font-weight: 700;
    color: var(--accent-dark);
    margin-bottom: 6px;
}

.compact-content h4 {
    font-size: 15px;
    font-weight: 600;
    margin-bottom: 6px;
    line-height: 1.4;
}

.compact-content p {
    font-size: 13px;
    color: var(--text-mid);
}

@media (max-width: 991px) {
    .featured-spotlight-grid {
        grid-template-columns: 1fr 1fr;
        grid-template-rows: auto;
    }
    .featured-spotlight {
        grid-column: span 2;
        grid-row: span 1;
        height: 400px;
    }
}

@media (max-width: 575px) {
    .featured-spotlight-grid {
        grid-template-columns: 1fr;
    }
    .featured-spotlight {
        grid-column: span 1;
        height: 380px;
    }
}

/* --- Location Cards: Elite Grid --- */
.top-agents-grid {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    margin-top: 40px;
}

.agent-card {
    background: white;
    border-radius: 20px;
    padding: 30px 20px;
    text-align: center;
    border: 1px solid var(--border-color);
    position: relative;
    transition: all 0.3s;
}

.agent-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 20px 40px rgba(13, 31, 53, 0.12);
    border-color: var(--accent-color);
}

.agent-rank {
    position: absolute;
    top: 15px;
    right: 15px;
    width: 32px;
    height: 32px;
    background: var(--accent-color);
    color: white;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 12px;
    font-weight: 700;
}

.agent-avatar {
    width: 70px;
    height: 70px;
    background: var(--primary-color);
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin: 0 auto 20px;
    font-size: 28px;
    color: white;
}

.agent-avatar span {
    color: white;
    font-weight: 700;
    font-size: 28px;
}

.agent-card h3 {
    font-size: 18px;
    font-weight: 700;
    color: var(--primary-color);
    margin-bottom: 8px;
}

.agent-agency {
    font-size: 13px;
    color: var(--text-mid);
    margin-bottom: 15px;
}

.agent-stats {
    margin-bottom: 20px;
}

.agent-stats span {
    display: inline-flex;
    align-items: center;
    font-size: 13px;
    color: var(--text-mid);
    background: var(--bg-light);
    padding: 6px 12px;
    border-radius: 20px;
}

.agent-contact {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    background: #25D366;
    color: white;
    padding: 10px 20px;
    border-radius: 10px;
    font-weight: 600;
    font-size: 14px;
    text-decoration: none;
    transition: all 0.3s;
}

.agent-contact:hover {
    background: #128C7E;
    transform: translateY(-2px);
}

@media (max-width: 991px) {
    .top-agents-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

@media (max-width: 767px) {
    .top-agents-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 480px) {
    .top-agents-grid {
        grid-template-columns: 1fr;
    }
}

/* --- Enhanced Featured Listings Card Styling --- */
.featured-main .sr-prop-card {
    display: flex;
    flex-direction: column;
    height: 100%;
}

.featured-main .sr-prop-card .sr-prop-img {
    flex-shrink: 0;
}

.featured-main .sr-prop-card .sr-prop-body {
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

/* --- Trust Cards --- */
.sr-home-trust-card {
    background: white;
    padding: 40px;
    border-radius: 20px;
    border: 1px solid var(--border-color);
    text-align: center;
    transition: all 0.3s;
}

.sr-home-trust-card:hover {
    border-color: var(--accent-color);
    box-shadow: 0 15px 35px rgba(0,0,0,0.05);
}

.sr-home-trust-icon {
    width: 60px;
    height: 60px;
    background: var(--primary-color);
    color: var(--accent-color);
    border-radius: 12px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 24px;
    margin: 0 auto 25px;
}

/* --- Final CTA Card --- */
.sr-home-final-card {
    background: linear-gradient(135deg, var(--primary-color) 0%, var(--primary-dark) 100%);
    padding: 80px 40px;
    border-radius: 30px;
    color: white;
    border: 1px solid rgba(201, 168, 76, 0.25);
    box-shadow: 0 30px 80px -20px rgba(8, 21, 38, 0.45);
}

/* --- Responsive Adjustments --- */
@media (max-width: 991px) {
    .sr-home-hero {
        text-align: center;
        padding: 100px 0; /* Increased mobile padding */
        min-height: auto;
    }
    .sr-home-metrics {
        justify-content: center;
        flex-wrap: wrap;
    }
    .sr-home-subtitle {
        margin-left: auto;
        margin-right: auto;
    }
    .sr-home-search-card {
        margin-top: 50px;
    }
}

@media (max-width: 767px) {
    .sr-home-hero {
        padding: 120px 0 60px; /* Even more top padding for fixed header */
    }
    .sr-home-title {
        font-size: 2.8rem;
    }
    .sr-home-subtitle {
        font-size: 1.1rem;
    }
    .sr-home-metrics {
        gap: 15px;
    }
    .sr-home-metric strong {
        font-size: 20px;
    }
    .sr-home-metric-divider {
        display: none;
    }
}
