/* Imported section types from the previous site */

/* ---- blog cards ---- */
.tdre-blog { display: grid; grid-template-columns: 1fr 1fr; gap: 60px 36px; max-width: 985px; margin: 0 auto; padding: 0 0 40px; }
.tdre-bcard { display: block; color: inherit; text-decoration: none; }
.tdre-bcard__img { aspect-ratio: 474 / 333; overflow: hidden; background: #eee; }
.tdre-bcard__img img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .6s; }
.tdre-bcard:hover .tdre-bcard__img img { transform: scale(1.04); }
.tdre-bcard__body { padding: 36px 36px 0; position: relative; }
.tdre-bcard__body h4 { font-size: 22px; letter-spacing: 3px; line-height: 1.45; margin: 0 0 18px; }
.tdre-bcard__body::after { content: ""; display: block; width: 50%; height: 1px; background: #bcd7dc; margin: 0 0 0 -36px; }
.tdre-bcard__meta { list-style: none; margin: 0 0 14px; padding: 0; display: flex; gap: 14px; font-size: 14px; letter-spacing: 1px; color: #555; }
.tdre-bcard__meta:empty { display: none; }
.tdre-bcard__body p { margin: 0 0 14px; }
.tdre-bcard__more { display: inline-block; margin-top: 28px; font-size: 14px; letter-spacing: 1.5px; text-transform: uppercase; text-decoration: underline; text-underline-offset: 3px; order: 9; }
.tdre-bcard__body { display: flex; flex-direction: column; }
.tdre-bcard__body::after { order: 2; }
.tdre-bcard__body h4 { order: 1; }
.tdre-bcard__meta, .tdre-bcard__body p { order: 3; margin-top: 14px; }

/* ---- blog post ---- */
.tdre-article { max-width: 880px !important; margin-left: auto !important; margin-right: auto !important; padding: 90px 0 40px; }
.tdre-article h2 { margin-top: 1.8em; }
.tdre-share { list-style: none; display: flex; gap: 46px; padding: 30px 0 0; margin: 0; }
.tdre-share a { width: 40px; height: 40px; border: 1px solid #000; border-radius: 50%; display: flex; align-items: center; justify-content: center; color: #000; }
.tdre-related { background: #1a1a1a; color: #fff; padding: 90px 24px; text-align: center; }
.tdre-related h2 { margin: 0 0 50px; }
.tdre-related__grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; max-width: 1170px; margin: 0 auto; text-align: left; }
.tdre-related .tdre-bcard__body { padding: 24px 0 0; }
.tdre-related .tdre-bcard__body h4 { font-size: 18px; }
.tdre-related .tdre-bcard__body::after, .tdre-related .tdre-bcard__more { display: none; }
.tdre-related__all { margin-top: 50px; }
.tdre-related .wp-element-button { color: #fff; }
.tdre-related .wp-element-button:hover { background: #fff; color: #1a1a1a; border-color: #fff; }

/* ---- team grid / agent page ---- */
.tdre-team-grid { display: grid !important; grid-template-columns: repeat(3, 1fr); gap: 50px; }
.tdre-member { text-align: center; position: relative; }
.tdre-member .wp-block-image { margin: 0 0 30px; aspect-ratio: 295 / 380; overflow: hidden; }
.tdre-member .wp-block-image img { width: 100%; height: 100%; object-fit: cover; }
.tdre-member__name { font-size: 32px; letter-spacing: 1px; margin: 0 0 12px !important; text-transform: none !important; }
.tdre-member__role { font-size: 15px; font-weight: 700; letter-spacing: 2px; text-transform: uppercase; margin: 0 !important; }
.tdre-member a { color: inherit; text-decoration: none; }
.tdre-agent-details { font-size: 17px; letter-spacing: 1px; }
.tdre-agent-details strong { font-weight: 700; letter-spacing: 2px; margin-right: 10px; font-size: 15px; }
.tdre-agent-details p { margin: 0 0 14px; }
.tdre-agent-position { font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-size: 15px; }

/* ---- testimonials teaser ---- */
.tdre-testimonials .wp-block-columns { align-items: center; }
.tdre-tnav { display: flex; gap: 22px; justify-content: flex-end; font-size: 15px; letter-spacing: 1.5px; text-transform: uppercase; }
.tdre-tnav a { color: inherit; }
.tdre-testimonials .tdre-tleft { text-align: right; padding-right: 40px; border-right: 1px solid rgba(255,255,255,.7); }
.tdre-quote { display: none; text-align: left; }
.tdre-quote.is-active { display: block; animation: tdre-fade .6s; }
.tdre-quote p:first-child { font-size: 22px; letter-spacing: 1px; }
.tdre-quote p:last-child { font-weight: 700; letter-spacing: 2px; text-transform: uppercase; font-size: 15px; }
@keyframes tdre-fade { from { opacity: 0; } to { opacity: 1; } }

/* ---- projects list ---- */
.tdre-devlist { display: flex !important; flex-wrap: wrap; justify-content: center; gap: 50px 100px; }
.tdre-devcard { width: 262px; }
.tdre-devcard .wp-block-image { aspect-ratio: 1; overflow: hidden; margin: 0 0 30px; }
.tdre-devcard .wp-block-image img { width: 100%; height: 100%; object-fit: cover; transition: transform .6s; }
.tdre-devcard:hover .wp-block-image img { transform: scale(1.05); }
.tdre-devcard h3 { font-size: 28px; margin: 0 0 30px; }
.tdre-devcard h3 a { color: inherit; text-decoration: none; }
.tdre-devcard p { font-size: 17px; }

/* ---- image slider ---- */
.tdre-slider { position: relative; overflow: hidden; background: #000; margin-top: 0 !important; margin-bottom: 0 !important; }
.tdre-slider .wp-block-gallery { display: block !important; margin: 0; height: 100%; }
.tdre-slider .wp-block-gallery figure.wp-block-image { display: none; width: 100% !important; margin: 0 !important; height: 100%; }
.tdre-slider .wp-block-gallery figure.wp-block-image.is-active,
.tdre-slider .wp-block-gallery figure.wp-block-image:only-child { display: block; animation: tdre-fade .6s; }
.tdre-slider figure img { width: 100% !important; height: 100% !important; object-fit: cover; }
.tdre-slider { height: 85vh; min-height: 420px; }
.tdre-slider__arrow { position: absolute; top: 50%; width: 48px; height: 48px; margin-top: -24px; border: 1px solid #fff; background: transparent; cursor: pointer; z-index: 3; }
.tdre-slider__arrow::before { content: ""; position: absolute; inset: 0; margin: auto; width: 12px; height: 12px; border-top: 1px solid #fff; border-right: 1px solid #fff; transform: rotate(45deg); }
.tdre-slider__arrow--prev { left: 50px; }
.tdre-slider__arrow--prev::before { transform: rotate(-135deg); }
.tdre-slider__arrow--next { right: 50px; }

/* property hero: slider with title + price overlay */
.tdre-prop-hero { height: 100vh; height: 100svh; }
.tdre-prop-hero::after { content: ""; position: absolute; inset: 0; background: linear-gradient(to top, rgba(0,0,0,.55), rgba(0,0,0,.05) 55%); pointer-events: none; z-index: 1; }
.tdre-prop-hero .tdre-prop-info { position: absolute; left: 36px; bottom: 80px; z-index: 2; color: #fff; max-width: 760px; }
.tdre-prop-info h1 { text-transform: none !important; letter-spacing: 1px; font-size: clamp(30px, 3.5vw, 42px); margin: 0; }
.tdre-prop-info p { margin: 0; font-size: 22px; }
.tdre-prop-info hr, .tdre-prop-info .wp-block-separator { width: 130px; margin: 24px 0 24px -36px; border: 0; border-top: 1px solid rgba(255,255,255,.7); opacity: 1; }

/* property description + stats */
.tdre-prop-desc > .wp-block-column:first-child { padding-right: 90px; border-right: 1px solid #ccc; }
.tdre-stats { list-style: none; margin: 0; padding: 0 0 0 40px; }
.tdre-stats li { display: flex; gap: 22px; align-items: flex-start; margin-bottom: 30px; font-size: 15px; letter-spacing: 1px; text-transform: uppercase; line-height: 1.4; }
.tdre-stats svg { flex: none; width: 34px; height: 34px; stroke: #777; fill: none; stroke-width: 1.3; }
.tdre-features { display: grid !important; grid-template-columns: 1fr 1fr; gap: 0 40px; }
.tdre-features h3 { font-size: 30px; margin: 50px 0 30px; }
.tdre-features dl { display: grid; grid-template-columns: 190px 1fr; gap: 16px 0; margin: 0; }
.tdre-features dt { text-transform: uppercase; letter-spacing: 3px; font-size: 16px; }
.tdre-features dd { margin: 0; font-weight: 600; font-size: 16px; letter-spacing: .5px; }
.tdre-download { background: #1a1a1a; color: #fff; text-align: center; padding: 70px 24px !important; }
.tdre-download .wp-element-button { color: #fff; }
.tdre-download .wp-element-button:hover { background: #fff; color: #1a1a1a; }

/* ---- logo grids (About Us) ---- */
.tdre-logos { display: flex !important; flex-wrap: wrap; justify-content: center; gap: 40px 0; max-width: 985px; margin: 0 auto !important; }
.tdre-logos figure { width: 33.333%; margin: 0 !important; display: flex; justify-content: center; align-items: center; height: 150px; }
.tdre-logos img { max-width: 170px !important; max-height: 120px; width: auto !important; height: auto !important; object-fit: contain; }
.tdre-centered { text-align: center; }
.tdre-cols-2 .wp-block-media-text__content > p { column-count: 2; column-gap: 40px; }

/* ---- contact cards ---- */
.tdre-cards { display: grid !important; grid-template-columns: 1fr 1fr; gap: 0; border: 1px solid #ddd; }
.tdre-cards > * { border: 1px solid #ddd; margin: -1px 0 0 -1px !important; padding: 40px 26px; min-height: 360px; }
.tdre-cards h4 { font-size: 22px; letter-spacing: 3px; margin: 0 0 24px; }
.tdre-card__row { display: flex; gap: 20px; align-items: flex-start; }
.tdre-card__row figure { flex: none; width: 160px; height: 160px; border-radius: 50%; overflow: hidden; margin: 0 !important; }
.tdre-card__row figure img { width: 100%; height: 100%; object-fit: cover; }
.tdre-card__row p { margin: 0; font-size: 18px; letter-spacing: 1px; line-height: 1.5; }

/* ---- forms ---- */
.tdre-form { display: flex; flex-direction: column; gap: 26px; }
.tdre-form__field { display: flex; flex-direction: column; gap: 4px; font-weight: 700; letter-spacing: 1px; }
.tdre-form input[type=text], .tdre-form input[type=email], .tdre-form input[type=tel], .tdre-form select, .tdre-form textarea {
	font: inherit; font-weight: 300; border: 0; border-bottom: 1px solid #000; border-radius: 0; padding: 8px 2px; background: transparent; outline: none; width: 100%;
}
.tdre-form select { -webkit-appearance: none; appearance: none; background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 20 12'%3E%3Cpath d='M1 1l9 9 9-9' fill='none' stroke='%23777' stroke-width='1.5'/%3E%3C/svg%3E") no-repeat right 8px center / 14px auto; }
.tdre-form small { font-weight: 300; color: #888; font-size: 13px; letter-spacing: 1px; }
.tdre-form__consent { display: flex; gap: 10px; font-size: 12px; line-height: 1.35; text-align: justify; letter-spacing: .5px; }
.tdre-form__consent input { margin-top: 2px; flex: none; }
.tdre-form .wp-element-button { align-self: flex-start; }
.tdre-form__msg { margin: 0; }
.wp-block-cover .tdre-form input, .wp-block-cover .tdre-form select, .wp-block-cover .tdre-form textarea { border-bottom-color: #fff; color: #fff; }

/* ---- video cards + lightbox ---- */
.tdre-videos { display: grid !important; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 30px; }
.tdre-video { display: block; color: inherit; text-decoration: none; }
.tdre-video h6 { font-size: 16px; letter-spacing: 2px; margin: 0 0 14px; text-transform: uppercase; }
.tdre-video__thumb { position: relative; aspect-ratio: 16 / 9; background: #111; overflow: hidden; }
.tdre-video__thumb img, .tdre-video__thumb video { width: 100%; height: 100%; object-fit: cover; display: block; }
.tdre-video__thumb::after { content: ""; position: absolute; left: 50%; top: 50%; width: 64px; height: 64px; margin: -32px; border: 1px solid #fff; border-radius: 50%;
	background: rgba(0,0,0,.25) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath d='M8 5v14l11-7z' fill='white'/%3E%3C/svg%3E") no-repeat 55% 50% / 26px; }
.tdre-lightbox { position: fixed; inset: 0; z-index: 1000; background: rgba(0,0,0,.88); display: flex; align-items: center; justify-content: center; padding: 40px; }
.tdre-lightbox__inner { width: min(1100px, 100%); aspect-ratio: 16 / 9; }
.tdre-lightbox__inner iframe, .tdre-lightbox__inner video { width: 100%; height: 100%; border: 0; background: #000; }
.tdre-lightbox__close { position: absolute; top: 18px; right: 24px; background: none; border: 0; color: #fff; font-size: 40px; cursor: pointer; }

@media (max-width: 781px) {
	.tdre-blog, .tdre-related__grid, .tdre-team-grid, .tdre-cards, .tdre-features { grid-template-columns: 1fr !important; }
	.tdre-logos figure { width: 50%; }
	.tdre-prop-desc > .wp-block-column:first-child { padding-right: 0; border-right: 0; }
	.tdre-stats { padding: 0; }
	.tdre-slider__arrow--prev { left: 14px; } .tdre-slider__arrow--next { right: 14px; }
	.tdre-cols-2 .wp-block-media-text__content > p { column-count: 1; }
	.tdre-testimonials .tdre-tleft { text-align: left; border: 0; padding: 0; }
	.tdre-tnav { justify-content: flex-start; }
}
/* "Our history": image runs the full height of the two text columns */
.tdre-cols-2 .wp-block-media-text { align-items: stretch; }
.tdre-cols-2 .wp-block-media-text__media img { height: 100%; object-fit: cover; }
/* custom grids use the wide width inside constrained groups */
.tdre-team-grid, .tdre-devlist, .tdre-cards, .tdre-agent-bio { max-width: var(--wp--style--global--wide-size) !important; width: 100%; }
.tdre-team-grid { max-width: 1035px !important; }
.tdre-devlist { max-width: 985px !important; }

/* images fill their fixed-ratio frames (cards, portraits) */
.tdre-member .wp-block-image a, .tdre-devcard .wp-block-image a { display: block; height: 100%; }
.tdre-member .wp-block-image img, .tdre-devcard .wp-block-image img { height: 100% !important; width: 100% !important; object-fit: cover; }
.tdre-features { max-width: var(--wp--style--global--wide-size) !important; width: 100%; }
.tdre-centered > * { max-width: 990px !important; }
/* first cover under the transparent header: keep content clear of the navigation */
body.tdre-overlay-header .entry-content > .wp-block-cover:first-child:not(.tdre-hero) { padding-top: 150px; padding-bottom: 60px; }
.wp-block-cover .wp-block-image { text-align: center; }
.wp-block-cover .wp-block-image img { margin: 0 auto; max-width: 360px; }
