/* ==========================================================================
   Travel Content Plugin - Public Styles
   ========================================================================== */

/* Archive
   ========================================================================== */

.travel-archive {
    max-width: 1200px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.travel-archive__header {
    margin-bottom: 2rem;
}

.travel-archive__grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(300px, 1fr));
    gap: 1.5rem;
}

/* Filter Bar
   ========================================================================== */

.travel-filter {
    display: flex;
    flex-wrap: wrap;
    gap: 1rem;
    align-items: flex-end;
    margin-bottom: 2rem;
    padding: 1.25rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #fafafa;
}

.travel-filter__field {
    display: flex;
    flex-direction: column;
    flex: 1 1 200px;
    min-width: 0;
}

.travel-filter__field label,
.travel-filter__field legend {
    font-size: 0.8rem;
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.travel-filter__field select,
.travel-filter__field input[type="text"],
.travel-filter__field input[type="number"] {
    padding: 0.5rem 0.625rem;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 0.9rem;
    font-family: inherit;
    box-sizing: border-box;
}

.travel-filter__field--search {
    flex: 1 1 100%;
}

.travel-filter__field--checkboxes {
    border: none;
    padding: 0;
    margin: 0;
    flex: 1 1 100%;
}

.travel-filter__toggle {
    cursor: pointer;
    user-select: none;
}

.travel-filter__toggle-icon::after {
    content: ' ▸';
    font-size: 0.75rem;
}

.travel-filter__field--checkboxes.is-open .travel-filter__toggle-icon::after {
    content: ' ▾';
}

.travel-filter__checkbox-wrap {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    margin-top: 0.5rem;
}

.travel-filter__checkbox-wrap--hidden {
    display: none;
}

.travel-filter__field--checkboxes.is-open .travel-filter__checkbox-wrap--hidden {
    display: flex;
}

.travel-filter__field--checkboxes label {
    font-weight: 400;
    display: inline-flex;
    align-items: center;
    gap: 0.25rem;
    font-size: 0.9rem;
    white-space: nowrap;
}

.travel-filter__extra-fields {
    display: flex;
    flex-wrap: wrap;
    gap: 0.75rem 1.5rem;
    width: 100%;
    margin-bottom: 0.75rem;
}

.travel-filter__extra-fields .travel-filter__field {
    flex: 1 1 auto;
    min-width: 0;
}

.travel-filter__attr-group {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem 1.25rem;
    align-items: center;
    width: 100%;
}

.travel-filter__attr-label {
    font-weight: 600;
    font-size: 0.9rem;
    margin-right: 0.25rem;
}

.travel-filter__field--price-range .travel-filter__price-inputs {
    display: flex;
    align-items: center;
    gap: 0.5rem;
}

.travel-filter__field--price-range input[type="number"] {
    width: 100px;
}

.travel-filter__price-sep {
    color: #999;
}

.travel-filter__actions {
    display: flex;
    gap: 0.75rem;
    align-items: center;
    flex: 0 0 auto;
}

.travel-filter__submit {
    padding: 0.5rem 1.25rem;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 0.9rem;
    cursor: pointer;
}

.travel-filter__submit:hover {
    background: #005a87;
}

.travel-filter__clear {
    font-size: 0.85rem;
    color: #0073aa;
}

@media (max-width: 600px) {
    .travel-filter__field {
        flex: 1 1 100%;
    }
    .travel-filter__field--price-range input[type="number"] {
        flex: 1;
        width: auto;
    }
}

/* Card
   ========================================================================== */

.travel-card {
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    overflow: hidden;
    background: #fff;
    display: flex;
    flex-direction: column;
}

.travel-card__image {
    aspect-ratio: 16 / 9;
    overflow: hidden;
}

.travel-card__image img {
    width: 100%;
    height: 100%;
    display: block;
    object-fit: cover;
}

.travel-card__body {
    padding: 1rem;
    flex: 1;
    display: flex;
    flex-direction: column;
}

.travel-card__meta {
    display: flex;
    gap: 0.5rem;
    flex-wrap: wrap;
    margin-bottom: 0.5rem;
}

.travel-card__meta span {
    font-size: 0.75rem;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 0.15em 0.5em;
    border: 1px solid #ccc;
    border-radius: 3px;
    color: inherit;
}

.travel-card__title {
    font-size: 1.125rem;
    margin: 0 0 0.25rem;
    line-height: 1.3;
}

.travel-card__title a {
    color: inherit;
    text-decoration: none;
}

.travel-card__title a:hover {
    text-decoration: underline;
}

.travel-card__supplier {
    font-size: 0.85rem;
    color: #666;
    margin: 0 0 0.5rem;
}

.travel-card__summary {
    font-size: 0.875rem;
    color: #555;
    margin: 0 0 0.75rem;
    flex: 1;
}

.travel-card__price {
    margin-top: auto;
    font-size: 1.125rem;
    font-weight: 600;
}

.travel-card__price-label {
    font-size: 0.75rem;
    font-weight: 400;
    margin-right: 0.25em;
}

/* Single
   ========================================================================== */

.travel-single {
    max-width: 900px;
    margin: 0 auto;
    padding: 2rem 1rem;
}

.travel-single__header {
    margin-bottom: 1.5rem;
}

.travel-single__image {
    margin-bottom: 1.5rem;
}

.travel-single__image img {
    width: 100%;
    max-height: 400px;
    object-fit: cover;
    display: block;
    border-radius: 4px;
}

.travel-single__title {
    margin: 0 0 0.25rem;
}

.travel-single__subtitle {
    font-size: 1.125rem;
    color: #555;
    margin: 0;
}

.travel-single__summary {
    font-size: 1rem;
    color: #555;
    margin: 0.75rem 0 0;
    line-height: 1.6;
}

/* Taxonomy badges */

.travel-single__taxonomies {
    display: flex;
    flex-wrap: wrap;
    gap: 0.5rem;
    margin-bottom: 1.5rem;
}

.travel-single__term {
    display: inline-block;
    padding: 0.25em 0.75em;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 0.8rem;
    color: inherit;
}

.travel-single__term--overflow {
    display: none;
}

.travel-single__taxonomies.show-all .travel-single__term--overflow {
    display: inline-block;
}

.travel-single__term--toggle {
    cursor: pointer;
    border-color: #0073aa;
    color: #0073aa;
}

/* Content */

.travel-single__content {
    margin-bottom: 2rem;
    line-height: 1.7;
}

/* Type-specific details */

.travel-single__details {
    margin-bottom: 2rem;
}

.travel-single__details h2 {
    margin-bottom: 0.75rem;
}

.travel-single__details-list {
    display: grid;
    grid-template-columns: auto 1fr;
    gap: 0.5rem 1.5rem;
    margin: 0;
}

.travel-single__details-list dt {
    font-weight: 600;
}

.travel-single__details-list dd {
    margin: 0;
}

/* What's Included */

.travel-single__inclusions {
    margin-bottom: 2rem;
}

.travel-single__inclusions h2 {
    margin-bottom: 0.75rem;
}

.travel-single__inclusions-list {
    padding-left: 1.25rem;
    margin: 0;
}

.travel-single__inclusions-list li {
    padding: 0.25rem 0;
}

/* Custom attributes / highlights */

.travel-single__attributes {
    margin-bottom: 2rem;
}

.travel-single__attributes h2 {
    margin-bottom: 0.75rem;
}

.travel-single__attributes-list {
    padding-left: 1.25rem;
    margin: 0;
}

.travel-single__attributes-list li {
    padding: 0.25rem 0;
}

/* Pricing table */

.travel-single__pricing {
    margin-bottom: 2rem;
}

.travel-single__pricing h2 {
    margin-bottom: 0.75rem;
}

.travel-single__pricing-table {
    width: 100%;
    border-collapse: collapse;
}

.travel-single__pricing-table th,
.travel-single__pricing-table td {
    padding: 0.625rem 0.75rem;
    border-bottom: 1px solid #e0e0e0;
    text-align: left;
}

.travel-single__pricing-table thead th {
    font-weight: 600;
    border-bottom-width: 2px;
}

/* Itinerary */

.travel-single__itinerary {
    margin-bottom: 2rem;
}

.travel-single__itinerary h2 {
    margin-bottom: 0.75rem;
}

.travel-single__itinerary-list {
    padding-left: 0;
    margin: 0;
    list-style: none;
}

.travel-single__itinerary-day {
    padding: 1rem 0;
    border-bottom: 1px solid #eee;
}

.travel-single__itinerary-day:last-child {
    border-bottom: none;
}

.travel-single__itinerary-day p {
    margin: 0.5rem 0 0;
    color: #555;
}

/* Inquiry form */

.travel-single__inquiry {
    margin-bottom: 2rem;
    padding: 1.5rem;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
    background: #fafafa;
}

.travel-single__inquiry h2 {
    margin: 0 0 1rem;
}

.travel-inquiry__notice {
    padding: 0.75rem 1rem;
    border-radius: 4px;
    margin-bottom: 1rem;
    font-size: 0.9rem;
}

.travel-inquiry__notice--success {
    background: #d4edda;
    border: 1px solid #c3e6cb;
    color: #155724;
}

.travel-inquiry__notice--error {
    background: #f8d7da;
    border: 1px solid #f5c6cb;
    color: #721c24;
}

.travel-inquiry__form {
    display: flex;
    flex-direction: column;
    gap: 1rem;
}

.travel-inquiry__field label {
    display: block;
    font-weight: 600;
    margin-bottom: 0.25rem;
    font-size: 0.9rem;
}

.travel-inquiry__field .required {
    color: #c00;
}

.travel-inquiry__field input,
.travel-inquiry__field textarea {
    width: 100%;
    padding: 0.5rem 0.625rem;
    border: 1px solid #ccc;
    border-radius: 3px;
    font-size: 0.95rem;
    font-family: inherit;
    box-sizing: border-box;
}

.travel-inquiry__field input:focus,
.travel-inquiry__field textarea:focus {
    outline: none;
    border-color: #0073aa;
    box-shadow: 0 0 0 1px #0073aa;
}

.travel-inquiry__button {
    display: inline-block;
    padding: 0.625rem 1.5rem;
    background: #0073aa;
    color: #fff;
    border: none;
    border-radius: 3px;
    font-size: 1rem;
    cursor: pointer;
    align-self: flex-start;
}

.travel-inquiry__button:hover {
    background: #005a87;
}

/* Pagination */

.travel-archive .nav-links {
    display: flex;
    gap: 0.5rem;
    justify-content: center;
    margin-top: 2rem;
}

/* Section Toggle
   ========================================================================== */

.travel-single__toggle {
    cursor: pointer;
    user-select: none;
}

.travel-single__toggle:hover {
    opacity: 0.7;
}

.travel-single__toggle-icon {
    font-size: 0.7em;
    margin-left: 6px;
    display: inline-block;
    transition: transform 0.2s ease;
}

.is-collapsed > .travel-single__toggle .travel-single__toggle-icon {
    transform: rotate(-90deg);
}

.travel-single__pricing.is-collapsed .travel-single__pricing-table {
    display: none;
}

.travel-single__itinerary.is-collapsed .travel-single__itinerary-list {
    display: none;
}

/* Destination Autocomplete
   ========================================================================== */

.travel-filter__field--autocomplete {
    position: relative;
}

.travel-autocomplete-results {
    display: none;
    position: absolute;
    top: 100%;
    left: 0;
    right: 0;
    background: #fff;
    border: 1px solid #ccc;
    border-top: none;
    border-radius: 0 0 4px 4px;
    max-height: 240px;
    overflow-y: auto;
    z-index: 100;
    box-shadow: 0 4px 8px rgba(0, 0, 0, 0.1);
}

.travel-autocomplete-item {
    padding: 8px 12px;
    cursor: pointer;
    font-size: 0.9rem;
    border-bottom: 1px solid #f0f0f0;
}

.travel-autocomplete-item:last-child {
    border-bottom: none;
}

.travel-autocomplete-item:hover {
    background: #f0f6fc;
}

.travel-autocomplete-empty {
    padding: 8px 12px;
    color: #666;
    font-style: italic;
    font-size: 0.9rem;
}
