/* Contraste y componentes propios del portal. Se carga después del tema base. */
:root {
    --portal-green: #176b3a;
    --portal-green-dark: #0d4525;
    --portal-ink: #20312a;
    --portal-muted: #65736d;
    --portal-gold: #efb321;
}

.main-menu nav li ul a,
.breadcrumbs a,
.inline-breadcrumbs a,
.section-title a,
.white-bg a:not(.btn):not(.color-bg):not(.color2-bg),
.card a:not(.btn):not(.color-bg):not(.color2-bg),
.panel a:not(.btn):not(.color-bg):not(.color2-bg),
.box-widget a:not(.btn):not(.color-bg):not(.color2-bg),
.geodir-category-content h3 a,
.block_box a:not(.btn):not(.color-bg):not(.color2-bg) {
    color: var(--portal-ink);
}

.main-menu nav > ul > li > a {
    color: #fff;
}

.hero-section .main-search-input-tabs a,
.hero-section .hero-categories a,
.listing-hero-section a,
.parallax-section a,
.listing-item-grid_title a {
    color: #fff;
}

#sec1 .row {
    display: flex;
    flex-wrap: wrap;
}

#sec1 .col-sm-3 {
    margin-bottom: 24px;
}

#sec1 .listing-item-grid {
    min-height: 255px;
    border-radius: 18px;
    overflow: hidden;
    background: linear-gradient(145deg, #176b3a, #0d4525);
    box-shadow: 0 14px 35px rgba(19, 66, 41, .16);
    transition: transform .2s ease, box-shadow .2s ease;
}

#sec1 .listing-item-grid:hover {
    transform: translateY(-5px);
    box-shadow: 0 20px 44px rgba(19, 66, 41, .23);
}

#sec1 .listing-item-grid.module-marketplace {
    background: linear-gradient(145deg, #963a18, #5d210d);
}

#sec1 .listing-item-grid.module-destinations {
    background: linear-gradient(145deg, #176c78, #0c4149);
}

#sec1 .listing-item-grid_title p,
#sec1 .listing-item-grid_title h3,
#sec1 .listing-item-grid_title h3 a {
    color: #fff !important;
    text-shadow: 0 1px 2px rgba(0, 0, 0, .3);
}

.listing-card-location {
    color: rgba(255, 255, 255, .9);
    font-size: 13px;
    margin-top: 6px;
}

.directions-button {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 100%;
    min-height: 48px;
    margin: 0 0 20px;
    border: 0;
    border-radius: 9px;
    color: #fff !important;
    background: var(--portal-green);
    font-weight: 700;
    letter-spacing: .1px;
    box-shadow: 0 8px 20px rgba(23, 107, 58, .2);
}

.directions-button:hover,
.directions-button:focus {
    color: #fff !important;
    background: var(--portal-green-dark);
    transform: translateY(-1px);
}

.private-directions {
    margin-top: 16px;
    padding-top: 16px;
    border-top: 1px solid #dce7df;
}

.geodir-category-opt_title h4 a,
.listing_carditem_footer a,
.listing_carditem_footer span {
    color: #fff !important;
}

.review-section-wrap {
    padding-top: 0;
}

.site-reviews {
    color: var(--portal-ink);
}

.review-summary {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
    padding: 20px;
    margin-bottom: 24px;
    border-radius: 12px;
    background: #f2f8f4;
}

.review-score strong {
    display: block;
    font-size: 38px;
    line-height: 1;
}

.review-stars {
    color: var(--portal-gold);
    white-space: nowrap;
}

.review-recommendations {
    display: flex;
    flex-wrap: wrap;
    gap: 12px;
}

.review-recommendations span,
.review-item-head > span {
    padding: 7px 10px;
    border-radius: 999px;
    font-size: 13px;
}

.recommend-yes { color: #146c3a; background: #e4f6eb; }
.recommend-no { color: #9a2e2e; background: #fdeaea; }

.review-form {
    padding: 22px;
    margin-bottom: 28px;
    border: 1px solid #dce7df;
    border-radius: 12px;
}

.review-form textarea {
    width: 100%;
    margin: 14px 0;
    padding: 14px;
    border: 1px solid #ccd8d0;
    border-radius: 8px;
    color: var(--portal-ink);
    background: #fff;
}

.star-rating-input {
    display: inline-flex;
    flex-direction: row-reverse;
    justify-content: flex-end;
    border: 0;
    padding: 0;
    margin: 12px 0;
}

.star-rating-input legend { font-weight: 600; margin-bottom: 6px; }
.star-rating-input input { position: absolute; opacity: 0; }
.star-rating-input label { color: #c9cfcc; cursor: pointer; font-size: 27px; margin-right: 4px; }
.star-rating-input label:hover,
.star-rating-input label:hover ~ label,
.star-rating-input input:checked ~ label { color: var(--portal-gold); }

.recommend-input { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; margin: 10px 0; }
.recommend-input label { cursor: pointer; padding: 8px 12px; border: 1px solid #dce7df; border-radius: 8px; }
.review-status, .review-login-note { color: var(--portal-muted); }
.review-login-note { padding: 16px; margin-bottom: 20px; background: #f7f9f8; border-radius: 8px; }
.review-login-note a { color: var(--portal-green) !important; font-weight: 700; }

.review-item { padding: 20px 0; border-top: 1px solid #e5ebe7; }
.review-item-head { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-bottom: 9px; }
.review-item p { color: #3e4b45; margin: 0 0 6px; }
.review-item small, .review-empty { color: var(--portal-muted); }

@media (max-width: 768px) {
    .review-summary { align-items: flex-start; flex-direction: column; }
    .hero-categories li { width: 33.333%; }
}
