/* ================================================
   SALTY DOG - Listings Page Styles
   ================================================ */

/* SEARCH BAR */
.listings-search-bar {
    background: #0a3d5c;
    padding: 16px 32px 20px;
}

.listings-search-form {
    background: #fff;
    border-radius: 10px;
    padding: 14px 18px;
    display: grid;
    grid-template-columns: 1.5fr 1fr 1fr 1fr auto;
    gap: 10px;
    align-items: end;
    max-width: 1100px;
    margin: 0 auto;
}

.lsf-field label {
    font-size: 10px;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 5px;
    display: block;
    font-weight: 600;
}

.lsf-field input,
.lsf-field select {
    width: 100%;
    border: 1px solid #e5e7eb;
    border-radius: 7px;
    padding: 9px 11px;
    font-size: 13px;
    color: #333;
    outline: none;
    background: #fafafa;
}

.lsf-field input:focus,
.lsf-field select:focus {
    border-color: #0a3d5c;
    background: #fff;
}

.btn-search-listings {
    background: #f5c842;
    color: #0a3d5c;
    border: none;
    border-radius: 8px;
    padding: 10px 20px;
    font-size: 13px;
    font-weight: 700;
    cursor: pointer;
    height: 38px;
    white-space: nowrap;
    transition: opacity 0.2s;
}

.btn-search-listings:hover { opacity: 0.9; }

/* CONTROLS ROW */
.controls-row {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    padding: 12px 32px;
    display: flex;
    align-items: center;
    gap: 10px;
    flex-wrap: wrap;
    max-width: 100%;
}

.filter-chips {
    display: flex;
    gap: 8px;
    flex-wrap: wrap;
    flex: 1;
}

.filter-chip {
    border: 1px solid var(--border);
    border-radius: 20px;
    padding: 6px 14px;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    background: var(--white);
    white-space: nowrap;
    text-decoration: none;
    transition: all 0.15s;
}

.filter-chip.active {
    background: #0a3d5c;
    color: #fff;
    border-color: #0a3d5c;
}

.filter-chip:hover:not(.active) {
    border-color: #0a3d5c;
    color: #0a3d5c;
}

.controls-right {
    display: flex;
    align-items: center;
    gap: 10px;
    margin-left: auto;
}

.results-count {
    font-size: 13px;
    color: var(--text-secondary);
    white-space: nowrap;
}

.sort-select {
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 6px 10px;
    font-size: 12px;
    color: var(--text);
    background: var(--white);
    outline: none;
    cursor: pointer;
}

.btn-filters-toggle {
    display: flex;
    align-items: center;
    gap: 6px;
    border: 1px solid #0a3d5c;
    border-radius: 8px;
    padding: 6px 14px;
    font-size: 12px;
    font-weight: 500;
    color: #0a3d5c;
    background: var(--white);
    cursor: pointer;
    white-space: nowrap;
}

.btn-filters-toggle.open {
    background: #0a3d5c;
    color: #fff;
}

.toggle-arrow {
    font-size: 10px;
    transition: transform 0.2s;
}

.toggle-arrow.open { transform: rotate(180deg); }

.active-filters-count {
    background: #f5c842;
    color: #0a3d5c;
    font-size: 10px;
    font-weight: 700;
    width: 16px;
    height: 16px;
    border-radius: 50%;
    display: inline-flex;
    align-items: center;
    justify-content: center;
}

/* FILTER PANEL */
.filter-panel {
    background: var(--white);
    border-bottom: 1px solid var(--border);
    overflow: hidden;
    max-height: 0;
    transition: max-height 0.3s ease, padding 0.2s ease;
}

.filter-panel.open {
    max-height: 400px;
    padding: 20px 32px 24px;
}

.filter-panel-inner {
    display: grid;
    grid-template-columns: repeat(5, 1fr);
    gap: 24px;
    max-width: 1100px;
}

.fp-section { }

.fp-title {
    font-size: 12px;
    font-weight: 600;
    color: var(--text);
    text-transform: uppercase;
    letter-spacing: 0.5px;
    margin-bottom: 12px;
    padding-bottom: 8px;
    border-bottom: 1px solid var(--border);
}

.check-row {
    display: flex;
    align-items: center;
    gap: 7px;
    margin-bottom: 8px;
    cursor: pointer;
}

.check-row input {
    accent-color: #0a3d5c;
    width: 14px;
    height: 14px;
    cursor: pointer;
    flex-shrink: 0;
}

.check-row label {
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
}

.price-inputs {
    display: flex;
    align-items: center;
    gap: 6px;
    margin-bottom: 8px;
}

.price-input {
    flex: 1;
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 6px 8px;
    font-size: 12px;
    color: var(--text);
    background: var(--white);
    outline: none;
    width: 100%;
}

.price-sep {
    font-size: 11px;
    color: var(--text-secondary);
}

.star-row { display: flex; gap: 4px; flex-wrap: wrap; }

.star-btn {
    border: 1px solid var(--border);
    border-radius: 5px;
    padding: 5px 10px;
    font-size: 11px;
    cursor: pointer;
    background: var(--white);
    color: var(--text-secondary);
}

.star-btn.active {
    background: #fff8e1;
    border-color: #f5c842;
    color: #854f0b;
}

.btn-clear-all {
    background: none;
    border: 1px solid var(--border);
    border-radius: 6px;
    padding: 8px 16px;
    font-size: 12px;
    color: var(--text-secondary);
    cursor: pointer;
    text-decoration: none;
}

.btn-apply {
    background: #0a3d5c;
    color: #fff;
    border: none;
    border-radius: 6px;
    padding: 8px 20px;
    font-size: 12px;
    font-weight: 600;
    cursor: pointer;
}

/* LISTINGS AREA */
.listings-area {
    padding: 24px 32px 48px;
    max-width: 1200px;
    margin: 0 auto;
}

.listings-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
}

/* PROPERTY CARDS */
.prop-card {
    background: var(--white);
    border-radius: 14px;
    border: 1px solid var(--border);
    overflow: hidden;
    cursor: pointer;
    transition: box-shadow 0.2s, transform 0.2s;
}

.prop-card:hover {
    box-shadow: 0 6px 24px rgba(10,61,92,0.12);
    transform: translateY(-2px);
}

.prop-img {
    height: 200px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 52px;
    position: relative;
    overflow: hidden;
}

.prop-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    position: absolute;
    inset: 0;
}

.prop-img span { position: relative; z-index: 1; }

.prop-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background: #0a3d5c;
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    z-index: 2;
}

.pet-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background: #f5c842;
    color: #0a3d5c;
    font-size: 11px;
    font-weight: 600;
    padding: 3px 10px;
    border-radius: 20px;
    z-index: 2;
}

/* VIDEO BADGE */
.video-badge {
    position: absolute;
    bottom: 10px;
    left: 10px;
    background: rgba(255,0,0,0.85);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    padding: 4px 12px;
    border-radius: 20px;
    z-index: 2;
    cursor: pointer;
    display: flex;
    align-items: center;
    gap: 4px;
    transition: background 0.2s;
    backdrop-filter: blur(4px);
}

.video-badge:hover { background: rgba(200,0,0,0.95); }

.heart-btn {
    position: absolute;
    bottom: 10px;
    right: 10px;
    background: rgba(255,255,255,0.9);
    border: none;
    border-radius: 50%;
    width: 32px;
    height: 32px;
    font-size: 16px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    z-index: 2;
    transition: transform 0.15s;
}

.heart-btn:hover { transform: scale(1.15); }

.prop-body { padding: 16px; }
.prop-loc { font-size: 12px; color: #0a3d5c; font-weight: 600; margin-bottom: 4px; }
.prop-name { font-size: 16px; font-weight: 600; color: var(--text); margin-bottom: 8px; }

.prop-meta {
    display: flex;
    gap: 10px;
    font-size: 12px;
    color: var(--text-secondary);
    margin-bottom: 12px;
    flex-wrap: wrap;
}

.prop-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.prop-price { font-size: 18px; font-weight: 700; color: #0a3d5c; }
.prop-price span { font-size: 13px; font-weight: 400; color: var(--text-secondary); }
.prop-stars { font-size: 12px; color: var(--text-secondary); margin-top: 2px; }
.prop-stars strong { color: #f5c842; }

.btn-book {
    background: #0a3d5c;
    color: #fff;
    padding: 9px 18px;
    border-radius: 8px;
    font-size: 13px;
    font-weight: 500;
    text-decoration: none;
    transition: background 0.2s;
}

.btn-book:hover { background: #071f2e; }

/* NO RESULTS */
.no-results {
    text-align: center;
    padding: 80px 20px;
    color: var(--text-secondary);
}

.no-results-icon { font-size: 56px; margin-bottom: 16px; }
.no-results h2 { font-size: 22px; font-weight: 600; color: var(--text); margin-bottom: 8px; }
.no-results p { font-size: 15px; }
.no-results a { color: #0a3d5c; font-weight: 500; }

/* YOUTUBE VIDEO MODAL */
.video-modal {
    position: fixed;
    inset: 0;
    background: rgba(0,0,0,0.85);
    z-index: 1000;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 20px;
    opacity: 0;
    pointer-events: none;
    transition: opacity 0.25s;
}

.video-modal.open {
    opacity: 1;
    pointer-events: all;
}

.video-modal-inner {
    background: #000;
    border-radius: 14px;
    overflow: hidden;
    max-width: 860px;
    width: 100%;
    box-shadow: 0 24px 80px rgba(0,0,0,0.5);
}

.video-modal-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 14px 18px;
    background: #111;
}

.video-modal-title {
    font-size: 14px;
    font-weight: 600;
    color: #fff;
}

.video-modal-close {
    background: rgba(255,255,255,0.1);
    border: none;
    color: #fff;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    font-size: 14px;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.video-modal-close:hover { background: rgba(255,255,255,0.2); }

.video-container {
    position: relative;
    padding-bottom: 56.25%;
    height: 0;
}

.video-container iframe {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
}

/* RESPONSIVE */
@media (max-width: 768px) {
    .listings-search-form { grid-template-columns: 1fr; }
    .listings-grid { grid-template-columns: 1fr; }
    .filter-panel-inner { grid-template-columns: 1fr 1fr; }
    .controls-row { padding: 12px 16px; }
    .listings-area { padding: 16px; }
    .listings-search-bar { padding: 12px 16px 16px; }
}
