/* =============================================================
   Yipies Custom Elementor Widgets — elements-css.css
   ============================================================= */

/* ---------------------------------------------------------------
   Section Header — shared by Top Rated Eats + Category Listings
--------------------------------------------------------------- */
.yp-section-header {
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    margin-bottom: 28px;
    gap: 16px;
}

.yp-section-header__left {
    display: flex;
    flex-direction: column;
    gap: 6px;
}

.yp-section-header__title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 30px;
    font-weight: 700;
    color: #00241a;
    margin: 0;
    line-height: 1.2;
}

.yp-section-header__sub {
    font-family: 'Work Sans', sans-serif;
    font-size: 15px;
    font-weight: 400;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
}

.yp-section-header__viewall {
    font-family: 'Work Sans', sans-serif;
    font-size: 14px;
    font-weight: 500;
    color: #006D37;
    text-decoration: none;
    white-space: nowrap;
    transition: opacity 0.2s ease;
}

.yp-section-header__viewall:hover {
    opacity: 0.75;
    text-decoration: none;
    color: #006D37;
}

@media (max-width: 575px) {
    .yp-section-header {
        flex-direction: column;
        align-items: flex-start;
    }

    .yp-section-header__title {
        font-size: 24px;
    }
}

/* ---------------------------------------------------------------
   Top Rated Eats — Grid Container
--------------------------------------------------------------- */
.yp-top-rated-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    width: 100%;
}

/* ---------------------------------------------------------------
   Top Rated Eats — Single Card
--------------------------------------------------------------- */
.yp-eat-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    flex: 1 1 calc(25% - 18px);
    min-width: 240px;
    max-width: 282px;
    display: flex;
    flex-direction: column;
}

.yp-eat-card__image {
    position: relative;
    width: 100%;
    height: 192px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.yp-eat-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.yp-eat-card__badge {
    position: absolute;
    top: 12px;
    right: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
    background: rgba(255, 255, 255, 0.92);
    backdrop-filter: blur(4px);
    -webkit-backdrop-filter: blur(4px);
    border-radius: 100px;
    padding: 4px 8px;
    min-width: 53px;
    height: 24px;
}

.yp-eat-card__badge-icon {
    color: #006D37;
    font-size: 11px;
    line-height: 1;
}

.yp-eat-card__badge-score {
    font-family: 'Work Sans', sans-serif;
    font-size: 12px;
    font-weight: 700;
    color: #181c1b;
    line-height: 1;
}

.yp-eat-card__body {
    padding: 20px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.yp-eat-card__title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    color: #00241a;
    margin: 0;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.yp-eat-card__title a {
    color: inherit;
    text-decoration: none;
}

.yp-eat-card__title a:hover {
    color: #006D37;
}

.yp-eat-card__meta {
    font-family: 'Work Sans', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #006D37;
    margin: 0 0 8px 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.yp-eat-card__btn {
    display: block;
    width: 100%;
    height: 44px;
    line-height: 44px;
    text-align: center;
    background: #006D37;
    color: #ffffff !important;
    font-family: 'Work Sans', sans-serif;
    font-size: 16px;
    font-weight: 400;
    border-radius: 100px;
    text-decoration: none;
    margin-top: auto;
    transition: background 0.2s ease;
}

.yp-eat-card__btn:hover {
    background: #005a2d;
    color: #ffffff !important;
    text-decoration: none;
}

@media (max-width: 991px) {
    .yp-eat-card {
        flex: 1 1 calc(50% - 12px);
        max-width: calc(50% - 12px);
    }
}

@media (max-width: 575px) {
    .yp-eat-card {
        flex: 1 1 100%;
        max-width: 100%;
    }
}


/* =============================================================
   Category Listings — Shared Grid
   ============================================================= */
.yp-category-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 24px;
    width: 100%;
}


/* =============================================================
   Category Listings — Property Card (Find Your Dream Property)
   ============================================================= */
.yp-property-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    flex: 1 1 calc(33.333% - 16px);
    min-width: 260px;
    display: flex;
    flex-direction: column;
}

.yp-property-card__image {
    position: relative;
    width: 100%;
    height: 200px;
    overflow: hidden;
}

.yp-property-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.yp-property-card__image:hover img {
    transform: scale(1.04);
}

.yp-property-card__price {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.62);
    color: #ffffff;
    font-family: 'Work Sans', sans-serif;
    font-size: 14px;
    font-weight: 700;
    padding: 4px 10px;
    border-radius: 6px;
    line-height: 1.4;
}

.yp-property-card__body {
    padding: 16px 20px 20px;
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.yp-property-card__body-top {
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    gap: 12px;
}

.yp-property-card__body-text {
    flex: 1;
    min-width: 0;
}

.yp-property-card__title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 17px;
    font-weight: 600;
    color: #00241a;
    margin: 0 0 4px 0;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.yp-property-card__title a {
    color: inherit;
    text-decoration: none;
}

.yp-property-card__title a:hover {
    color: #006D37;
}

.yp-property-card__meta {
    font-family: 'Work Sans', sans-serif;
    font-size: 12px;
    font-weight: 500;
    color: #006D37;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.yp-property-card__agent {
    flex-shrink: 0;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    overflow: hidden;
    border: 2px solid #e8e8e8;
}

.yp-property-card__agent img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.yp-property-card__agent--icon {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f0f0f0;
    border: none;
}

.yp-property-card__agent--icon i {
    font-size: 24px;
    color: #aaa;
}

.yp-property-card__specs {
    display: flex;
    gap: 16px;
    font-family: 'Work Sans', sans-serif;
    font-size: 12px;
    color: #7a8a85;
    border-top: 1px solid #f0f0f0;
    padding-top: 8px;
}

.yp-property-card__specs span {
    display: flex;
    align-items: center;
    gap: 4px;
}

.yp-property-card__specs i {
    color: #006D37;
    font-size: 13px;
}

.yp-property-card__btn {
    display: block;
    width: 100%;
    height: 44px;
    line-height: 44px;
    text-align: center;
    background: #006D37;
    color: #ffffff !important;
    font-family: 'Work Sans', sans-serif;
    font-size: 15px;
    font-weight: 500;
    border-radius: 100px;
    text-decoration: none;
    margin-top: auto;
    transition: background 0.2s ease;
}

.yp-property-card__btn:hover {
    background: #005a2d;
    color: #ffffff !important;
    text-decoration: none;
}

@media (max-width: 991px) {
    .yp-property-card {
        flex: 1 1 calc(50% - 12px);
        min-width: 0;
    }
}

@media (max-width: 575px) {
    .yp-property-card {
        flex: 1 1 100%;
    }
}


/* =============================================================
   Category Listings — Room Card (Stay & Explore)
   4 columns to match Figma design
   ============================================================= */
.yp-room-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.08);
    overflow: hidden;
    flex: 1 1 calc(25% - 18px);
    min-width: 220px;
    display: flex;
    flex-direction: column;
}

.yp-room-card__image {
    position: relative;
    width: 100%;
    height: 192px;
    overflow: hidden;
    border-radius: 16px 16px 0 0;
}

.yp-room-card__image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.yp-room-card__image:hover img {
    transform: scale(1.04);
}

.yp-room-card__body {
    padding: 12px 14px 14px;
    display: flex;
    flex-direction: column;
    gap: 4px;
    flex: 1;
}

.yp-room-card__title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    color: #00241a;
    margin: 0;
    line-height: 1.4;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.yp-room-card__title a {
    color: inherit;
    text-decoration: none;
}

.yp-room-card__title a:hover {
    color: #006D37;
}

.yp-room-card__price {
    font-family: 'Work Sans', sans-serif;
    font-size: 13px;
    color: #00241a;
    margin: 0 0 6px 0;
}

.yp-room-card__price strong {
    font-weight: 700;
    color: #006D37;
}

.yp-room-card__price span {
    font-weight: 400;
    color: #7a8a85;
}

.yp-room-card__btn {
    display: block;
    width: 100%;
    height: 38px;
    line-height: 38px;
    text-align: center;
    background: #006D37;
    color: #ffffff !important;
    font-family: 'Work Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    border-radius: 100px;
    text-decoration: none;
    margin-top: auto;
    transition: background 0.2s ease;
}

.yp-room-card__btn:hover {
    background: #005a2d;
    color: #ffffff !important;
    text-decoration: none;
}

@media (max-width: 991px) {
    .yp-room-card {
        flex: 1 1 calc(50% - 12px);
        min-width: 0;
    }
}

@media (max-width: 575px) {
    .yp-room-card {
        flex: 1 1 100%;
    }
}


/* =============================================================
   Happening Now — 2-column event grid
   ============================================================= */
.yp-happening-now-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}

/* Single event card — horizontal flex row */
.yp-happening-card {
    background: #ffffff;
    border: 1px solid #e5e7eb;
    border-radius: 12px;
    padding: 20px;
    display: flex;
    align-items: center;
    gap: 16px;
    flex: 1 1 calc(50% - 10px);
    min-width: 280px;
    box-sizing: border-box;
}

/* Date block — green square left side */
.yp-happening-card__date {
    flex-shrink: 0;
    width: 56px;
    min-height: 60px;
    background: #006D37;
    border-radius: 8px;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 6px;
    gap: 2px;
}

.yp-happening-card__day {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 22px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1;
}

.yp-happening-card__month {
    font-family: 'Work Sans', sans-serif;
    font-size: 11px;
    font-weight: 600;
    color: #ffffff;
    letter-spacing: 0.05em;
    text-transform: uppercase;
    line-height: 1;
}

/* Content area — middle, takes remaining space */
.yp-happening-card__content {
    flex: 1;
    min-width: 0;
    display: flex;
    flex-direction: column;
    gap: 4px;
}

.yp-happening-card__title {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 15px;
    font-weight: 600;
    color: #00241a;
    margin: 0;
    line-height: 1.35;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.yp-happening-card__title a {
    color: inherit;
    text-decoration: none;
}

.yp-happening-card__title a:hover {
    color: #006D37;
}

.yp-happening-card__loc {
    font-family: 'Work Sans', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #6b7280;
    margin: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.yp-happening-card__loc i {
    color: #006D37;
    margin-right: 4px;
    font-size: 12px;
}

.yp-happening-card__desc {
    font-family: 'Work Sans', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: #6b7280;
    margin: 0;
    line-height: 1.5;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

/* Get Tickets button — right side */
.yp-happening-card__action {
    flex-shrink: 0;
}

.yp-happening-card__btn {
    display: inline-block;
    background: #f0faf4;
    color: #006D37 !important;
    font-family: 'Work Sans', sans-serif;
    font-size: 13px;
    font-weight: 500;
    padding: 9px 18px;
    border-radius: 100px;
    text-decoration: none;
    white-space: nowrap;
    transition: background 0.2s ease;
}

.yp-happening-card__btn:hover {
    background: #d6f0e3;
    color: #006D37 !important;
    text-decoration: none;
}

/* Responsive — 1 column on tablet and below */
@media (max-width: 991px) {
    .yp-happening-card {
        flex: 1 1 100%;
    }
}

@media (max-width: 575px) {
    .yp-happening-card {
        flex-wrap: wrap;
    }

    .yp-happening-card__action {
        width: 100%;
    }

    .yp-happening-card__btn {
        display: block;
        text-align: center;
    }
}


/* =============================================================
   Explore by City — 4-column location grid
   ============================================================= */
.yp-city-grid {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
    width: 100%;
}

/* Single location card — entire card is a link */
.yp-city-card {
    position: relative;
    display: block;
    flex: 1 1 calc(25% - 15px);
    min-width: 200px;
    height: 220px;
    border-radius: 16px;
    overflow: hidden;
    text-decoration: none;
}

.yp-city-card:hover {
    text-decoration: none;
}

/* Full-bleed image */
.yp-city-card__img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.4s ease;
}

.yp-city-card:hover .yp-city-card__img {
    transform: scale(1.06);
}

/* Dark gradient overlay — transparent top → dark bottom */
.yp-city-card__overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(
        to bottom,
        rgba(0, 0, 0, 0.00) 30%,
        rgba(0, 0, 0, 0.62) 100%
    );
    border-radius: 16px;
}

/* Text block — bottom-left of card */
.yp-city-card__text {
    position: absolute;
    bottom: 16px;
    left: 16px;
    display: flex;
    flex-direction: column;
    gap: 2px;
}

.yp-city-card__name {
    font-family: 'Plus Jakarta Sans', sans-serif;
    font-size: 16px;
    font-weight: 700;
    color: #ffffff;
    line-height: 1.3;
}

.yp-city-card__tagline {
    font-family: 'Work Sans', sans-serif;
    font-size: 13px;
    font-weight: 400;
    color: rgba(255, 255, 255, 0.80);
    line-height: 1.3;
}

/* Responsive — 2 columns on tablet */
@media (max-width: 991px) {
    .yp-city-card {
        flex: 1 1 calc(50% - 10px);
        min-width: 0;
    }
}

/* Responsive — 1 column on mobile */
@media (max-width: 575px) {
    .yp-city-card {
        flex: 1 1 100%;
    }
}
