/* TripSync — Destination Grid widget (base styles; colours/sizes are editable in Elementor) */
.tsdg { font-family: 'Noto Sans', 'Segoe UI', Helvetica, Arial, sans-serif; color: #13201E; }
.tsdg *, .tsdg *::before, .tsdg *::after { box-sizing: border-box; }

/* Filter buttons */
.tsdg-filter { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.tsdg-filter button {
	cursor: pointer; font-family: inherit; font-size: 15px; font-weight: 600; line-height: 1;
	min-height: 44px; padding: 0 18px; border-radius: 999px;
	border: 1px solid #C9D1CE; background: #FFFFFF; color: #13201E; white-space: nowrap;
	transition: background-color .15s ease, border-color .15s ease;
}
.tsdg-filter button:hover { border-color: #13201E; }
.tsdg-filter button[aria-pressed="true"] { background: #13201E; border-color: #13201E; color: #FFFFFF; }
.tsdg-filter button:focus-visible, .tsdg-btn:focus-visible { outline: 3px solid #F2A93B; outline-offset: 2px; }
.tsdg-count { margin: 0 0 20px; font-size: 15px; color: #4A5856; }

/* Grid */
.tsdg-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; }

/* Card */
.tsdg-card {
	display: flex; flex-direction: column; overflow: hidden;
	background: #FFFFFF; border: 1px solid #E3E7E5; border-radius: 22px;
	transition: box-shadow .2s ease;
}
.tsdg-card[hidden] { display: none !important; }
.tsdg-img { position: relative; height: 240px; background: #C98A3E; overflow: hidden; }
.tsdg-img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s ease; }
.tsdg-card:hover .tsdg-img img { transform: scale(1.04); }
.tsdg-badge {
	position: absolute; left: 14px; top: 14px; background: #FFFFFF; color: #13201E;
	font-size: 13px; font-weight: 700; line-height: 1.2; padding: 6px 12px; border-radius: 999px;
}

.tsdg-body { padding: 20px 22px 22px; display: flex; flex-direction: column; gap: 10px; flex: 1; }
.tsdg-title {
	margin: 0 !important; font-family: 'Plus Jakarta Sans', 'Segoe UI', Helvetica, sans-serif;
	font-size: 26px; font-weight: 800; line-height: 1.15 !important; color: #13201E;
}
.tsdg-desc { margin: 0 !important; font-size: 15px; font-weight: 400; line-height: 1.6 !important; color: #3A4846; }
.tsdg-tags { display: flex; flex-wrap: wrap; gap: 6px; }
.tsdg-tag { font-size: 13px; line-height: 1.3; background: #F3F5F4; color: #13201E; padding: 5px 10px; border-radius: 8px; }

.tsdg-foot {
	margin-top: auto; padding-top: 14px; border-top: 1px solid #E3E7E5;
	display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.tsdg-note { font-size: 14px; color: #4A5856; }
.tsdg-btn {
	text-decoration: none !important; font-size: 15px; font-weight: 600; line-height: 1;
	min-height: 44px; padding: 0 18px; border-radius: 12px; white-space: nowrap;
	display: inline-flex; align-items: center; gap: 8px; transition: background-color .15s ease;
}
.tsdg-btn--solid { background: #0E4F4C; color: #FFFFFF !important; border: 0; }
.tsdg-btn--solid:hover { background: #13201E; }
.tsdg-btn--outline { background: transparent; color: #13201E; border: 1px solid #13201E; }

/* ---------- Style 2: image tile ---------- */
.tsdg--style-2 .tsdg-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.tsdg-tile {
	position: relative; display: block; height: 230px; overflow: hidden;
	border: 0; border-radius: 22px; background: #A85A2A;
	color: #FFFFFF; text-decoration: none !important;
}
.tsdg-tile-img {
	position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block;
	transition: transform .4s ease;
}
.tsdg-tile:hover .tsdg-tile-img { transform: scale(1.05); }
.tsdg-tile-bar {
	position: absolute; left: 0; right: 0; bottom: 0; padding: 16px;
	background: rgba(10, 22, 20, 0.55);
	display: flex; justify-content: space-between; align-items: center; gap: 12px;
}
.tsdg-tile-text { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.tsdg-tile .tsdg-title { color: #FFFFFF; font-size: 20px; margin: 0 !important; }
.tsdg-tile-sub { font-size: 13px; line-height: 1.3; color: #FFFFFF; }
.tsdg-tile-arrow {
	flex: none; width: 36px; height: 36px; border-radius: 50%;
	background: #FFFFFF; color: #13201E;
	display: flex; align-items: center; justify-content: center;
	transition: transform .2s ease;
}
.tsdg-tile:hover .tsdg-tile-arrow { transform: translateX(3px); }
.tsdg-tile:focus-visible { outline: 3px solid #F2A93B; outline-offset: 3px; }

/* Mobile */
@media (max-width: 767px) {
	.tsdg-filter { flex-wrap: nowrap; overflow-x: auto; margin-left: -20px; margin-right: -20px; padding: 0 20px 4px; scrollbar-width: none; }
	.tsdg-filter::-webkit-scrollbar { display: none; }
	.tsdg-filter button { flex: none; font-size: 14px; padding: 0 16px; }
	.tsdg-title { font-size: 22px; }
	.tsdg-tile .tsdg-title { font-size: 19px; }
}

@media (prefers-reduced-motion: reduce) {
	.tsdg-card, .tsdg-img img, .tsdg-btn, .tsdg-filter button, .tsdg-tile-img, .tsdg-tile-arrow { transition: none; }
	.tsdg-card:hover .tsdg-img img, .tsdg-tile:hover .tsdg-tile-img, .tsdg-tile:hover .tsdg-tile-arrow { transform: none; }
}
