/* PF Plant Availability & Hot Picks Styles */

/* ===== Layout ===== */
.pf-avail-wrap {
    max-width: 1340px;
    margin: 0 auto;
    padding: 20px 15px 40px;
}

.pagebuilder-section .pf-avail-wrap {
    padding: 30px 30px 50px;
}

/* ===== Filters ===== */
.pf-avail-filters {
    margin-bottom: 25px;
    padding: 20px;
    background: #f7f9f7;
    border: 1px solid #e0e8e0;
    border-radius: 4px;
}

.pf-avail-filters .form-group {
    margin-bottom: 10px;
}

.pf-avail-filters .form-control {
    height: 38px;
    font-size: 14px;
}

.pf-avail-count {
    margin-bottom: 12px;
    font-size: 14px;
}

/* ===== Availability Table ===== */
.pf-avail-table {
    border: 1px solid #ddd;
    width: 100%;
    font-size: 14px;
}

.pf-avail-table thead th {
    background: #2c5f2d;
    color: #fff;
    font-weight: 600;
    border-bottom: 2px solid #1e4620;
    white-space: nowrap;
    padding: 12px 14px;
    font-size: 13px;
    text-transform: uppercase;
    letter-spacing: 0.3px;
}

.pf-avail-table tbody tr {
    border-bottom: 1px solid #eee;
}

.pf-avail-table tbody tr:hover {
    background-color: #f5f8f5;
}

.pf-avail-table td {
    vertical-align: middle;
    padding: 10px 14px;
}

.pf-hot-pick-row {
    background-color: #fffaf5 !important;
    border-left: 3px solid #e74c3c;
}

.pf-hot-pick-row:hover {
    background-color: #fff3e8 !important;
}

.pf-col-photo {
    width: 60px;
    padding: 6px 8px !important;
}

.pf-plant-thumb {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.pf-plant-thumb-placeholder {
    width: 50px;
    height: 50px;
    background: #f0f0f0;
    border-radius: 4px;
    border: 1px solid #e0e0e0;
}

.pf-plant-name em {
    font-style: italic;
}

.pf-col-name {
    min-width: 220px;
    line-height: 1.4;
}

.pf-col-name small {
    text-transform: capitalize;
}

.pf-col-category,
.pf-col-size {
    white-space: nowrap;
}

.pf-col-avail,
.pf-col-stage,
.pf-col-bloom {
    white-space: nowrap;
    text-align: center;
}

/* ===== Custom Badges (don't rely on Bootstrap .label) ===== */
.pf-badge {
    display: inline-block;
    padding: 3px 8px;
    font-size: 11px;
    font-weight: 600;
    line-height: 1.4;
    border-radius: 3px;
    white-space: nowrap;
    vertical-align: middle;
}

.pf-badge-hot {
    background: #f97316;
    color: #fff;
    font-size: 10px;
    letter-spacing: 0.3px;
    margin-right: 4px;
}

/* Availability badges - match Laravel blue theme */
.pf-badge-available {
    background: #2563eb;
    color: #fff;
}

.pf-badge-limited {
    background: #f59e0b;
    color: #fff;
}

.pf-badge-soldout {
    background: #6b7280;
    color: #fff;
}

/* Stage badges - match Laravel Tailwind colors */
.pf-badge-verynice {
    background: #10b981;
    color: #fff;
}

.pf-badge-retail {
    background: #22c55e;
    color: #fff;
}

.pf-badge-landscape {
    background: #eab308;
    color: #fff;
}

/* Bloom badges - match Laravel Tailwind colors */
.pf-badge-blooming {
    background: #f43f5e;
    color: #fff;
}

.pf-badge-budding {
    background: #84cc16;
    color: #fff;
}

.pf-badge-color {
    background: #f59e0b;
    color: #fff;
}

.pf-badge-spent {
    background: #fb923c;
    color: #fff;
}

.pf-badge-dormant {
    background: #64748b;
    color: #fff;
}

.pf-badge-cutback {
    background: #6b7280;
    color: #fff;
}

/* ===== Mobile Cards ===== */
.pf-avail-cards {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.pf-plant-card {
    display: flex;
    border: 1px solid #ddd;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
}

.pf-hot-pick-card {
    border-color: #e74c3c;
    border-width: 2px;
}

.pf-card-photo {
    width: 80px;
    height: 80px;
    object-fit: cover;
    flex-shrink: 0;
}

.pf-card-body {
    padding: 10px 12px;
    flex: 1;
    min-width: 0;
}

.pf-card-name {
    font-size: 14px;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.pf-card-name em {
    font-style: italic;
}

.pf-card-body .text-muted {
    font-size: 12px;
    margin: 0 0 6px 0;
    text-transform: capitalize;
}

.pf-card-meta {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    font-size: 12px;
    align-items: center;
}

.pf-card-meta .pf-badge {
    font-size: 10px;
}

/* ===== Hot Picks Grid ===== */
.pf-hot-picks-grid {
    display: flex;
    flex-wrap: wrap;
}

.pf-hot-picks-grid > div {
    margin-bottom: 20px;
}

.pf-hp-card {
    border: 1px solid #ddd;
    border-radius: 6px;
    overflow: hidden;
    background: #fff;
    transition: box-shadow 0.2s;
    height: 100%;
}

.pf-hp-card:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
}

.pf-hp-photo {
    position: relative;
    width: 100%;
    height: 320px;
    overflow: hidden;
    background: #f5f5f5;
}

.pf-hp-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.pf-hp-no-photo {
    display: flex;
    align-items: center;
    justify-content: center;
    background: #e8e8e8;
}

.pf-hp-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #f97316;
    color: #fff;
    padding: 4px 10px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.5px;
    border-radius: 3px;
}

.pf-hp-body {
    padding: 15px;
}

.pf-hp-name {
    font-size: 15px;
    margin: 0 0 4px 0;
    line-height: 1.3;
}

.pf-hp-name em {
    font-style: italic;
}

.pf-hp-common {
    color: #666;
    font-size: 13px;
    margin: 0 0 10px 0;
    text-transform: capitalize;
}

.pf-hp-meta {
    display: flex;
    gap: 8px;
    margin-bottom: 8px;
    font-size: 12px;
    color: #888;
}

.pf-hp-category {
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 3px;
}

.pf-hp-size {
    background: #f0f0f0;
    padding: 2px 8px;
    border-radius: 3px;
}

.pf-hp-flats {
    margin-bottom: 8px;
}

.pf-hp-details {
    display: flex;
    flex-wrap: wrap;
    gap: 6px;
    align-items: center;
}

.pf-hp-details .pf-badge {
    font-size: 10px;
}

.pf-hp-icon {
    font-size: 16px;
    color: #f39c12;
}

.pf-hp-zone {
    font-size: 11px;
    color: #666;
    background: #f0f0f0;
    padding: 2px 6px;
    border-radius: 3px;
}

/* ===== Contact CTA ===== */
.pf-avail-cta {
    margin-top: 30px;
    padding: 25px;
    background: #f0f7f0;
    border-radius: 6px;
    border: 1px solid #c8e6c9;
}

.pf-avail-cta .lead {
    margin-bottom: 15px;
    color: #2c5f2d;
    font-weight: 600;
}

.pf-avail-cta .btn {
    margin: 5px;
}

.pf-avail-cta .btn-primary {
    background-color: #2c5f2d;
    border-color: #1e4620;
    color: #fff;
}

.pf-avail-cta .btn-primary:hover {
    background-color: #1e4620;
    color: #fff;
}

/* ===== Pagination ===== */
.pf-avail-pagination {
    margin-top: 20px;
}

/* ===== Loading State ===== */
.pf-avail-loading {
    text-align: center;
    padding: 40px;
    color: #999;
}

.pf-avail-loading::after {
    content: '';
    display: inline-block;
    width: 20px;
    height: 20px;
    border: 2px solid #ccc;
    border-top-color: #2c5f2d;
    border-radius: 50%;
    animation: pf-spin 0.8s linear infinite;
    margin-left: 10px;
    vertical-align: middle;
}

@keyframes pf-spin {
    to { transform: rotate(360deg); }
}

/* ===== Responsive ===== */
@media (max-width: 767px) {
    .pf-avail-filters .col-sm-12 {
        margin-bottom: 5px;
    }

    .pf-hp-photo {
        height: 260px;
    }

    .pf-avail-cta .btn {
        display: block;
        margin: 5px auto;
        max-width: 280px;
    }
}

@media (min-width: 768px) and (max-width: 991px) {
    .pf-hp-photo {
        height: 280px;
    }
}
