/* Yacht listing on /yachts - layout D, chosen by the client 2026-10-21
   (B and C combined). Loaded by templates/listing/section.php. */

.tl-wrap { max-width: 1520px; margin: 0 auto; padding: 0 20px; }
@media (min-width: 768px)  { .tl-wrap { padding-left: 36px; padding-right: 36px; } }
@media (min-width: 1280px) { .tl-wrap { padding-left: 48px; padding-right: 48px; } }

/* Page top: a slim navy band with the title, the filter bar across its lower
   edge, the cards straight under it. */
.tl-band { position: relative; overflow: hidden; padding: 104px 0 96px; background: #162c3f; color: #fff; text-align: center; }
.tl-band::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at 50% 120%, rgba(200, 169, 122, 0.12) 0%, transparent 65%); pointer-events: none; }
.tl-band .tl-wrap { position: relative; }
.tl-band .tl-eyebrow { margin-bottom: 14px; font-size: 11px; letter-spacing: 0.22em; text-transform: uppercase; color: #c8a97a; }
.tl-band h1 { margin: 0; font-family: 'Cormorant Garamond', serif; font-weight: 300; font-size: 50px; line-height: 1.1; letter-spacing: 0.02em; color: #fff; }
.tl-filters { position: relative; z-index: 3; margin-top: -62px; }
.tl-filters form { box-shadow: 0 18px 50px rgba(14, 27, 40, 0.16); }
/* The view toggle and the sort share one row; on a phone the sort drops under it instead of running off the card */
.tl-filters form > div:last-child { flex-wrap: wrap; row-gap: 12px; }
.tl-filters form > div:last-child > div:first-child { flex-wrap: wrap; row-gap: 6px; }
.tl-list { padding-top: 36px; }
@media (max-width: 639px) { .tl-band { padding: 96px 0 84px; } .tl-band h1 { font-size: 38px; } }

.tl-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 28px; }
@media (min-width: 640px)  { .tl-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 1024px) { .tl-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 34px 30px; } }

/* Card: location on the photo, name and make in a compact navy panel with a
   gold rim, price and the key figures in one row */
.tl-card { position: relative; display: flex; flex-direction: column; min-width: 0; overflow: hidden; background: #162c3f; color: #fff; text-decoration: none; border-bottom: 2px solid #c8a97a; transition: box-shadow 0.3s, transform 0.3s; }
.tl-card:hover { box-shadow: 0 22px 50px rgba(14, 27, 40, 0.28); transform: translateY(-3px); }
.tl-stage { position: relative; }
.tl-photo { position: relative; overflow: hidden; aspect-ratio: 3 / 2; background: #264d6d; }
.tl-photo img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; transition: transform 0.9s ease; }
.tl-card:hover .tl-photo img { transform: scale(1.045); }
.tl-photo::after { content: ''; position: absolute; inset: 0; background: linear-gradient(to top, rgba(14, 27, 40, 0.8) 0%, rgba(14, 27, 40, 0.24) 34%, rgba(14, 27, 40, 0) 56%); }
.tl-over { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 0 22px 16px; }
.tl-place { display: inline-flex; align-items: center; gap: 9px; font-size: 11px; letter-spacing: 0.18em; text-transform: uppercase; color: #fff; text-shadow: 0 1px 12px rgba(0, 0, 0, 0.4); }
.tl-place::before { content: ''; flex: 0 0 auto; width: 6px; height: 6px; border-radius: 50%; background: #c8a97a; }
.tl-body { display: flex; flex: 1; flex-direction: column; padding: 18px 22px 18px; }
.tl-name { margin-bottom: 4px; font-size: 11px; line-height: 1.5; letter-spacing: 0.2em; text-transform: uppercase; color: #c8a97a; }
/* A yacht without a name of its own keeps the line from tablet up, so titles stay level across a row */
.tl-name:empty { display: none; }
@media (min-width: 640px) { .tl-name:empty { display: block; min-height: 1.5em; } }
.tl-title { font-family: 'Cormorant Garamond', serif; font-weight: 400; font-size: 25px; line-height: 1.15; overflow-wrap: anywhere; }
.tl-foot { display: flex; align-items: baseline; justify-content: space-between; flex-wrap: wrap; gap: 6px 16px; margin-top: 14px; padding-top: 12px; border-top: 1px solid rgba(255, 255, 255, 0.14); }
.tl-price { font-family: 'Cormorant Garamond', serif; font-size: 22px; line-height: 1.1; letter-spacing: 0.02em; color: #c8a97a; }
.tl-facts { display: flex; flex-wrap: wrap; gap: 4px 0; font-size: 11px; letter-spacing: 0.1em; text-transform: uppercase; color: rgba(255, 255, 255, 0.72); }
.tl-facts > span + span::before { content: ''; display: inline-block; width: 1px; height: 10px; margin: 0 12px; background: currentColor; opacity: 0.35; }
@media (max-width: 639px) { .tl-title { font-size: 23px; } }
