:root { 
    --ttm-primary-color: #0073aa; 
    --ttm-button-color: #0085ba; 
}

/* Grid Layout */
.ttm-tours-grid { 
    display: grid; 
    grid-gap: 30px; 
    margin: 20px 0;
}
.ttm-tours-grid.columns-1 { grid-template-columns: 1fr; }
.ttm-tours-grid.columns-2 { grid-template-columns: repeat(2, 1fr); }
.ttm-tours-grid.columns-3 { grid-template-columns: repeat(3, 1fr); }
.ttm-tours-grid.columns-4 { grid-template-columns: repeat(4, 1fr); }

@media (max-width: 992px) {
    .ttm-tours-grid.columns-3, .ttm-tours-grid.columns-4 { grid-template-columns: repeat(2, 1fr); }
}
@media (max-width: 768px) {
    .ttm-tours-grid { grid-template-columns: 1fr !important; }
}

/* Tour Card */
.ttm-tour-card { 
    border: 1px solid #eee; 
    border-radius: 8px;
    overflow: hidden; 
    box-shadow: 0 4px 10px rgba(0,0,0,0.05); 
    background: #fff;
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    display: flex;
    flex-direction: column;
}
.ttm-tour-card:hover {
    transform: translateY(-5px);
    box-shadow: 0 10px 20px rgba(0,0,0,0.1);
}

/* Thumbnail & Badge */
.ttm-thumbnail {
    position: relative;
}
.ttm-thumbnail img {
    width: 100%;
    height: 220px;
    object-fit: cover;
    display: block;
}
.ttm-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: var(--ttm-primary-color);
    color: #fff;
    padding: 5px 12px;
    border-radius: 20px;
    font-size: 12px;
    font-weight: bold;
    z-index: 1;
}

/* Card Content */
.ttm-content {
    padding: 20px;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}
.ttm-title {
    margin: 0 0 10px 0;
    font-size: 18px;
}
.ttm-title a { 
    text-decoration: none; 
    color: #333; 
}
.ttm-title a:hover {
    color: var(--ttm-primary-color);
}
.ttm-meta {
    font-size: 13px;
    color: #777;
    margin-bottom: 10px;
    display: flex;
    gap: 15px;
}
.ttm-excerpt {
    font-size: 14px;
    color: #555;
    margin-bottom: 20px;
    flex-grow: 1;
}

/* Card Footer */
.ttm-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    border-top: 1px solid #eee;
    padding-top: 15px;
}
.ttm-price ins {
    text-decoration: none;
    font-weight: bold;
    font-size: 18px;
    color: var(--ttm-primary-color);
}
.ttm-price del {
    color: #999;
    font-size: 14px;
    margin-right: 5px;
}
.ttm-buttons {
    display: flex;
    gap: 10px;
}
.ttm-button { 
    background-color: var(--ttm-button-color); 
    color: #fff !important; 
    padding: 8px 15px; 
    text-decoration: none !important; 
    border-radius: 4px; 
    font-size: 13px;
    font-weight: 600;
    border: none;
    cursor: pointer;
    transition: opacity 0.3s;
}
.ttm-button:hover {
    opacity: 0.9;
}
.ttm-whatsapp-button {
    background-color: #25D366; /* لون الواتساب الافتراضي */
}

/* Modal Form Styles */
#ttm-booking-modal-overlay {
    position: fixed; top: 0; left: 0; width: 100%; height: 100%;
    background: rgba(0,0,0,0.6); z-index: 9999;
}
#ttm-booking-form-modal { 
    position: fixed; top: 50%; left: 50%; transform: translate(-50%, -50%); 
    background: #fff; padding: 30px; z-index: 10000; 
    border-radius: 8px; width: 90%; max-width: 500px;
    box-shadow: 0 5px 30px rgba(0,0,0,0.3); 
}
.ttm-close-modal {
    position: absolute; top: 15px; right: 20px;
    font-size: 24px; cursor: pointer; color: #999;
}
.ttm-close-modal:hover { color: #333; }
#ttm-booking-form h3 { margin-top: 0; margin-bottom: 20px; }
.ttm-form-group { margin-bottom: 15px; }
.ttm-form-row { display: flex; gap: 15px; }
.ttm-form-row .ttm-form-group { flex: 1; }
#ttm-booking-form label { display: block; margin-bottom: 5px; font-weight: 600; font-size: 14px; }
#ttm-booking-form input[type="text"],
#ttm-booking-form input[type="tel"],
#ttm-booking-form input[type="email"],
#ttm-booking-form input[type="date"],
#ttm-booking-form input[type="number"],
#ttm-booking-form textarea {
    width: 100%; padding: 10px; border: 1px solid #ddd; border-radius: 4px;
}
.ttm-submit-btn { width: 100%; padding: 12px; font-size: 16px; margin-top: 10px; }
.ttm-form-messages { margin-top: 15px; padding: 10px; border-radius: 4px; display: none; }
.ttm-form-messages.success { background: #d4edda; color: #155724; border: 1px solid #c3e6cb; }
.ttm-form-messages.error { background: #f8d7da; color: #721c24; border: 1px solid #f5c6cb; }