/**
 * Estilos para Tours Marketplace
 * Diseño Mobile-First
 */

/* ===== Variables ===== */
:root {
    --tm-primary: #FF6B6B;
    --tm-secondary: #4ECDC4;
    --tm-dark: #2D3142;
    --tm-light: #F5F5F5;
    --tm-gray: #7C7C7C;
    --tm-success: #2FCC71;
    --tm-warning: #F1C40F;
    --tm-danger: #E74C3C;
    --tm-border-radius: 8px;
    --tm-box-shadow: 0 2px 6px rgba(0, 0, 0, 0.1);
    --tm-transition: all 0.3s ease;
    --tm-font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Oxygen-Sans, Ubuntu, Cantarell, "Helvetica Neue", sans-serif;
    --tm-sidebar-width: 280px;
    --tm-primary-color: #2c3e50; /* Azul oscuro */
    --tm-primary-dark-color: #1a252f;
    --tm-accent-color: #e74c3c; /* Rojo/Naranja */
    --tm-accent-dark-color: #c0392b;
    --tm-light-gray: #f9f9f9;
    --tm-medium-gray: #ccc;
    --tm-dark-gray: #555;
}

.tm-app-container {
    font-family: var(--tm-font-family);
    background-color: var(--tm-light);
    color: var(--tm-dark);
    max-width: 1200px;
    min-height: calc(100vh - 40px);
    display: flex;
    flex-direction: column;
}

/* Esconder barra de admin en el tema app */
body.tm-app-mode #wpadminbar,
body.tm-app-mode #masthead,
body.tm-app-mode #colophon,
body.tm-app-mode .site-header,
body.tm-app-mode .site-footer {
    display: none !important;
}

body.tm-app-mode {
    margin-top: 0 !important;
}

body.tm-app-mode .site-content,
body.tm-app-mode #content {
    padding: 0 !important;
}

/* ===== Tipografía ===== */
.tm-title {
    font-size: 1.8rem;
    font-weight: 700;
    color: var(--tm-dark);
    margin-bottom: 0.5rem;
}

.tm-subtitle {
    font-size: 1rem;
    color: var(--tm-gray);
    margin-bottom: 1.5rem;
}

/* ===== Header ===== */
.tm-header {
    display: flex;
    justify-content: flex-end;
    align-items: center;
    background: #fff;
}

.tm-user-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    width: 100%;
    justify-content: space-around;
}

.tm-welcome {
    margin-right: 0.5rem;
}

.tm-role-badge {
    background-color: var(--tm-secondary);
    color: white;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    font-size: 0.8rem;
    margin-right: 0.5rem;
}

.tm-auth-buttons {
    margin-top: 0.5rem;
}


.tm-user-avatar img {
    border-radius: 50%;
}

.tm-user-name {
    font-weight: 600;
}

.tm-user-role {
    font-size: 0.8rem;
    color: var(--tm-gray);
}

.tm-user-actions {
    margin-left: auto;
}

/* ===== Botones ===== */
.tm-button {
    display: inline-block;
    padding: 10px 20px;
    border: 1px solid transparent;
    border-radius: 5px;
    background-color: var(--tm-primary-color, #0073aa);
    color: #fff;
    text-decoration: none;
    font-size: 1em;
    font-weight: 600;
    text-align: center;
    cursor: pointer;
    transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease;
    white-space: nowrap;
}

.tm-button:hover,
.tm-button:focus {
    background-color: var(--tm-primary-dark-color, #005a87);
    color: #fff;
    outline: none;
}

.tm-button-sm {
    padding: 8px 15px;
    font-size: 0.9em;
}

.tm-button-block {
    display: block;
    width: 100%;
}

.tm-button-outline {
    background-color: transparent;
    color: var(--tm-primary-color, #0073aa);
    border: 1px solid var(--tm-primary-color, #0073aa);
}

.tm-button-outline:hover,
.tm-button-outline:focus {
    background-color: var(--tm-primary-color, #0073aa);
    color: #fff;
}

.tm-button-primary {
    background-color: var(--tm-accent-color, #d9534f);
    border-color: var(--tm-accent-color, #d9534f);
}

.tm-button-primary:hover,
.tm-button-primary:focus {
    background-color: var(--tm-accent-dark-color, #c9302c);
    border-color: var(--tm-accent-dark-color, #c9302c);
}

.tm-link-back {
    display: inline-block;
    color: var(--tm-gray);
    text-decoration: none;
    font-size: 0.9rem;
    margin-top: 1rem;
}

.tm-link-back:hover {
    color: var(--tm-dark);
    text-decoration: underline;
}

/* ===== Tours Grid ===== */
.tm-tours-filter {
    background-color: #fff;
    padding: 10px 15px 30px; 
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    text-align: center;
}

.tm-tours-filter h2 {
    margin-top: 0;
    margin-bottom: 25px;
    font-size: 1.8em;
    color: #333;
}

.tm-filter-form {
    display: flex;
    flex-direction: column;
    align-items: center;
    gap: 15px;
}

.tm-filter-group {
    width: 100%;
    max-width: 400px;
    text-align: left;
}

.tm-filter-group label {
    display: block;
    margin-bottom: 8px;
    font-weight: 600;
    color: #555;
}

.tm-filter-group input[type="text"] {
    width: 100%;
    padding: 12px 15px;
    border: 1px solid #ccc;
    border-radius: 5px;
    font-size: 1em;
    box-sizing: border-box;
}

.tm-filter-actions {
    display: flex;
    gap: 10px;
    margin-top: 10px;
    justify-content: center;
    width: 100%;
    max-width: 400px;
}

.tm-filter-actions .tm-button.tm-button-primary {
    padding: 12px 25px;
    font-size: 1.1em;
    flex-grow: 1;
}

.tm-filter-actions .tm-button.tm-button-outline {
    padding: 12px 20px;
    flex-grow: 1;
}

.tm-tours-grid {
    display: grid;
    grid-template-columns: 90%;
    justify-content: space-evenly;
    background: #fff;
    row-gap: 15px;
    padding: 10px;
}

.tm-tour-card {
    background-color: #fff;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
    transition: transform 0.2s ease-in-out, box-shadow 0.2s ease-in-out;
    display: flex;
    flex-direction: column;
}

.tm-tour-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 6px 15px rgba(0, 0, 0, 0.15);
}

.tm-tour-card-link {
    text-decoration: none;
    color: inherit;
    display: flex;
    flex-direction: column;
    height: 100%;
}

.tm-tour-image {
    position: relative;
    width: 100%;
    padding-top: 66.66%;
    overflow: hidden;
    background-color: #eee;
}

.tm-tour-image img {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.tm-tour-card:hover .tm-tour-image img {
    transform: scale(1.05);
}

.tm-tour-image .tm-no-image {
    position: absolute;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    display: flex;
    flex-direction: column;
    justify-content: center;
    align-items: center;
    color: #aaa;
}

.tm-tour-image .tm-no-image i {
    font-size: 3em;
    margin-bottom: 10px;
}

/* .tm-tour-price-badge {
    position: absolute;
    top: 10px;
    right: 10px;
    background-color: rgba(0, 0, 0, 0.7);
    color: #fff;
    padding: 5px 10px;
    border-radius: 4px;
    font-size: 0.9em;
    font-weight: bold;
} */

.tm-tour-content {
    padding: 15px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.tm-departure-points{
    font-size: 12px;
    margin:0  0 10px
}

.tm-tour-title {
    font-size: 1.15em;
    margin: 0 0 0 0;
    color: var(--tm-dark-gray, #555);
    line-height: 1.3;
    font-weight: 600;
}

/* Nuevo estilo para el precio dentro del contenido */
.tm-tour-price {
    font-weight: 700;
    color: var(--tm-accent-color, #e74c3c);
    margin-bottom: 8px;
    font-size: 1.1em;
}

/* Nuevo estilo para la fecha dentro del contenido */
.tm-tour-date {
    font-size: 0.9em;
    color: var(--tm-dark-gray, #666);
    margin-bottom: 15px;
    display: flex;
    align-items: center;
    gap: 5px;
    text-transform: capitalize;
}

.tm-tour-date i {
     color: var(--tm-medium-gray, #ccc);
}

.tm-tour-actions {
    margin-top: auto;
}

.tm-tour-actions .tm-button {
   width: 100%;
   background-color: var(--tm-primary-color, #2c3e50);
   border-color: var(--tm-primary-color, #2c3e50);
}

.tm-tour-actions .tm-button:hover {
    background-color: var(--tm-primary-dark-color, #1a252f);
    border-color: var(--tm-primary-dark-color, #1a252f);
}

.tm-pagination {
    margin-top: 30px;
    padding-top: 20px;
    border-top: 1px solid #eee;
}

.tm-pagination .page-numbers {
    display: inline-block;
    padding: 0.5rem 0.75rem;
    background-color: white;
    border: 1px solid #ddd;
    text-decoration: none;
    color: var(--tm-dark);
    margin: 0 0.25rem;
    border-radius: 4px;
}

.tm-pagination .current {
    background-color: var(--tm-secondary);
    color: white;
    border-color: var(--tm-secondary);
}

.tm-no-tours {
    background-color: #fff;
    padding: 30px;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0,0,0,0.05);
}

.tm-no-tours p {
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #666;
}

/* ===== Auth Forms ===== */
.tm-auth-container {
    max-width: 500px;
    margin: 0 auto;
    background-color: white;
    border-radius: var(--tm-border-radius);
    box-shadow: var(--tm-box-shadow);
    padding: 2rem 1.5rem;
}

.tm-auth-header {
    text-align: center;
    margin-bottom: 2rem;
}

.tm-tabs-nav {
    display: flex;
    border-bottom: 1px solid #ddd;
    margin-bottom: 1.5rem;
}

.tm-tab-link {
    flex: 1;
    text-align: center;
    padding: 0.75rem;
    color: var(--tm-gray);
    text-decoration: none;
    font-weight: 600;
    position: relative;
}

.tm-tab-link.active {
    color: var(--tm-primary);
}

.tm-tab-link.active::after {
    content: '';
    position: absolute;
    bottom: -1px;
    left: 0;
    width: 100%;
    height: 2px;
    background-color: var(--tm-primary);
}

.tm-tab-content {
    display: none;
}

.tm-tab-content.active {
    display: block;
}

.tm-form-group {
    margin-bottom: 1.25rem;
}

.tm-form-group label {
    display: block;
    margin-bottom: 0.5rem;
    font-weight: 500;
}

.tm-form-group input[type="text"],
.tm-form-group input[type="email"],
.tm-form-group input[type="password"] {
    width: 100%;
    padding: 0.75rem;
    border: 1px solid #ddd;
    border-radius: var(--tm-border-radius);
    font-size: 1rem;
}

.tm-form-group small {
    display: block;
    margin-top: 0.25rem;
    color: var(--tm-gray);
    font-size: 0.8rem;
}

.tm-checkbox {
    display: flex;
    align-items: center;
}

.tm-checkbox input {
    margin-right: 0.5rem;
}

.tm-checkbox label {
    margin-bottom: 0;
    font-weight: normal;
}

.tm-form-message {
    border-radius: var(--tm-border-radius);
    display: none;
}

.tm-message-error {
    display: block;
    background-color: #fdf2f2;
    color: var(--tm-danger);
    border: 1px solid #fbd5d5;
}

.tm-message-success {
    display: block;
    background-color: #f0fff4;
    color: var(--tm-success);
    border: 1px solid #c6f6d5;
}

.tm-role-cards {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem;
    margin-top: 0.5rem;
}

.tm-role-card {
    position: relative;
}

.tm-role-card input[type="radio"] {
    position: absolute;
    opacity: 0;
}

.tm-role-card label {
    display: block;
    border: 1px solid #ddd;
    border-radius: var(--tm-border-radius);
    padding: 1rem;
    text-align: center;
    cursor: pointer;
    transition: var(--tm-transition);
}

.tm-role-card input[type="radio"]:checked + label {
    border-color: var(--tm-secondary);
    background-color: rgba(78, 205, 196, 0.1);
}

.tm-role-icon {
    font-size: 1.5rem;
    margin-bottom: 0.5rem;
}

.tm-icon-turista::before {
    content: '🧳';
}

.tm-icon-organizador::before {
    content: '🏢';
}

.tm-role-title {
    font-weight: 600;
    margin-bottom: 0.25rem;
}

.tm-role-desc {
    font-size: 0.8rem;
    color: var(--tm-gray);
}

.tm-auth-footer {
    text-align: center;
    margin-top: 1.5rem;
}

/* ===== Dashboard Styles ===== */
.tm-dashboard-stats {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 1rem;
    padding: 0 1rem;
    margin-bottom: 1.5rem;
}

.tm-stat-card {
    background-color: white;
    border-radius: var(--tm-border-radius);
    box-shadow: var(--tm-box-shadow);
    padding: 1rem;
    text-align: center;
}

.tm-stat-value {
    font-size: 1.5rem;
    font-weight: 700;
    color: var(--tm-secondary);
    margin-bottom: 0.25rem;
}

.tm-stat-label {
    font-size: 0.8rem;
    color: var(--tm-gray);
}

.tm-dashboard-actions {
    padding: 0 5px;
}

.tm-dashboard-content {
    padding: 0 1rem 2rem;
}

.tm-section-title h2 {
    font-size: 1.2rem;
    font-weight: 600;
}

.tm-no-tours-message,
.tm-no-reservations-message {
    background-color: white;
    border-radius: var(--tm-border-radius);
    box-shadow: var(--tm-box-shadow);
    padding: 2rem 1rem;
    text-align: center;
    margin-bottom: 2rem;
}

.tm-no-tours-message p,
.tm-no-reservations-message p {
    margin-bottom: 1rem;
    color: var(--tm-gray);
}

.tm-dashboard-footer {
    margin-top: auto;
    text-align: center;
    padding: 1rem;
    border-top: 1px solid #eee;
}

/* Tours Table */
.tm-tours-table {
    background-color: white;
    border-radius: var(--tm-border-radius);
    box-shadow: var(--tm-box-shadow);
    overflow: hidden;
}

.tm-table-header {
    background-color: #f9f9f9;
    font-weight: 600;
    border-bottom: 1px solid #eee;
}

.tm-table-row {
    border-bottom: 1px solid #eee;
}

.tm-table-row:last-child {
    border-bottom: none;
}

.tm-table-cell {
    padding: 0.75rem;
}

.tm-no-image-sm {
    background-color: #eee;
    color: var(--tm-gray);
    height: 50px;
    width: 50px;
    display: flex;
    align-items: center;
    justify-content: center;
    font-size: 0.7rem;
    border-radius: 4px;
}

.tm-cell-image img {
    width: 50px;
    height: 50px;
    object-fit: cover;
    border-radius: 4px;
}

.tm-tour-title {
    font-weight: 600;
}
p.tm-tour-organizer {
    font-size: 12px;
}
.select2-container {
    width: 100% !important;
}
.tm-tour-date {
    font-size: 0.8rem;
    color: var(--tm-gray);
}

.tm-status-badge {
    display: inline-block;
    padding: 0.2rem 0.5rem;
    border-radius: 20px;
    font-size: 0.7rem;
    font-weight: 600;
}

.tm-status-published {
    background-color: rgba(47, 204, 113, 0.2);
    color: var(--tm-success);
}

.tm-status-pending {
    background-color: rgba(241, 196, 15, 0.2);
    color: var(--tm-warning);
}

.tm-status-draft {
    background-color: rgba(189, 195, 199, 0.2);
    color: var(--tm-gray);
}

.tm-action-buttons {
    display: flex;
    gap: 0.5rem;
}

/* Recommendations */
.tm-tours-recommendations {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1rem;
    margin-bottom: 2rem;
}

.tm-recommendation-card {
    background-color: white;
    border-radius: var(--tm-border-radius);
    box-shadow: var(--tm-box-shadow);
    overflow: hidden;
    display: flex;
    flex-direction: column;
}

.tm-rec-image {
    height: 140px;
    overflow: hidden;
    background-color: #eee;
}

.tm-rec-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tm-rec-image .tm-no-image {
    height: 100%;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #eee;
    color: var(--tm-gray);
    font-size: 0.9em;
}

.tm-rec-content {
    padding: 1rem;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.tm-rec-title {
    font-size: 1rem;
    margin-bottom: 0.5rem;
    font-weight: 600;
    color: var(--tm-dark-gray, #555);
}

.tm-rec-price {
    font-weight: 700;
    color: var(--tm-accent-color, #e74c3c);
    margin-bottom: 0.5rem;
    font-size: 1.1em;
}

.tm-rec-date {
    font-size: 0.9rem;
    color: var(--tm-dark-gray, #666);
    margin-bottom: 1rem;
    display: flex;
    align-items: center;
    gap: 5px;
}

.tm-rec-date i {
     margin-right: 0;
     color: var(--tm-medium-gray, #ccc);
}

.tm-rec-actions {
    margin-top: auto;
}

.tm-rec-actions .tm-button {
    width: 100%;
    background-color: var(--tm-primary-color, #2c3e50);
    border-color: var(--tm-primary-color, #2c3e50);
}

.tm-rec-actions .tm-button:hover {
    background-color: var(--tm-primary-dark-color, #1a252f);
    border-color: var(--tm-primary-dark-color, #1a252f);
}

/* ===== Single Tour Page ===== */
.tm-tour-header-nav {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.tm-back-button {
    display: flex;
    align-items: center;
    color: var(--tm-dark);
    text-decoration: none;
    font-weight: 500;
}

.tm-icon-back::before {
    content: '←';
    margin-right: 0.5rem;
}

.tm-tour-single {
    padding: 0 1rem;
    margin-bottom: 2rem;
}

.tm-tour-image-main {
    height: 250px;
    overflow: hidden;
    border-radius: var(--tm-border-radius);
    margin-bottom: 1rem;
}

.tm-tour-image-main img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tm-tour-content-main {
    background-color: white;
    border-radius: var(--tm-border-radius);
    box-shadow: var(--tm-box-shadow);
    padding: 1.5rem;
}

.tm-tour-title-main {
    font-size: 1.5rem;
    font-weight: 700;
    margin-bottom: 1rem;
    color: var(--tm-dark);
}

.tm-tour-meta-main {
    display: grid;
    grid-template-columns: 1fr;
    gap: 0.75rem;
    margin-bottom: 1.5rem;
    font-size: 1rem;
}

.tm-tour-price-main {
    font-size: 1.2rem;
    font-weight: 700;
    color: var(--tm-primary);
}

.tm-tour-dates-main,
.tm-tour-cupo-main,
.tm-tour-organizador {
    display: flex;
    align-items: center;
}

.tm-tour-dates-main i,
.tm-tour-cupo-main i,
.tm-tour-organizador i {
    margin-right: 0.5rem;
}

.tm-tour-action-buttons {
    margin: 1.5rem 0;
}

.tm-tour-description h3,
.tm-tour-meeting-points h3,
.tm-tour-includes h3,
.tm-tour-not-includes h3 {
    font-size: 1.2rem;
    margin-bottom: 0.75rem;
    font-weight: 600;
    color: var(--tm-dark);
}

.tm-tour-description p {
    margin-bottom: 1rem;
    line-height: 1.6;
}

.tm-tour-meeting-list ul,
.tm-tour-includes-list,
.tm-tour-not-includes-list {
    list-style: none;
    padding: 0;
    margin-bottom: 1.5rem;
}

.tm-tour-meeting-list li,
.tm-tour-includes-list li,
.tm-tour-not-includes-list li {
    margin-bottom: 0.5rem;
    padding-left: 1.5rem;
    position: relative;
    line-height: 1.5;
}

.tm-tour-meeting-list li i,
.tm-tour-includes-list li i,
.tm-tour-not-includes-list li i {
    position: absolute;
    left: 0;
    top: 0.2rem;
}

.tm-icon-location::before {
    content: '📍';
}

.tm-icon-check::before {
    content: '✅';
}

.tm-icon-close::before {
    content: '❌';
}

.tm-tour-includes-section {
    margin-bottom: 1.5rem;
}

.tm-tour-row {
    display: grid;
    grid-template-columns: 1fr;
    gap: 1.5rem;
}

.tm-tour-actions-bottom {
    margin-top: 2rem;
}

.tm-tour-related {
    padding: 0 1rem;
    margin-bottom: 2rem;
}

.tm-tour-related h3 {
    font-size: 1.2rem;
    margin-bottom: 1rem;
    font-weight: 600;
}

.tm-no-related-tours {
    background-color: white;
    border-radius: var(--tm-border-radius);
    box-shadow: var(--tm-box-shadow);
    padding: 1rem;
    text-align: center;
}

.tm-tour-footer {
    text-align: center;
    margin-top: auto;
    padding: 1rem;
    border-top: 1px solid #eee;
}

/* ===== Media Queries ===== */
@media (min-width: 768px) {
    .tm-app-container {
        max-width: 1200px;
        margin: 0 auto;
    }
    
    .tm-title {
        font-size: 2rem;
    }
    
    .tm-tours-grid {
        display: grid;
        grid-template-columns: repeat(2, 1fr);
        gap: 1.5rem;
    }
    
    .tm-tour-card {
        margin-bottom: 0;
    }
    
    .tm-recommendation-card {
        flex-direction: row;
    }
    
    .tm-rec-image {
        width: 40%;
        height: auto;
    }
    
    .tm-tours-recommendations {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .tm-recommendation-card {
        flex-direction: column;
    }
    
    /* Mostrar la tabla como tabla en escritorio */
    .tm-table-header {
        display: grid;
        grid-template-columns: 80px 2fr 1fr 1fr 1fr;
        align-items: center;
    }
    
    .tm-table-row {
        display: grid;
        grid-template-columns: 80px 2fr 1fr 1fr 1fr;
        align-items: center;
    }
    
    /* Estilos de Single Tour para escritorio */
    .tm-tour-image-main {
        height: 350px;
    }
    
    .tm-tour-meta-main {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .tm-tour-row {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (min-width: 992px) {
    .tm-tours-grid {
        grid-template-columns: repeat(3, 1fr);
    }
    
    .tm-tour-single {
        display: grid;
        grid-template-columns: 1fr 2fr;
        gap: 2rem;
        align-items: start;
    }
    
    .tm-tour-image-main {
        height: auto;
        margin-bottom: 0;
    }
    
    .tm-tour-image-main img {
        height: auto;
        max-height: 600px;
    }
}

/* ===== Font Icons ===== */
.tm-icon-price::before {
    content: '💰';
}

.tm-icon-calendar::before {
    content: '📅';
}

.tm-icon-users::before {
    content: '👥';
}

.tm-icon-plus::before {
    content: '+';
    margin-right: 0.25rem;
}

.tm-icon-search::before {
    content: '🔍';
    margin-right: 0.25rem;
}

/* Estilos adicionales generales */
.tm-tour-section {
    margin-bottom: 30px;
}

.tm-tour-section-title {
    font-size: 24px;
    margin-bottom: 20px;
    color: #333;
    font-weight: 600;
}

/* Para la vista individual de tour */
.tm-tour-single-container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 15px;
}

/* Secciones */
.tm-section {
    margin-bottom: 40px;
    padding: 20px;
    background: #fff;
    border-radius: 8px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.1);
}

/* Ajustes específicos para diferentes tipos de dispositivos */
@media (max-width: 768px) {
    .tm-tour-single-container {
        padding: 0 ;
        margin: 20px auto;
    }
    
    .tm-section {
        padding: 15px;
        margin-bottom: 20px;
    }
    
    .tm-tour-section-title {
        font-size: 20px;
    }
}

/* Estilos del menú lateral desplegable (para ambos paneles) */
.tm-user-profile {
    display: flex;
    align-items: center;
    cursor: pointer;
    padding: 8px;
    border-radius: var(--tm-border-radius);
    transition: var(--tm-transition);
}
.tm-dashboard-header {
    display: flex;
        justify-content: space-between;
        align-items: center;
        padding: 5px;
        text-align: center;
}
.tm-user-profile:hover {
    background-color: rgba(0, 0, 0, 0.05);
}

.tm-menu-icon {
    color: var(--tm-gray);
}

.tm-sidebar-menu {
    position: fixed;
    top: 0;
    right: -100%;
    width: var(--tm-sidebar-width);
    height: 100vh;
    background-color: white;
    box-shadow: -2px 0 10px rgba(0, 0, 0, 0.1);
    z-index: 1000;
    overflow-y: auto;
    transition: right 0.3s ease;
}

.tm-sidebar-menu.active {
    right: 0;
}

.tm-sidebar-header {
    padding: 20px;
    background-color: var(--tm-secondary);
    color: white;
    position: relative;
}

.tm-sidebar-close {
    position: absolute;
    top: 15px;
    right: 15px;
    cursor: pointer;
    font-size: 18px;
    width: 30px;
    height: 30px;
    display: flex;
    align-items: center;
    justify-content: center;
    border-radius: 50%;
    background-color: rgba(255, 255, 255, 0.2);
    transition: var(--tm-transition);
}

.tm-sidebar-close:hover {
    background-color: rgba(255, 255, 255, 0.3);
}

.tm-sidebar-user {
    text-align: center;
    padding: 10px 0;
}

.tm-sidebar-user img {
    border-radius: 50%;
    border: 3px solid white;
    margin-bottom: 10px;
}

.tm-sidebar-user h3 {
    margin: 5px 0;
    font-size: 1.2rem;
}

.tm-sidebar-user p {
    margin: 0;
    font-size: 0.9rem;
    opacity: 0.8;
}

.tm-sidebar-content {
    padding: 15px;
}

.tm-menu-section {
    margin-bottom: 15px;
}

.tm-menu-section h4 {
    font-size: 1rem;
    font-weight: 600;
    margin-bottom: 10px;
    color: var(--tm-dark);
}

.tm-menu-section h4 i {
    margin-right: 10px;
    color: var(--tm-secondary);
}

.tm-menu-section ul {
    list-style: none;
    padding: 0;
    margin: 0 0 0 15px;
}

.tm-menu-section ul li {
    margin-bottom: 8px;
}

.tm-menu-section ul li a {
    display: flex;
    align-items: center;
    color: var(--tm-dark);
    text-decoration: none;
    font-size: 0.9rem;
    padding: 6px 10px;
    border-radius: var(--tm-border-radius);
    transition: var(--tm-transition);
}

.tm-menu-section ul li a:hover {
    background-color: rgba(78, 205, 196, 0.1);
    color: var(--tm-secondary);
}

.tm-menu-section ul li a i {
    margin-right: 10px;
    font-size: 0.85rem;
    width: 20px;
    text-align: center;
}

.tm-menu-divider {
    height: 1px;
    background-color: #eeeeee;
    margin: 15px 0;
}

.tm-logout-section {
    margin-top: 20px;
}

.tm-logout-section a {
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 10px;
    background-color: #f8f8f8;
    color: var(--tm-danger);
    border-radius: var(--tm-border-radius);
    text-decoration: none;
    font-weight: 500;
    transition: var(--tm-transition);
}

.tm-logout-section a:hover {
    background-color: rgba(231, 76, 60, 0.1);
}

.tm-logout-section a i {
    margin-right: 10px;
}

.tm-sidebar-overlay {
    position: fixed;
    top: 0;
    left: 0;
    width: 100%;
    height: 100%;
    background-color: rgba(0, 0, 0, 0.5);
    z-index: 999;
    opacity: 0;
    visibility: hidden;
    transition: all 0.3s ease;
}

.tm-sidebar-overlay.active {
    opacity: 1;
    visibility: visible;
}

body.menu-open {
    overflow: hidden;
}

/* Initial Message Styles */
.tm-initial-message {
    text-align: center;
    padding: 40px 20px;
    background-color: #fff;
    border-radius: 8px;
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.05);
    margin: 10px auto;
    width:100%
}

.tm-initial-message p {
    margin-bottom: 15px;
    font-size: 1.1em;
    color: #666;
    line-height: 1.6;
}
h3.tm-section-title.tm-grid-span-full{
    margin-bottom: 0;
    padding-bottom: 0px;
}
.tm-initial-message a {
    color: var(--tm-primary-color, #0073aa);
    text-decoration: underline;
}

/* Span full width for messages/pagination inside grid */
.tm-grid-span-full {
    grid-column: 1 / -1;
    text-align: center;
    padding: 20px;

}
body.home.wp-singular {
    background: #f4e3c4;

    .tm-app-container {
        background: #f4e3c4;
    }
    
}
body.tm-app-mode .tm-app-container {
   min-height: 100vh; /* Ocupar toda la altura de la ventana */
   min-height: calc(var(--vh, 1vh) * 100); /* Para móviles iOS/Android */

}

/* Estilos para el cálculo de altura en móviles */
:root {
  --vh: 1vh; /* Fallback */
}

/* Estilos para la tabla de reservas en el panel del turista */
.tm-bookings-table {
    width: 100%;
    border-collapse: collapse;
    margin: 20px 0;
    background-color: #fff;
    border-radius: var(--tm-border-radius);
    box-shadow: var(--tm-box-shadow);
    overflow: hidden;
}

.tm-bookings-table th,
.tm-bookings-table td {
    padding: 15px;
    text-align: left;
    border-bottom: 1px solid #e0e0e0;
}

.tm-bookings-table th {
    background-color: var(--tm-primary-color, #2c3e50);
    color: #fff;
    font-weight: 600;
    text-transform: uppercase;
    font-size: 0.9em;
    letter-spacing: 0.5px;
}

.tm-bookings-table tr:hover {
    background-color: rgba(0, 0, 0, 0.02);
}

.tm-bookings-table tr:last-child td {
    border-bottom: none;
}

.tm-booking-tour a {
    color: var(--tm-accent-color, #e74c3c);
    text-decoration: none;
    font-weight: 600;
    transition: color 0.2s ease;
}

.tm-booking-tour a:hover {
    color: var(--tm-accent-dark-color, #c0392b);
    text-decoration: underline;
}

.tm-booking-date {
    color: var(--tm-dark-gray, #555);
    font-size: 0.95em;
}

.tm-booking-seats {
    font-size: 0.95em;
    color: var(--tm-dark-gray, #555);
}

.tm-booking-total {
    font-weight: 700;
    color: var(--tm-primary-color, #2c3e50);
}

.tm-status-badge {
    display: inline-block;
    padding: 6px 10px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tm-status-approved {
    background-color: #e6f7ee;
    color: #2e7d32;
    border: 1px solid rgba(46, 125, 50, 0.2);
}

.tm-status-pending {
    background-color: #fff8e1;
    color: #f57c00;
    border: 1px solid rgba(245, 124, 0, 0.2);
}

.tm-booking-actions .tm-button-sm {
    padding: 8px 15px;
    font-size: 0.85em;
    background-color: var(--tm-primary-color, #2c3e50);
    color: #fff;
    border: none;
    border-radius: 4px;
    transition: background-color 0.2s ease;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    font-weight: 600;
}

.tm-booking-actions .tm-button-sm:hover {
    background-color: var(--tm-primary-dark-color, #1a252f);
}

@media (max-width: 768px) {
    .tm-bookings-table {
        display: block;
        overflow-x: auto;
        border-radius: 8px;
    }
    
    .tm-bookings-table th,
    .tm-bookings-table td {
        padding: 12px;
        min-width: 100px;
    }
    
    .tm-bookings-table th {
        font-size: 0.85em;
    }
    
    .tm-status-badge {
        padding: 4px 8px;
        font-size: 11px;
    }
    
    .tm-booking-actions .tm-button-sm {
        padding: 6px 12px;
        font-size: 0.8em;
    }
}

.tm-no-reservations-message {
    background-color: white;
    border-radius: var(--tm-border-radius);
    box-shadow: var(--tm-box-shadow);
    padding: 40px 20px;
    text-align: center;
    margin-bottom: 2rem;
    border: 1px solid rgba(0,0,0,0.05);
}

.tm-no-reservations-message p {
    margin-bottom: 1rem;
    color: var(--tm-dark-gray, #555);
    font-size: 1.1em;
    line-height: 1.5;
}

.tm-no-reservations-message .tm-button {
    margin-top: 15px;
    padding: 10px 25px;
    font-weight: 600;
    letter-spacing: 0.5px;
}

/* Estilos para la tabla de reservas */
.tm-user-reservations-table {
    width: 100%;
    border-collapse: collapse;
    margin-bottom: 2rem;
    background-color: white;
    border-radius: var(--tm-border-radius);
    box-shadow: var(--tm-box-shadow);
    overflow: hidden;
}

.tm-user-reservations-table th {
    background-color: var(--tm-primary-color);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
    padding: 15px 12px;
    text-align: left;
    font-size: 0.9em;
}

.tm-user-reservations-table td {
    padding: 15px 12px;
    border-bottom: 1px solid rgba(0,0,0,0.08);
    vertical-align: middle;
}

.tm-user-reservations-table tr:hover {
    background-color: rgba(0,0,0,0.02);
}

.tm-user-reservations-table tr:last-child td {
    border-bottom: none;
}

/* Estilos para el nombre del tour */
.tm-reservation-tour-name {
    font-weight: 600;
    color: var(--tm-accent-color);
    text-decoration: none;
    transition: color 0.2s ease;
}

.tm-reservation-tour-name:hover {
    color: var(--tm-accent-dark-color);
    text-decoration: underline;
}

/* Estilos para la fecha de reserva */
.tm-reservation-date {
    color: var(--tm-dark-gray, #555);
    font-size: 0.95em;
}

/* Estilos para los asientos */
.tm-reservation-seats {
    font-weight: 500;
}

.tm-reservation-seat-numbers {
    font-size: 0.9em;
    color: var(--tm-dark-gray, #555);
    margin-top: 3px;
}

/* Estilos para el total */
.tm-reservation-total {
    font-weight: 700;
    color: var(--tm-primary-dark-color);
}

/* Estilos para el estado */
.tm-reservation-status {
    display: inline-block;
    padding: 5px 10px;
    border-radius: 20px;
    font-size: 0.85em;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

.tm-status-pending {
    background-color: rgba(241, 196, 15, 0.15);
    color: #f39c12;
    border: 1px solid rgba(241, 196, 15, 0.3);
}

.tm-status-approved {
    background-color: rgba(46, 204, 113, 0.15);
    color: #27ae60;
    border: 1px solid rgba(46, 204, 113, 0.3);
}

/* Estilos para las acciones */
.tm-reservation-actions .tm-button {
    padding: 8px 15px;
    background-color: var(--tm-primary-color);
    color: white;
    border: none;
    border-radius: var(--tm-border-radius, 4px);
    cursor: pointer;
    font-weight: 500;
    font-size: 0.9em;
    transition: background-color 0.2s ease;
    text-decoration: none;
    display: inline-block;
}

.tm-reservation-actions .tm-button:hover {
    background-color: var(--tm-primary-dark-color);
}

/* Responsividad */
@media (max-width: 768px) {
    .tm-user-reservations-table {
        display: block;
        overflow-x: auto;
    }
} 