/* Public Styles for Airnb Plugin */

:root {
    --airnb-primary: #FF5A5F;
    --airnb-dark: #484848;
    --airnb-light: #767676;
    --airnb-border: #EBEBEB;
}

/* Listing Grid */
.listings-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
    gap: 24px;
    margin: 30px 0;
}

/* Listing Card - Modern Redesign */
.listing-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    position: relative;
    box-shadow: 0 6px 16px rgba(0, 0, 0, 0.06);
    transition: all 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.listing-card:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 32px rgba(0, 0, 0, 0.12);
}

/* Image Wrapper for Zoom Effect */
.listing-card>div:first-child {
    overflow: hidden;
    position: relative;
    border-radius: 16px 16px 0 0;
    /* Match card radius */
}

.listing-card img {
    width: 100%;
    height: 220px;
    /* Slightly taller */
    object-fit: cover;
    transition: transform 0.5s ease;
    display: block;
}

.listing-card:hover img {
    transform: scale(1.08);
    /* Smooth zoom */
}

/* Content Area */
.listing-content {
    padding: 20px;
}

.listing-badge {
    position: absolute;
    top: 15px;
    left: 15px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: blur(4px);
    padding: 6px 14px;
    border-radius: 20px;
    font-size: 11px;
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    color: var(--airnb-dark);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
    z-index: 10;
}

.listing-title {
    font-size: 17px;
    font-weight: 700;
    margin: 0 0 8px;
    color: #222;
    line-height: 1.3;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.listing-location {
    color: #717171;
    font-size: 14px;
    margin-bottom: 12px;
    display: flex;
    align-items: center;
    gap: 4px;
}

.listing-features {
    display: flex;
    gap: 16px;
    margin: 12px 0 16px;
    color: #717171;
    font-size: 13px;
    border-bottom: 1px solid #f0f0f0;
    padding-bottom: 12px;
}

.listing-features span {
    display: flex;
    align-items: center;
    gap: 6px;
}

.listing-price {
    font-size: 20px;
    font-weight: 800;
    color: #222;
    margin: 0;
    display: flex;
    align-items: baseline;
    gap: 4px;
}

.listing-price span {
    font-size: 14px;
    font-weight: 400;
    color: #717171;
}

/* Favorite Button Overlay */
.favorite-btn {
    top: 15px;
    right: 15px;
    background: rgba(255, 255, 255, 0.8) !important;
    backdrop-filter: blur(2px);
    transition: all 0.2s ease;
}

.favorite-btn:hover {
    background: white !important;
    transform: scale(1.1);
}

.favorite-btn span {
    color: rgba(0, 0, 0, 0.5);
    /* Neutral heart */
}

.favorite-btn.active span {
    color: #ff385c;
    /* Airbnb-like red */
}

/* View Button (Optional, if used) */
.listing-card .button {
    display: none;
    /* Hide default button in favor of whole-card click */
}

/* Modern Search Bar */
.search-bar-wrapper {
    background: white;
    padding: 20px !important;
    border-radius: 50px !important;
    box-shadow: 0 16px 40px rgba(0, 0, 0, 0.12) !important;
    max-width: 950px;
    margin: 0 auto;
}

.airnb-search-bar {
    width: 100%;
}

.search-bar-inner {
    display: flex;
    align-items: center;
    width: 100%;
}

.search-input-group {
    flex: 1;
    padding: 0 20px;
    position: relative;
    cursor: pointer;
    transition: background 0.2s;
    border-radius: 32px;
}

.search-input-group:hover {
    background: #f7f7f7;
}

.search-input-group label {
    display: block;
    font-size: 12px;
    font-weight: 800;
    margin-bottom: 2px;
    color: #222;
    letter-spacing: 0.5px;
}

.search-input-group input,
.search-input-group select {
    width: 100%;
    border: none;
    background: transparent;
    padding: 0;
    font-size: 14px;
    color: #717171;
    font-weight: 400;
    outline: none;
}

/* Remove default select arrow */
.search-input-group select {
    -webkit-appearance: none;
    appearance: none;
}

.search-divider {
    width: 1px;
    height: 32px;
    background-color: #ddd;
    flex-shrink: 0;
}

.search-button-round {
    width: 48px;
    height: 48px;
    border-radius: 50%;
    background: #FF385C;
    /* Airbnb Red */
    border: none;
    color: white;
    font-size: 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    cursor: pointer;
    transition: all 0.2s;
    margin-left: 10px;
    flex-shrink: 0;
}

.search-button-round:hover {
    background: #E00B41;
    transform: scale(1.05);
}

.search-input-group.location-group {
    flex: 1.5;
}

/* Secondary Filters */
.small-input {
    border: 1px solid #ddd;
    padding: 8px 12px;
    border-radius: 8px;
    width: 140px;
    font-size: 14px;
}

/* Responsive */
@media (max-width: 850px) {
    .search-bar-wrapper {
        border-radius: 24px !important;
        padding: 24px !important;
    }

    .search-bar-inner {
        flex-direction: column;
        align-items: stretch;
        gap: 16px;
    }

    .search-divider {
        display: none;
    }

    .search-input-group {
        padding: 12px;
        border: 1px solid #eee;
        border-radius: 12px;
    }

    .search-button-round {
        width: 100%;
        border-radius: 12px;
        margin-left: 0;
        margin-top: 10px;
    }
}

/* Search Form */
.airnb-search-form {
    background: white;
    padding: 30px;
    border-radius: 12px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    margin: 30px 0;
}

.airnb-search-form .form-row {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
    gap: 15px;
    margin-bottom: 20px;
}

.airnb-search-form label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: var(--airnb-dark);
}

.airnb-search-form input,
.airnb-search-form select {
    width: 100%;
    padding: 12px;
    border: 1px solid var(--airnb-border);
    border-radius: 8px;
    font-size: 14px;
}

.airnb-search-form button {
    background: var(--airnb-primary);
    color: white;
    padding: 12px 30px;
    border: none;
    border-radius: 8px;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
    transition: background 0.2s;
}

.airnb-search-form button:hover {
    background: #E04E53;
}

/* Booking Summary */
.booking-summary {
    background: #f8f8f8;
    padding: 20px;
    border-radius: 12px;
    margin: 20px 0;
}

.booking-summary h3 {
    margin-top: 0;
    color: var(--airnb-dark);
}

.booking-summary .total {
    font-size: 24px;
    font-weight: bold;
    color: var(--airnb-primary);
    margin: 15px 0;
}

/* Payment Modal */
.payment-modal-overlay {
    display: none;
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background: rgba(0, 0, 0, 0.6);
    z-index: 9999;
    align-items: center;
    justify-content: center;
    backdrop-filter: blur(4px);
}

.payment-modal-content {
    background: white;
    padding: 30px;
    border-radius: 16px;
    max-width: 550px;
    width: 95%;
    position: relative;
    box-shadow: 0 10px 25px rgba(0, 0, 0, 0.2);
    animation: slideUp 0.3s ease-out;
}

@keyframes slideUp {
    from {
        opacity: 0;
        transform: translateY(20px);
    }

    to {
        opacity: 1;
        transform: translateY(0);
    }
}

.payment-modal-close {
    position: absolute;
    top: 15px;
    right: 15px;
    background: none;
    border: none;
    font-size: 24px;
    cursor: pointer;
    color: var(--airnb-light);
    width: 32px;
    height: 32px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    transition: background 0.2s;
}

.payment-modal-close:hover {
    background: #f1f1f1;
    color: var(--airnb-dark);
}

.payment-modal-header {
    margin-bottom: 20px;
    border-bottom: 1px solid var(--airnb-border);
    padding-bottom: 15px;
}

.payment-modal-header h3 {
    margin: 0;
    color: var(--airnb-dark);
}

#payment-element {
    min-height: 250px;
    margin-bottom: 20px;
}

/* Dashboard Styles */
.airnb-dashboard {
    max-width: 1200px;
    margin: 0 auto;
    padding: 30px;
}

.dashboard-section {
    background: white;
    padding: 25px;
    border-radius: 12px;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    margin-bottom: 30px;
}

.booking-item {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 20px;
    border: 1px solid var(--airnb-border);
    border-radius: 8px;
    margin-bottom: 15px;
}

.booking-status {
    padding: 6px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
}

.booking-status.pending {
    background: #FFF3CD;
    color: #856404;
}

.booking-status.confirmed {
    background: #D4EDDA;
    color: #155724;
}

.booking-status.cancelled {
    background: #F8D7DA;
    color: #721C24;
}

/* Responsive */
@media (max-width: 768px) {
    .listings-grid {
        grid-template-columns: 1fr;
    }

    .airnb-search-form .form-row {
        grid-template-columns: 1fr;
    }

    .booking-item {
        flex-direction: column;
        align-items: flex-start;
        gap: 10px;
    }
}

/* Single Listing Page Overrides */
body.single-listing .entry-title,
body.single-listing .page-title,
body.single-listing .post-title,
body.single-listing .site-main>header>h1 {
    display: none !important;
}

/* Specific fix for some themes that wrap the title in a header */
body.single-listing .site-main>header {
    margin-bottom: 0;
    padding-bottom: 0;
}

/* Skeleton Loading States */
.airnb-skeleton {
    background: #e2e8f0;
    background: linear-gradient(90deg, #e2e8f0 25%, #f1f5f9 50%, #e2e8f0 75%);
    background-size: 200% 100%;
    animation: shimmer 1.5s infinite linear;
    border-radius: 4px;
}

@keyframes shimmer {
    0% {
        background-position: 200% 0;
    }

    100% {
        background-position: -200% 0;
    }
}

.skeleton-card {
    background: white;
    border-radius: 16px;
    overflow: hidden;
    border: 1px solid rgba(0, 0, 0, 0.04);
}

.skeleton-img {
    height: 220px;
    width: 100%;
    border-radius: 16px 16px 0 0;
}

.skeleton-content {
    padding: 20px;
}

.skeleton-text {
    height: 16px;
    margin-bottom: 8px;
    border-radius: 4px;
}

.skeleton-text.title {
    width: 80%;
    height: 20px;
}

.skeleton-text.location {
    width: 60%;
}

.skeleton-text.features {
    width: 90%;
    margin: 12px 0 16px;
}

.skeleton-text.price {
    width: 40%;
    height: 24px;
}