/* ============================================================
   LA VOZ DE IBIZA · DIRECTORIO RESTAURANTES
   Página Restaurantes / GeoDirectory
   ============================================================ */

:root {
    --ibiza-bg: #f7f4ef;
    --ibiza-card-bg: #ffffff;
    --ibiza-border: #eadfce;
    --ibiza-text: #1d1d1d;
    --ibiza-muted: #6f6258;
    --ibiza-soft: #f1ebe4;
    --ibiza-accent: #18162d;
    --ibiza-orange: #fb5a20;
    --ibiza-green: #25D366;
    --ibiza-shadow: 0 10px 26px rgba(0,0,0,.08);
}

/* ============================================================
   CONTENEDORES
   ============================================================ */

.ibiza-rest-destacados,
.ibiza-rest-listado,
.ibiza-rest-filtros {
    box-sizing: border-box;
}

.ibiza-rest-section-head {
    max-width: 1120px;
    margin: 0 auto 22px;
}

.ibiza-rest-section-kicker {
    margin: 0 0 7px;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 800;
    text-transform: uppercase;
    letter-spacing: .08em;
    color: #9b6a35;
}

.ibiza-rest-section-head h2 {
    margin: 0;
    font-family: Georgia, "Times New Roman", serif;
    font-size: clamp(25px, 3vw, 34px);
    line-height: 1.1;
    font-weight: 400;
    color: var(--ibiza-text);
}

.ibiza-rest-empty {
    max-width: 1120px;
    margin: 30px auto;
    padding: 18px 20px;
    border: 1px solid var(--ibiza-border);
    border-radius: 12px;
    background: #fff;
    color: var(--ibiza-muted);
}

/* ============================================================
   FILTROS SUPERIORES
   ============================================================ */

.ibiza-rest-filtros--mockup {
    max-width: 1120px;
    margin: 0 auto 42px;
    padding: 0;
    display: flex;
    align-items: center;
    gap: 10px;
}

.ibiza-rest-filtros--mockup .ibiza-rest-filtros__campo {
    position: relative;
}

.ibiza-rest-filtros--mockup label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.ibiza-rest-filtros--mockup select {
    min-width: 170px;
    height: 42px;
    padding: 0 38px 0 14px;
    border: 1px solid #ded1c2;
    border-radius: 8px;
    background: #fff;
    color: #342f2b;
    font-size: 14px;
    line-height: 42px;
    cursor: pointer;
    outline: none;
}

.ibiza-rest-filtros--mockup select:focus {
    border-color: var(--ibiza-accent);
}

.ibiza-rest-filtros--mockup .ibiza-rest-filtros__acciones {
    display: flex;
    gap: 8px;
    align-items: center;
}

.ibiza-rest-filtros--mockup button {
    height: 42px;
    min-height: 42px;
    padding: 0 22px;
    border: 0;
    border-radius: 8px;
    background: var(--ibiza-accent);
    color: #fff;
    font-size: 14px;
    font-weight: 800;
    cursor: pointer;
}

.ibiza-rest-filtros--mockup button:hover {
    opacity: .94;
}

.ibiza-rest-filtros__limpiar {
    height: 42px;
    display: inline-flex;
    align-items: center;
    padding: 0 12px;
    color: #7b6045;
    font-size: 14px;
    font-weight: 700;
    text-decoration: none;
}

/* ============================================================
   SLIDER DESTACADOS GRANDE
   ============================================================ */

.ibiza-rest-destacados--hero {
    max-width: 1120px;
    margin: 0 auto 54px;
    position: relative;
    overflow: visible;
}

.ibiza-rest-hero-slider {
    display: flex;
    gap: 0;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    scroll-behavior: smooth;
    scrollbar-width: none;
    -ms-overflow-style: none;
    border-radius: 14px;
}

.ibiza-rest-hero-slider::-webkit-scrollbar {
    display: none;
}

.ibiza-rest-hero-slider .ibiza-rest-hero-card {
    flex: 0 0 100%;
    scroll-snap-align: start;
}

.ibiza-rest-hero-card {
    overflow: hidden;
    border: 1px solid var(--ibiza-border);
    border-radius: 14px;
    background: #fff;
    box-shadow: var(--ibiza-shadow);
}

.ibiza-rest-hero-card__image {
    position: relative;
    display: block;
    height: 430px;
    overflow: hidden;
    background: #e8e2d8;
    text-decoration: none;
}

.ibiza-rest-hero-card__image::after {
    content: "";
    position: absolute;
    inset: 0;
    z-index: 1;
    background:
        linear-gradient(
            180deg,
            rgba(0,0,0,.02) 0%,
            rgba(0,0,0,.10) 42%,
            rgba(0,0,0,.62) 100%
        );
    pointer-events: none;
}

.ibiza-rest-hero-card__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.ibiza-rest-hero-card__badge {
    position: absolute;
    z-index: 2;
    top: 18px;
    left: 18px;
    display: inline-flex;
    align-items: center;
    height: 25px;
    padding: 0 10px;
    border-radius: 4px;
    background: var(--ibiza-orange);
    color: #fff;
    font-size: 11px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.ibiza-rest-hero-card__title {
    position: absolute;
    z-index: 2;
    left: 22px;
    right: 22px;
    bottom: 20px;
    margin: 0;
    color: #fff;
    font-family: Georgia, "Times New Roman", serif;
    font-size: 48px;
    line-height: 1.05;
    font-weight: 400;
    text-shadow: 0 3px 12px rgba(0,0,0,.35);
}

.ibiza-rest-hero-card__body {
    padding: 18px 22px 20px;
    background: #fff;
}

.ibiza-rest-hero-card__meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px 14px;
    margin: 0 0 12px;
    color: #6a5b4b;
    font-size: 14px;
    line-height: 1.4;
}

/* Flechas slider */

.ibiza-rest-slider-arrow {
    position: absolute;
    z-index: 8;
    top: 215px;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 999px;
    background: #fff;
    color: var(--ibiza-accent);
    box-shadow: 0 7px 22px rgba(0,0,0,.16);
    font-size: 20px;
    line-height: 42px;
    font-weight: 700;
    cursor: pointer;
}

.ibiza-rest-slider-arrow--prev {
    left: -21px;
}

.ibiza-rest-slider-arrow--next {
    right: -21px;
}

.ibiza-rest-slider-arrow:hover {
    background: var(--ibiza-accent);
    color: #fff;
}

/* ============================================================
   LISTADO GENERAL
   ============================================================ */

.ibiza-rest-listado {
    max-width: 1120px;
    margin: 0 auto 60px;
}

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

/* ============================================================
   CARD GENERAL
   ============================================================ */

.ibiza-rest-card {
    position: relative;
    display: flex;
    flex-direction: column;
    min-height: 100%;
    overflow: hidden;
    border: 1px solid var(--ibiza-border);
    border-radius: 10px;
    background: var(--ibiza-card-bg);
    box-shadow: 0 7px 18px rgba(0,0,0,.07);
}

.ibiza-rest-card--pago {
    transition: transform .18s ease, box-shadow .18s ease;
}

.ibiza-rest-card--pago:hover {
    transform: translateY(-2px);
    box-shadow: 0 13px 26px rgba(0,0,0,.10);
}

.ibiza-rest-card__image {
    position: relative;
    display: block;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #eee5da;
    text-decoration: none;
}

.ibiza-rest-card__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
    transition: transform .25s ease;
}

.ibiza-rest-card--pago:hover .ibiza-rest-card__image img {
    transform: scale(1.035);
}

.ibiza-rest-card__placeholder {
    width: 100%;
    height: 100%;
    min-height: 180px;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #f3eee7;
    color: #8a775f;
    font-size: 15px;
    font-weight: 800;
}

.ibiza-rest-card__badge {
    position: absolute;
    z-index: 2;
    top: 12px;
    left: 12px;
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 4px;
    background: var(--ibiza-orange);
    color: #fff;
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .03em;
}

.ibiza-rest-card__body {
    display: flex;
    flex-direction: column;
    flex: 1;
    padding: 16px;
}

.ibiza-rest-card__title {
    margin: 0 0 8px;
    color: var(--ibiza-text);
    font-family: Georgia, "Times New Roman", serif;
    font-size: 21px;
    line-height: 1.14;
    font-weight: 400;
}

.ibiza-rest-card__title a {
    color: inherit;
    text-decoration: none;
}

.ibiza-rest-card__title a:hover {
    text-decoration: underline;
}

.ibiza-rest-card__title--no-link {
    cursor: default;
}

.ibiza-rest-card__meta {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 5px 7px;
    margin: 0 0 11px;
    color: #5d5147;
    font-size: 13px;
    line-height: 1.35;
    font-weight: 500;
}

.ibiza-rest-card__pin {
    color: #c10000;
    font-size: 13px;
    line-height: 1;
}

.ibiza-rest-card__price {
    margin-left: auto;
    color: #8a6844;
    font-weight: 800;
}

.ibiza-rest-card__cocina {
    display: none !important;
}

.ibiza-rest-card__desc {
    margin: 0 0 15px;
    color: #4d4741;
    font-size: 14px;
    line-height: 1.45;
}

.ibiza-rest-card__tags {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin: 0 0 14px;
}

.ibiza-rest-card__tags span {
    display: inline-flex;
    align-items: center;
    min-height: 22px;
    padding: 3px 8px;
    border-radius: 5px;
    background: var(--ibiza-soft);
    color: #6a5b4b;
    font-size: 11px;
    line-height: 1;
    font-weight: 700;
}

/* ============================================================
   BOTONES CARDS Y DESTACADO
   ============================================================ */

.ibiza-rest-card__actions {
    margin-top: auto;
}

.ibiza-rest-card__actions--mockup {
    display: grid;
    grid-template-columns: 1fr 38px 38px;
    gap: 8px;
    align-items: center;
}

.ibiza-rest-btn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 40px;
    padding: 0 15px;
    border-radius: 8px;
    border: 0;
    text-decoration: none;
    font-size: 14px;
    line-height: 1;
    font-weight: 800;
    cursor: pointer;
}

.ibiza-rest-btn--reserve {
    width: 100%;
    min-height: 40px;
    border-radius: 7px;
    background: var(--ibiza-accent);
    color: #fff;
}

.ibiza-rest-btn--reserve:hover {
    color: #fff;
    opacity: .94;
}

.ibiza-rest-btn--primary {
    min-height: 40px;
    border-radius: 7px;
    background: var(--ibiza-accent);
    color: #fff;
}

.ibiza-rest-btn--primary:hover {
    color: #fff;
    opacity: .94;
}

.ibiza-rest-btn-icon {
    width: 38px;
    height: 38px;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    border: 1px solid var(--ibiza-border);
    border-radius: 9px;
    background: #fff;
    text-decoration: none;
    font-size: 0;
    line-height: 1;
    overflow: hidden;
}

/* Teléfono */
.ibiza-rest-btn-icon--phone::before {
    content: "\f095";
    font-family: "Font Awesome 5 Free", "Font Awesome 6 Free";
    font-weight: 900;
    font-size: 16px;
    color: #b40000;
}

/* WhatsApp */
.ibiza-rest-btn-icon--wa {
    background: var(--ibiza-green);
    border-color: var(--ibiza-green);
}

.ibiza-rest-btn-icon--wa::before {
    content: "\f232";
    font-family: "Font Awesome 5 Brands", "Font Awesome 6 Brands";
    font-weight: 400;
    font-size: 18px;
    color: #fff;
}

/* Fallback si Font Awesome Brands no carga */
.ibiza-rest-btn-icon--wa:empty::before {
    content: "W";
    font-family: Arial, sans-serif;
    font-weight: 900;
}

/* ============================================================
   CARD N0 · GUÍA BÁSICA
   ============================================================ */

.ibiza-rest-card--n0 {
    border-style: dashed;
    background: linear-gradient(180deg, #fffaf3 0%, #ffffff 100%);
}

.ibiza-rest-card--n0:hover {
    transform: none;
}

.ibiza-rest-card-n0__top {
    min-height: 150px;
    padding: 16px;
    display: flex;
    align-items: flex-start;
    justify-content: space-between;
    background:
        radial-gradient(circle at top left, rgba(155,106,53,.16), transparent 36%),
        #f6eee3;
}

.ibiza-rest-card-n0__icon {
    width: 48px;
    height: 48px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 999px;
    background: #fff;
    font-size: 23px;
    box-shadow: 0 5px 16px rgba(0,0,0,.08);
}

.ibiza-rest-card-n0__label {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    padding: 0 9px;
    border-radius: 999px;
    background: #fff;
    color: #8a6844;
    font-size: 10px;
    line-height: 1;
    font-weight: 900;
    text-transform: uppercase;
    letter-spacing: .05em;
}

.ibiza-rest-card-n0__claim {
    margin: 0 0 15px;
    padding: 11px 12px;
    border-radius: 10px;
    background: #f8f1e8;
    color: #5e452a;
    font-size: 13px;
    line-height: 1.4;
    font-weight: 700;
}

.ibiza-rest-card--n0 .ibiza-rest-card__actions {
    display: block;
}

.ibiza-rest-card--n0 .ibiza-rest-btn--primary {
    width: 100%;
}

.ibiza-rest-n0-note {
    max-width: 780px;
    margin: 26px auto 0;
    padding: 14px 18px;
    border-radius: 14px;
    background: #f8f1e8;
    color: #5e452a;
    text-align: center;
    font-size: 14px;
    line-height: 1.45;
}

/* ============================================================
   COMPATIBILIDAD ELEMENTOR / TEMA
   ============================================================ */

.elementor-widget-shortcode .ibiza-rest-destacados--hero,
.elementor-widget-shortcode .ibiza-rest-listado,
.elementor-widget-shortcode .ibiza-rest-filtros {
    width: 100%;
}

.ibiza-rest-card img,
.ibiza-rest-hero-card img {
    border-radius: 0 !important;
}

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

@media (max-width: 1024px) {
    .ibiza-rest-filtros--mockup,
    .ibiza-rest-destacados--hero,
    .ibiza-rest-listado,
    .ibiza-rest-section-head {
        max-width: calc(100% - 40px);
    }

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

    .ibiza-rest-hero-card__image {
        height: 360px;
    }

    .ibiza-rest-slider-arrow {
        top: 180px;
    }

    .ibiza-rest-slider-arrow--prev {
        left: -14px;
    }

    .ibiza-rest-slider-arrow--next {
        right: -14px;
    }
}

/* ============================================================
   RESPONSIVE MÓVIL
   ============================================================ */

@media (max-width: 767px) {
    .ibiza-rest-filtros--mockup,
    .ibiza-rest-destacados--hero,
    .ibiza-rest-listado,
    .ibiza-rest-section-head {
        max-width: calc(100% - 28px);
    }

    .ibiza-rest-filtros--mockup {
        flex-direction: column;
        align-items: stretch;
        margin-bottom: 28px;
    }

    .ibiza-rest-filtros--mockup .ibiza-rest-filtros__campo,
    .ibiza-rest-filtros--mockup select,
    .ibiza-rest-filtros--mockup button {
        width: 100%;
    }

    .ibiza-rest-filtros--mockup .ibiza-rest-filtros__acciones {
        width: 100%;
    }

    .ibiza-rest-grid {
        grid-template-columns: 1fr;
        gap: 18px;
    }

    .ibiza-rest-hero-card__image {
        height: 270px;
    }

    .ibiza-rest-hero-card__title {
        left: 18px;
        right: 18px;
        bottom: 18px;
        font-size: 31px;
    }

    .ibiza-rest-hero-card__body {
        padding: 16px;
    }

    .ibiza-rest-slider-arrow {
        top: 135px;
        width: 38px;
        height: 38px;
        line-height: 38px;
    }

    .ibiza-rest-slider-arrow--prev {
        left: -8px;
    }

    .ibiza-rest-slider-arrow--next {
        right: -8px;
    }

    .ibiza-rest-card__title {
        font-size: 21px;
    }

    .ibiza-rest-card__actions--mockup {
        grid-template-columns: 1fr 38px 38px;
    }

    .ibiza-rest-card-n0__top {
        min-height: 130px;
    }
}

/* ============================================================
   MÓVIL PEQUEÑO
   ============================================================ */

@media (max-width: 420px) {
    .ibiza-rest-hero-card__image {
        height: 245px;
    }

    .ibiza-rest-hero-card__title {
        font-size: 28px;
    }

    .ibiza-rest-card__body {
        padding: 14px;
    }

    .ibiza-rest-card__actions--mockup {
        grid-template-columns: 1fr 36px 36px;
        gap: 7px;
    }

    .ibiza-rest-btn-icon {
        width: 36px;
        height: 36px;
    }
}

/* ============================================================
   ORDENACIÓN LISTADO
   ============================================================ */

.ibiza-rest-listado-head {
    max-width: 1120px;
    margin: 0 auto 22px;
    display: flex;
    align-items: flex-end;
    justify-content: space-between;
    gap: 24px;
}

.ibiza-rest-listado-head .ibiza-rest-section-head {
    max-width: none;
    margin: 0;
}

.ibiza-rest-orden-form {
    flex: 0 0 auto;
    margin: 0 0 2px;
}

.ibiza-rest-orden-form label {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip-path: inset(50%);
    white-space: nowrap;
}

.ibiza-rest-orden-form select {
    min-width: 190px;
    height: 42px;
    padding: 0 38px 0 14px;
    border: 1px solid #ded1c2;
    border-radius: 8px;
    background: #fff;
    color: #342f2b;
    font-size: 14px;
    line-height: 42px;
    cursor: pointer;
    outline: none;
}

.ibiza-rest-orden-form select:focus {
    border-color: var(--ibiza-accent);
}

@media (max-width: 767px) {
    .ibiza-rest-listado-head {
        max-width: calc(100% - 28px);
        flex-direction: column;
        align-items: stretch;
        gap: 14px;
    }

    .ibiza-rest-orden-form select {
        width: 100%;
    }
}

.ibiza-rest-card__image--n0 {
    position: relative;
    display: block;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f3f3f3;
}

.ibiza-rest-card__image--n0 img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.ibiza-rest-card-n0__label--over-image {
    position: absolute;
    top: 12px;
    left: 12px;
    background: rgba(255,255,255,0.92);
    color: #111;
    padding: 5px 10px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}