
/* --- פריסה כללית --- */
.tdm-layout-container { display: flex; gap: 30px; margin-top: 30px; align-items: flex-start; }
.tdm-sidebar { width: 28%; flex-shrink: 0; }
.tdm-main-content { flex-grow: 1; width: 72%; }
@media (max-width: 900px) {
    .tdm-layout-container { flex-direction: column; }
    .tdm-sidebar, .tdm-main-content { width: 100%; }
}

/* --- Sticky Sidebar --- */
.tdm-sticky-filters {
    background: #fff; padding: 25px; border-radius: 12px;
    box-shadow: 0 4px 15px rgba(0,0,0,0.05); border: 1px solid #eee;
    position: sticky; top: 20px; 
}
.tdm-sticky-filters h3 { margin-top: 0; margin-bottom: 20px; border-bottom: 2px solid #f0f0f0; padding-bottom: 10px; }
.filter-group { margin-bottom: 25px; }
.filter-group h4 { margin-bottom: 10px; font-size: 1rem; color: #333; }
.filter-group label { display: block; margin-bottom: 8px; cursor: pointer; font-size: 0.95rem; color: #555; transition: color 0.2s; }
.filter-group label:hover { color: #0073aa; }
.filter-group input[type="checkbox"] { margin-left: 8px; accent-color: #0073aa; }

/* --- Cards --- */
.attractions-grid, .destinations-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 20px; }
.attraction-card, .destination-card {
    background: #fff; border-radius: 12px; box-shadow: 0 4px 15px rgba(0,0,0,0.08); overflow: hidden;
    cursor: pointer; transition: transform 0.3s ease, box-shadow 0.3s ease; border: 1px solid #f0f0f0;
    position: relative; display: flex; flex-direction: column;
}
.attraction-card:hover, .destination-card:hover { transform: translateY(-7px); box-shadow: 0 12px 25px rgba(0,0,0,0.15); }
.card-image-wrapper { height: 180px; overflow: hidden; background-color: #f9f9f9; position: relative; width: 100%; }
.card-image-wrapper img { width: 100%; height: 100%; object-fit: cover; transition: transform 0.5s ease; }
.attraction-card:hover img, .destination-card:hover img { transform: scale(1.05); }

/* מחיר */
.price-tag { color: #0073aa; font-weight: bold; font-size: 0.95em; margin-bottom: 5px; }
.price-tag.free { color: #2ecc71; } /* צבע ירוק לחינם */

.category-badge { position: absolute; top: 10px; right: 10px; color: #fff; padding: 4px 10px; border-radius: 4px; font-size: 0.8rem; font-weight: bold; box-shadow: 0 2px 5px rgba(0,0,0,0.3); z-index: 2; }
.card-details { padding: 15px; text-align: right; }
.card-details h3 { margin: 0 0 8px 0; font-size: 1.1rem; font-weight: 600; color: #333; }

/* Map */
#tdm-destination-map { width: 100%; height: 400px; border-radius: 12px; margin-bottom: 30px; box-shadow: 0 2px 10px rgba(0,0,0,0.1); border: 1px solid #ddd; }

/* --- Modal מעודכן --- */
.tdm-modal { display: none; position: fixed; z-index: 100000; left: 0; top: 0; width: 100%; height: 100%; background-color: rgba(0,0,0,0.7); backdrop-filter: blur(5px); align-items: center; justify-content: center; }
.tdm-modal-content {
    background-color: #fff; padding: 0; /* איפוס ריפוד כדי שהתמונה תהיה מקצה לקצה */
    border-radius: 16px; width: 90%; max-width: 650px; max-height: 90vh; overflow-y: auto;
    position: relative; box-shadow: 0 20px 50px rgba(0,0,0,0.3); animation: tdmFadeIn 0.3s ease-out;
}

/* תמונת הכותרת בפופאפ */
#modalImageContainer {
    width: 100%;
    height: 300px;
    background: #f0f0f0;
    overflow: hidden;
    position: relative;
}
#modalImageContainer img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.tdm-close { 
    position: absolute; top: 15px; left: 15px; /* שינוי מיקום */
    font-size: 32px; font-weight: bold; color: #fff; 
    text-shadow: 0 0 5px rgba(0,0,0,0.5); /* צל כדי שיראו על תמונה בהירה */
    cursor: pointer; z-index: 10; transition: transform 0.2s; 
}
.tdm-close:hover { transform: scale(1.1); }

/* התוכן בפופאפ */
#modalTitle { padding: 25px 30px 10px 30px; margin: 0; font-size: 1.8rem; border-bottom: none; }
#modalBody { padding: 0 30px 30px 30px; line-height: 1.6; font-size: 1.1em; color: #444; }

.tdm-map-btn { background: #0073aa; color: #fff; border: none; padding: 6px 12px; border-radius: 4px; cursor: pointer; font-size: 13px; margin-top: 5px; }
@keyframes tdmFadeIn { from {opacity: 0; transform: translateY(20px);} to {opacity: 1; transform: translateY(0);} }


/* כפתור תגובות בגוגל */
.tdm-google-btn {
    display: inline-block;
    text-decoration: none;
    background-color: #fff;
    color: #333;
    border: 1px solid #ccc;
    padding: 8px 15px;
    border-radius: 20px;
    font-size: 14px;
    font-weight: 500;
    transition: all 0.2s;
}

.tdm-google-btn:hover {
    background-color: #f5f5f5;
    border-color: #bbb;
    color: #000;
}

.tdm-google-btn .dashicons {
    font-size: 16px;
    vertical-align: middle;
    margin-right: 5px;
}

