/* Parking Directory Styles */

/* General */
.pdir-filters,
.pdir-list,
.pdir-submit-form {
    margin-bottom: 2em;
}

/* Filters */
.pdir-filter-form {
    padding: 1em;
    background: #f5f5f5;
    border-radius: 4px;
}

.pdir-filter-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 1em;
    align-items: flex-end;
}

.pdir-filter-field {
    flex: 1;
    min-width: 200px;
}

.pdir-filter-field label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: bold;
}

.pdir-filter-field input,
.pdir-filter-field select {
    width: 100%;
    padding: 0.5em;
}

.pdir-filter-button {
    padding: 0.5em 1em;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
}

.pdir-filter-button:hover {
    background: #005177;
}

/* Table */
.pdir-table {
    width: 100%;
    border-collapse: collapse;
    margin-top: 1em;
}

.pdir-table th,
.pdir-table td {
    padding: 0.75em;
    text-align: left;
    border-bottom: 1px solid #ddd;
}

.pdir-table th {
    background-color: #f5f5f5;
    font-weight: bold;
}

.pdir-table tr:hover {
    background-color: #f9f9f9;
}

.pdir-featured {
    background-color: #fffde7;
}

.pdir-title {
    font-weight: bold;
    color: #0073aa;
    text-decoration: none;
}

.pdir-title:hover {
    text-decoration: underline;
}

.pdir-rating {
    color: #ff9800;
    font-weight: bold;
}

.pdir-book-button {
    display: inline-block;
    padding: 0.4em 0.8em;
    background: #0073aa;
    color: white;
    text-decoration: none;
    border-radius: 3px;
    font-size: 0.9em;
}

.pdir-book-button:hover {
    background: #005177;
    color: white;
}

/* Map */
.pdir-map {
    width: 100%;
    height: 400px;
    margin: 1em 0;
    border-radius: 4px;
    border: 1px solid #ddd;
}

/* Submit Form */
.pdir-submit-form form {
    max-width: 800px;
}

.pdir-form-field {
    margin-bottom: 1em;
}

.pdir-form-field label {
    display: block;
    margin-bottom: 0.5em;
    font-weight: bold;
}

.pdir-form-field input,
.pdir-form-field textarea,
.pdir-form-field select {
    width: 100%;
    padding: 0.5em;
    border: 1px solid #ddd;
    border-radius: 4px;
}

.pdir-form-submit {
    margin-top: 1.5em;
}

.pdir-submit-button {
    padding: 0.75em 1.5em;
    background: #0073aa;
    color: white;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 1em;
}

.pdir-submit-button:hover {
    background: #005177;
}

/* Messages */
.pdir-success,
.pdir-errors {
    padding: 1em;
    margin-bottom: 1em;
    border-radius: 4px;
}

.pdir-success {
    background-color: #dff0d8;
    border: 1px solid #d6e9c6;
    color: #3c763d;
}

.pdir-errors {
    background-color: #f2dede;
    border: 1px solid #ebccd1;
    color: #a94442;
}

.pdir-errors ul {
    margin: 0;
    padding-left: 1.5em;
}

/* Comment Rating */
.pdir-comment-rating {
    margin-bottom: 0.5em;
}

.pdir-stars {
    color: #ff9800;
    letter-spacing: 2px;
}

/* Responsive */
@media (max-width: 768px) {
    .pdir-filter-field {
        min-width: 100%;
    }
    
    .pdir-table {
        display: block;
        overflow-x: auto;
    }
}