/* Stays Page Specifics */
.stays-hero {
    background: transparent;
    color: var(--text-color);
    padding: 12px 0 10px;
    position: relative;
    margin-bottom: 12px;
    border-bottom: 1px solid rgba(0,0,0,0.04);
}

.stays-hero-inner {
    max-width: 900px;
    margin: 0 auto;
    padding: 0 16px;
    text-align: left;
}

.stays-hero-inner > div {
    background: transparent;
    border: none;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
}

.stays-hero-copy {
    max-width: 600px;
    margin-bottom: 22px;
}

.stays-title {
    font-size: 2rem;
    font-weight: 800;
    margin: 0;
    line-height: 1;
}

.stays-subtitle {
    font-size: 1rem;
    opacity: 0.9;
    margin: 6px 0 0 0;
    font-weight: 400;
    line-height: 1.35;
}

/* Filter Bar */
.stays-filter {
    background: transparent;
    border-radius: 0;
    padding: 0;
    box-shadow: none;
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 16px;
    color: var(--text-color);
    max-width: 1000px;
    width: 100%;
    /* margin: 0 auto;  If centered */
    border: none;
    box-sizing: border-box;
    min-width: 0;
}

.stays-filter-compact {
    padding: 0;
    gap: 12px;
    max-width: 900px;
}

.stays-filter-inline .filter-field {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    flex: 1 1 0;
    min-width: 0;
}

.stays-filter-inline .filter-field label {
    white-space: nowrap;
    margin: 0;
    flex: 0 0 auto;
}

.stays-filter-inline .filter-field select {
    width: 100%;
    min-width: 0;
    max-width: 100%;
    flex: 1 1 auto;
}

.stays-filter-inline .filter-field-guests select {
    min-width: 92px;
    width: auto;
    max-width: 100%;
}

.stays-filter-inline .filter-field-service-type select {
    min-width: 120px;
    width: auto;
    max-width: 100%;
}

.stays-filter-inline .btn-primary {
    height: 42px;
}

.stays-filter-inline .btn-primary {
    flex-shrink: 0;
}

@media (max-width: 600px) {
    .stays-filter-inline .filter-field {
        width: 100%;
        flex: 1 1 100%;
    }

    .stays-filter-inline .btn-primary {
        width: 100%;
    }
}

@media (max-width: 900px) {
    .stays-filter {
        border-radius: 18px;
        gap: 10px;
    }

    .stays-filter-inline {
        flex-wrap: wrap;
    }

    .stays-filter-inline .filter-field {
        flex-direction: column;
        align-items: stretch;
        width: 100%;
        flex: 1 1 100%;
        gap: 6px;
    }

    .stays-filter-inline .filter-field label {
        white-space: normal;
    }

    .stays-filter-inline .filter-field select {
        width: 100%;
    }

    .stays-filter-inline .btn-primary {
        width: 100%;
        height: auto;
    }
}

.filter-field {
    display: flex;
    flex-direction: column;
    gap: 8px;
    flex: 1;
}

.stays-filter-compact .filter-field {
    gap: 6px;
}

.filter-field label {
    font-size: 0.85rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--secondary-color);
}

.stays-filter-compact .filter-field label {
    font-size: 0.78rem;
}

.filter-field select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    font-size: 1rem;
    background-color: var(--gray-100);
}

.stays-filter-compact .filter-field select {
    padding: 10px;
    font-size: 0.95rem;
}

.stays-filter .btn-primary {
    border-radius: 999px;
    padding: 12px 18px;
    white-space: nowrap;
}

.stays-filter-compact .btn-primary {
    padding: 10px 14px;
    font-size: 0.95rem;
}

@media (min-width: 993px) {
    .stays-filter {
        flex-wrap: nowrap;
    }

    .stays-filter .filter-field {
        padding: 0 10px;
    }

    .stays-filter .filter-field select {
        border: none;
        background: transparent;
        padding: 10px 0;
        font-weight: 700;
    }

    .stays-filter-compact .filter-field select {
        padding: 8px 0;
        font-weight: 600;
    }

    .stays-filter .filter-field + .filter-field {
        border-left: 1px solid var(--gray-200);
        padding-left: 18px;
    }

    .stays-filter-inline .filter-field {
        padding: 0;
    }

    .stays-filter-inline .filter-field + .filter-field {
        border-left: none;
        padding-left: 0;
    }
}

.fixed-dest {
    padding: 12px;
    background-color: var(--gray-100);
    border-radius: var(--radius-sm);
    font-weight: 600;
    color: var(--text-color);
    border: 1px solid var(--gray-200);
}

/* Date Range */
.date-range {
    display: flex;
    align-items: center;
    background-color: var(--gray-100);
    border: 1px solid var(--gray-200);
    border-radius: var(--radius-sm);
    padding: 4px;
    flex: 2;
}

.date-field {
    flex: 1;
    display: flex;
    flex-direction: column;
    padding: 4px 12px;
}

.date-field label {
    font-size: 0.75rem;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--secondary-color);
    margin-bottom: 2px;
}

.date-input-wrap {
    display: flex;
    align-items: center;
    gap: 8px;
}

.date-icon {
    width: 18px;
    height: 18px;
    color: var(--secondary-color);
}

.date-input {
    border: none;
    background: transparent;
    font-family: inherit;
    font-size: 0.95rem;
    color: var(--text-color);
    width: 100%;
    cursor: pointer;
}

.date-input:focus {
    outline: none;
}

.date-separator {
    color: var(--secondary-color);
    padding: 0 8px;
    font-size: 1.2rem;
}

/* Responsive Filter */
@media (max-width: 992px) {
    .stays-filter {
        flex-direction: column;
        align-items: stretch;
        gap: 20px;
        padding: 20px;
        border-radius: 20px;
    }

    .stays-filter.stays-filter-inline {
        flex-direction: row;
        align-items: center;
        gap: 12px;
        padding: 10px;
        border-radius: 999px;
    }

    .stays-filter-inline .filter-field {
        flex-direction: row;
        align-items: center;
        gap: 10px;
        flex: 1;
    }

    .stays-filter-inline .filter-field select {
        flex: 1;
        min-width: 0;
    }

    .stays-filter-inline .filter-field-guests select {
        flex: 0 0 84px;
        width: 84px;
    }

    .stays-filter-inline .filter-field-service-type select {
        flex: 0 0 120px;
        width: 120px;
    }
    
    .date-range {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
        padding: 12px;
    }
    
    .date-separator {
        display: none;
    }
}

@media (max-width: 480px) {
    .stays-filter.stays-filter-inline {
        gap: 10px;
        padding: 8px;
    }

    .stays-filter-inline .filter-field {
        gap: 8px;
    }

    .stays-filter-inline .filter-field label {
        font-size: 0.7rem;
    }

    .stays-filter-inline .filter-field select {
        font-size: 0.88rem;
        padding: 9px 10px;
    }

    .stays-filter-inline .filter-field-guests select {
        flex: 0 0 74px;
        width: 74px;
    }

    .stays-filter-inline .filter-field-service-type select {
        flex: 0 0 100px;
        width: 100px;
    }

    .stays-filter-inline .btn-primary {
        height: 38px;
        padding: 10px 12px;
        font-size: 0.9rem;
    }
}

@media (max-width: 768px) {
    .stays-title {
        font-size: 1.6rem;
    }
    .stays-hero {
        padding: 18px 0 22px;
        margin-bottom: 24px;
    }
}

/* Stays Stream Layout */
.stays-stream {
    max-width: 1200px;
    margin: 24px auto 60px;
    padding: 0 20px;
}

.stay-row {
    display: grid;
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 1.7fr);
    gap: 24px;
    align-items: center;
    margin-bottom: 22px;
    padding: 16px 18px;
    border-radius: 24px;
    background: rgba(255,255,255,0.95);
    box-shadow: 0 16px 40px rgba(15,23,42,0.06);
    position: relative;
}

.stay-row:last-child {
    margin-bottom: 0;
}

.stay-row:nth-child(odd) {
    background: radial-gradient(circle at top left, rgba(46,125,50,0.06), transparent 55%), #ffffff;
}

.stay-row:nth-child(even) {
    background: radial-gradient(circle at bottom right, rgba(21,128,61,0.06), transparent 55%), #f9fafb;
}

.stay-row-media {
    position: relative;
    overflow: hidden;
    border-radius: 22px;
}

.stay-row-image-link {
    display: block;
    position: relative;
}

.stay-row-img {
    width: 100%;
    height: 210px;
    object-fit: cover;
    transform-origin: center;
    transition: transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stay-row-overlay {
    position: absolute;
    inset: 0;
    background: linear-gradient(135deg, rgba(0,0,0,0.35), rgba(0,0,0,0.05));
    pointer-events: none;
}

.stay-row-pill {
    position: absolute;
    right: 16px;
    bottom: 16px;
    padding: 7px 12px;
    border-radius: 999px;
    background: rgba(15,23,42,0.9);
    color: #f9fafb;
    font-size: 0.85rem;
    display: inline-flex;
    align-items: baseline;
    gap: 4px;
    backdrop-filter: blur(8px);
}

.stay-row-price {
    font-weight: 700;
}

.stay-row-pernight {
    opacity: 0.8;
}

.stay-row-price-type {
    opacity: 0.85;
    font-weight: 600;
    white-space: nowrap;
}

.stay-row-content {
    display: flex;
    flex-direction: column;
    gap: 8px;
}

.stay-row-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
    gap: 12px;
}

.stay-row-title a {
    font-size: 1.15rem;
    font-weight: 700;
    color: var(--text-color);
    text-decoration: none;
}

.stay-row-title a:hover {
    color: var(--primary-color);
}

.stay-row-rating {
    display: inline-flex;
    align-items: center;
    gap: 4px;
    font-size: 0.9rem;
    font-weight: 600;
    white-space: nowrap;
}

.stay-row-location {
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.stay-row-desc {
    font-size: 0.92rem;
    color: #334155;
    line-height: 1.45;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
}

.transport-row-desc {
    margin-top: 12px;
    color: #4b5563;
    font-size: 0.95rem;
    line-height: 1.5;
}

.stay-row-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    font-size: 0.9rem;
    color: var(--secondary-color);
}

.stay-row-badges {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    margin-top: 6px;
}

.stay-row-badge {
    font-size: 0.75rem;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(15,118,110,0.06);
    color: #0f766e;
    border: 1px solid rgba(13,148,136,0.18);
}

.stay-row-badge-more {
    background: rgba(15,23,42,0.04);
    color: #111827;
    border-color: rgba(15,23,42,0.16);
}

.stay-row-cta {
    display: inline-flex;
    align-items: center;
    gap: 10px;
    margin-top: 10px;
    font-size: 0.9rem;
    color: var(--primary-color);
    text-decoration: none;
    font-weight: 600;
}

.stay-row-cta-line {
    width: 42px;
    height: 1px;
    background: var(--primary-color);
    transform-origin: left;
    transform: scaleX(0.6);
    transition: transform 0.25s ease;
}

.stay-row:hover .stay-row-img {
    transform: scale(1.08);
}

.stay-row:hover .stay-row-cta-line {
    transform: scaleX(1);
}

.stay-row-reverse {
    grid-template-columns: minmax(0, 1.7fr) minmax(0, 1.3fr);
}

.stay-row-reverse .stay-row-media {
    order: 2;
}

.stay-row-reverse .stay-row-content {
    order: 1;
}

.stay-row-hidden {
    opacity: 0;
    transform: translateY(40px);
    transition: opacity 0.6s ease, transform 0.6s cubic-bezier(0.16, 1, 0.3, 1);
}

.stay-row-visible {
    opacity: 1;
    transform: translateY(0);
}

@media (max-width: 900px), (hover: none) and (pointer: coarse) {
    .stay-row {
        grid-template-columns: 1fr;
    }
    
    .stay-row-reverse {
        grid-template-columns: 1fr;
    }
    
    .stay-row-media {
        order: 1;
    }
    
    .stay-row-content {
        order: 2;
    }
}

@media (max-width: 768px), (hover: none) and (pointer: coarse) {
    .stays-stream {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        gap: 12px;
        padding: 0 12px 40px;
    }

    .stay-row {
        margin: 0;
        padding: 0;
        gap: 0;
        border-radius: 18px;
        overflow: hidden;
        background: #ffffff;
        box-shadow: 0 12px 30px rgba(15,23,42,0.07);
    }

    .stay-row:nth-child(odd),
    .stay-row:nth-child(even) {
        background: #ffffff;
    }

    .stay-row-media {
        border-radius: 0;
    }

    .stay-row-img {
        height: 140px;
    }

    .stay-row-content {
        padding: 12px 12px 14px;
    }

    .transport-row-desc {
        display: -webkit-box;
        -webkit-line-clamp: 2;
        -webkit-box-orient: vertical;
        overflow: hidden;
    }

    .stay-row-header {
        align-items: flex-start;
        gap: 10px;
    }

    .stay-row-title a {
        font-size: 0.98rem;
    }

    .stay-row-cta {
        width: 100%;
        justify-content: space-between;
    }

    .stay-row-reverse .stay-row-media {
        order: 1;
    }

    .stay-row-reverse .stay-row-content {
        order: 2;
    }
}

@media (max-width: 600px) {
    .stay-row-img {
        height: 175px;
    }
}

.transport-agreement-pulse {
    outline: 2px solid rgba(3, 105, 161, 0.45);
    outline-offset: 4px;
    border-radius: 16px;
    animation: transportAgreementPulse 0.9s ease-out 1;
}

@keyframes transportAgreementPulse {
    0% {
        outline-color: rgba(3, 105, 161, 0.0);
        outline-offset: 10px;
    }
    60% {
        outline-color: rgba(3, 105, 161, 0.55);
        outline-offset: 4px;
    }
    100% {
        outline-color: rgba(3, 105, 161, 0.0);
        outline-offset: 4px;
    }
}
