/* =========================================
   HOMEPAGE - HERO
========================================= */

.home-hero {
    position: relative;
    display: flex;
    align-items: center;
    min-height: 560px;

    background-image:
        linear-gradient(
            180deg,
            rgba(0, 24, 67, 0.65) 0%,
            rgba(0, 24, 67, 0.30) 55%,
            rgba(0, 24, 67, 0.05) 100%
        ),
        url('../images/home/shore-to-please-home-hero.webp');

    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
}

.home-hero .container {
    position: relative;
    z-index: 1;
    width: 100%;
}

.home-hero-content {
    max-width: 720px;
}

.home-hero .eyebrow {
    color: var(--color-yellow-light);
}

.home-hero h1 {
    color: var(--color-white);
    max-width: 700px;
}

.home-hero-content > p:not(.eyebrow) {
    color: var(--color-white);
}

.home-hero .btn {
    margin-top: 12px;
}

/* RESPONSIVE */

@media (max-width: 991px) {
    .home-hero {
        min-height: 500px;
    }
}

@media (max-width: 767px) {
    .home-hero {
        min-height: 480px;
        background-position: 60% center;
    }

    .home-hero-content {
        max-width: 100%;
		margin-top: 60px;
    }
}

/* =====================================
   HOMEPAGE FLOATING SEARCH
===================================== */

.home-search-section {
    position: relative;
    z-index: 10;
    margin-top: -40px;
}

.home-search-wrap {
    background: #ffffff;
    padding: 12px;
    border-radius: 10px;
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.12);
}

/* OwnerRez Widget */
.home-search-wrap .ownerrez-widget {
    width: 100%;
}

/* Mobile */
@media (max-width: 767px) {

    .home-search-section {
        margin-top: -25px;
    }

    .home-search-wrap {
        padding: 15px;
    }

}


/* =========================================
   HOMEPAGE - TRUST HIGHLIGHTS
========================================= */

.home-trust {
    padding-block: var(--space-2xl);
    background: var(--color-white);
}

.home-trust-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
}

.home-trust-item {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    padding-inline: var(--space-lg);
}

.home-trust-item + .home-trust-item {
    border-left: 1px solid var(--color-border);
}

.home-trust-item img {
    width: 54px;
    height: 54px;
    object-fit: contain;
    flex-shrink: 0;
}

.home-trust-item h3 {
    margin: 0;
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
}

/* TABLET */

@media (max-width: 991px) {
    .home-trust-item {
        gap: var(--space-sm);
        padding-inline: var(--space-md);
    }

    .home-trust-item img {
        width: 44px;
        height: 44px;
    }

    .home-trust-item h3 {
        font-size: 15px;
    }
}

/* MOBILE */

@media (max-width: 767px) {
    .home-trust {
        padding-block: var(--space-xl);
    }

    .home-trust-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .home-trust-item {
        justify-content: flex-start;
        padding: 0;
    }

    .home-trust-item + .home-trust-item {
        border-left: 0;
        border-top: 1px solid var(--color-border);
        padding-top: var(--space-lg);
    }
}


/* =========================================
   HOMEPAGE - BENEFITS
========================================= */

.home-benefits {
    padding-block: var(--space-xl);
    background: var(--color-white);
}

.home-benefits-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    align-items: center;
}

.home-benefit {
    display: flex;
    align-items: center;
    justify-content: center;
    gap: var(--space-md);
    min-height: 50px;
    padding-inline: var(--space-lg);
}

.home-benefit:not(:last-child) {
    border-right: 1px solid var(--color-border);
}

.home-benefit img {
    width: 48px;
    height: 48px;
    flex-shrink: 0;
    object-fit: contain;
}

.home-benefit h3 {
    font-family: var(--font-body);
    font-size: 18px;
    font-weight: 700;
    line-height: 1.4;
    margin: 0;
}


/* =========================================
   HOMEPAGE - FEATURED RENTALS
========================================= */

.home-featured {
    background: var(--color-bg-light);
}

.home-featured-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: var(--space-xl);
    margin-bottom: var(--space-2xl);
}

.home-featured-heading .eyebrow {
    margin-bottom: var(--space-md);
}

.home-featured-heading h2 {
    margin-bottom: var(--space-sm);
}

.home-featured-heading p {
    margin: 0;
}

.home-text-link,
.home-property-link {
    display: inline-flex;
    align-items: center;
    gap: var(--space-sm);
    width: fit-content;
    color: var(--color-secondary);
    font-size: 14px;
    font-weight: 700;
    line-height: 1.5;
    border-bottom: 1px solid currentColor;
    padding-bottom: 4px;
    transition: var(--transition);
}

.home-text-link {
    flex-shrink: 0;
    margin-bottom: var(--space-xs);
}

.home-text-link span,
.home-property-link span {
    font-size: 20px;
    font-weight: 400;
    line-height: 1;
    transition: transform 0.3s ease;
}

.home-text-link:hover,
.home-property-link:hover {
    color: var(--color-primary);
}

.home-text-link:hover span,
.home-property-link:hover span {
    transform: translateX(4px);
}


/* =========================================
   FEATURED PROPERTY GRID
========================================= */

.home-featured-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: var(--space-sm);
    align-items: stretch;
}


/* =========================================
   PROPERTY CARD
========================================= */

.home-property-card {
    display: flex;
    flex-direction: column;
    min-width: 0;
    overflow: hidden;
    background: var(--color-white);
    border: 1px solid var(--color-border);
    border-radius: var(--border-radius);
}

.home-property-image {
    display: block;
    width: 100%;
    aspect-ratio: 1.75 / 1;
    overflow: hidden;
    background: var(--color-bg-light);
}

.home-property-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

.home-property-card:hover .home-property-image img {
    transform: scale(1.04);
}

.home-property-content {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: var(--space-lg);
}

.home-property-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: var(--space-sm);
    margin-bottom: var(--space-md);
}

.home-property-price {
    font-size: 16px;
    line-height: 1.4;
    font-weight: 700;
    color: var(--color-secondary);
}

.home-property-title {
    font-size: 22px;
    line-height: 1.15;
    margin-bottom: var(--space-md);
}

.home-property-title a:hover {
    color: var(--color-primary);
}

.home-property-details {
    font-size: 14px;
    line-height: 1.5;
    font-weight: 700;
    color: var(--color-muted);
    margin-bottom: var(--space-lg);
}

.home-property-link {
    margin-top: auto;
    align-self: flex-start;
}


/* =========================================
   RESPONSIVE - TABLET
========================================= */

@media (max-width: 991px) {

    .home-benefit {
        gap: var(--space-sm);
        padding-inline: var(--space-sm);
    }

    .home-benefit h3 {
        font-size: 15px;
    }

    .home-benefit img {
        width: 40px;
        height: 40px;
    }

    .home-featured-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: var(--space-lg);
    }

    .home-property-title {
        font-size: 20px;
    }

}


/* =========================================
   RESPONSIVE - MOBILE
========================================= */

@media (max-width: 767px) {

    .home-benefits {
        padding-block: var(--space-lg);
    }

    .home-benefits-grid {
        grid-template-columns: 1fr;
        gap: var(--space-md);
    }

    .home-benefit {
        justify-content: flex-start;
        padding-inline: 0;
    }

    .home-benefit:not(:last-child) {
        border-right: 0;
        padding-bottom: var(--space-md);
        border-bottom: 1px solid var(--color-border);
    }

    .home-benefit h3 {
        font-size: 16px;
    }

    .home-featured-header {
        flex-direction: column;
        align-items: flex-start;
        gap: var(--space-lg);
        margin-bottom: var(--space-xl);
    }

    .home-text-link {
        margin-bottom: 0;
    }

    .home-featured-grid {
        grid-template-columns: 1fr;
        gap: var(--space-lg);
    }

    .home-property-image {
        aspect-ratio: 1.6 / 1;
    }

    .home-property-content {
        padding: var(--space-lg);
    }

    .home-property-title {
        font-size: 22px;
    }

}

.home-property-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.home-property-amenities { display: flex; align-items: center; gap: 8px; flex-shrink: 0; color: #111; }
.home-property-amenity { display: inline-flex; width: 19px; height: 19px; align-items: center; justify-content: center; }
.home-property-amenity svg { display: block; width: 100%; height: 100%; }
@media (max-width: 420px) { .home-property-amenities { gap: 5px; } .home-property-amenity { width: 17px; height: 17px; } }



/* ==========================================
   HOME DESTINATIONS
========================================== */

.home-destinations {
    padding: 70px 0;
    background: #fff;
}

.home-destinations-heading {
    margin-bottom: 40px;
}

.home-destinations-heading h2 {
    margin: 0 0 12px;
}

.home-destinations-heading h2 span {
    color: var(--primary-color, #003CA9);
}

.home-destinations-heading p {
    margin: 0;
}

.home-destinations-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
}

.home-destination-item {
    min-width: 0;
}

.home-destination-card {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 1.23 / 1;
    overflow: hidden;
    border-radius: var(--border-radius, 8px);
    text-decoration: none;
    isolation: isolate;
}

.home-destination-card::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background: linear-gradient(
        180deg,
        transparent 45%,
        rgba(0, 19, 55, 0.78) 100%
    );
    pointer-events: none;
}

.home-destination-card img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.4s ease;
}

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

.home-destination-overlay {
    position: absolute;
    z-index: 2;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 16px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;
}

.home-destination-overlay h3 {
    color: #fff;
    margin: 0;
    line-height: 1.2;
}

.home-destination-arrow {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 38px;
    width: 38px;
    height: 38px;
    background: #fff;
    color: var(--primary-color, #003CA9);
    border-radius: 50%;
    font-family: Arial, sans-serif;
    font-size: 0;
    line-height: 1;
    transition: background 0.3s ease, color 0.3s ease;
}

.home-destination-arrow svg {
    display: block;
    width: 18px;
    height: 18px;
    flex-shrink: 0;
}

.home-destination-card:hover .home-destination-arrow {
    background: var(--primary-color, #003CA9);
    color: #fff;
}

.home-destination-card:focus-visible {
    outline: 3px solid #003CA9;
    outline-offset: 4px;
}

.home-destination-item > p {
    margin: 10px 16px 0;
    color: #aaa;
    font-weight: 600;
    line-height: 1.5;
}

/* Tablet */
@media (max-width: 991px) {
    .home-destinations {
        padding: 55px 0;
    }

    .home-destinations-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 20px;
    }

    .home-destination-card {
        aspect-ratio: 1.23 / 1;
    }
}

/* Mobile */
@media (max-width: 767px) {
    .home-destinations {
        padding: 45px 0;
    }

    .home-destinations-heading {
        margin-bottom: 25px;
    }

    .home-destinations-grid {
        grid-template-columns: 1fr;
        gap: 25px;
    }

    .home-destination-card {
        aspect-ratio: 1.23 / 1;
    }

    .home-destination-overlay {
        padding: 16px;
    }

    .home-destination-arrow {
        flex-basis: 36px;
        width: 36px;
        height: 36px;
    }

    .home-destination-item > p {
        margin: 10px 12px 0;
    }
}

@media (prefers-reduced-motion: reduce) {
    .home-destination-card img,
    .home-destination-arrow {
        transition: none;
    }
}


/* Homepage - About Section */

.home-about {
    background: var(--color-bg-light);
}


/* =========================================
   HOME - GUEST TESTIMONIAL
========================================= */

.home-testimonial {
    background: var(--color-secondary);
    padding: 45px 0;
}

.home-testimonial__grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    align-items: center;
    gap: 40px;
}

.home-testimonial__intro h2 {
    color: var(--color-white);
    font-size: 40px;
    margin-bottom: 15px;
}

.home-testimonial__button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 42px;
    padding: 10px 28px;
    border: 1px solid var(--color-white);
    border-radius: var(--border-radius);
    color: var(--color-white);
    font-size: 14px;
    font-weight: 700;
}

.home-testimonial__button:hover {
    background: var(--color-white);
    color: var(--color-primary);
}

.home-testimonial__review {
    border-left: 2px solid var(--color-white);
    padding-left: 40px;
}

.home-testimonial__review blockquote {
    margin: 0 0 18px;
    font-family: var(--font-heading);
    font-size: 25px;
    font-style: italic;
    line-height: 1.4;
    color: var(--color-white);
}

.home-testimonial__author {
    margin: 0 0 2px;
    font-weight: 700;
    color: var(--color-white);
}

.home-testimonial__source {
    margin: 0;
    font-size: 13px;
    color: var(--color-white);
}

/* Tablet */

@media (max-width: 991px) {
    .home-testimonial__grid {
        gap: 25px;
    }

    .home-testimonial__intro h2 {
        font-size: 34px;
    }

    .home-testimonial__review {
        padding-left: 25px;
    }
}

/* Mobile */

@media (max-width: 767px) {
    .home-testimonial {
        padding: 45px 0;
    }

    .home-testimonial__grid {
        grid-template-columns: 1fr;
        gap: 30px;
    }

    .home-testimonial__intro h2 {
        font-size: 30px;
    }

    .home-testimonial__review {
        border-left: 0;
        border-top: 2px solid var(--color-white);
        padding-left: 0;
        padding-top: 25px;
    }

    .home-testimonial__review blockquote {
        font-size: 23px;
    }
}

/* Featured Properties - Mobile CTA */

.home-featured-mobile-link {
    display: none;
}

@media (max-width: 767px) {

    /* Hide top link on mobile */
    .home-featured-header > .home-text-link {
        display: none;
    }

    /* Show link after last property */
    .home-featured-mobile-link {
        display: flex;
        width: fit-content;
        margin: var(--space-xl) auto 0;
        justify-content: center;
        align-items: center;
    }
	
	.home-testimonial__button {
    	width: 100%;
	}

}