/**
 * Branch Directory - Style publiczne
 *
 * @since      1.3.1
 * @package    Branch_Directory
 * @subpackage Branch_Directory/public/css
 */

/* Podstawowe style dla wtyczki */
.branch-directory-container {
    margin-bottom: 20px;
}

/* Style dla formularzy */
.branch-directory-form {
    margin-bottom: 15px;
}

.branch-directory-form input,
.branch-directory-form select {
    padding: 8px;
    margin-right: 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.branch-directory-form button {
    padding: 8px 15px;
    background-color: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.branch-directory-form button:hover {
    background-color: #005177;
}

 .branch-directory-search-form {
     display: flex;
     flex-direction: column;
     align-items: stretch;
     justify-content: center;
     margin: 20px 0;
 }

 .branch-directory-search-fields {
     display: flex;
     flex-wrap: wrap;
     gap: 12px;
     align-items: center;
     justify-content: center;
     padding: 16px;
     border: 1px solid #e6e6e6;
     border-radius: 8px;
     background: #fff;
     box-shadow: 0 6px 18px rgba(0,0,0,0.08);
     max-width: 100%;
     width: 100%;
 }

 .branch-directory-search-fields input[type="text"],
 .branch-directory-search-fields select,
 .branch-directory-search-fields button {
     height: 44px;
     border-radius: 8px;
     flex: 1 1 220px;
     min-width: 0;
 }

 .branch-directory-search-fields input[type="text"],
 .branch-directory-search-fields select {
     padding: 0 12px;
     border: 1px solid #d9d9d9;
     background: #fff;
     width: 100%;
     margin-right: 0;
 }

 .branch-directory-search-fields select {
     padding-right: 36px;
 }

 .branch-directory-search-fields button {
     padding: 0 18px;
     border: 0;
     background-color: #0073aa;
     color: #fff;
     cursor: pointer;
     box-shadow: 0 6px 14px rgba(0,115,170,0.22);
     width: 100%;
 }

 .branch-directory-search-fields button:hover {
     background-color: #005177;
 }

 .branch-directory-search-specializations {
     width: 100%;
     max-width: 100%;
 }

 .branch-directory-search-specializations-columns {
     display: grid;
     grid-template-columns: 3fr 1fr;
     gap: 12px;
 }

 .branch-directory-search-specializations-col--parents .branch-directory-search-specializations-grid {
     grid-template-columns: repeat(3, minmax(0, 1fr));
 }

 .branch-directory-search-specializations-col--children .branch-directory-search-specializations-grid {
     grid-template-columns: repeat(1, minmax(0, 1fr));
 }

 .branch-directory-search-specializations-grid {
     display: grid;
     grid-template-columns: repeat(4, minmax(0, 1fr));
     gap: 10px 12px;
     margin-top: 12px;
     padding-top: 12px;
     border-top: 1px solid #eee;
 }

 .branch-directory-search-checkbox {
     display: flex;
     align-items: center;
     gap: 8px;
     padding: 10px 10px;
     border: 1px solid #eee;
     border-radius: 8px;
     background: #fafafa;
     cursor: pointer;
     user-select: none;
 }

 .branch-directory-search-checkbox input {
     width: 16px;
     height: 16px;
 }

 .branch-directory-search-checkbox span {
     font-size: 0.95em;
     line-height: 1.2;
 }

 .branch-directory-is-hidden {
     display: none;
 }

 .branch-directory-search-results {
     max-width: 100%;
     margin: 16px 0 0;
 }

 .branch-directory-search-results-list {
     display: grid;
     gap: 12px;
 }

 .branch-directory-search-result {
     display: grid;
     grid-template-columns: 72px 1fr;
     gap: 12px;
     align-items: center;
     padding: 12px;
     border: 1px solid #eee;
     border-radius: 8px;
     background: #fff;
     box-shadow: 0 6px 18px rgba(0,0,0,0.06);
 }

 .branch-directory-search-result-thumb img {
     width: 72px;
     height: 72px;
     object-fit: cover;
     border-radius: 8px;
     display: block;
 }

 .branch-directory-search-result-title {
     display: inline-block;
     font-weight: 600;
     text-decoration: none;
     color: #111;
 }

 .branch-directory-search-result-title:hover {
     text-decoration: underline;
 }

 .branch-directory-search-result-excerpt {
     margin-top: 6px;
     color: #555;
     font-size: 0.95em;
     line-height: 1.35;
 }

 @media (max-width: 640px) {
     .branch-directory-search-fields input[type="text"],
     .branch-directory-search-fields select,
     .branch-directory-search-fields button {
         width: 100%;
         min-width: 0;
     }

     .branch-directory-search-fields {
         padding: 14px;
     }

     .branch-directory-search-result {
         grid-template-columns: 56px 1fr;
     }

     .branch-directory-search-result-thumb img {
         width: 56px;
         height: 56px;
     }

     .branch-directory-search-specializations-grid {
         grid-template-columns: repeat(2, minmax(0, 1fr));
     }

     .branch-directory-search-specializations-columns {
         grid-template-columns: 1fr;
     }
 }

/* Style dla wyników wyszukiwania */
.branch-directory-results {
    margin-top: 20px;
}

/* Style dla pojedynczego elementu */
.branch-directory-item {
    border: 1px solid #eee;
    padding: 15px;
    margin-bottom: 15px;
    border-radius: 4px;
    box-shadow: 0 1px 3px rgba(0,0,0,0.1);
}

.branch-directory-item-title {
    font-size: 1.2em;
    margin-bottom: 10px;
}

.branch-directory-item-meta {
    color: #666;
    font-size: 0.9em;
}

/* Style dla mapy */
.branch-directory-map {
    height: 400px;
    width: 100%;
    margin-bottom: 20px;
}

/* Style dla kategorii */
.branch-directory-categories {
    display: flex;
    flex-wrap: wrap;
    gap: 10px;
    margin-bottom: 20px;
}

.branch-directory-category {
    padding: 8px 15px;
    background-color: #f5f5f5;
    border-radius: 4px;
    text-decoration: none;
    color: #333;
}

.branch-directory-category:hover {
    background-color: #e5e5e5;
}

 .bd-add-listing-form {
     max-width: 900px;
     margin: 0 auto;
 }

 .bd-add-listing-section {
     background: #fff;
     border: 1px solid #e6e6e6;
     border-radius: 12px;
     padding: 18px;
     box-shadow: 0 6px 18px rgba(0,0,0,0.06);
     margin: 0 0 16px;
 }

 .bd-add-listing-section-title {
     margin: 0 0 12px;
     font-size: 1.05em;
     font-weight: 600;
 }

 .bd-add-listing-grid {
     display: grid;
     grid-template-columns: repeat(2, minmax(0, 1fr));
     gap: 12px;
 }

 .bd-add-listing-field {
     min-width: 0;
 }

 .bd-add-listing-field--full {
     grid-column: 1 / -1;
 }

 .bd-add-listing-form label {
     display: block;
     font-size: 0.95em;
     color: #222;
 }

 .bd-add-listing-form input[type="text"],
 .bd-add-listing-form input[type="email"],
 .bd-add-listing-form input[type="file"],
 .bd-add-listing-form select,
 .bd-add-listing-form textarea {
     width: 100%;
     border: 1px solid #d9d9d9;
     border-radius: 10px;
     padding: 10px 12px;
     background: #fff;
     margin: 6px 0 0;
     box-sizing: border-box;
 }

 .bd-add-listing-form textarea {
     resize: vertical;
 }

 .bd-add-listing-label {
     font-size: 0.95em;
     color: #222;
     margin: 0 0 6px;
 }

 .bd-add-listing-hours-flags {
     display: flex;
     gap: 10px;
     margin: 0 0 8px;
     flex-wrap: wrap;
 }

 .bd-add-listing-inline-check {
     display: inline-flex;
     align-items: center;
     gap: 6px;
     font-size: 0.9em;
 }

 .bd-add-listing-inline-check input {
     margin: 0;
 }

 .bd-add-listing-hours-table {
     width: 100%;
     table-layout: fixed;
     border-collapse: collapse;
     border: 1px solid #ececec;
     border-radius: 10px;
     overflow: hidden;
     background: #fff;
 }

 .bd-add-listing-hours-table th,
 .bd-add-listing-hours-table td {
     border-bottom: 1px solid #f1f1f1;
     padding: 6px 8px;
     text-align: left;
     vertical-align: middle;
     font-size: 0.88em;
 }

 .bd-add-listing-hours-table thead th {
     background: #fafafa;
     font-size: 0.82em;
     font-weight: 600;
 }

 .bd-add-listing-hours-table tbody tr:last-child td {
     border-bottom: 0;
 }

 .bd-add-listing-hours-table input[type="time"] {
     min-width: 0;
     width: 100%;
     margin: 0;
     padding: 6px 8px;
     font-size: 0.9em;
 }

 .bd-add-listing-checkboxes {
     display: grid;
     grid-template-columns: repeat(3, minmax(0, 1fr));
     gap: 10px 12px;
 }

 .bd-add-listing-checkbox {
     display: flex;
     align-items: center;
     gap: 8px;
     padding: 10px 10px;
     border: 1px solid #eee;
     border-radius: 10px;
     background: #fafafa;
     cursor: pointer;
     user-select: none;
 }

 .bd-add-listing-checkbox input {
     width: 16px;
     height: 16px;
     margin: 0;
 }

 .bd-add-listing-hint {
     color: #666;
     font-size: 0.95em;
 }

 .bd-add-listing-actions {
     display: flex;
     justify-content: flex-end;
     margin: 16px 0 0;
 }

 .bd-add-listing-actions button {
     height: 44px;
     padding: 0 18px;
     border: 0;
     border-radius: 10px;
     background-color: #0073aa;
     color: #fff;
     cursor: pointer;
     box-shadow: 0 6px 14px rgba(0,115,170,0.22);
 }

 .bd-add-listing-actions button:hover {
     background-color: #005177;
 }

 .bd-login-form-wrapper,
 .bd-user-status {
     max-width: 520px;
     margin: 0 auto 16px;
     padding: 3px 6px 3px 6px;
     border: 1px solid #e6e6e6;
     border-radius: 4px;
     background: #fff;
     box-shadow: 0 6px 18px rgba(0,0,0,0.06);
}

 .bd-login-card {
     max-width: 420px;
     margin: 8px auto;
     padding: 16px;
     border: 1px solid #e6e6e6;
     border-radius: 12px;
     background: #fff;
     box-shadow: 0 6px 18px rgba(0,0,0,0.08);
 }

 .bd-login-field {
     margin: 0 0 12px;
 }

 .bd-login-field label {
     display: block;
     font-size: 0.95em;
     color: #222;
     margin: 0 0 6px;
 }

 .bd-login-input {
     display: block;
     width: 100% !important;
     border: 1px solid #d9d9d9;
     border-radius: 10px;
     padding: 10px 12px;
     background: #fff;
     box-sizing: border-box;
 }

 .bd-login-field--remember {
     margin-top: -2px;
 }

 .bd-login-remember {
     display: inline-flex;
     align-items: center;
     gap: 6px;
     margin: 0;
 }

 .bd-login-actions {
     margin: 0;
 }

 .bd-login-submit {
     min-height: 40px;
     padding: 0 16px;
     border: 0;
     border-radius: 10px;
     background-color: #0073aa;
     color: #fff;
     cursor: pointer;
     box-shadow: 0 6px 14px rgba(0,115,170,0.22);
 }

 .bd-login-submit:hover {
     background-color: #005177;
 }

 .bd-login-links {
     margin-top: 10px;
     font-size: 0.92em;
 }

 .bd-login-links a {
     color: #005177;
     text-decoration: none;
     font-weight: 600;
 }

 .bd-login-links a:hover {
     text-decoration: underline;
 }

 .bd-user-status {
     display: flex;
     align-items: center;
     justify-content: space-between;
     gap: 10px;
     flex-wrap: wrap;
     font-size: 0.95em;
 }

 .bd-user-status a {
     color: #005177;
     text-decoration: none;
     font-weight: 600;
 }

 .bd-user-status a:hover {
     text-decoration: underline;
 }

 .bd-notice-success {
     margin: 0 0 16px;
     padding: 12px 14px;
     border: 1px solid #6bc98f;
     border-radius: 10px;
     background: #edf9f1;
     color: #155b2c;
 }

 .bd-client-panel-table {
     width: 100%;
     border-collapse: collapse;
     border: 1px solid #ececec;
     border-radius: 10px;
     overflow: hidden;
     background: #fff;
 }

 .bd-client-panel-table th,
 .bd-client-panel-table td {
     padding: 10px 12px;
     border-bottom: 1px solid #f1f1f1;
     text-align: left;
     vertical-align: middle;
 }

 .bd-client-panel-table thead th {
     background: #fafafa;
     font-weight: 600;
 }

 .bd-client-panel-table tbody tr:last-child td {
     border-bottom: 0;
 }

 .bd-status-badge {
     display: inline-flex;
     align-items: center;
     padding: 4px 10px;
     border-radius: 999px;
     border: 1px solid #d9d9d9;
     background: #f8f8f8;
     color: #444;
     font-size: 0.86em;
     line-height: 1.2;
 }

 .bd-status-badge--active {
     border-color: #6bc98f;
     background: #edf9f1;
     color: #155b2c;
     font-weight: 600;
 }

 .bd-status-badge--pending {
     border-color: #d8b26b;
     background: #fff8ea;
     color: #7a5413;
 }

 .bd-client-panel-actions {
     white-space: nowrap;
 }

 .bd-panel-btn {
     display: inline-flex;
     align-items: center;
     justify-content: center;
     min-height: 34px;
     padding: 0 12px;
     border-radius: 8px;
     border: 1px solid #0073aa;
     background: #0073aa;
     color: #fff;
     text-decoration: none;
     font-size: 0.9em;
     margin-right: 8px;
 }

 .bd-panel-btn:last-child {
     margin-right: 0;
 }

 .bd-panel-btn:hover {
     background: #005177;
     border-color: #005177;
     color: #fff;
 }

 .bd-panel-btn--ghost {
     background: #fff;
     color: #005177;
 }

 .bd-panel-btn--ghost:hover {
     color: #fff;
 }

 .bd-panel-btn--disabled {
     border-color: #d9d9d9;
     background: #f6f6f6;
     color: #999;
     cursor: default;
 }

 @media (max-width: 640px) {
     .bd-add-listing-grid {
         grid-template-columns: 1fr;
     }

     .bd-add-listing-checkboxes {
         grid-template-columns: repeat(2, minmax(0, 1fr));
     }

      .bd-add-listing-hours-table {
          display: block;
          overflow-x: auto;
          white-space: nowrap;
      }

      .bd-add-listing-hours-table th,
      .bd-add-listing-hours-table td {
          font-size: 0.8em;
          padding: 6px;
      }

      .bd-add-listing-hours-table input[type="time"] {
          min-width: 86px;
      }

      .bd-client-panel-table {
          display: block;
          overflow-x: auto;
          white-space: nowrap;
      }
 }
