/**
 * Contact page (page-contact.php) — dedicated stylesheet, new file so
 * main.css stays untouched (same approach as assets/css/about.css/
 * experiences.css/rooms.css). Reuses existing design tokens and
 * patterns (.overlay, .btn-whtapp, .tm-about-btn-outline, .tm-about-eyebrow,
 * .bg-lgreen, .bg-green, .r-10) rather than inventing new ones — only
 * page-specific layout rules live here.
 *
 * Loaded after main.css via an explicit enqueue dependency (inc/enqueue.php).
 */

/* ---- Hero ---- */
.tm-contact-hero {
    position: relative;
    min-height: 420px;
    display: flex;
    align-items: center;
    background-size: cover;
    background-position: center;
}

.tm-contact-hero-content {
    position: relative;
    z-index: 1;
    width: 100%;
    padding: 60px 0;
}

.tm-contact-hero-content h1 {
    margin: 0 0 12px;
}

/* ---- Contact Information ---- */
.tm-contact-info-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
}

.tm-contact-info-item {
    background-color: var(--white);
    border-radius: var(--radius-md);
    padding: 32px 24px;
    text-align: center;
}

.tm-contact-info-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    font-size: 32px;
    line-height: 1;
    margin-bottom: var(--space-16);
}

.tm-contact-info-item h5 {
    color: var(--green);
    margin-bottom: 10px;
}

.tm-contact-info-item p,
.tm-contact-info-item a {
    display: block;
    font-size: 15px;
}

.tm-contact-info-item a {
    color: var(--green);
    text-decoration: underline;
    text-underline-offset: 3px;
}

.tm-contact-info-item a + a {
    margin-top: 4px;
}

.tm-contact-info-item a:hover {
    color: var(--black);
}

/* ---- Business Information ---- */
.tm-contact-business-grid {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    gap: 24px;
    text-align: center;
}

.tm-contact-business-item h5 {
    color: var(--green);
    margin-bottom: 6px;
}

.tm-contact-business-item p {
    margin: 0;
    opacity: 0.85;
}

.tm-contact-business-note {
    max-width: 640px;
    margin: 32px auto 0;
    opacity: 0.85;
}

/* ---- Map ---- */
.tm-contact-map {
    line-height: 0;
}

.tm-contact-map iframe {
    display: block;
}

/* ---- Enquiry Form ---- */
.tm-contact-form-wrap {
    max-width: 720px;
    margin: 0 auto;
}

/* ---- Social ---- */
.tm-contact-social .socials {
    display: inline-flex;
    gap: 16px;
}

/* Fallback icon sizing for template-parts/components/social-links.php's
 * static SVGs (LinkedIn/TripAdvisor/Google Reviews — platforms with no
 * uploaded icon attachment) — lives here rather than in a new file
 * since this stylesheet is already enqueued site-wide and the component
 * itself (footer + Contact page) has no dedicated CSS file of its own. */
.tm-social-fallback-icon {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 32px;
    height: 32px;
    color: inherit;
}

.tm-social-fallback-icon svg {
    width: 100%;
    height: 100%;
}

/* ---- Quick Contact CTA ---- */
.tm-contact-cta-buttons {
    display: flex;
    justify-content: center;
    gap: 16px;
    flex-wrap: wrap;
}

@media screen and (max-width: 991px) {
    .tm-contact-info-grid,
    .tm-contact-business-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}

@media screen and (max-width: 767px) {
    .tm-contact-hero {
        min-height: 340px;
    }

    .tm-contact-info-grid,
    .tm-contact-business-grid {
        grid-template-columns: 1fr;
    }

    .tm-contact-cta-buttons {
        flex-direction: column;
        align-items: center;
    }
}
