/* Wild Sauna Directory — Public Styles */

/* ---- Layout ---- */
.wsd-portal { display: flex; gap: 0; min-height: 60vh; }
.wsd-portal-nav { width: 220px; flex-shrink: 0; background: #f8f8f6; border-right: 1px solid #e5e5e0; padding: 24px 0; }
.wsd-portal-nav ul { list-style: none; margin: 0; padding: 0; }
.wsd-portal-nav li a, .wsd-portal-nav .wsd-btn-link { display: block; padding: 10px 24px; color: #333; text-decoration: none; font-size: 0.95rem; background: none; border: none; cursor: pointer; width: 100%; text-align: left; }
.wsd-portal-nav li.wsd-active a { color: #2d6a4f; font-weight: 600; border-left: 3px solid #2d6a4f; }
.wsd-portal-nav li a:hover { background: #eee; }
.wsd-portal-content { flex: 1; padding: 32px; }

/* ---- Auth ---- */
.wsd-auth-wrap { max-width: 480px; margin: 40px auto; padding: 0 16px; }
.wsd-auth-wrap h2 { margin-bottom: 8px; }
.wsd-auth-link { font-size: 0.9rem; margin-top: 16px; }

/* ---- Forms ---- */
.wsd-form { margin-top: 20px; }
.wsd-field { margin-bottom: 18px; }
.wsd-field label { display: block; font-weight: 600; margin-bottom: 5px; font-size: 0.9rem; }
.wsd-field input[type="text"],
.wsd-field input[type="email"],
.wsd-field input[type="password"],
.wsd-field input[type="tel"],
.wsd-field input[type="url"],
.wsd-field input[type="number"],
.wsd-field textarea,
.wsd-field select { width: 100%; padding: 10px 12px; border: 1px solid #ccc; border-radius: 6px; font-size: 0.95rem; box-sizing: border-box; }
.wsd-field input:focus, .wsd-field textarea:focus, .wsd-field select:focus { outline: none; border-color: #2d6a4f; box-shadow: 0 0 0 3px rgba(45,106,79,0.15); }
.wsd-field input[disabled] { background: #f5f5f5; color: #888; }
.wsd-hint { font-size: 0.82rem; color: #666; margin-top: 4px; display: block; }
.wsd-field-row { display: flex; gap: 16px; }
.wsd-field-row .wsd-field { flex: 1; }
.wsd-field-inline { display: flex; align-items: center; gap: 8px; }
.wsd-checkboxes { display: flex; flex-wrap: wrap; gap: 10px; }
.wsd-checkboxes label { font-weight: normal; display: flex; align-items: center; gap: 5px; cursor: pointer; }
.wsd-form-actions { display: flex; gap: 12px; margin-top: 24px; }

/* ---- Buttons ---- */
.wsd-btn { display: inline-block; padding: 10px 20px; border-radius: 6px; border: none; cursor: pointer; font-size: 0.95rem; font-weight: 600; text-decoration: none; transition: background 0.15s; }
.wsd-btn-primary { background: #2d6a4f; color: #fff; }
.wsd-btn-primary:hover { background: #1e4d38; }
.wsd-btn-secondary { background: #e5e5e0; color: #333; }
.wsd-btn-secondary:hover { background: #d5d5d0; }
.wsd-btn-danger { background: #dc2626; color: #fff; }
.wsd-btn-danger:hover { background: #b91c1c; }
.wsd-btn-sm { padding: 5px 12px; font-size: 0.82rem; }
.wsd-btn-link { background: none; border: none; color: #2d6a4f; cursor: pointer; padding: 0; font-size: inherit; text-decoration: underline; }

/* ---- Notices ---- */
.wsd-error   { color: #dc2626; font-size: 0.9rem; min-height: 1.2em; }
.wsd-success { color: #16a34a; font-size: 0.9rem; min-height: 1.2em; }
.wsd-notice { padding: 12px 16px; border-radius: 6px; margin-bottom: 20px; }
.wsd-notice-warning { background: #fef9c3; border: 1px solid #fde047; color: #713f12; }

/* ---- Section header ---- */
.wsd-section-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.wsd-section-header h2 { margin: 0; }

/* ---- Tables ---- */
.wsd-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.wsd-table th { text-align: left; padding: 10px 12px; background: #f5f5f2; border-bottom: 2px solid #e0e0da; font-weight: 600; }
.wsd-table td { padding: 10px 12px; border-bottom: 1px solid #eee; vertical-align: top; }
.wsd-table tr:hover td { background: #fafaf8; }

/* ---- Status badges ---- */
.wsd-status-confirmed { color: #16a34a; font-weight: 600; }
.wsd-status-pending   { color: #d97706; font-weight: 600; }
.wsd-status-cancelled { color: #dc2626; }
.wsd-status-approved  { color: #16a34a; }
.wsd-status-rejected  { color: #dc2626; }

/* ---- Panel (inline form overlay) ---- */
.wsd-panel { background: #f8f8f6; border: 1px solid #e0e0da; border-radius: 8px; padding: 24px; margin: 20px 0; }
.wsd-panel h3 { margin-top: 0; }

/* ---- Directory ---- */
.wsd-search-bar { display: flex; gap: 10px; flex-wrap: wrap; margin-bottom: 24px; align-items: center; }
.wsd-search-bar input, .wsd-search-bar select { padding: 10px 14px; border: 1px solid #ccc; border-radius: 6px; font-size: 0.95rem; }
.wsd-grid { display: grid; grid-template-columns: repeat( auto-fill, minmax(280px, 1fr) ); gap: 20px; }
.wsd-location-card { display: block; border: 1px solid #e0e0da; border-radius: 8px; overflow: hidden; text-decoration: none; color: inherit; transition: box-shadow 0.15s; }
.wsd-location-card:hover { box-shadow: 0 4px 16px rgba(0,0,0,0.1); }
.wsd-location-card img { width: 100%; height: 180px; object-fit: cover; display: block; }
.wsd-card-placeholder { height: 180px; background: #e0e0da; }
.wsd-card-body { padding: 16px; }
.wsd-card-body h3 { margin: 0 0 6px; font-size: 1.05rem; }
.wsd-card-body p { margin: 0 0 10px; font-size: 0.875rem; color: #555; }
.wsd-card-meta { display: flex; justify-content: space-between; font-size: 0.85rem; color: #2d6a4f; font-weight: 600; }

/* ---- Input group (input + button side by side) ---- */
.wsd-input-group { display: flex; gap: 8px; }
.wsd-input-group input { flex: 1; }

/* ---- Panel header ---- */
.wsd-panel-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 20px; }
.wsd-panel-header h3 { margin: 0; }
.wsd-btn-close { background: none; border: none; font-size: 1.2rem; cursor: pointer; color: #666; padding: 4px 8px; border-radius: 4px; }
.wsd-btn-close:hover { background: #eee; color: #333; }

/* ---- Form sections ---- */
.wsd-form-section { margin-bottom: 28px; padding-bottom: 24px; border-bottom: 1px solid #eee; }
.wsd-form-section:last-child { border-bottom: none; }
.wsd-form-section h4 { margin: 0 0 16px; font-size: 0.95rem; text-transform: uppercase; letter-spacing: 0.05em; color: #555; }
.wsd-form-footer { border-bottom: none; }

/* ---- Empty state ---- */
.wsd-empty-state { padding: 32px; text-align: center; background: #f8f8f6; border: 2px dashed #e0e0da; border-radius: 8px; color: #666; }
.wsd-empty-state p { margin: 4px 0; }

/* ---- Status badge ---- */
.wsd-status-badge { display: inline-block; padding: 3px 10px; border-radius: 20px; font-size: 0.8rem; font-weight: 600; }
.wsd-status-pending  { background: #fef9c3; color: #713f12; }
.wsd-status-approved { background: #dcfce7; color: #14532d; }
.wsd-status-rejected { background: #fee2e2; color: #7f1d1d; }

/* ---- Unit card ---- */
.wsd-unit-card { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: #f8f8f6; border: 1px solid #e0e0da; border-radius: 6px; margin-bottom: 8px; }
.wsd-unit-meta { margin-left: 12px; color: #666; font-size: 0.875rem; }
.wsd-actions { display: flex; gap: 6px; flex-wrap: wrap; }

/* ---- Loading ---- */
.wsd-loading { color: #888; font-style: italic; }



/* ---- Responsive ---- */
@media (max-width: 640px) {
    .wsd-portal { flex-direction: column; }
    .wsd-portal-nav { width: 100%; border-right: none; border-bottom: 1px solid #e5e5e0; padding: 12px 0; }
    .wsd-portal-nav ul { display: flex; flex-wrap: wrap; }
    .wsd-portal-nav li a { padding: 8px 16px; }
    .wsd-portal-content { padding: 20px 16px; }
    .wsd-field-row { flex-direction: column; gap: 0; }
    .wsd-search-bar input, .wsd-search-bar select { width: 100%; }
}