/* ================================================
   VENUE DISCOVERY – Component Styles
   Tunbridge Wellness | dashboard/venues discovery
   Brand: Forest #2D3E33 · Sage #4A7B72 · Plum #6C536D
          Linen #FBFBF9 · Sand #E8E2D6
   Fonts: DM Serif Display (headings) · Inter (body)
   ================================================ */

/* ── Discovery Shell ─────────────────────────────── */
.venue-discovery-shell {
    display: flex;
    flex-direction: column;
    gap: 2rem;
}

/* ── Section Header ──────────────────────────────── */
.vd-header {
    border-bottom: 1px solid #E6DCD1;
    padding-bottom: 1.5rem;
    margin-bottom: 0.25rem;
}

.vd-header h3 {
    font-family: 'DM Serif Display', serif;
    font-size: 2rem;
    color: #6C536D;
    margin: 0 0 0.3rem 0;
}

.vd-header p {
    font-size: 0.98rem;
    color: #5C635E;
    margin: 0;
    max-width: 640px;
    line-height: 1.55;
}

/* ── Filter Bar ──────────────────────────────────── */
.vd-filter-bar {
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 1rem 1.25rem;
}

/* Search Input Wrapper */
.vd-search-wrapper {
    position: relative;
    flex: 1 1 260px;
    min-width: 220px;
    max-width: 380px;
}

.vd-search-wrapper svg.vd-search-icon {
    position: absolute;
    left: 0.85rem;
    top: 50%;
    transform: translateY(-50%);
    color: #9CA3AF;
    pointer-events: none;
    width: 16px;
    height: 16px;
}

.vd-search-input {
    width: 100%;
    padding: 0.6rem 1rem 0.6rem 2.5rem;
    border: 1px solid rgba(108, 83, 109, 0.2);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    color: #333;
    background: #fff;
    transition: border-color 0.2s ease, box-shadow 0.2s ease;
    box-sizing: border-box;
}

.vd-search-input:focus {
    outline: none;
    border-color: #6C536D;
    box-shadow: 0 0 0 3px rgba(108, 83, 109, 0.08);
}

/* Area Filter Pills */
.vd-area-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 0.45rem;
    align-items: center;
    flex: 1 1 auto;
}

.vd-pill {
    padding: 0.45rem 1rem;
    border-radius: 999px;
    border: 1px solid rgba(108, 83, 109, 0.25);
    background: transparent;
    color: #6C536D;
    font-family: 'Inter', sans-serif;
    font-size: 0.82rem;
    font-weight: 500;
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease;
}

.vd-pill:hover {
    background: rgba(108, 83, 109, 0.07);
}

.vd-pill.active {
    background: #6C536D;
    color: #fff;
    border-color: #6C536D;
}

/* Type Dropdown */
.vd-type-select {
    appearance: none;
    -webkit-appearance: none;
    padding: 0.55rem 2.4rem 0.55rem 1rem;
    border: 1px solid rgba(108, 83, 109, 0.2);
    border-radius: 8px;
    background: #fff url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' fill='%236C536D' viewBox='0 0 16 16'%3E%3Cpath fill-rule='evenodd' d='M1.646 4.646a.5.5 0 0 1 .708 0L8 10.293l5.646-5.647a.5.5 0 0 1 .708.708l-6 6a.5.5 0 0 1-.708 0l-6-6a.5.5 0 0 1 0-.708z'/%3E%3C/svg%3E") no-repeat right 0.85rem center;
    font-family: 'Inter', sans-serif;
    font-size: 0.87rem;
    color: #4B5563;
    cursor: pointer;
    transition: border-color 0.2s;
    min-width: 180px;
}

.vd-type-select:focus {
    outline: none;
    border-color: #6C536D;
}

/* Results Count */
.vd-results-meta {
    display: flex;
    align-items: center;
    gap: 0.75rem;
}

.vd-results-count {
    font-size: 0.85rem;
    color: #5C635E;
}

/* ── Venue Grid ──────────────────────────────────── */
.vd-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr));
    gap: 1.75rem;
}

/* ── Venue Card ──────────────────────────────────── */
.vd-card {
    background: #fff;
    border-radius: 14px;
    border: 1px solid rgba(108, 83, 109, 0.1);
    box-shadow: 0 2px 8px rgba(45, 62, 51, 0.06);
    overflow: hidden;
    display: flex;
    flex-direction: column;
    transition: transform 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                box-shadow 0.25s cubic-bezier(0.16, 1, 0.3, 1),
                border-color 0.25s ease;
}

.vd-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 10px 28px rgba(108, 83, 109, 0.12);
    border-color: rgba(74, 123, 114, 0.4);
}

/* Card Photo */
.vd-card-photo {
    position: relative;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #EAE6DF;
}

.vd-card-photo-inner {
    width: 100%;
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background: #EAE6DF;
}

.vd-card-photo img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
}

/* Placeholder graphic when no image */
.vd-card-placeholder {
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    color: rgba(255, 255, 255, 0.8);
}

.vd-card-placeholder svg {
    width: 32px;
    height: 32px;
    opacity: 0.75;
}

.vd-card-placeholder span {
    font-family: 'DM Serif Display', serif;
    font-size: 1rem;
    letter-spacing: 0.02em;
    opacity: 0.9;
}

/* Area & Type Badges */
.vd-card-badges {
    position: absolute;
    top: 0.75rem;
    left: 0.75rem;
    display: flex;
    gap: 0.4rem;
    flex-wrap: wrap;
}

.vd-badge {
    font-family: 'Inter', sans-serif;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    padding: 0.25rem 0.65rem;
    border-radius: 999px;
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
}

.vd-badge--area {
    background: rgba(45, 62, 51, 0.72);
    color: #fff;
}

.vd-badge--type {
    background: rgba(255, 255, 255, 0.88);
    color: #6C536D;
    border: 1px solid rgba(108, 83, 109, 0.15);
}

.vd-badge--matched {
    background: #6C536D;
    color: #ffffff;
    border: 1px solid rgba(255, 255, 255, 0.4);
    box-shadow: 0 2px 6px rgba(108, 83, 109, 0.25);
    font-weight: 600;
}

/* Card Body */
.vd-card-body {
    padding: 1.25rem 1.35rem 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.vd-card-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.2rem;
    color: #2D3E33;
    margin: 0 0 0.2rem 0;
    line-height: 1.2;
}

.vd-card-meta {
    display: flex;
    align-items: center;
    gap: 1rem;
    margin-bottom: 0.75rem;
}

.vd-card-capacity {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.82rem;
    color: #5C635E;
}

.vd-card-capacity svg {
    width: 14px;
    height: 14px;
    color: #4A7B72;
    flex-shrink: 0;
}

.vd-card-rate {
    font-size: 0.82rem;
    font-weight: 600;
    color: #4A7B72;
}

.vd-card-desc {
    font-size: 0.87rem;
    color: #5C635E;
    line-height: 1.5;
    margin: 0 0 0.85rem 0;
    display: -webkit-box;
    -webkit-line-clamp: 3;
    line-clamp: 3;
    -webkit-box-orient: vertical;
    overflow: hidden;
    height: 4.5em;
    max-height: 4.5em;
}

/* Amenity Chips */
.vd-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.35rem;
    margin-bottom: 0.85rem;
    min-height: 26px;
}

.vd-amenity-chip {
    display: inline-flex;
    align-items: center;
    gap: 0.3rem;
    font-size: 0.72rem;
    color: #5C635E;
    background: #F6F4F0;
    border: 1px solid #E6DCD1;
    padding: 0.2rem 0.55rem;
    border-radius: 4px;
}

.vd-amenity-chip svg {
    width: 11px;
    height: 11px;
    flex-shrink: 0;
    color: #4A7B72;
}

/* Card Actions */
.vd-card-actions {
    display: flex;
    gap: 0.65rem;
    margin-top: auto;
    padding-top: 0.75rem;
    border-top: 1px solid #F0ECE6;
}

.vd-btn-details {
    flex: 1;
    padding: 0.55rem 0.9rem;
    border-radius: 7px;
    border: 1px solid rgba(108, 83, 109, 0.25);
    background: transparent;
    color: #6C536D;
    font-family: 'Inter', sans-serif;
    font-size: 0.83rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: background 0.18s, color 0.18s, border-color 0.18s;
}

.vd-btn-details:hover {
    background: rgba(108, 83, 109, 0.06);
    border-color: #6C536D;
}

.vd-btn-collab {
    flex: 1;
    padding: 0.55rem 0.9rem;
    border-radius: 7px;
    border: none;
    background: #4A7B72;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.83rem;
    font-weight: 600;
    cursor: pointer;
    text-align: center;
    transition: background 0.18s, transform 0.15s;
}

.vd-btn-collab:hover {
    background: #3a6860;
    transform: translateY(-1px);
}

/* ── Empty State ─────────────────────────────────── */
.vd-empty-state {
    grid-column: 1 / -1;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    text-align: center;
    padding: 4rem 2rem;
    color: #5C635E;
    gap: 0.75rem;
}

.vd-empty-state svg {
    width: 40px;
    height: 40px;
    opacity: 0.35;
    color: #6C536D;
}

.vd-empty-state h4 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.3rem;
    color: #6C536D;
    margin: 0;
}

.vd-empty-state p {
    font-size: 0.92rem;
    margin: 0;
    max-width: 320px;
}

/* ── Detail Slide-over ───────────────────────────── */
.vd-slideover-overlay {
    position: fixed;
    inset: 0;
    background: rgba(34, 24, 36, 0.55);
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
    z-index: 10000;
    display: none;
    align-items: flex-start;
    justify-content: flex-end;
}

.vd-slideover-overlay.is-open {
    display: flex;
}

.vd-slideover {
    position: relative;
    width: min(520px, 100vw);
    height: 100dvh;
    background: #fff;
    display: flex;
    flex-direction: column;
    overflow: hidden;
    transform: translateX(100%);
    transition: transform 0.38s cubic-bezier(0.16, 1, 0.3, 1);
    box-shadow: -8px 0 40px rgba(45, 62, 51, 0.15);
}

.vd-slideover-overlay.is-open .vd-slideover {
    transform: translateX(0);
}

/* Slide-over Header Area */
.vd-so-photo {
    position: relative;
    height: 200px;
    flex-shrink: 0;
}

.vd-so-photo-inner {
    width: 100%;
    height: 100%;
}

.vd-so-photo-inner img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.vd-so-close {
    position: absolute;
    top: 1rem;
    right: 1rem;
    width: 36px;
    height: 36px;
    border-radius: 50%;
    background: rgba(255, 255, 255, 0.9);
    border: none;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #333;
    transition: background 0.2s;
    z-index: 1;
}

.vd-so-close:hover {
    background: #fff;
}

.vd-so-close svg {
    width: 18px;
    height: 18px;
}

/* Slide-over Badges over photo */
.vd-so-badges {
    position: absolute;
    bottom: 0.75rem;
    left: 1rem;
    display: flex;
    gap: 0.4rem;
}

/* Slide-over Content */
.vd-so-body {
    flex: 1;
    overflow-y: auto;
    padding: 1.75rem 1.75rem 1rem;
    display: flex;
    flex-direction: column;
    gap: 1.25rem;
}

.vd-so-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.6rem;
    color: #2D3E33;
    margin: 0 0 0.3rem 0;
}

.vd-so-meta-row {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: center;
}

.vd-so-meta-item {
    display: flex;
    align-items: center;
    gap: 0.4rem;
    font-size: 0.88rem;
    color: #5C635E;
}

.vd-so-meta-item svg {
    width: 15px;
    height: 15px;
    color: #4A7B72;
    flex-shrink: 0;
}

.vd-so-rate {
    font-weight: 700;
    color: #4A7B72;
    font-size: 1rem;
}

.vd-so-divider {
    border: none;
    border-top: 1px solid #E6DCD1;
    margin: 0;
}

.vd-so-section-label {
    font-size: 0.72rem;
    font-weight: 600;
    letter-spacing: 0.1em;
    text-transform: uppercase;
    color: #9CA3AF;
    margin: 0 0 0.6rem 0;
}

.vd-so-description {
    font-size: 0.95rem;
    color: #374151;
    line-height: 1.65;
    margin: 0;
}

/* Amenities in slide-over */
.vd-so-amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
}

.vd-so-amenity {
    display: inline-flex;
    align-items: center;
    gap: 0.35rem;
    font-size: 0.8rem;
    color: #374151;
    background: #F6F4F0;
    border: 1px solid #E6DCD1;
    padding: 0.3rem 0.75rem;
    border-radius: 6px;
    font-weight: 500;
}

.vd-so-amenity svg {
    width: 13px;
    height: 13px;
    color: #4A7B72;
    flex-shrink: 0;
}

/* Address block */
.vd-so-address {
    display: flex;
    align-items: flex-start;
    gap: 0.5rem;
    font-size: 0.9rem;
    color: #5C635E;
    line-height: 1.45;
}

.vd-so-address svg {
    width: 16px;
    height: 16px;
    color: #6C536D;
    margin-top: 0.1rem;
    flex-shrink: 0;
}

/* Slide-over Footer Actions */
.vd-so-footer {
    padding: 1.25rem 1.75rem 1.75rem;
    border-top: 1px solid #E6DCD1;
    display: flex;
    flex-direction: column;
    gap: 0.75rem;
    flex-shrink: 0;
}

.vd-so-btn-primary {
    width: 100%;
    padding: 0.85rem 1.25rem;
    border-radius: 8px;
    border: none;
    background: #4A7B72;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background 0.2s, transform 0.15s;
    text-decoration: none;
}

.vd-so-btn-primary:hover {
    background: #3a6860;
    transform: translateY(-1px);
}

.vd-so-btn-secondary {
    width: 100%;
    padding: 0.8rem 1.25rem;
    border-radius: 8px;
    border: 1px solid rgba(108, 83, 109, 0.3);
    background: transparent;
    color: #6C536D;
    font-family: 'Inter', sans-serif;
    font-size: 0.9rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background 0.2s, border-color 0.2s;
    text-decoration: none;
}

.vd-so-btn-secondary:hover {
    background: rgba(108, 83, 109, 0.06);
    border-color: #6C536D;
}

/* ── Collab DM Modal ─────────────────────────────── */
.vd-collab-modal-overlay {
    position: fixed;
    inset: 0;
    background: rgba(34, 24, 36, 0.58);
    backdrop-filter: blur(6px);
    -webkit-backdrop-filter: blur(6px);
    z-index: 20000;
    display: none;
    align-items: center;
    justify-content: center;
    padding: 1rem;
}

.vd-collab-modal-overlay.is-open {
    display: flex;
}

.vd-collab-modal {
    background: #fff;
    width: min(560px, 100%);
    border-radius: 16px;
    padding: 2.5rem 2.25rem;
    position: relative;
    max-height: 90vh;
    overflow-y: auto;
    box-shadow: 0 20px 60px rgba(45, 62, 51, 0.2);
    transform: translateY(16px);
    opacity: 0;
    transition: transform 0.32s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.28s ease;
}

.vd-collab-modal-overlay.is-open .vd-collab-modal {
    transform: translateY(0);
    opacity: 1;
}

.vd-cm-close {
    position: absolute;
    top: 1.1rem;
    right: 1.25rem;
    width: 32px;
    height: 32px;
    border-radius: 50%;
    border: none;
    background: #F6F4F0;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    color: #555;
    transition: background 0.2s;
}

.vd-cm-close:hover {
    background: #EDE8E0;
}

.vd-cm-close svg {
    width: 16px;
    height: 16px;
}

.vd-cm-eyebrow {
    display: inline-block;
    font-size: 0.68rem;
    font-weight: 600;
    letter-spacing: 0.12em;
    text-transform: uppercase;
    color: #4A7B72;
    background: #EBF3EE;
    padding: 0.2rem 0.7rem;
    border-radius: 999px;
    margin-bottom: 0.8rem;
}

.vd-cm-title {
    font-family: 'DM Serif Display', serif;
    font-size: 1.55rem;
    color: #2D3E33;
    margin: 0 0 0.35rem 0;
    line-height: 1.2;
}

.vd-cm-subtitle {
    font-size: 0.9rem;
    color: #5C635E;
    margin: 0 0 1.5rem 0;
    line-height: 1.5;
}

.vd-cm-form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.vd-cm-label {
    font-size: 0.83rem;
    font-weight: 600;
    color: #333;
    display: block;
    margin-bottom: 0.35rem;
}

.vd-cm-input,
.vd-cm-textarea {
    width: 100%;
    padding: 0.75rem 1rem;
    border: 1px solid rgba(108, 83, 109, 0.22);
    border-radius: 8px;
    font-family: 'Inter', sans-serif;
    font-size: 0.92rem;
    color: #333;
    background: #fff;
    transition: border-color 0.2s, box-shadow 0.2s;
    box-sizing: border-box;
}

.vd-cm-textarea {
    min-height: 120px;
    resize: vertical;
}

.vd-cm-input:focus,
.vd-cm-textarea:focus {
    outline: none;
    border-color: #4A7B72;
    box-shadow: 0 0 0 3px rgba(74, 123, 114, 0.1);
}

.vd-cm-send-btn {
    padding: 0.9rem 1.5rem;
    border-radius: 8px;
    border: none;
    background: #4A7B72;
    color: #fff;
    font-family: 'Inter', sans-serif;
    font-size: 0.95rem;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    gap: 0.5rem;
    transition: background 0.2s, transform 0.15s;
    margin-top: 0.5rem;
}

.vd-cm-send-btn:hover:not(:disabled) {
    background: #3a6860;
    transform: translateY(-1px);
}

.vd-cm-send-btn:disabled {
    opacity: 0.6;
    cursor: not-allowed;
}

.vd-cm-success {
    text-align: center;
    padding: 2rem 0;
    display: none;
    flex-direction: column;
    align-items: center;
    gap: 0.75rem;
}

.vd-cm-success svg {
    width: 44px;
    height: 44px;
    color: #4A7B72;
}

.vd-cm-success h4 {
    font-family: 'DM Serif Display', serif;
    font-size: 1.4rem;
    color: #2D3E33;
    margin: 0;
}

.vd-cm-success p {
    font-size: 0.92rem;
    color: #5C635E;
    margin: 0;
    max-width: 300px;
}

/* ── Responsive ──────────────────────────────────── */
@media (max-width: 768px) {
    .vd-filter-bar {
        gap: 0.75rem;
    }

    .vd-search-wrapper {
        max-width: 100%;
        flex: 1 1 100%;
    }

    .vd-area-pills {
        flex: 1 1 100%;
    }

    .vd-type-select {
        min-width: 0;
        flex: 1;
        width: 100%;
    }

    .vd-grid {
        grid-template-columns: 1fr;
    }

    .vd-slideover {
        width: 100vw;
        height: 100dvh;
    }

    .vd-so-body {
        padding: 1.25rem;
    }

    .vd-so-footer {
        padding: 1rem 1.25rem 1.5rem;
    }

    .vd-collab-modal {
        padding: 2rem 1.25rem;
    }
}
