/* ============================================
   Sección Buscador de Granja - Nuevo Diseño
   ============================================ */

/* Hero: espacio para el overlap */
.buscador-agroturismo-granja {
    padding-bottom: 80px !important;
}

.granja-finder-section {
    position: relative;
    z-index: 10;
    padding-top: 20px;
    overflow: visible;
}

/* Tarjeta principal */
.granja-finder-card {
    background: #faf9f6;
    border-radius: 20px;
    box-shadow: 0 12px 30px rgba(0, 0, 0, 0.10), 0 -6px 18px rgba(0, 0, 0, 0.06);
    overflow: visible;
}

/* Columna izquierda */
.granja-finder-left {
    padding: 36px 80px 44px !important;
    border-right: 1px solid #e5e7eb;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
}

.granja-finder-title {
    font-size: 28px !important;
    font-weight: 700 !important;
    color: #1a3d2b !important;
    text-align: center !important;
    width: 100%;
    max-width: 640px;
    margin-top: 0 !important;
    margin-bottom: 12px !important;
}

.granja-finder-subtitle {
    font-size: 16px !important;
    color: #6b7280;
    text-align: center;
    width: 100%;
    max-width: 640px;
    margin-bottom: 24px !important;
    line-height: 1.6;
}

.granja-finder-services {
    list-style: none;
    margin: 8px 0 0;
    padding: 0;
    width: 100%;
    max-width: 640px;
    display: grid;
    grid-template-columns: 1fr;
    gap: 12px;
}

.granja-finder-service-item {
    display: flex;
    align-items: center;
    gap: 10px;
    min-height: 46px;
    padding: 10px 12px;
    border-radius: 12px;
    border: 1px solid #d7e3da;
    background: linear-gradient(180deg, #ffffff 0%, #f7faf8 100%);
    color: #294837;
    font-size: 17px;
    font-weight: 600;
    line-height: 1.3;
}

.granja-finder-service-item i {
    color: #2f6b50;
    font-size: 18px;
    width: 20px;
    text-align: center;
    flex-shrink: 0;
}

@media (min-width: 992px) {
    .granja-finder-services {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

/* Select personalizado */
.granja-select-wrapper {
    position: relative;
    display: flex;
    align-items: center;
    background: linear-gradient(180deg, #ffffff 0%, #f8f7f3 100%);
    border: 1.5px solid #cfd8cf;
    border-radius: 50px;
    padding: 12px 18px;
    margin-bottom: 12px;
    width: 100%;
    max-width: 640px;
    box-shadow: 0 4px 14px rgba(18, 38, 28, 0.08);
    z-index: 40;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.granja-select-wrapper:hover {
    border-color: #9bb7a4;
    box-shadow: 0 7px 18px rgba(18, 38, 28, 0.12);
}

.granja-select-wrapper:focus-within {
    border-color: #2d6a4f;
    box-shadow: 0 0 0 3px rgba(45, 106, 79, 0.14), 0 8px 22px rgba(18, 38, 28, 0.14);
    transform: translateY(-1px);
}

.granja-select-pin {
    position: relative;
    z-index: 2;
    color: #2d6a4f;
    margin-right: 12px;
    font-size: 15px;
    flex-shrink: 0;
}

.granja-native-select {
    position: absolute;
    opacity: 0;
    pointer-events: none;
    width: 0;
    height: 0;
}

.granja-select-trigger {
    flex: 1;
    border: none;
    background: transparent;
    text-align: left;
    font-size: 16px;
    font-weight: 600;
    line-height: 1.4;
    color: #7b8794;
    padding: 0;
    margin: 0;
    cursor: pointer;
    outline: none;
    min-height: 24px;
    box-shadow: none;
}

.granja-select-trigger:focus {
    color: #2d3436;
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.granja-select-trigger:focus-visible {
    outline: none !important;
    box-shadow: none !important;
    border: none !important;
}

.granja-select-menu {
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    margin: 0;
    padding: 8px;
    list-style: none;
    border-radius: 18px;
    border: 1px solid #dce4dd;
    background: #ffffff;
    box-shadow: 0 24px 34px rgba(17, 24, 39, 0.16);
    box-sizing: border-box;
    max-height: none;
    overflow: visible;
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transform: translateY(-8px);
    transition: opacity 0.18s ease, transform 0.18s ease, visibility 0.18s ease;
}

.granja-select-wrapper.is-open .granja-select-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.granja-select-option {
    width: 100%;
    position: relative;
    border: 0;
    border-radius: 12px;
    background: transparent;
    text-align: left;
    /* padding: 7px 12px; */
    padding: 7px 18px;
    font-size: 16px;
    font-weight: 500;
    line-height: 1.2;
    color: #1f2937;
    cursor: pointer;
    transition: background-color 0.15s ease, color 0.15s ease, padding-left 0.15s ease;
}

.granja-select-option::before {
    content: "";
    position: absolute;
    left: 18px;
    top: 50%;
    transform: translateY(-50%);
    width: 14px;
    height: 14px;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 384 512'%3E%3Cpath fill='%232d6a4f' d='M172.3 501.7C26.97 291 0 269.4 0 192 0 85.96 85.96 0 192 0s192 85.96 192 192c0 77.4-26.97 99-172.3 309.7-9.535 13.77-29.93 13.77-39.45 0zM192 272c44.18 0 80-35.82 80-80s-35.82-80-80-80-80 35.82-80 80 35.82 80 80 80z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-size: contain;
    background-position: center;
    opacity: 0;
    transition: opacity 0.15s ease;
}

.granja-select-option:hover,
.granja-select-option:focus {
    background-color: #eaf3ec;
    color: #1d5a3f;
    padding-left: 36px;
    outline: none;
}

.granja-select-option:hover::before,
.granja-select-option:focus::before {
    opacity: 1;
}

.granja-select-chevron {
    position: relative;
    z-index: 2;
    color: #2d6a4f;
    margin-left: 12px;
    font-size: 13px;
    flex-shrink: 0;
    pointer-events: none;
    transition: transform 0.2s ease;
}

.granja-select-wrapper:focus-within .granja-select-chevron {
    transform: rotate(180deg);
}

.granja-select-wrapper.is-open .granja-select-chevron {
    transform: rotate(180deg);
}

.granja-finder-hint {
    font-size: 13px !important;
    color: #9ca3af;
    text-align: center;
    width: 100%;
    max-width: 640px;
    margin: 0 !important;
}

/* Columna derecha */
.granja-contact-right {
    padding: 20px 64px 20px !important;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
}

.granja-contact-icon-wrap {
    width: 72px;
    height: 72px;
    background: #dde8da;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 20px;
}

.granja-contact-icon-wrap i {
    font-size: 28px;
    color: #3a7d52;
}

.granja-contact-title {
    font-size: 24px !important;
    font-weight: 700 !important;
    color: #1a2e1a !important;
    text-align: center !important;
    width: 100%;
    max-width: 420px;
    margin-bottom: 10px !important;
}

.granja-contact-subtitle {
    font-size: 15px !important;
    color: #6b7280;
    width: 100%;
    max-width: 420px;
    margin-bottom: 24px !important;
    line-height: 1.6;
}

.granja-email-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid #2d6a4f !important;
    color: #2d6a4f !important;
    background: #ffffff;
    border-radius: 10px;
    padding: 13px 20px;
    font-size: 15px;
    font-weight: 500;
    text-decoration: none !important;
    margin-bottom: 12px;
    transition: background 0.2s, color 0.2s;
    width: 100%;
    max-width: 420px;
    justify-content: center;
}

.granja-email-btn:hover {
    background: #2d6a4f;
    color: #ffffff !important;
    text-decoration: none !important;
}

.granja-copy-btn {
    display: flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid #d1d5db;
    color: #4b5563;
    background: #f0ede6;
    border-radius: 10px;
    padding: 12px 20px;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    transition: background 0.2s;
    width: 100%;
    max-width: 420px;
    justify-content: center;
}

.granja-copy-btn:hover {
    background: #e5e0d5;
}

/* Encabezado de sección (debajo de la tarjeta) */
.granja-section-heading {
    text-align: center;
    padding: 30px 0 0px;
}

.granja-leaf-icon {
    display: block;
    margin-bottom: 12px;
}

.granja-leaf-icon i {
    font-size: 28px;
    color: #4a7c3f;
}

.granja-section-heading h2 {
    font-size: 30px !important;
    font-weight: 700 !important;
    color: #1a1a1a;
}

/* Responsive */
@media (max-width: 768px) {
    .granja-finder-section {
        margin-top: -48px;
    }

    .granja-finder-card {
        padding: 28px 20px;
    }

    .granja-finder-left {
        padding-right: 0;
        border-right: none;
        border-bottom: 1px solid #d1d5db;
        /* padding-bottom: 32px; */
        margin-bottom: 32px;
        padding: 20px 10px !important;
    }

    .granja-contact-right {
        padding-left: 0;
        padding: 20px 10px !important;
    }

    .granja-finder-services {
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 8px;
        margin-top: 10px;
    }

    .granja-finder-service-item {
        min-height: 44px;
        padding: 9px 11px;
        font-size: 16px;
    }

    .granja-select-option {
        font-size: 16px;
    }
}

/* ============================================
   Nuevo diseño de tarjetas gc-card
   ============================================ */

.gc-card {
    display: flex;
    background: #fff;
    border-radius: 16px;
    box-shadow: 0 2px 20px rgba(0,0,0,0.08);
    overflow: hidden;
    margin-bottom: 24px;
    min-height: 240px;
    border: 1px solid #f0ede6;
}

.gc-card-img-wrap {
    position: relative;
    flex: 0 0 340px;
    min-height: 240px;
    overflow: hidden;
}

.gc-card-img-wrap > img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

.gc-card-img-wrap .carousel,
.gc-card-img-wrap .carousel-inner,
.gc-card-img-wrap .carousel-item {
    height: 100%;
}

.gc-card-img-wrap .carousel-item img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.gc-badge {
    position: absolute;
    top: 14px;
    left: 14px;
    display: inline-flex;
    align-items: center;
    gap: 5px;
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    z-index: 2;
    line-height: 1;
}

.gc-badge-green {
    background: rgba(26, 61, 43, 0.88);
    color: #fff;
}

.gc-badge-gold {
    background: rgba(180, 120, 0, 0.92);
    color: #fff;
}

.gc-price-overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    background: rgba(0, 0, 0, 0.52);
    color: #fff;
    padding: 10px 16px 12px;
    border-top-right-radius: 10px;
    z-index: 2;
    line-height: 1.1;
}

.gc-desde-label {
    display: block;
    font-size: 12px;
    opacity: 0.85;
}

.gc-price {
    display: block;
    font-size: 30px;
    font-weight: 700;
}

.gc-por-estancia {
    display: block;
    font-size: 11px;
    opacity: 0.8;
}

.gc-card-body {
    flex: 1;
    padding: 22px 28px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    min-width: 0;
}

.gc-card-top {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 10px;
    margin-bottom: 6px;
}

.gc-card-title {
    font-size: 22px !important;
    font-weight: 700 !important;
    color: #1a3d2b !important;
    text-align: left !important;
    margin: 0 !important;
    line-height: 1.2 !important;
}

.gc-category-tag {
    display: inline-flex;
    align-items: center;
    gap: 5px;
    background: #e8f0e5;
    color: #2d6a4f;
    font-size: 12px;
    font-weight: 500;
    padding: 5px 11px;
    border-radius: 20px;
    white-space: nowrap;
    flex-shrink: 0;
}

.gc-location {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 14px !important;
    color: #6b7280 !important;
    margin-bottom: 10px !important;
    margin-top: 0 !important;
}

.gc-description-wrap {
    position: relative;
    margin-bottom: 4px;
}
.gc-description {
    font-size: 14px !important;
    color: #374151 !important;
    line-height: 1.6 !important;
    margin-bottom: 0 !important;
    display: block;
    -webkit-box-orient: unset;
    -webkit-line-clamp: unset;
    overflow: visible;
    padding-bottom: 4px;
}
.gc-description.expanded {
    display: block;
    -webkit-line-clamp: unset;
    -webkit-box-orient: unset;
    overflow: visible;
}
.gc-description-wrap::after {
    display: none;
}
.gc-description-wrap.expanded::after {
    display: none;
}
.gc-read-more {
    display: inline-block;
    background: transparent;
    border: none;
    color: #888 !important;
    font-size: 13px;
    font-weight: 600;
    cursor: pointer;
    padding: 0;
    margin-bottom: 14px;
    text-decoration: none;
    line-height: 1.4;
}
.gc-read-more:hover {
    color: #1a3d2b !important;
    text-decoration: none !important;
}
.gc-read-more i {
    font-size: 11px;
    margin-left: 4px;
    transition: transform 0.2s;
}
.gc-read-more:hover i {
    transform: translateX(3px);
}

.gc-features {
    display: flex;
    flex-wrap: nowrap;
    justify-content: flex-start;
    gap: 16px;
    padding: 12px 16px;
    margin-top: 6px;
    margin-bottom: 18px;
    border: 1px solid #d5e1d8;
    border-radius: 14px;
    background: linear-gradient(180deg, #f8fbf9 0%, #f2f7f4 100%);
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 2px 8px rgba(34, 63, 48, 0.05);
    /* flex-wrap: wrap; */
}

.gc-feature {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    flex: 0 0 auto;
    min-width: 0;
    padding: 6px 8px;
    border-radius: 10px;
}

.gc-feature i {
    font-size: 18px;
    color: #4b7c5e;
    flex-shrink: 0;
}

.gc-feature-label {
    font-size: 11px;
    color: #374151;
    line-height: 1.3;
    white-space: nowrap;
}

.gc-card-actions {
    display: flex;
    align-items: center;
    gap: 12px;
}

.gc-btn-phone {
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: 1.5px solid #d1d5db !important;
    color: #374151 !important;
    background: #fff;
    border-radius: 8px;
    padding: 10px 18px;
    font-size: 14px;
    font-weight: 500;
    text-decoration: none !important;
    transition: border-color 0.2s, color 0.2s;
    white-space: nowrap;
}

.gc-btn-phone:hover {
    border-color: #2d6a4f !important;
    color: #2d6a4f !important;
    text-decoration: none !important;
}

.gc-btn-web {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    background: #1a3d2b;
    color: #fff !important;
    border: none !important;
    border-radius: 8px;
    padding: 11px 22px;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none !important;
    margin-left: auto;
    transition: background 0.2s;
    white-space: nowrap;
}

.gc-btn-web:hover {
    background: #2d6a4f;
    color: #fff !important;
    text-decoration: none !important;
}

/* Colocacion Banner */
.fixed {
    position: -webkit-sticky;
    position: sticky;
    top: 90px;
}

/* ============================================
   Seccion: otras granjas rurales
   ============================================ */

.otras-granjas {
    margin: 30px 0 12px;
}

.otras-granjas-card {
    background: linear-gradient(160deg, #f8fbf9 0%, #f3f7f4 100%);
    border: 1px solid #d7e3da;
    border-radius: 16px;
    padding: 20px;
    box-shadow: 0 8px 24px rgba(22, 43, 32, 0.06);
}

.otras-granjas-header {
    display: flex;
    align-items: flex-start;
    gap: 14px;
    margin-bottom: 14px;
}

.otras-granjas-icon {
    width: 42px;
    height: 42px;
    border-radius: 50%;
    background: #e4efe8;
    color: #2f6b50;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    flex-shrink: 0;
    font-size: 17px;
}

.otras-granjas-card h2 {
    margin: 0 0 4px;
    font-size: 32px !important;
    line-height: 1.2;
    color: #1a2f24;
    text-align: left;
}

.otras-granjas-card p {
    margin: 0;
    color: #5f6f67;
    font-size: 17px;
    line-height: 1.5;
}

.otras-granjas-list {
    list-style: none;
    margin: 0;
    padding: 0;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
}

.otras-granjas-link {
    min-height: 50px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 12px;
    padding: 12px 14px;
    border-radius: 11px;
    background: #ffffff;
    border: 1px solid #d7e3da;
    color: #1d3d2d;
    font-size: 19px;
    line-height: 1.35;
    text-decoration: none !important;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.otras-granjas-link:hover {
    border-color: #9fbaa9;
    box-shadow: 0 5px 14px rgba(22, 43, 32, 0.08);
    transform: translateY(-1px);
    color: #1d3d2d;
}

.otras-granjas-link:focus {
    outline: none;
    color: #1d3d2d;
}

.otras-granjas-link:focus-visible {
    outline: 3px solid rgba(38, 111, 76, 0.22);
    outline-offset: 2px;
}

.otras-granjas-link i {
    color: #2f6b50;
    font-size: 14px;
    flex-shrink: 0;
}

/* ============================================
   Seccion final: estilo new-card
   ============================================ */
.new-subcontenedor-final {
    background: linear-gradient(135deg, #f8faf9 0%, #e8f4f0 100%);
    border-radius: 8px;
    padding: 40px;
    margin-top: 60px;
    margin-bottom: 60px;
    box-shadow: 0 4px 24px rgba(0, 0, 0, 0.06);
    border: 1px solid rgba(4, 120, 87, 0.08);
}

.new-subcontenedor-final .row {
    align-items: center;
}

.new-subcontenedor-final h2 {
    color: #1f2937;
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 24px;
    line-height: 1.3;
}

.new-subcontenedor-final p {
    color: #4b5563;
    font-size: 16px;
    line-height: 1.7;
    margin-bottom: 16px;
    text-align: justify;
}

.new-subcontenedor-final a {
    color: #047857;
    font-weight: 600;
    text-decoration: none;
    transition: color 0.2s;
}

.new-subcontenedor-final a:hover {
    color: #065f46;
    text-decoration: none;
}

.new-subcontenedor-final .col-lg-4,
.new-subcontenedor-final .col-md-4 {
    display: flex;
    flex-direction: column;
}

.new-subcontenedor-final .text-center {
    padding: 0 20px;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    flex: 1;
}

.new-subcontenedor-final .imagen-subcontenedor {
    width: 100%;
    height: 210px;
    object-fit: cover;
    border-radius: 8px;
    margin-bottom: 0;
    box-shadow: 0 4px 16px rgba(0, 0, 0, 0.1);
    transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
    border: 2px solid rgba(255, 255, 255, 0.8);
}

@media only screen and (max-width: 992px) {
    .new-subcontenedor-final {
        padding: 50px 30px;
        margin-top: 60px;
    }

    .subtitulo p {
        font-size: 18px !important;
    }

    .new-subcontenedor-final .imagen-subcontenedor {
        height: 220px;
    }
}

@media only screen and (max-width: 768px) {
    .buscador-agroturismo-granja h1 {
        font-size: 28px !important;
    }
    .buscador-agroturismo-granja h1 {
        font-size: 28px !important;
    }

    .new-subcontenedor-final {
        padding: 40px 20px;
        margin-top: 40px;
        margin-bottom: 40px;
        border-radius: 8px;
    }

    .new-subcontenedor-final .text-center {
        padding: 0;
        margin-top: 30px;
        justify-content: flex-start;
        gap: 30px;
    }

    .new-subcontenedor-final h2 {
        font-size: 24px;
        margin-bottom: 20px;
    }

    .new-subcontenedor-final p {
        font-size: 15px;
        text-align: left;
    }

    .new-subcontenedor-final .imagen-subcontenedor {
        height: 200px;
        margin-bottom: 0;
    }

    .otras-granjas {
        margin-top: 24px;
    }

    .otras-granjas-card {
        padding: 16px;
        border-radius: 14px;
        margin-bottom: 10px;
    }

    .otras-granjas-header {
        gap: 10px;
        margin-bottom: 12px;
    }

    .otras-granjas-icon {
        width: 36px;
        height: 36px;
        font-size: 15px;
    }

    .otras-granjas-card h2 {
        font-size: 29px !important;
    }

    .otras-granjas-card p {
        font-size: 16px;
    }

    .otras-granjas-list {
        grid-template-columns: 1fr;
        gap: 8px;
    }

    .otras-granjas-link {
        min-height: 52px;
        padding: 12px 13px;
        font-size: 17px;
    }
}

@media (max-width: 767px) {
    .gc-card {
        flex-direction: column;
    }
    .gc-card-img-wrap {
        flex: none;
        height: 220px;
        width: 100%;
    }
    .gc-card-title {
        font-size: 20px !important;
    }
    .gc-category-tag {
        display: none;
    }
    .gc-features {
        display: flex;
        flex-wrap: nowrap;
        justify-content: flex-start;
        gap: 12px;
        width: 100%;
        padding: 10px 10px;
        border-radius: 12px;
    }

    .gc-feature {
        flex: 0 0 auto;
        min-width: 0;
        justify-content: flex-start;
        gap: 6px;
        padding: 5px 3px;
    }

    .gc-feature i {
        font-size: 16px;
    }

    .gc-feature-label {
        font-size: 10px;
        line-height: 1.2;
        white-space: nowrap;
    }

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