/* =============================================
   MiamiTax V2 — Business Directory Styles
   Clean, editorial card layout
   ============================================= */

/* ---- Base ---- */
body {
    font-family: var(--font-body, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif);
    color: #1a1a1a;
    background: #fff;
    line-height: 1.5;
    margin: 0;
    padding: 0;
}

/* ---- Form Elements ---- */
/* Form controls do not inherit font-family by default in most browsers
   (they fall back to the UA default like Arial). Force them to inherit
   so the rest of the cascade (body / .mtv2-container / .homepage / etc.)
   can apply Inter to inputs, selects, textareas, and buttons. */
input, select, textarea, button, optgroup {
    font-family: inherit;
}

/* ---- Focus Outline ---- */
/* Remove ugly default focus ring, keep accessible focus for keyboard */
*:focus {
    outline: none;
}
/* Aggressive focus removal for non-interactive elements */
html:focus-visible,
body:focus-visible,
div:focus-visible,
section:focus-visible,
main:focus-visible,
article:focus-visible,
aside:focus-visible,
header:focus-visible,
footer:focus-visible,
nav:focus-visible,
figure:focus-visible,
figcaption:focus-visible,
p:focus-visible,
span:focus-visible,
h1:focus-visible,
h2:focus-visible,
h3:focus-visible,
h4:focus-visible,
h5:focus-visible,
h6:focus-visible,
ul:focus-visible,
ol:focus-visible,
li:focus-visible,
table:focus-visible,
tr:focus-visible,
td:focus-visible,
th:focus-visible,
form:focus-visible,
fieldset:focus-visible,
label:focus-visible,
blockquote:focus-visible,
pre:focus-visible,
code:focus-visible {
    outline: none !important;
}
a:focus-visible,
button:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible,
[tabindex]:focus-visible {
    outline: 2px solid #0d6efd;
    outline-offset: 2px;
}

/* ---- Skip Link ---- */
.mtv2-skip-link {
    position: absolute;
    top: -100px;
    left: 16px;
    background: #1a1a1a;
    color: #fff;
    padding: 8px 16px;
    z-index: 10000;
    font-size: 14px;
    text-decoration: none;
    border-radius: 0 0 4px 4px;
}

.mtv2-skip-link:focus-visible {
    top: 0;
}

/* ---- Navigation ---- */
.mtv2-nav {
    padding: 16px 24px;
    border-bottom: none;
    display: flex;
    justify-content: space-between;
    align-items: center;
    max-width: 1200px;
    margin: 0 auto;
    position: relative;
    font-family: var(--font-body);
}

.mtv2-nav::after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 50%;
    width: 100vw;
    margin-left: -50vw;
    height: 1px;
    background: #eee;
}

.mtv2-nav-left {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.mtv2-nav a {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
}

.mtv2-nav a:hover {
    color: #c9a227;
}

.mtv2-nav-logo {
    display: flex;
    align-items: center;
    flex-shrink: 0;
}

.mtv2-nav-logo img {
    height: 32px;
    width: auto;
    display: block;
}

.mtv2-nav-menu {
    display: flex;
    align-items: center;
    gap: 28px;
}

.mtv2-nav-link {
    color: #1a1a1a;
    text-decoration: none;
    font-size: 15px;
    font-weight: 500;
    transition: color 0.2s ease;
    white-space: nowrap;
}

.mtv2-nav-link:hover {
    color: #c9a227;
}

.mtv2-nav-link--cta {
    padding: 12px 28px !important;
    border: 1px solid #1a1a1a !important;
    border-radius: 2px !important;
    font-size: 14px !important;
    font-weight: 600 !important;
    text-transform: uppercase !important;
    letter-spacing: 0.04em !important;
    transition: all 0.2s ease !important;
    color: #1a1a1a !important;
    background: transparent !important;
}

.mtv2-nav-link--cta:hover {
    background: #D12932 !important;
    border-color: #D12932 !important;
    color: #fff !important;
}

.mtv2-nav-toggle {
    display: none;
    background: none;
    border: none;
    cursor: pointer;
    padding: 8px;
    flex-direction: column;
    gap: 5px;
    z-index: 100;
}

.mtv2-nav-toggle span {
    display: block;
    width: 24px;
    height: 2px;
    background: #1a1a1a;
    transition: all 0.3s ease;
    border-radius: 1px;
}

.mtv2-nav-logout {
    background: none;
    border: none;
    color: #1a1a1a;
    font-size: 15px;
    font-weight: 500;
    cursor: pointer;
    padding: 0;
    font-family: inherit;
}

.mtv2-nav-logout:hover {
    color: #c9a227;
}

@media (max-width: 768px) {
    .mtv2-nav {
        padding: 12px 16px;
    }
    
    .mtv2-nav-toggle {
        display: flex;
    }
    
    .mtv2-nav-menu {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: #fff;
        flex-direction: column;
        align-items: stretch;
        gap: 0;
        padding: 8px 16px 16px;
        border-bottom: 1px solid #eee;
        z-index: 99;
        box-shadow: 0 4px 12px rgba(0,0,0,0.08);
    }
    
    .mtv2-nav-menu.is-open {
        display: flex;
    }
    
    .mtv2-nav-link {
        padding: 12px 0;
        border-bottom: 1px solid #f5f5f5;
        font-size: 16px;
    }
    
    .mtv2-nav-link:last-of-type {
        border-bottom: none;
    }
    
    .mtv2-nav-link--cta {
        margin-top: 8px;
        text-align: center;
        padding: 12px 18px;
    }
    
    .mtv2-nav-logout {
        padding: 12px 0;
        text-align: left;
        font-size: 16px;
    }
}

/* ---- Container ---- */
.mtv2-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 24px;
}

/* ---- Hero Tagline ---- */
.mtv2-hero-tagline {
    font-size: 17px;
    font-weight: 500;
    color: #444;
    margin: 0 0 50px 0;
    line-height: 1.4;
}

/* ---- Page Title ---- */
.mtv2-page-title {
    font-size: 28px;
    font-weight: 700;
    margin: 0 0 20px 0;
    color: #1a1a1a;
}

/* ---- Vertical Pills ---- */
.mtv2-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-bottom: 20px;
}

.mtv2-pill {
    padding: 8px 18px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #444;
    background: #fff;
    font-size: 14px;
    font-weight: 400;
    transition: all 0.15s ease;
}

.mtv2-pill:hover {
    border-color: #c9a227;
    color: #c9a227;
}

.mtv2-pill.is-active {
    border-color: #c9a227;
    background: #c9a227;
    color: #fff;
    font-weight: 600;
}

/* ---- Filter Form ---- */
.mtv2-filters {
    margin-bottom: 32px;
    padding: 0 0 8px 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
}

.mtv2-filters-row {
    display: flex;
    flex-wrap: wrap;
    gap: 16px;
    align-items: flex-end;
    margin: 20px 0;
}

.mtv2-filter-group {
    display: flex;
    flex-direction: column;
    gap: 6px;
    min-width: 140px;
}

.mtv2-filter-group label {
    font-size: 11px;
    font-weight: 700;
    color: #666;
    text-transform: uppercase;
    letter-spacing: 0.06em;
}

.mtv2-filter-group input,
.mtv2-filter-group select {
    padding: 10px 14px;
    border: 1px solid #e0e0e0;
    border-radius: 8px;
    font-size: 14px;
    min-width: 140px;
    background: #fff;
    color: #1a1a1a;
    transition: all 0.2s ease;
    outline: none;
    appearance: none;
    -webkit-appearance: none;
}

.mtv2-filter-group input:focus,
.mtv2-filter-group select:focus {
    border-color: #c9a227;
    box-shadow: 0 0 0 3px rgba(201, 162, 39, 0.12);
}

.mtv2-filter-group select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath fill='%23999' d='M6 8L1 3h10z'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 12px center;
    padding-right: 32px;
}

.mtv2-filter-group input[type="text"] {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%23999' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='M21 21l-4.35-4.35'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: left 12px center;
    padding-left: 38px;
}

.mtv2-btn {
    padding: 10px 22px;
    border: none;
    border-radius: 8px;
    font-size: 14px;
    font-weight: 600;
    cursor: pointer;
    text-decoration: none;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-sizing: border-box;
    height: 42px;
    line-height: 1;
    transition: all 0.2s ease;
}

.mtv2-btn--primary {
    background: #1a1a1a;
    color: #fff;
    box-shadow: 0 1px 2px rgba(0,0,0,0.1);
}

.mtv2-btn--primary:hover {
    background: #333;
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(0,0,0,0.15);
}

.mtv2-btn--secondary {
    background: transparent;
    color: #666;
    border: 1px solid #ddd;
}

.mtv2-btn--secondary:hover {
    background: #f5f5f5;
    color: #444;
    border-color: #ccc;
}

/* ---- Breadcrumbs ---- */
.mtv2-breadcrumbs {
    font-size: 15px;
    color: #666;
    margin-bottom: 16px;
    line-height: 1.4;
    font-weight: 500;
}

.mtv2-breadcrumbs a {
    color: #1a1a1a;
    text-decoration: none;
    border-bottom: 1px solid #1a1a1a;
    transition: color 0.15s ease, border-color 0.15s ease;
}

.mtv2-breadcrumbs a:hover {
    color: #c9a227;
    border-bottom-color: #c9a227;
}

/* ---- Results Count ---- */
.mtv2-results-count {
    font-size: 14px;
    color: #888;
    margin-bottom: 24px;
    font-weight: 500;
}

/* ---- Card Grid ---- */
.mtv2-card-grid {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
    column-gap: 32px;
    row-gap: 56px;
}

.mtv2-card-grid--3 {
    grid-template-columns: repeat(3, 1fr);
}

/* ---- Show More button (homepage category sections) ---- */
.mtv2-show-more-btn {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 8px 18px;
    background: #fff;
    border: 1.5px solid rgb(151, 151, 151);
    border-radius: 24px;
    color: #000;
    font-size: 14px;
    font-weight: 600;
    text-decoration: none;
    white-space: nowrap;
    transition: all 0.2s ease;
}

.mtv2-show-more-btn:hover {
    background: #000;
    color: #fff;
    border-color: #000;
    text-decoration: none;
}

@media (max-width: 992px) {
    .mtv2-card-grid,
    .mtv2-card-grid--3 {
        grid-template-columns: repeat(2, 1fr);
        gap: 24px;
    }
}

@media (max-width: 576px) {
    .mtv2-card-grid,
    .mtv2-card-grid--3 {
        grid-template-columns: 1fr;
        gap: 24px;
    }
}

/* ---- Card ---- */
.mtv2-card {
    display: flex;
    flex-direction: column;
    background: #fff;
    transition: opacity 0.2s ease;
}

.mtv2-card:hover {
    opacity: 0.92;
}

.mtv2-card__image-wrap {
    position: relative;
    width: 100%;
    aspect-ratio: 16 / 9;
    overflow: hidden;
    background: #f5f5f5;
    border: 1px solid #e0e0e0;
    border-radius: 4px;
}

.mtv2-card__image-wrap img {
    width: 100%;
    height: 100%;
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}

.mtv2-card:hover .mtv2-card__image-wrap img {
    transform: scale(1.02);
}

.mtv2-card__badge {
    position: absolute;
    bottom: 12px;
    left: 12px;
    background: rgba(0, 0, 0, 0.75);
    color: #fff;
    font-size: 11px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    padding: 4px 10px;
}

.mtv2-card__badge--priority {
    bottom: auto;
    top: 12px;
    left: 12px;
    background: linear-gradient(135deg, #f59e0b 0%, #d97706 100%);
    color: #fff;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.25);
}

.mtv2-card__body {
    padding: 16px 0 0 0;
    display: flex;
    flex-direction: column;
    flex-grow: 1;
}

.mtv2-card__title {
    font-size: 18px;
    font-weight: 500;
    line-height: 1.3;
    color: #000000;
    margin: 0 0 6px 0;
    text-decoration: none;
}

.mtv2-card__title:hover {
    color: #c9a227;
}

.mtv2-card__meta {
    font-size: 14px;
    color: #666;
    margin-bottom: 4px;
    line-height: 1.4;
}

.mtv2-card__rating {
    font-size: 15px;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
    gap: 6px;
}

.mtv2-card__rating-stars {
    color: #f5a623;
    letter-spacing: 1px;
    font-size: 16px;
}

.mtv2-card__rating-value {
    font-weight: 700;
    color: #222;
    font-size: 16px;
}

.mtv2-card__rating-count {
    color: #888;
    font-size: 13px;
}

.mtv2-card__desc {
    font-size: 15px;
    color: #555;
    line-height: 1.5;
    margin-bottom: 12px;
    flex-grow: 1;
}

 .mtv2-card__cta {
    font-size: 12px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    color: #000000;
    background: transparent;
    text-decoration: none;
    padding: 0 0 3px 0;
    border: none;
    border-bottom: 1px solid #000000;
    display: inline-flex;
    align-items: center;
    gap: 6px;
    align-self: flex-start;
    margin-top: 10px;
    transition: color 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.mtv2-card__cta:hover {
    color: #c9a227;
    border-bottom-color: #c9a227;
}

.mtv2-card__cta-arrow {
    font-size: 13px;
    transition: transform 0.2s ease;
}

.mtv2-card__cta:hover .mtv2-card__cta-arrow {
    transform: translateX(3px);
}

/* ---- Pagination ---- */
.mtv2-pagination {
    display: flex;
    gap: 10px;
    align-items: center;
    justify-content: center;
    padding: 62px 0;
}

.mtv2-page-link {
    padding: 8px 18px;
    border: 1px solid #ddd;
    border-radius: 4px;
    text-decoration: none;
    color: #444;
    background: #fff;
    font-size: 14px;
    transition: all 0.15s ease;
}

.mtv2-page-link:hover {
    border-color: #c9a227;
    color: #c9a227;
}

.mtv2-page-info {
    color: #888;
    font-size: 14px;
}

/* ---- Empty State ---- */
.mtv2-empty {
    text-align: center;
    padding: 48px 24px;
    color: #888;
    font-size: 16px;
}

/* ---- Footer ---- */
.mtv2-footer {
    background: #111;
    color: #999;
    margin-top: 10px;
    font-size: 14px;
    border-top: 1px solid #e5e5e5;
    position: relative;
    font-family: var(--font-body);
}

.mtv2-footer::before {
    content: '';
    display: block;
    height: 3px;
    background: #c9a227;
    position: absolute;
    top: 0;
    left: 50%;
    transform: translateX(-50%);
    width: 60px;
}

.mtv2-footer-inner {
    max-width: 1200px;
    margin: 0 auto;
    padding: 56px 24px 40px;
}

.mtv2-footer-main {
    display: grid;
    grid-template-columns: 1.4fr 1fr 1fr 1.4fr;
    gap: 56px;
}

@media (max-width: 768px) {
    .mtv2-footer-main {
        grid-template-columns: 1fr 1fr;
        gap: 40px;
    }
}

@media (max-width: 480px) {
    .mtv2-footer-main {
        grid-template-columns: 1fr;
        gap: 32px;
    }
}

.mtv2-footer-brand {
    color: #fff;
    margin-bottom: 15px;
    line-height: 1.2;
}
.mtv2-footer-brand svg {
    max-width: 100%;
    height: auto;
    display: block;
}

.mtv2-footer-tagline {
    font-size: 14px;
    color: #777;
    margin: 0 0 24px;
    line-height: 1.5;
    font-weight: 400;
}

.mtv2-footer h4 {
    color: #fff;
    font-size: 14px;
    margin: 0 0 18px;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.08em;
    font-family: var(--font-heading);
}

.mtv2-footer-links {
    list-style: none;
    padding: 0;
    margin: 0;
}

.mtv2-footer-links li {
    margin-bottom: 12px;
}

.mtv2-footer-links a {
    color: #888;
    text-decoration: none;
    font-size: 14px;
    font-weight: 500;
    transition: color 0.2s ease, transform 0.2s ease;
    display: inline-block;
}

.mtv2-footer-links a:hover {
    color: #D12932;
    transform: translateX(2px);
}

.mtv2-footer-more {
    color: #c9a227 !important;
    font-weight: 600;
    font-size: 13px;
    letter-spacing: 0.02em;
}

.mtv2-footer-cta-col p {
    margin: 0 0 20px;
    line-height: 1.6;
    font-size: 14px;
    color: #888;
}

.mtv2-footer-cta-btn {
    display: inline-block;
    padding: 12px 28px;
    background: transparent;
    color: #fff !important;
    border: 1px solid #fff;
    border-radius: 2px;
    font-weight: 600;
    font-size: 13px;
    text-decoration: none !important;
    letter-spacing: 0.04em;
    text-transform: uppercase;
    transition: all 0.2s ease;
}

.mtv2-footer-cta-btn:hover {
    background: #D12932;
    border-color: #D12932;
    color: #fff !important;
}

.mtv2-footer-bottom {
    margin-top: 48px;
    padding-top: 28px;
    border-top: 1px solid #222;
    font-size: 13px;
    color: #555;
}

.mtv2-footer-bottom-row {
    display: flex;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    line-height: 1.6;
}

.mtv2-footer-sep {
    color: #333;
}

.mtv2-footer-disclaimer {
    color: #444;
}

.mtv2-footer-circular-230 {
    margin-top: 12px;
    line-height: 1.7;
    color: #444;
    max-width: 700px;
    font-size: 12px;
}

.mtv2-footer-circular-230 strong {
    color: #666;
    font-weight: 600;
}

/* ---- Cookie Consent (EU only) ---- */
.mtv2-cookie-consent {
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    background: #1a1a2e;
    color: #eee;
    padding: 16px 24px;
    z-index: 9999;
    font-size: 14px;
    line-height: 1.5;
}
.mtv2-cookie-consent-inner {
    max-width: 1100px;
    margin: 0 auto;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 24px;
}
.mtv2-cookie-consent p {
    margin: 0;
}
.mtv2-cookie-consent a {
    color: #90caf9;
    text-decoration: underline;
    margin-left: 4px;
}
.mtv2-cookie-consent a:hover {
    color: #bbdefb;
}
.mtv2-cookie-consent-actions {
    display: flex;
    align-items: center;
    gap: 12px;
    flex-shrink: 0;
}
.mtv2-cookie-consent button {
    background: #fff;
    color: #1a1a2e;
    border: none;
    padding: 8px 20px;
    border-radius: 6px;
    font-weight: 600;
    font-size: 14px;
    cursor: pointer;
}
.mtv2-cookie-consent button:hover {
    background: #e0e0e0;
}
.mtv2-cookie-consent .mtv2-cookie-decline {
    background: transparent;
    color: #aaa;
    border: 1px solid #555;
    font-weight: 400;
}
.mtv2-cookie-consent .mtv2-cookie-decline:hover {
    background: #2a2a3e;
    color: #fff;
}
@media (max-width: 640px) {
    .mtv2-cookie-consent-inner {
        flex-direction: column;
        text-align: center;
        gap: 12px;
    }
}

/* ---- Section Title (extracted from homepage inline styles) ---- */
.mtv2-section-title {
    font-size: 20px;
    font-weight: 600;
    margin: 0 0 20px;
    color: #1a1a1a;
}

/* ---- Category Pills (extracted from homepage inline styles) ---- */
.mtv2-category-pills {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
}

.mtv2-category-pill {
    display: inline-block;
    padding: 8px 16px;
    border: 1px solid #c0c0c0;
    border-radius: 24px;
    background: #fff;
    color: #000000;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
    cursor: pointer;
}

.mtv2-category-pill:hover {
    background: #eef2ff;
    border-color: #d0d0d0;
    color: #000000;
    text-decoration: none;
}

.pill-count {
    color: #666;
    margin-left: 2px;
}

/* ---- Category Chips (extracted from homepage inline styles) ---- */
.mtv2-category-chip {
    display: inline-block;
    padding: 8px 16px;
    background: #f0f4ff;
    color: #0d6efd;
    border-radius: 20px;
    text-decoration: none;
    font-size: 14px;
    transition: all 0.2s ease;
}

.mtv2-category-chip:hover {
    background: #e2e8ff;
    color: #084298;
    text-decoration: none;
}

/* ---- City Categories (extracted from homepage inline styles) ---- */
.mtv2-city-categories {
    margin-bottom: 40px;
}

.mtv2-city-block {
    margin-bottom: 24px;
}

.mtv2-city-title {
    font-size: 15px;
    font-weight: 500;
    color: #333;
    margin: 0 0 10px;
}
