/* Director page presentation.
 *
 * Lifted out of director_view_page.html on 2026-08-15. It had been inline, so
 * director-preview.html — the page every outreach email links to — grew its own
 * separate look, and a director opening the preview saw a plainer page than the
 * one they would actually get. Wrong way round for something whose whole job is
 * to sell the listing.
 *
 * Both pages load this now. Change it here and both move together.
 */

        * { margin: 0; padding: 0; box-sizing: border-box; }
        body {
            font-family: 'Source Sans Pro', sans-serif;
            background: var(--mm-bg, #faf8f5);
            color: var(--mm-text, #2a2a2a);
            line-height: 1.6;
        }

        .director-hero {
            background: linear-gradient(135deg, #234737 0%, #2e5647 100%);
            color: #fdfaf2;
            padding: 3rem 1.5rem 2.5rem;
            text-align: center;
            position: relative;
        }

        /* Corner share button — opens the site-wide share modal so
           directors can publicise their listing. Lives only on the live
           page's markup; the preview (token URL) deliberately has none. */
        .director-share-btn {
            position: absolute;
            top: 1rem;
            right: 1rem;
            width: 42px;
            height: 42px;
            border-radius: 50%;
            border: 1px solid rgba(253,250,242,0.35);
            background: rgba(253,250,242,0.12);
            color: #fdfaf2;
            font-size: 1rem;
            cursor: pointer;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: background 0.15s, transform 0.15s;
        }
        .director-share-btn:hover {
            background: rgba(253,250,242,0.25);
            transform: scale(1.06);
        }
        .director-hero h1 {
            font-family: 'Playfair Display', serif;
            font-size: 2.2rem;
            margin: 0 0 0.4rem;
        }
        .director-hero .location {
            color: rgba(253,250,242,0.85);
            font-size: 1.05rem;
            margin: 0;
        }
        .director-logo {
            display: none;
            width: 96px;
            height: 96px;
            border-radius: 16px;
            background: #fff;
            margin: 0 auto 1rem;
            object-fit: contain;
            padding: 0.4rem;
            box-shadow: 0 4px 18px rgba(0,0,0,0.2);
        }
        .director-logo.visible { display: block; }
        .director-hero .verified-badge {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            margin-top: 0.85rem;
            background: rgba(212,168,83,0.18);
            border: 1px solid rgba(212,168,83,0.5);
            color: #f5d896;
            padding: 0.3rem 0.85rem;
            border-radius: 999px;
            font-size: 0.82rem;
            font-weight: 600;
        }

        .main-content {
            max-width: 720px;
            margin: -1.5rem auto 0;
            padding: 0 1rem 3rem;
            position: relative;
        }

        .info-card {
            background: #ffffff;
            border: 1px solid #e8e4df;
            border-radius: 14px;
            box-shadow: 0 4px 24px rgba(0,0,0,0.06);
            padding: 1.75rem;
            margin-bottom: 1.25rem;
        }
        .info-card h2 {
            font-family: 'Playfair Display', serif;
            font-size: 1.25rem;
            margin: 0 0 0.85rem;
            color: #2a2a2a;
            display: flex;
            align-items: center;
            gap: 0.5rem;
        }
        .info-card h2 i { color: #d4a853; font-size: 1.05rem; }

        .contact-grid {
            display: grid;
            grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
            gap: 0.85rem;
        }
        .contact-row {
            display: flex;
            align-items: flex-start;
            gap: 0.65rem;
            padding: 0.6rem 0;
            color: #2a2a2a;
        }
        .contact-row i {
            color: #d4a853;
            font-size: 1rem;
            margin-top: 0.18rem;
            flex-shrink: 0;
            width: 1.1rem;
            text-align: center;
        }
        .contact-row .label {
            font-size: 0.78rem;
            color: #6b7280;
            text-transform: uppercase;
            letter-spacing: 0.04em;
            margin-bottom: 0.1rem;
        }
        .contact-row .value {
            font-size: 0.95rem;
            word-break: break-word;
        }
        .contact-row a {
            color: #8a6030;
            text-decoration: none;
            border-bottom: 1px solid rgba(138,96,48,0.3);
        }
        .contact-row a:hover { border-bottom-color: #8a6030; }

        .back-link {
            display: inline-flex;
            align-items: center;
            gap: 0.4rem;
            color: #6b7280;
            text-decoration: none;
            font-size: 0.9rem;
            margin: 1.25rem 0 0;
        }
        .back-link:hover { color: #2a2a2a; }

        .director-logo.clickable { cursor: pointer; transition: transform 0.15s; }
        .director-logo.clickable:hover { transform: scale(1.04); }

        .director-gallery {
            display: grid;
            grid-template-columns: repeat(auto-fill, minmax(120px, 1fr));
            gap: 0.6rem;
        }
        .director-gallery img {
            width: 100%;
            aspect-ratio: 1;
            object-fit: cover;
            border-radius: 10px;
            cursor: pointer;
            transition: transform 0.15s, box-shadow 0.15s;
        }
        .director-gallery img:hover { transform: translateY(-2px); box-shadow: 0 6px 18px rgba(0,0,0,0.15); }

        /* Photo lightbox — same open/close behaviour as the rest of the site
           (click photo/logo to open, click anywhere / X / Esc to close). */
        .photo-modal {
            display: none;
            position: fixed;
            top: 0; left: 0; right: 0; bottom: 0;
            background: rgba(0,0,0,0.95);
            z-index: 2000;
            align-items: center;
            justify-content: center;
            padding: 2rem;
        }
        .photo-modal.active { display: flex; }
        .photo-modal img {
            max-width: 95%;
            max-height: 90vh;
            object-fit: contain;
            border-radius: 12px;
            box-shadow: 0 8px 40px rgba(0,0,0,0.5);
        }
        .photo-modal-close {
            position: absolute;
            top: 1.5rem; right: 1.5rem;
            background: white;
            border: none;
            width: 45px; height: 45px;
            border-radius: 50%;
            font-size: 1.5rem;
            cursor: pointer;
            color: #333;
            display: flex;
            align-items: center;
            justify-content: center;
            transition: all 0.2s;
            box-shadow: 0 2px 10px rgba(0,0,0,0.3);
        }
        .photo-modal-close:hover { background: #f0ede8; transform: scale(1.1); }

        @media (max-width: 600px) {
            .director-hero { padding: 2.25rem 1rem 2rem; }
            .director-hero h1 { font-size: 1.65rem; }
            .info-card { padding: 1.25rem; }
            .director-share-btn { top: 0.65rem; right: 0.65rem; width: 38px; height: 38px; }
        }
