/**
 * Home Search Widget Styles
 *
 * @package Petbnb\Core
 */

.petbnb-search {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.petbnb-search__form {
    background: #ffffff;
    border-radius: 8px;
    box-shadow: 0 2px 12px rgba(0, 0, 0, 0.08);
    padding: 2rem;
}


.petbnb-search__fields {
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
    margin-bottom: 1.5rem;
}

.petbnb-search__row {
    width: 100%;
}

.petbnb-search__row--services .petbnb-search__field,
.petbnb-search__row--pets .petbnb-search__field {
    margin: 0;
}

.petbnb-search__row--services {
    /* skupiny vedľa seba podľa obsahu */
}

.petbnb-search__row--filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 1rem;
}

.petbnb-search__field {
    display: flex;
    flex-direction: column;
}

.petbnb-search__field--full {
    width: 100%;
}

.petbnb-search__field--stack {
    /*display: grid;*/
    /*gap: 0.75rem;*/
}

.petbnb-search__field-block {
    display: flex;
    flex-direction: column;
    gap: 0.35rem;
}

.petbnb-date-control {
    display: flex;
    flex-direction: column;
    gap: 6px;
    align-items: flex-start;
}

.petbnb-date-control__input-wrap {
    position: relative;
    width: 100%;
}

.petbnb-date-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    color: #666;
    padding: 4px;
}

.petbnb-date-clear:hover,
.petbnb-date-clear:focus {
    color: #000;
}

.petbnb-date-mode-toggle {
    background: none;
    border: none;
    padding: 0;
    margin: 0;
    color: #0073aa;
    cursor: pointer;
    font-size: 0.9rem;
    text-decoration: underline;
}

.petbnb-date-mode-toggle:hover,
.petbnb-date-mode-toggle:focus {
    color: #005177;
}

.petbnb-date-limit-hint {
    margin: 4px 0 0;
    font-size: 0.8rem;
    color: #6b7280;
}

.flatpickr-day.petbnb-date-limit-exceeded {
    background: #fee2e2 !important;
    border-color: #fca5a5 !important;
    color: #b91c1c !important;
}

.petbnb-search__label {
    font-size: 0.875rem;
    font-weight: 600;
    color: #333333;
    margin-bottom: 0.5rem;
}

.petbnb-search__input {
    width: 100%;
    padding: 0.75rem 1rem;
    font-size: 1rem;
    border: 1px solid #dddddd;
    border-radius: 4px;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.petbnb-search__input:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 2px rgba(0, 115, 170, 0.1);
}

.petbnb-search__input::placeholder {
    color: #999999;
}

/* Normalizácia vnútorných <p> a <br> generovaných okolo shortcodu */
.petbnb-search p {
    margin: 0;
}

.petbnb-search br {
    display: none;
}

/* Pet výber – tlačidlá/toggle UI */
.petbnb-pets {
    --petbnb-pet-icon-size: 28px;
    display: flex;
    flex-direction: row;
    gap: 12px;
    align-items: center;
}

.petbnb-pets__inputs {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
}

.petbnb-pets__buttons {
    display: flex;
    gap: 12px;
    flex-wrap: wrap;
}

.petbnb-pet-btn {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    padding: 11px 16px;
    border-radius: 999px;
    border: 1px solid #e5e5e5;
    background: #fff;
    cursor: pointer;
    font-size: 0.9rem;
    transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
}

.petbnb-pet-btn:hover {
    border-color: #cbd5e1;
}

.petbnb-pet-btn.is-active {
    border-color: #0073aa;
    background: #f0f7fb;
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.15);
}

.petbnb-icon {
    --petbnb-icon-transform: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: var(--petbnb-pet-icon-size);
    height: var(--petbnb-pet-icon-size);
}

.petbnb-icon img {
    width: var(--petbnb-pet-icon-size);
    height: var(--petbnb-pet-icon-size);
    display: block;
    transform: var(--petbnb-icon-transform);
}

.petbnb-icon--flip {
    --petbnb-icon-transform: scaleX(-1);
}

.petbnb-pets { --petbnb-pet-icon-size: 32px; }

.petbnb-icon--dog { --petbnb-icon-transform: scaleX(-1) scale(1.05); }
.petbnb-icon--cat { --petbnb-icon-transform: scaleX(-1) scale(1.15) translateY(-1px); }

/* Služby ako tlačidlá */
.petbnb-service-layout {
    display: grid;
    grid-template-columns: max-content 1fr;
    gap: 16px 20px;
    align-items: flex-start;
}

.petbnb-service-group__title {
    font-weight: 700;
    color: #1d1d1d;
    text-align: left;
    margin-top: 8px;
    margin-bottom: 8px;
}

.petbnb-service-group__items {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
}

.petbnb-service-btn {
    display: flex;
    align-items: center;
    gap: 10px;
    padding: 12px 16px;
    border-radius: 8px;
    border: 1px solid #e5e5e5;
    background: #ffffff;
    cursor: pointer;
    transition: border-color 0.2s ease, box-shadow 0.2s ease, background-color 0.2s ease;
    min-width: 170px;
    text-align: left;
    align-items: center;
}

.petbnb-service-btn:hover {
    border-color: #cbd5e1;
    box-shadow: 0 4px 10px rgba(0, 0, 0, 0.06);
}

.petbnb-service-btn.is-active {
    border-color: #0073aa;
    background: #f0f7fb;
    box-shadow: 0 4px 12px rgba(0, 115, 170, 0.15);
}

.petbnb-service-btn__icon svg {
    width: 24px;
    height: 24px;
}

.petbnb-service-btn__label {
    font-weight: 600;
    color: #1d1d1d;
}

.petbnb-search__actions {
    text-align: center;
    margin-top: 0.5rem;
}

.petbnb-search__submit {
    display: inline-block;
    width: 100%;
    padding: 1rem 1.25rem;
    font-size: 1.125rem;
    font-weight: 600;
    color: #ffffff;
    background-color: #0073aa;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    transition: background-color 0.2s ease, transform 0.1s ease;
}

.petbnb-search__submit:hover {
    background-color: #005177;
}

.petbnb-search__submit:active {
    transform: translateY(1px);
}

.petbnb-search__submit:focus {
    outline: none;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.3);
}

@media (max-width: 768px) {
    .petbnb-service-layout {
        grid-template-columns: 1fr;
    }

    .petbnb-search__row--filters {
        grid-template-columns: 1fr;
    }
}

/* Home search layout refinement */
.petbnb-search__form {
    border-radius: 14px;
    border: 1px solid #e7ebf0;
    box-shadow: 0 10px 28px rgba(16, 24, 40, 0.08);
    padding: 1.5rem;
}

.petbnb-search__fields {
    gap: 1rem;
    margin-bottom: 0;
}

.petbnb-search__field > label {
    font-size: 0.82rem;
    font-weight: 600;
    letter-spacing: 0.01em;
    color: #4b5563;
    margin-bottom: 0.45rem;
}

.petbnb-pets {
    --petbnb-pet-icon-size: 32px;
}

.petbnb-pets__buttons {
    gap: 8px;
}

.petbnb-pet-btn {
    min-height: 44px;
    padding: 9px 13px;
    gap: 8px;
    border-color: #d8dee6;
    box-shadow: none;
}

.petbnb-pet-btn:hover {
    background: #f8fafc;
    border-color: #c6ced9;
}

.petbnb-pet-btn.is-active {
    border-color: #0073aa;
    background: #f3f8fc;
    box-shadow: inset 0 0 0 1px rgba(0, 115, 170, 0.14);
}

.petbnb-pet-btn:focus-visible {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

.petbnb-service-layout {
    grid-template-columns: 1fr;
    gap: 14px;
}

.petbnb-service-group {
    display: grid;
    gap: 8px;
}

.petbnb-service-group__title {
    margin-bottom: 0;
    font-size: 0.92rem;
    line-height: 1.25;
    color: #334155;
}

.petbnb-service-group__items {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
    gap: 10px;
}

.petbnb-service-btn {
    width: 100%;
    min-height: 64px;
    height: 100%;
    padding: 12px 14px;
    border-radius: 12px;
    border-color: #d8dee6;
    box-shadow: none;
}

.petbnb-service-btn:hover {
    border-color: #c6ced9;
    box-shadow: 0 4px 14px rgba(15, 23, 42, 0.08);
}

.petbnb-service-btn.is-active {
    border-color: #0073aa;
    background: #f3f8fc;
    box-shadow: inset 0 0 0 1px rgba(0, 115, 170, 0.14);
}

.petbnb-service-btn:focus-visible {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
}

.petbnb-service-btn__icon {
    margin-top: 2px;
}

.petbnb-service-btn__label {
    line-height: 1.3;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.petbnb-search__row--filters {
    grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr) 56px;
    gap: 12px;
    align-items: start;
}

.petbnb-search__field--cta {
    justify-content: flex-start;
    padding-top: 25px;
}

.petbnb-search__row--filters > .petbnb-search__field > label {
    display: block;
    min-height: 24px;
    font-size: 0.92rem;
    font-weight: 700;
    line-height: 1.25;
    color: #334155;
    text-align: left;
    margin-bottom: 2px;
}

.petbnb-service-btn__icon--stay span i{
    font-size: 1.95em;
    margin-left: 0px;
}

.petbnb-service-btn__icon--stay .fa.fa-paw {
    font-size: 0.95em;
    color: white;
}

.petbnb-service-btn__icon--home-care span i {
    font-size: 1.75em;
    margin-left: 4px;
}

.petbnb-service-btn__paw-left {
    position: absolute;
    margin-left: 0px;
    top: -10px;
}

.petbnb-service-btn__paw-right {
    position: absolute;
    margin-left: 22px;
    top: 6px;
}

.petbnb-service-btn__icon--visiting span i {
    font-size: 1.75em;
    margin-left: 4px;
}

.petbnb-search__field--cta .petbnb-search__submit {
    width: 100%;
}

.petbnb-search__input {
    min-height: 50px;
    border-radius: 10px;
    border-color: #d8dee6;
}

.petbnb-search__input:focus,
.petbnb-search__input:focus-visible {
    border-color: #0073aa;
    box-shadow: 0 0 0 3px rgba(0, 115, 170, 0.14);
}

.petbnb-search__submit {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-height: 50px;
    border-radius: 10px;
    font-size: 1rem;
    font-weight: 600;
    padding: 0;
}

.petbnb-search__submit-icon {
    display: inline-flex;
    width: 22px;
    height: 22px;
}

.petbnb-search__submit-icon svg {
    width: 100%;
    height: 100%;
    display: block;
}

.petbnb-search__submit:focus-visible {
    outline: 2px solid #0073aa;
    outline-offset: 2px;
    box-shadow: none;
}

.petbnb-search__actions {
    display: none;
}

@media (max-width: 900px) {
    .petbnb-search__row--filters {
        grid-template-columns: 1fr;
        gap: 10px;
    }

    .petbnb-search__field--cta {
        display: none;
    }

    .petbnb-search__actions {
        display: block;
        margin-top: 0.25rem;
    }

    .petbnb-search__actions .petbnb-search__submit {
        width: 100%;
    }
}

/* =========================================================
   Location autocomplete dropdown
   ========================================================= */

.petbnb-location {
    position: relative;
}

.petbnb-location .petbnb-search__input {
    padding-right: 34px;
}

.petbnb-location-clear {
    position: absolute;
    right: 10px;
    top: 50%;
    transform: translateY(-50%);
    border: none;
    background: transparent;
    cursor: pointer;
    font-size: 18px;
    line-height: 1;
    color: #666;
    padding: 4px;
    z-index: 2;
}

.petbnb-location-clear:hover,
.petbnb-location-clear:focus {
    color: #000;
}

.petbnb-location__dropdown {
    position: absolute;
    top: calc(100% + 4px);
    left: 0;
    right: 0;
    z-index: 20;
    background: #ffffff;
    border: 1px solid #dddddd;
    border-radius: 6px;
    box-shadow: 0 10px 24px rgba(0, 0, 0, 0.12);
    max-height: 240px;
    overflow-y: auto;
    display: none;
}

.petbnb-location__dropdown.is-open {
    display: block;
}

.petbnb-location__option {
    width: 100%;
    text-align: left;
    padding: 10px 12px;
    border: none;
    background: #ffffff;
    cursor: pointer;
    font-size: 0.95rem;
}

.petbnb-location__option:hover,
.petbnb-location__option.is-active {
    background: #f0f7fb;
}

/* ==========================================================================
   Testimonials Section
   ========================================================================== */

.petbnb-testimonials {
    background: #f8f9fa;
    padding: 70px 20px 60px;
}

.petbnb-testimonials__inner {
    max-width: 1100px;
    margin: 0 auto;
}

.petbnb-testimonials__title {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: clamp(1.75rem, 3vw, 2.3rem);
    font-weight: 700;
    text-align: center;
    color: #1a1a2e;
    margin: 0 0 40px;
}

.petbnb-testimonials__grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
    gap: 24px;
}

.petbnb-testimonial-card {
    background: #ffffff;
    border-radius: 16px;
    box-shadow: 0 10px 35px rgba(0, 0, 0, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.petbnb-testimonial-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 16px 45px rgba(0, 0, 0, 0.12);
}

.petbnb-testimonial-card__image img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}

.petbnb-testimonial-card__body {
    padding: 20px 20px 18px;
    display: flex;
    flex-direction: column;
    gap: 10px;
    min-height: 190px;
    flex: 1;
}

.petbnb-testimonial-card__header {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
}

.petbnb-testimonial-card__name {
    font-size: 1.05rem;
    color: #1a1a2e;
}

.petbnb-testimonial-card__location {
    font-size: 0.85rem;
    color: #777;
}

.petbnb-testimonial-card__rating {
    display: flex;
    align-items: center;
    gap: 4px;
    font-weight: 600;
    color: #f59e0b;
}

.petbnb-testimonial-card__rating-icon {
    font-size: 1rem;
}

.petbnb-testimonial-card__rating-value {
    font-size: 0.95rem;
}

.petbnb-testimonial-card__quote {
    font-size: 0.95rem;
    line-height: 1.5;
    color: #444;
    margin: 4px 0 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.petbnb-testimonial-card__owner {
    margin-top: auto;
    font-size: 0.85rem;
    color: #777;
    text-align: right;
}

/* ==========================================================================
   Trust / Why PetBNB Section
   ========================================================================== */

.petbnb-trust {
    background: #ffffff;
    padding: 60px 20px 80px;
    border-top: 1px solid #edf0f4;
}

.petbnb-trust__inner {
    max-width: 1100px;
    margin: 0 auto;
}

/* --- TOTO je finálne rozloženie --- */
.petbnb-trust__grid {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    text-align: center;
    width: 100%;
    flex-wrap: nowrap;
}

.petbnb-trust__item {
    padding: 10px 16px 0;
    width: 260px;
    max-width: 100%;
}

.petbnb-trust__icon {
    font-size: 2.6rem;
    margin-bottom: 16px;
}

.petbnb-trust__title {
    font-family: 'Poppins', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 1.15rem;
    font-weight: 600;
    color: #1a1a2e;
    margin: 0 0 10px;
}

.petbnb-trust__text {
    font-size: 0.95rem;
    color: #555;
    line-height: 1.6;
    margin: 0;
}

/* malé úpravy pre mobily */

@media (max-width: 900px) {
    .petbnb-trust__grid {
        justify-content: center;
        flex-wrap: wrap;
        gap: 32px;
    }
}
