/* =========================================================
   VELORA
   EXPLORE PROPERTIES
   Find Your Stay. Enjoy Your Way.
   ========================================================= */

.explore-page {
    width: 100%;
    min-height: 100vh;
    background: var(--velora-surface, #f7faf9);
    color: var(--velora-ink, #111918);
}

.explore-page *,
.explore-page *::before,
.explore-page *::after {
    box-sizing: border-box;
}


/* =========================================================
   HERO
   ========================================================= */

.explore-hero {
    position: relative;
    overflow: hidden;
    padding: 76px 24px 72px;
    background:
        radial-gradient(
            circle at 86% 18%,
            rgba(15, 118, 110, 0.10),
            transparent 31%
        ),
        linear-gradient(
            135deg,
            #f3fbf9 0%,
            #ffffff 55%,
            #eef8f5 100%
        );
    border-bottom: 1px solid rgba(15, 118, 110, 0.08);
}

.explore-hero::before {
    content: "";
    position: absolute;
    width: 390px;
    height: 390px;
    top: -215px;
    right: -115px;
    border: 1px solid rgba(15, 118, 110, 0.10);
    border-radius: 50%;
    pointer-events: none;
}

.explore-hero::after {
    content: "";
    position: absolute;
    width: 180px;
    height: 180px;
    bottom: -115px;
    left: -70px;
    border: 1px solid rgba(15, 118, 110, 0.07);
    border-radius: 50%;
    pointer-events: none;
}

.explore-hero-inner {
    position: relative;
    z-index: 1;
    width: min(1180px, 100%);
    margin: 0 auto;
}

.explore-hero-copy {
    max-width: 720px;
    margin-bottom: 38px;
}

.explore-hero-copy .section-eyebrow {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    margin-bottom: 16px;
}

.explore-hero-copy .section-eyebrow::before {
    content: "";
    width: 7px;
    height: 7px;
    border-radius: 50%;
    background: var(--velora-green, #0f766e);
}

.explore-hero h1 {
    margin: 0;
    color: var(--velora-ink, #111918);
    font-size: clamp(2.7rem, 6vw, 5.2rem);
    line-height: 0.98;
    letter-spacing: -0.055em;
    font-weight: 800;
}

.explore-hero h1 em {
    display: block;
    color: var(--velora-green, #0f766e);
    font-style: normal;
}

.explore-hero-copy p {
    max-width: 650px;
    margin: 22px 0 0;
    color: var(--velora-muted, #657572);
    font-size: 1.05rem;
    line-height: 1.75;
}


/* =========================================================
   SEARCH PANEL
   ========================================================= */

.property-search {
    display: grid;
    grid-template-columns:
        minmax(0, 1.4fr)
        minmax(160px, 0.85fr)
        minmax(165px, 0.85fr)
        minmax(145px, 0.75fr)
        auto;

    align-items: end;
    gap: 13px;

    width: 100%;
    padding: 16px;

    background: rgba(255, 255, 255, 0.95);
    border: 1px solid rgba(15, 118, 110, 0.10);
    border-radius: 20px;

    box-shadow:
        0 18px 50px rgba(20, 55, 50, 0.09),
        0 4px 14px rgba(20, 55, 50, 0.04);

    backdrop-filter: blur(16px);
}

.explore-page .search-field {
    min-width: 0;
}

.explore-page .search-field > label,
.explore-page .search-field > legend {
    display: block;
    margin: 0 0 7px 2px;

    color: var(--velora-ink, #111918);

    font-size: 0.70rem;
    line-height: 1.2;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
}

.explore-page .search-field input,
.explore-page .search-field select {
    width: 100%;
    min-height: 52px;

    padding: 0 15px;

    border: 1px solid #dce7e4;
    border-radius: 12px;

    background: #fbfdfc;
    color: var(--velora-ink, #111918);

    font: inherit;
    font-size: 0.92rem;

    outline: none;

    transition:
        border-color 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease;
}

.explore-page .search-field input::placeholder {
    color: #93a19e;
}

.explore-page .search-field input:hover,
.explore-page .search-field select:hover {
    border-color: #c5d8d4;
}

.explore-page .search-field input:focus,
.explore-page .search-field select:focus {
    border-color: var(--velora-green, #0f766e);
    background: #ffffff;
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.09);
}

.explore-page .property-search .btn-primary {
    min-width: 118px;
    min-height: 52px;

    border: 0;
    border-radius: 12px;

    cursor: pointer;
    white-space: nowrap;

    font-weight: 800;
}


/* =========================================================
   MORE FILTERS
   ========================================================= */

.more-filters {
    grid-column: 1 / -1;

    margin-top: 2px;
    padding-top: 13px;

    border-top: 1px solid #edf2f0;
}

.more-filters summary {
    display: inline-flex;
    align-items: center;
    gap: 7px;

    width: fit-content;

    padding: 5px 0;

    color: var(--velora-green-dark, #115e59);

    font-size: 0.82rem;
    font-weight: 800;

    cursor: pointer;
    list-style: none;
}

.more-filters summary::-webkit-details-marker {
    display: none;
}

.more-filters summary::before {
    content: "+";

    display: grid;
    place-items: center;

    width: 22px;
    height: 22px;

    border: 1px solid #cfe0dc;
    border-radius: 50%;

    font-size: 0.9rem;
}

.more-filters[open] summary::before {
    content: "−";
}

.more-filters-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 14px;

    margin-top: 17px;
    padding-top: 2px;
}

.more-filters-grid .search-field {
    min-width: 0;
}

.more-filters-grid .btn-secondary {
    width: 100%;
}

.amenity-set {
    min-width: 0;
    margin: 0;
    padding: 0;
    border: 0;
}

.amenity-set legend {
    padding: 0;
}

.amenity-check {
    display: inline-flex !important;
    align-items: center;
    gap: 7px;

    margin: 0 7px 7px 0 !important;

    color: #60706d !important;

    font-size: 0.76rem !important;
    font-weight: 650 !important;
    letter-spacing: 0 !important;
    text-transform: none !important;

    cursor: pointer;
}

.amenity-check input {
    width: 16px !important;
    min-height: 16px !important;

    margin: 0;

    accent-color: var(--velora-green, #0f766e);

    box-shadow: none !important;
}


/* =========================================================
   SEARCH NOTES
   ========================================================= */

.search-notes {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding-top: 20px;
}

.search-notes .velora-alert {
    margin: 0 0 8px;
    border-radius: 12px;
}


/* =========================================================
   RESULTS SECTION
   ========================================================= */

.property-results {
    width: min(1180px, calc(100% - 48px));
    margin: 0 auto;
    padding: 48px 0 90px;
}

.results-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;

    margin-bottom: 27px;
}

.results-header .section-eyebrow {
    display: block;
    margin-bottom: 8px;
}

.results-header h2 {
    margin: 0;

    color: var(--velora-ink, #111918);

    font-size: clamp(1.45rem, 3vw, 2rem);
    line-height: 1.2;
    letter-spacing: -0.025em;
    font-weight: 800;
}

.results-tools {
    display: flex;
    align-items: center;
    gap: 10px;
}


/* =========================================================
   SORT
   ========================================================= */

.sort-form {
    display: flex;
    align-items: center;
    gap: 9px;
    flex-shrink: 0;
}

.sort-form label {
    color: #71817e;
    font-size: 0.80rem;
    font-weight: 750;
}

.sort-form select {
    min-width: 180px;
    min-height: 44px;

    padding: 0 36px 0 13px;

    border: 1px solid #dce7e4;
    border-radius: 10px;

    background: #ffffff;
    color: var(--velora-ink, #111918);

    font: inherit;
    font-size: 0.84rem;
    font-weight: 650;

    outline: none;
    cursor: pointer;
}

.sort-form select:focus {
    border-color: var(--velora-green, #0f766e);
    box-shadow: 0 0 0 4px rgba(15, 118, 110, 0.08);
}

.results-tools .btn-secondary {
    white-space: nowrap;
}


/* =========================================================
   MAP
   ========================================================= */

.results-map {
    width: 100%;
    min-height: 360px;

    margin: 0 0 26px;

    overflow: hidden;

    border: 1px solid #dfeae7;
    border-radius: 18px;

    background: #edf4f2;

    box-shadow:
        0 10px 30px rgba(20, 55, 50, 0.06);
}

.results-map[hidden] {
    display: none;
}


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

.explore-page .property-grid {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 22px;
}


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

.explore-page .property-card {
    position: relative;

    min-width: 0;

    overflow: hidden;

    background: #ffffff;

    border: 1px solid #e4ecea;
    border-radius: 18px;

    box-shadow:
        0 8px 24px rgba(20, 55, 50, 0.045);

    transition:
        transform 0.25s ease,
        border-color 0.25s ease,
        box-shadow 0.25s ease;
}

.explore-page .property-card:hover {
    transform: translateY(-5px);

    border-color: rgba(15, 118, 110, 0.18);

    box-shadow:
        0 20px 45px rgba(20, 55, 50, 0.11),
        0 5px 15px rgba(20, 55, 50, 0.05);
}


/* =========================================================
   CARD MEDIA
   ========================================================= */

.property-card-media {
    position: relative;
}

.property-card-image {
    position: relative;

    display: block;

    width: 100%;
    aspect-ratio: 16 / 10;

    overflow: hidden;

    background: #edf4f2;

    text-decoration: none;
}

.property-card-image img {
    display: block;

    width: 100%;
    height: 100%;

    object-fit: cover;

    transition: transform 0.45s ease;
}

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

.property-card-image-overlay {
    position: absolute;
    inset: 0;

    background:
        linear-gradient(
            180deg,
            rgba(0, 0, 0, 0.10),
            transparent 38%,
            rgba(0, 0, 0, 0.18)
        );

    pointer-events: none;
}

.property-image-placeholder {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 8px;

    width: 100%;
    height: 100%;

    background:
        radial-gradient(
            circle at center,
            #dff3ee 0%,
            #edf7f4 45%,
            #f6faf9 100%
        );
}

.property-image-placeholder strong {
    display: grid;
    place-items: center;

    width: 64px;
    height: 64px;

    border-radius: 18px;

    background: rgba(255, 255, 255, 0.80);
    color: var(--velora-green, #0f766e);

    font-size: 1.5rem;
    font-weight: 900;

    box-shadow:
        0 10px 25px rgba(15, 118, 110, 0.08);
}

.property-image-placeholder span {
    color: #7a8986;

    font-size: 0.70rem;
    font-weight: 750;
    text-transform: uppercase;
    letter-spacing: 0.08em;
}


/* =========================================================
   BADGES
   ========================================================= */

.property-card-badges {
    position: absolute;
    top: 13px;
    left: 13px;

    display: flex;
    flex-wrap: wrap;
    gap: 7px;

    max-width: calc(100% - 68px);
}

.property-badge {
    display: inline-flex;
    align-items: center;

    min-height: 28px;
    padding: 0 10px;

    border: 1px solid rgba(255, 255, 255, 0.50);
    border-radius: 999px;

    background: rgba(255, 255, 255, 0.92);
    color: var(--velora-green-dark, #115e59);

    font-size: 0.67rem;
    font-weight: 800;
    letter-spacing: 0.03em;

    box-shadow:
        0 4px 12px rgba(0, 0, 0, 0.07);

    backdrop-filter: blur(8px);
}

.property-badge-sponsored {
    background: #fff7e8;
    border-color: rgba(216, 155, 25, 0.22);
    color: #9a6910;
}

.property-badge-rating {
    background: rgba(255, 255, 255, 0.94);
}


/* =========================================================
   WISHLIST
   ========================================================= */

.property-wishlist {
    position: absolute;
    z-index: 3;

    top: 13px;
    right: 13px;

    display: grid;
    place-items: center;

    width: 39px;
    height: 39px;

    padding: 0;

    border: 1px solid rgba(255, 255, 255, 0.60);
    border-radius: 50%;

    background: rgba(255, 255, 255, 0.94);
    color: #52635f;

    font-size: 1.27rem;
    line-height: 1;

    cursor: pointer;

    box-shadow:
        0 5px 15px rgba(0, 0, 0, 0.08);

    transition:
        transform 0.2s ease,
        color 0.2s ease,
        background 0.2s ease;
}

.property-wishlist:hover {
    transform: scale(1.07);
    color: var(--velora-green, #0f766e);
}

.property-wishlist.active {
    background: var(--velora-green, #0f766e);
    color: #ffffff;
}


/* =========================================================
   CARD BODY
   ========================================================= */

.property-card-body {
    display: flex;
    flex-direction: column;

    min-width: 0;

    padding: 19px;
}

.property-card-location {
    display: flex;
    align-items: center;
    gap: 5px;

    min-width: 0;

    margin-bottom: 7px;

    overflow: hidden;

    color: #82908d;

    font-size: 0.74rem;
    font-weight: 700;
    letter-spacing: 0.03em;
    text-transform: uppercase;

    white-space: nowrap;
}

.property-card-location > span:not(.property-location-separator):not(.property-distance) {
    min-width: 0;

    overflow: hidden;
    text-overflow: ellipsis;
}

.property-location-separator {
    flex: 0 0 auto;

    color: #a3afac;

    font-size: 0.72rem;
    font-weight: 700;
}

.property-distance {
    display: inline-flex;
    align-items: center;
    gap: 5px;

    flex-shrink: 0;

    color: var(--velora-green, #0f766e);

    font-size: 0.70rem;
    font-weight: 700;

    text-transform: none;
    letter-spacing: 0;
}

.property-card-title {
    display: block;

    margin-bottom: 11px;

    overflow: hidden;

    color: var(--velora-ink, #111918);

    font-size: 1.08rem;
    line-height: 1.35;
    font-weight: 800;

    text-decoration: none;
    text-overflow: ellipsis;
    white-space: nowrap;

    transition: color 0.2s ease;
}

.property-card-title:hover {
    color: var(--velora-green, #0f766e);
}


/* =========================================================
   AMENITY PILLS
   ========================================================= */

.property-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;

    min-height: 26px;
    margin-bottom: 4px;
}

.property-meta-pill {
    display: inline-flex;
    align-items: center;

    min-height: 26px;
    padding: 0 9px;

    border: 1px solid #e2ebe8;
    border-radius: 7px;

    background: #f7faf9;
    color: #60706d;

    font-size: 0.67rem;
    font-weight: 700;
}


/* =========================================================
   PRICE
   ========================================================= */

.property-card-footer {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 12px;

    margin-top: 8px;
    padding-top: 15px;

    border-top: 1px solid #edf2f0;
}

.property-rent {
    color: var(--velora-green-dark, #115e59);

    font-size: 1.12rem;
    line-height: 1.2;
    font-weight: 850;
}

.property-rent strong {
    font-weight: 850;
}

.property-rent small {
    color: #84918f;

    font-size: 0.68rem;
    font-weight: 600;
}

.property-card-old-price {
    display: flex;
    align-items: center;
    gap: 7px;

    margin-bottom: 4px;

    color: #96a29f;

    font-size: 0.72rem;
    line-height: 1;
    text-decoration: line-through;
}

.property-card-offer {
    display: inline-flex;
    align-items: center;

    padding: 3px 6px;

    border-radius: 5px;

    background: #fff4df;
    color: #a56f0b;

    font-size: 0.58rem;
    font-weight: 850;
    letter-spacing: 0.05em;

    text-decoration: none;
}


/* =========================================================
   RATING
   ========================================================= */

.property-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;

    flex-shrink: 0;

    color: #5e706c;

    font-size: 0.78rem;
    font-weight: 800;
}

.property-rating span {
    color: #d89b19;
}


/* =========================================================
   CARD ACTIONS
   ========================================================= */

.card-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;

    margin-top: 14px;
}

.card-action {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 7px;

    min-height: 40px;
    padding: 0 13px;

    border-radius: 9px;

    font-size: 0.78rem;
    font-weight: 800;

    text-decoration: none;

    cursor: pointer;

    transition:
        background 0.2s ease,
        border-color 0.2s ease,
        color 0.2s ease,
        transform 0.2s ease;
}

.card-action-primary {
    border: 1px solid var(--velora-green, #0f766e);

    background: var(--velora-green, #0f766e);
    color: #ffffff;
}

.card-action-primary:hover {
    background: var(--velora-green-dark, #115e59);
    color: #ffffff;
}

.card-action-compare {
    border: 1px solid #d7e3df;

    background: #ffffff;
    color: #53635f;
}

.card-action-compare:hover {
    border-color: rgba(15, 118, 110, 0.28);
    background: #ecfdf5;
    color: var(--velora-green-dark, #115e59);
}


/* =========================================================
   SPONSORED SECTION
   ========================================================= */

.sponsored-strip {
    margin-bottom: 30px;
    padding: 24px;

    border: 1px solid rgba(216, 155, 25, 0.16);
    border-radius: 20px;

    background:
        linear-gradient(
            135deg,
            #fffdf8,
            #ffffff
        );
}

.sponsored-title {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 9px;

    margin: 0 0 18px;

    color: var(--velora-ink, #111918);

    font-size: 1rem;
    font-weight: 800;
}

.sponsored-strip .property-grid {
    margin: 0;
}


/* =========================================================
   AD CARDS
   ========================================================= */

.ad-card,
.property-ad-card {
    overflow: hidden;

    border: 1px solid #e4ecea;
    border-radius: 16px;

    background: #ffffff;
}


/* =========================================================
   PAGINATION
   ========================================================= */

.pagination {
    display: flex;
    align-items: center;
    justify-content: center;
    flex-wrap: wrap;
    gap: 10px;

    margin-top: 38px;
}

.page-link,
.page-current {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    min-height: 42px;
    padding: 0 15px;

    border: 1px solid #dce7e4;
    border-radius: 10px;

    background: #ffffff;

    font-size: 0.80rem;
    font-weight: 750;
}

.page-link {
    color: var(--velora-ink, #111918);
    text-decoration: none;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}

.page-link:hover {
    border-color: rgba(15, 118, 110, 0.28);
    background: #ecfdf5;
    color: var(--velora-green-dark, #115e59);
}

.page-current {
    border-color: transparent;
    background: #edf6f3;
    color: var(--velora-green-dark, #115e59);
}


/* =========================================================
   EMPTY STATE
   ========================================================= */

.explore-page .empty-state {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;

    min-height: 330px;

    padding: 50px 24px;

    border: 1px dashed #cddbd7;
    border-radius: 20px;

    background: #ffffff;

    text-align: center;
}

.empty-state-icon {
    display: grid;
    place-items: center;

    width: 66px;
    height: 66px;

    margin-bottom: 18px;

    border-radius: 18px;

    background: #ecfdf5;
    color: var(--velora-green, #0f766e);

    font-size: 1.4rem;
    font-weight: 900;
}

.empty-state h3 {
    margin: 0 0 8px;

    color: var(--velora-ink, #111918);

    font-size: 1.25rem;
    font-weight: 800;
}

.empty-state p {
    max-width: 430px;
    margin: 0 0 22px;

    color: #71817e;

    font-size: 0.90rem;
    line-height: 1.65;
}

.empty-state .btn-secondary {
    text-decoration: none;
}


/* =========================================================
   BUTTONS
   ========================================================= */

.explore-page .btn-primary,
.explore-page .btn-secondary {
    display: inline-flex;
    align-items: center;
    justify-content: center;

    text-decoration: none;
    font-weight: 750;
}

.explore-page .btn-primary {
    border: 0;

    background: var(--velora-green, #0f766e);
    color: #ffffff;
}

.explore-page .btn-primary:hover {
    background: var(--velora-green-dark, #115e59);
}

.explore-page .btn-secondary {
    min-height: 44px;
    padding: 0 17px;

    border: 1px solid #d6e3df;
    border-radius: 10px;

    background: #ffffff;
    color: var(--velora-ink, #111918);

    cursor: pointer;

    transition:
        border-color 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
}

.explore-page .btn-secondary:hover {
    border-color: rgba(15, 118, 110, 0.25);
    background: #ecfdf5;
    color: var(--velora-green-dark, #115e59);
}


/* =========================================================
   FOCUS ACCESSIBILITY
   ========================================================= */

.explore-page a:focus-visible,
.explore-page button:focus-visible,
.explore-page input:focus-visible,
.explore-page select:focus-visible,
.explore-page summary:focus-visible {
    outline: 3px solid rgba(15, 118, 110, 0.22);
    outline-offset: 3px;
}


/* =========================================================
   TABLET
   ========================================================= */

@media (max-width: 1050px) {

    .property-search {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .property-search .btn-primary {
        width: 100%;
    }

    .more-filters-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

    .explore-page .property-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }

}


/* =========================================================
   MOBILE
   ========================================================= */

@media (max-width: 700px) {

    .explore-hero {
        padding: 52px 18px 48px;
    }

    .explore-hero h1 {
        font-size: clamp(2.35rem, 12vw, 3.6rem);
    }

    .explore-hero-copy p {
        font-size: 0.94rem;
    }

    .property-search {
        grid-template-columns: 1fr;
        padding: 13px;
        border-radius: 16px;
    }

    .more-filters-grid {
        grid-template-columns: 1fr;
    }

    .quick-filters {
        width: calc(100% - 36px);
        padding-top: 18px;
    }

    .property-results {
        width: calc(100% - 36px);
        padding-top: 35px;
        padding-bottom: 60px;
    }

    .results-header {
        align-items: flex-start;
        flex-direction: column;
        gap: 17px;
    }

    .results-tools {
        width: 100%;
        flex-wrap: wrap;
    }

    .sort-form {
        width: 100%;
    }

    .sort-form select {
        flex: 1;
        min-width: 0;
    }

    .results-tools .btn-secondary {
        width: 100%;
    }

    .explore-page .property-grid {
        grid-template-columns: 1fr;
        gap: 17px;
    }

    .sponsored-strip {
        padding: 17px;
        border-radius: 16px;
    }

    .results-map {
        min-height: 300px;
        border-radius: 15px;
    }

}


/* =========================================================
   SMALL MOBILE
   ========================================================= */

@media (max-width: 430px) {

    .explore-hero {
        padding-inline: 14px;
    }

    .quick-filters {
        width: calc(100% - 28px);
    }

    .property-results {
        width: calc(100% - 28px);
    }

    .property-card-body {
        padding: 16px;
    }

    .property-card-title {
        font-size: 1rem;
    }

    .property-rent {
        font-size: 1rem;
    }

    .property-card-footer {
        align-items: flex-start;
    }

    .card-actions {
        grid-template-columns: 1fr;
    }

    .card-action {
        width: 100%;
    }

    .pagination {
        gap: 7px;
    }

    .page-link,
    .page-current {
        min-height: 39px;
        padding-inline: 11px;
        font-size: 0.74rem;
    }

}


/* =========================================================
   REDUCED MOTION
   ========================================================= */

@media (prefers-reduced-motion: reduce) {

    .explore-page *,
    .explore-page *::before,
    .explore-page *::after {
        scroll-behavior: auto !important;
        transition: none !important;
        animation: none !important;
    }

}