/**
 * All of the CSS for your public-facing functionality should be
 * included in this file.
 */

:root {
    --rm-destinos-accent-color: #0073aa;
    --rm-destinos-text-color: #333;
    --rm-destinos-light-gray: #f5f5f5;
    --rm-destinos-border-color: #ddd;
}

/* Common Styles */
.rm-destinos-container {
    margin: 30px 0;
    font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    color: var(--rm-destinos-text-color);
}

.rm-destinos-container h2 {
    margin-bottom: 20px;
    font-size: 24px;
    font-weight: 600;
}

.rm-destinos-container h3 {
    margin-bottom: 15px;
    font-size: 20px;
    font-weight: 600;
}

.rm-destinos-container h4 {
    margin-bottom: 10px;
    font-size: 18px;
    font-weight: 600;
}

.rm-destinos-button {
    display: inline-block;
    padding: 10px 20px;
    background-color: var(--rm-destinos-accent-color);
    color: #fff;
    text-decoration: none;
    border: none;
    border-radius: 4px;
    cursor: pointer;
    font-size: 16px;
    font-weight: 500;
    transition: background-color 0.3s;
}

.rm-destinos-button:hover {
    background-color: var(--rm-destinos-accent-color);
    opacity: 0.9;
    color: #fff;
}

/* Search Form */
.rm-destinos-search-form {
    background-color: var(--rm-destinos-light-gray);
    padding: 20px;
    border-radius: 5px;
    box-shadow: 0 2px 5px rgba(0, 0, 0, 0.1);
}

.rm-destinos-search-form .rm-destinos-form-row {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -10px 15px;
}

.rm-destinos-search-form .rm-destinos-form-field {
    flex: 1;
    padding: 0 10px;
    min-width: 200px;
    margin-bottom: 15px;
}

.rm-destinos-search-form label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.rm-destinos-search-form input[type="text"],
.rm-destinos-search-form input[type="date"],
.rm-destinos-search-form select {
    width: 100%;
    padding: 10px;
    border: 1px solid var(--rm-destinos-border-color);
    border-radius: 4px;
}

.rm-destinos-search-form .rm-destinos-form-actions {
    text-align: center;
    margin-top: 20px;
}

/* Results Table */
.rm-destinos-results-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 30px;
}

.rm-destinos-results-table th,
.rm-destinos-results-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid var(--rm-destinos-border-color);
}

.rm-destinos-results-table th {
    background-color: var(--rm-destinos-light-gray);
    font-weight: 600;
}

.rm-destinos-results-table tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.rm-destinos-results-table .rm-destinos-thumbnail {
    width: 100px;
}

.rm-destinos-results-table .rm-destinos-thumbnail img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 4px;
}

.rm-destinos-results-table .rm-destinos-title {
    font-weight: 600;
}

.rm-destinos-results-table .rm-destinos-title a {
    color: var(--rm-destinos-accent-color);
    text-decoration: none;
}

.rm-destinos-results-table .rm-destinos-title a:hover {
    text-decoration: underline;
}

.rm-destinos-results-table .rm-destinos-price {
    font-weight: 600;
    color: var(--rm-destinos-accent-color);
}

.rm-destinos-results-filters {
    background-color: var(--rm-destinos-light-gray);
    padding: 20px;
    border-radius: 5px;
    margin-bottom: 30px;
}

.rm-destinos-results-filters h3 {
    margin-top: 0;
}

.rm-destinos-results-filters .rm-destinos-filter-group {
    margin-bottom: 20px;
}

.rm-destinos-results-filters label {
    display: block;
    margin-bottom: 5px;
    font-weight: 600;
}

.rm-destinos-results-filters select,
.rm-destinos-results-filters input[type="number"] {
    width: 100%;
    padding: 8px;
    border: 1px solid var(--rm-destinos-border-color);
    border-radius: 4px;
}

.rm-destinos-results-filters .rm-destinos-filter-actions {
    margin-top: 20px;
}

.rm-destinos-pagination {
    margin-top: 30px;
    text-align: center;
}

.rm-destinos-pagination .page-numbers {
    display: inline-block;
    padding: 8px 12px;
    margin: 0 5px;
    border: 1px solid var(--rm-destinos-border-color);
    border-radius: 4px;
    text-decoration: none;
    color: var(--rm-destinos-text-color);
}

.rm-destinos-pagination .page-numbers.current {
    background-color: var(--rm-destinos-accent-color);
    color: #fff;
    border-color: var(--rm-destinos-accent-color);
}

.rm-destinos-pagination .page-numbers:hover {
    background-color: var(--rm-destinos-light-gray);
}

.rm-destinos-pagination .page-numbers.current:hover {
    background-color: var(--rm-destinos-accent-color);
}

/* Single Destino */
.rm-destinos-single {
    margin-bottom: 50px;
}

.rm-destinos-single-header {
    margin-bottom: 30px;
}

.rm-destinos-single-title {
    font-size: 32px;
    font-weight: 700;
    margin-bottom: 15px;
}

.rm-destinos-single-meta {
    display: flex;
    flex-wrap: wrap;
    margin-bottom: 20px;
}

.rm-destinos-single-meta-item {
    margin-right: 20px;
    margin-bottom: 10px;
}

.rm-destinos-single-meta-label {
    font-weight: 600;
    margin-right: 5px;
}

.rm-destinos-single-price {
    font-size: 24px;
    font-weight: 700;
    color: var(--rm-destinos-accent-color);
    margin-bottom: 20px;
}

.rm-destinos-single-gallery {
    margin-bottom: 30px;
}

.rm-destinos-single-gallery-main {
    margin-bottom: 10px;
}

.rm-destinos-single-gallery-main img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.rm-destinos-single-gallery-thumbs {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -5px;
}

.rm-destinos-single-gallery-thumb {
    width: 80px;
    height: 60px;
    margin: 5px;
    cursor: pointer;
    border-radius: 3px;
    overflow: hidden;
}

.rm-destinos-single-gallery-thumb img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.rm-destinos-single-gallery-thumb.active {
    border: 2px solid var(--rm-destinos-accent-color);
}

.rm-destinos-single-tabs {
    margin-bottom: 30px;
}

.rm-destinos-tabs-nav {
    display: flex;
    flex-wrap: wrap;
    border-bottom: 1px solid var(--rm-destinos-border-color);
    margin-bottom: 20px;
}

.rm-destinos-tabs-nav-item {
    padding: 10px 20px;
    cursor: pointer;
    border: 1px solid transparent;
    border-bottom: none;
    margin-bottom: -1px;
    background-color: transparent;
    font-weight: 600;
}

.rm-destinos-tabs-nav-item.active {
    border-color: var(--rm-destinos-border-color);
    border-bottom-color: #fff;
    background-color: #fff;
    color: var(--rm-destinos-accent-color);
}

.rm-destinos-tabs-content {
    padding: 20px;
    border: 1px solid var(--rm-destinos-border-color);
    border-top: none;
}

.rm-destinos-tab-pane {
    display: none;
}

.rm-destinos-tab-pane.active {
    display: block;
}

.rm-destinos-itinerary-day {
    margin-bottom: 30px;
}

.rm-destinos-itinerary-day-title {
    font-size: 18px;
    font-weight: 700;
    margin-bottom: 10px;
    padding-bottom: 10px;
    border-bottom: 1px solid var(--rm-destinos-border-color);
}

.rm-destinos-itinerary-day-content {
    margin-bottom: 15px;
}

.rm-destinos-itinerary-excursions {
    margin-top: 15px;
    padding: 15px;
    background-color: var(--rm-destinos-light-gray);
    border-radius: 5px;
}

.rm-destinos-itinerary-excursion {
    margin-bottom: 15px;
}

.rm-destinos-itinerary-excursion:last-child {
    margin-bottom: 0;
}

.rm-destinos-itinerary-excursion-title {
    font-weight: 600;
    margin-bottom: 5px;
}

.rm-destinos-hotels-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.rm-destinos-hotels-table th,
.rm-destinos-hotels-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--rm-destinos-border-color);
}

.rm-destinos-hotels-table th {
    background-color: var(--rm-destinos-light-gray);
    font-weight: 600;
}

.rm-destinos-tariffs-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.rm-destinos-tariffs-table th,
.rm-destinos-tariffs-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--rm-destinos-border-color);
}

.rm-destinos-tariffs-table th {
    background-color: var(--rm-destinos-light-gray);
    font-weight: 600;
}

.rm-destinos-supplements {
    margin-top: 30px;
}

.rm-destinos-supplements-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 20px;
}

.rm-destinos-supplements-table th,
.rm-destinos-supplements-table td {
    padding: 12px;
    text-align: left;
    border-bottom: 1px solid var(--rm-destinos-border-color);
}

.rm-destinos-supplements-table th {
    background-color: var(--rm-destinos-light-gray);
    font-weight: 600;
}

.rm-destinos-dates {
    margin-top: 30px;
}

.rm-destinos-dates-list {
    margin-bottom: 20px;
}

.rm-destinos-validity {
    font-style: italic;
    color: #666;
}

.rm-destinos-includes-list,
.rm-destinos-not-includes-list {
    margin-bottom: 20px;
}

.rm-destinos-includes-list ul,
.rm-destinos-not-includes-list ul {
    margin-left: 20px;
}

.rm-destinos-optional-tour {
    margin-bottom: 30px;
    padding: 20px;
    background-color: var(--rm-destinos-light-gray);
    border-radius: 5px;
}

.rm-destinos-optional-tour-title {
    font-size: 18px;
    font-weight: 600;
    margin-bottom: 10px;
}

.rm-destinos-optional-tour-price {
    font-weight: 600;
    color: var(--rm-destinos-accent-color);
    margin-bottom: 10px;
}

.rm-destinos-notes,
.rm-destinos-experiences {
    margin-bottom: 30px;
}

.rm-destinos-single-action {
    margin-top: 30px;
    text-align: center;
}

.rm-destinos-single-action .rm-destinos-button {
    padding: 15px 30px;
    font-size: 18px;
}

.rm-destinos-related {
    margin-top: 50px;
}

.rm-destinos-related-title {
    font-size: 24px;
    font-weight: 600;
    margin-bottom: 20px;
}

.rm-destinos-related-items {
    display: flex;
    flex-wrap: wrap;
    margin: 0 -15px;
}

.rm-destinos-related-item {
    width: calc(33.333% - 30px);
    margin: 0 15px 30px;
}

.rm-destinos-related-item-image {
    margin-bottom: 10px;
}

.rm-destinos-related-item-image img {
    display: block;
    width: 100%;
    height: auto;
    border-radius: 5px;
}

.rm-destinos-related-item-title {
    font-size: 16px;
    font-weight: 600;
    margin-bottom: 5px;
}

.rm-destinos-related-item-title a {
    color: var(--rm-destinos-text-color);
    text-decoration: none;
}

.rm-destinos-related-item-title a:hover {
    color: var(--rm-destinos-accent-color);
}

.rm-destinos-related-item-meta {
    font-size: 14px;
    color: #666;
}

/* Responsive */
@media (max-width: 768px) {
    .rm-destinos-search-form .rm-destinos-form-field {
        flex: 100%;
    }
    
    .rm-destinos-results-table {
        display: block;
        overflow-x: auto;
    }
    
    .rm-destinos-related-item {
        width: calc(50% - 30px);
    }
}

@media (max-width: 480px) {
    .rm-destinos-tabs-nav-item {
        flex: 100%;
        text-align: center;
    }
    
    .rm-destinos-related-item {
        width: 100%;
        margin-left: 0;
        margin-right: 0;
    }
}
