@import url('main-style.css');

/* ===== Hide legacy layout while V2 is in preview ===== */
.banner,
.new-reviews-section,
.popular-cities-section,
.vip-promo-section,
.review-cards-section {
    display: none !important;
}

#mpr-home-v2 {
    position: relative;
    z-index: 2;
    background: #f5f7fa;
    padding-bottom: 4rem;
}

/* ===== HERO ===== */
.hero-v2 {
    --hero-bg-image: linear-gradient(135deg, rgba(16, 24, 40, 0.92), rgba(8, 10, 24, 0.95));
    position: relative;
    padding: 4rem 0 2.5rem;
    color: #fff;
    background-image:
        linear-gradient(180deg, rgba(15, 23, 42, 0.78), rgba(8, 11, 24, 0.88)),
        var(--hero-bg-image);
    background-size: cover;
    background-position: center;
    background-repeat: no-repeat;
    overflow: visible;
}

.hero-v2::before {
    content: "";
    position: absolute;
    inset: 0;
    background: rgba(12, 17, 29, 0.28);
    pointer-events: none;
    mix-blend-mode: multiply;
    z-index: 1;
}

.hero-v2::after {
    content: none;
}

.hero-v2__inner {
    position: relative;
    z-index: 2;
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: flex;
    flex-direction: column;
    gap: 2.25rem;
}

.hero-v2__content {
    max-width: 960px;
}

.hero-v2__tagline {
    display: inline-flex;
    align-items: center;
    gap: 0.5rem;
    padding: 0.35rem 0.9rem;
    border-radius: 999px;
    background: rgba(255, 255, 255, 0.12);
    text-transform: uppercase;
    letter-spacing: 0.14em;
    font-size: 0.75rem;
    font-weight: 600;
}

.hero-v2__headline {
    margin: 1rem 0;
    font-size: clamp(2.6rem, 5vw, 3.6rem);
    font-weight: 800;
    line-height: 1.1;
}

.hero-v2__lede {
    font-size: clamp(1.05rem, 2vw, 1.3rem);
    color: rgba(255, 255, 255, 0.85);
    margin-bottom: 0.75rem;
}

.hero-v2__subtitle {
    color: rgba(255, 255, 255, 0.88);
    font-size: clamp(1.05rem, 2vw, 1.35rem);
    margin-bottom: 1.75rem;
}

.hero-v2__quicklinks {
    margin-top: 1.35rem;
    display: flex;
    align-items: center;
    gap: 0.75rem;
    flex-wrap: wrap;
    font-size: 0.95rem;
    color: rgba(255, 255, 255, 0.9);
}

.hero-v2__quicklinks span {
    text-transform: uppercase;
    letter-spacing: 0.18em;
    font-weight: 700;
    font-size: 0.78rem;
    opacity: 0.85;
}

.hero-v2__quicklinks ul {
    list-style: none;
    display: flex;
    gap: 0.65rem;
    flex-wrap: wrap;
    padding: 0;
    margin: 0;
}

.hero-v2__quicklinks li a {
    display: inline-flex;
    align-items: center;
    gap: 0.4rem;
    padding: 0.4rem 0.9rem;
    border-radius: 999px;
    background: rgba(15, 23, 42, 0.45);
    color: #fff;
    font-weight: 600;
    transition: background 0.2s ease, transform 0.2s ease;
}

.hero-v2__quicklinks li a:hover {
    background: rgba(255, 255, 255, 0.22);
    transform: translateY(-1px);
}

.hero-search {
    position: relative;
    z-index: 200;
}

.hero-search-wrapper {
    position: relative;
    display: flex;
    align-items: stretch;
    flex-wrap: nowrap;
    gap: 0.45rem;
    background: rgba(255, 255, 255, 0.9);
    border-radius: 28px;
    padding: 0.35rem 0.4rem;
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.28);
    width: 100%;
}

.hero-v2__form {
    width: 100%;
}

.hero-search-input {
    display: flex;
    align-items: center;
    gap: 0.65rem;
    padding: 0.75rem 1.35rem;
    flex: 3 1 520px;
    order: 1;
}

.hero-search-input i {
    font-size: 1.1rem;
    color: #d87d1c;
    opacity: 0.85;
}

.hero-search-input input {
    border: none;
    outline: none;
    background: transparent;
    font-size: 1.05rem;
    color: #1f2937;
    width: 100%;
}

.hero-search-input input::placeholder {
    color: rgba(71, 85, 105, 0.55);
}

.hero-search-state,
.hero-search-city {
    display: flex;
    align-items: center;
    flex: 0 0 200px;
    min-width: 180px;
    padding: 0.6rem 1.15rem;
    border-radius: 22px;
    background: rgba(255, 255, 255, 0.6);
    border: 1px solid rgba(226, 232, 240, 0.75);
    gap: 0.55rem;
    order: 2;
}

.hero-search-city {
    flex: 0 0 220px;
    min-width: 200px;
    order: 3;
}

.hero-search-state select,
.hero-search-city select {
    width: 100%;
    border: none;
    background: transparent;
    font-size: 1rem;
    color: #1f2937;
    appearance: none;
    padding-right: 1.5rem;
    cursor: pointer;
}

.hero-search-state::after,
.hero-search-city::after {
    content: '\f107';
    font-family: 'Font Awesome 5 Free';
    font-weight: 900;
    color: #d87d1c;
    margin-left: -1.6rem;
    pointer-events: none;
    font-size: 0.85rem;
}

.hero-search-wrapper button[type="submit"] {
    flex: 0 0 160px;
    min-width: 160px;
    background: linear-gradient(135deg, #118b3e, #0e7031);
    border-radius: 22px;
    border: none;
    text-transform: uppercase;
    letter-spacing: 1.4px;
    color: #fff;
    font-weight: 700;
    font-size: 0.95rem;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
    padding: 0 1.25rem;
    order: 4;
}

.hero-search-wrapper button[type="submit"]:hover {
    transform: translateY(-2px);
    box-shadow: 0 18px 30px rgba(17, 139, 62, 0.35);
}

.hero-search-suggestions {
    position: absolute;
    top: calc(100% + 12px);
    left: 0;
    right: 0;
    background: #ffffff;
    border-radius: 18px;
    box-shadow: 0 24px 55px rgba(15, 23, 42, 0.22);
    padding: 18px 0;
    z-index: 1200;
    max-height: 420px;
    overflow-y: auto;
    border: 1px solid rgba(226, 232, 240, 0.6);
}

.hero-search-suggestions.hidden {
    display: none;
}

.hero-search-suggestions__section {
    padding: 0 18px;
}

.hero-search-suggestions__title {
    font-size: 0.82rem;
    font-weight: 700;
    letter-spacing: 0.08em;
    text-transform: uppercase;
    color: #475569;
    margin: 12px 0 6px;
}

.hero-search-suggestions__list {
    list-style: none;
    margin: 0;
    padding: 0;
}

.hero-search-suggestion {
    display: flex;
    align-items: center;
    gap: 12px;
    padding: 10px 12px;
    border-radius: 12px;
    transition: background 0.15s ease, transform 0.15s ease;
    cursor: pointer;
    color: #1f2937;
    text-decoration: none;
}

.hero-search-suggestion:hover,
.hero-search-suggestion:focus {
    background: #f8fafc;
    transform: translateY(-1px);
}

.hero-search-suggestion.is-active {
    background: #f1f5f9;
    transform: translateY(-1px);
}

.hero-search-suggestion__thumb {
    width: 44px;
    height: 44px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    background: #e2e8f0;
    overflow: hidden;
}

.hero-search-suggestion__icon {
    width: 36px;
    height: 36px;
    border-radius: 8px;
    background: rgba(247, 193, 139, 0.25);
    color: #d87d1c;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.9rem;
    flex-shrink: 0;
}

.hero-search-suggestion__content {
    display: flex;
    flex-direction: column;
    gap: 2px;
    min-width: 0;
}

.hero-search-suggestion__label {
    font-weight: 600;
    font-size: 0.92rem;
    color: #1f2937;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-search-suggestion__meta {
    font-size: 0.8rem;
    color: #64748b;
    display: flex;
    gap: 8px;
    align-items: center;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.hero-search-suggestion__meta i {
    color: #d87d1c;
}

.hero-location-button {
    margin-top: 1.25rem;
    color: rgba(255, 255, 255, 0.92);
    font-weight: 600;
    text-decoration: underline;
    background: none;
    border: none;
    cursor: pointer;
}

.hero-location-button:hover {
    color: #ffddae;
}

.hero-search-error {
    margin-top: 1.25rem;
    background: rgba(248, 53, 70, 0.18);
    border-radius: 14px;
    padding: 0.9rem 1.2rem;
    color: #fff5f5;
    font-weight: 600;
    border: 1px solid rgba(248, 53, 70, 0.35);
}

.hero-v2__stats,
.hero-v2__badge {
    display: none;
}

/* ===== TRUST SIGNALS ===== */
.trust-v2 {
    display: none;
}

/* ===== RECENT REVIEWS ===== */
.recent-v2 {
    padding: 2.5rem 0 3rem;
}

.recent-v2__inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem;
    display: grid;
    grid-template-columns: 320px 1fr;
    gap: 2.5rem;
}

.filter-card {
    background: #fff;
    border-radius: 18px;
    padding: 1.8rem;
    box-shadow: 0 18px 32px rgba(15, 23, 42, 0.08);
    border: 1px solid rgba(226, 232, 240, 0.7);
}

.filter-card + .filter-card {
    margin-top: 1.5rem;
}

.filter-card h3 {
    font-size: 1.1rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: #0f172a;
}

.filter-card__list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    gap: 0.65rem;
}

.filter-card__list li a {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0.55rem 0.75rem;
    background: #f8fafc;
    border-radius: 12px;
    color: #1f2937;
    font-weight: 600;
    transition: all 0.2s ease;
}

.filter-card__list li a:hover {
    background: rgba(247, 193, 139, 0.25);
    transform: translateX(4px);
    box-shadow: 0 8px 20px rgba(247, 193, 139, 0.3);
}

.filter-card__list-count {
    font-size: 0.78rem;
    background: rgba(37, 99, 235, 0.08);
    color: #1d4ed8;
    border: 1px solid rgba(37, 99, 235, 0.18);
    border-radius: 999px;
    padding: 0.15rem 0.55rem;
    min-width: 36px;
    text-align: center;
    font-weight: 600;
}

.filter-card__empty {
    font-size: 0.9rem;
    color: #64748b;
    margin: 0;
}

.recent-v2__content {
    display: flex;
    flex-direction: column;
    gap: 1.8rem;
}

.recent-v2__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 1.5rem;
    flex-wrap: wrap;
}

.recent-v2__header h2 {
    font-size: clamp(1.9rem, 3vw, 2.3rem);
    margin-bottom: 0.35rem;
    color: #0f172a;
}

.recent-v2__header p {
    margin: 0;
    color: #475569;
    font-size: 1rem;
}

.recent-v2__header-actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

.btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    gap: 0.45rem;
    border-radius: 999px;
    padding: 0.65rem 1.4rem;
    font-weight: 600;
    text-decoration: none;
    cursor: pointer;
    border: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.btn--solid {
    background: linear-gradient(135deg, #d87d1c, #b8651a);
    color: #181411;
    box-shadow: 0 10px 24px rgba(216, 125, 28, 0.35);
}

.btn--solid:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 30px rgba(216, 125, 28, 0.45);
}

.btn--ghost {
    background: #fff;
    color: #0f172a;
    border: 1px solid rgba(148, 163, 184, 0.35);
}

.btn--ghost:hover {
    transform: translateY(-2px);
    box-shadow: 0 12px 24px rgba(15, 23, 42, 0.12);
}

.fresh-reviews-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
    gap: 1.5rem;
}

.fresh-review-card {
    background: #fff;
    border-radius: 18px;
    padding: 1.6rem;
    box-shadow: 0 18px 35px rgba(15, 23, 42, 0.1);
    border: 1px solid rgba(226, 232, 240, 0.8);
    display: flex;
    flex-direction: column;
    gap: 1.2rem;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fresh-review-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 24px 40px rgba(15, 23, 42, 0.16);
}

.fresh-review-card__header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 0.75rem;
}

.fresh-review-card__name {
    font-size: 1.2rem;
    font-weight: 700;
    margin: 0 0 0.3rem;
    color: #0f172a;
}

.fresh-review-card__tag {
    background: rgba(247, 193, 139, 0.25);
    color: #d87d1c;
    border-radius: 999px;
    padding: 0.35rem 0.7rem;
    font-weight: 600;
    font-size: 0.75rem;
}

.fresh-review-card__meta {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
    font-size: 0.95rem;
    color: #475569;
}

.fresh-review-card__meta span {
    display: inline-flex;
    align-items: center;
    gap: 0.45rem;
}

.fresh-review-card__meta i {
    color: #d87d1c;
}

.fresh-review-card__rating {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-weight: 600;
    color: #f59e0b;
}

.fresh-review-card__snippet {
    background: #f8fafc;
    border-radius: 14px;
    padding: 1rem;
    font-size: 0.95rem;
    color: #1f2937;
    border-left: 4px solid #d87d1c;
}

.fresh-review-card__actions {
    display: flex;
    gap: 0.6rem;
    flex-wrap: wrap;
    margin-top: auto;
}

.fresh-review-card__actions a {
    flex: 1 1 130px;
    text-align: center;
    border-radius: 999px;
    padding: 0.55rem 0.9rem;
    font-weight: 600;
    text-decoration: none;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.fresh-review-card__actions a:first-child {
    background: linear-gradient(135deg, #f7c18b, #d87d1c);
    color: #181411;
    box-shadow: 0 12px 20px rgba(216,125,28,0.35);
}

.fresh-review-card__actions a:last-child {
    background: linear-gradient(135deg, #16a34a, #0f7a37);
    color: #fff;
}

.fresh-review-card__actions a:hover {
    transform: translateY(-2px);
    box-shadow: 0 16px 26px rgba(15, 23, 42, 0.18);
}

.fresh-reviews-empty {
    text-align: center;
    background: #fff;
    border-radius: 18px;
    padding: 2rem;
    border: 1px dashed rgba(100, 116, 139, 0.4);
    color: #475569;
    font-size: 0.98rem;
}

/* ===== CTA ===== */
.cta-v2 {
    padding: 3rem 0 3.5rem;
}

.cta-v2__inner {
    max-width: 1100px;
    margin: 0 auto;
    padding: 2.4rem 2rem;
    background: linear-gradient(135deg, rgba(247, 193, 139, 0.2), rgba(216, 125, 28, 0.12));
    border-radius: 24px;
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    align-items: center;
    gap: 1.4rem;
    border: 1px solid rgba(216, 125, 28, 0.25);
    box-shadow: 0 20px 40px rgba(216, 125, 28, 0.15);
}

.cta-v2__text h2 {
    margin: 0 0 0.45rem;
    font-size: clamp(1.6rem, 3vw, 2rem);
    color: #0f172a;
}

.cta-v2__text p {
    margin: 0;
    color: #475569;
}

.cta-v2__actions {
    display: flex;
    gap: 0.75rem;
    flex-wrap: wrap;
}

/* ===== MAP SECTION REFINEMENT ===== */
#map-section {
    background: #fff;
    border-top: 1px solid rgba(226, 232, 240, 0.8);
    padding-top: 3.5rem;
    margin-top: 0;
}

#map-section .container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 2rem 3rem;
}

#map-section .map-container {
    border-radius: 18px;
    box-shadow: 0 20px 40px rgba(15, 23, 42, 0.15);
    border: 1px solid rgba(226,232,240,0.8);
}

/* ===== RESPONSIVE ===== */
@media (max-width: 1024px) {
    .hero-search-state,
    .hero-search-city {
        flex: 1 1 220px;
    }

    .hero-search-wrapper button[type="submit"] {
        flex: 1 1 200px;
    }

    .hero-search-suggestions {
        max-height: 360px;
    }

    .recent-v2__inner {
        grid-template-columns: 1fr;
    }

    .filter-card + .filter-card {
        margin-top: 1rem;
    }
}

@media (max-width: 768px) {
    .hero-v2__inner,
    .trust-v2__inner,
    .recent-v2__inner,
    #map-section .container,
    .cta-v2__inner {
        padding-left: 1.25rem;
        padding-right: 1.25rem;
    }

    .hero-search-wrapper {
        border-radius: 24px;
        padding: 0.3rem 0.5rem;
        flex-wrap: wrap;
    }

    .hero-search-input {
        padding: 0.65rem 1.1rem;
        flex: 1 1 100%;
    }

    .hero-search-state,
    .hero-search-city {
        padding: 0.45rem 1rem;
    }

    .hero-search-suggestions {
        position: static;
        margin-top: 12px;
        box-shadow: 0 18px 45px rgba(15, 23, 42, 0.15);
        max-height: none;
    }

    .fresh-reviews-grid {
        grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
    }

    .recent-v2__header {
        flex-direction: column;
        align-items: flex-start;
    }
}

@media (max-width: 576px) {
    .hero-search-input,
    .hero-search-state,
    .hero-search-city,
    .hero-search-wrapper button[type="submit"] {
        flex: 1 1 100%;
        border-left: none;
        border-top: none;
    }

    .hero-search-wrapper button[type="submit"] {
        padding: 0.95rem;
    }

    .hero-search-suggestions__section {
        padding: 0 14px;
    }

    .fresh-review-card__actions a {
        flex: 1 1 100%;
    }

    .cta-v2__inner {
        flex-direction: column;
        align-items: flex-start;
    }

    .hero-v2__badge {
        flex-direction: column;
        align-items: flex-start;
    }
}
