.mcaqmd-app {
    --mcaqmd-search-accent: #0a62ff;
    font-family: Arial, sans-serif;
    width: 100vw;
    max-width: 100vw;
    height: 100vh;
    margin-left: calc(50% - 50vw);
    overflow-x: hidden;
    position: relative;
}

.mcaqmd-app,
.mcaqmd-app * {
    box-sizing: border-box;
}

/* HERO */
.mcaqmd-app .hero {
    width: 100%;
    margin: 0;
    padding: 0;
    /* display: block;  */
}

/* HEADER */
.mcaqmd-app .header {
    display: flex;
    justify-content: space-between;
    padding: 20px;
}

/* SEARCH */
.mcaqmd-app .search-container {
    text-align: center !important;
    width: 100%;
    margin-top: 12%;
}

.mcaqmd-app .search-wrapper {
    display: inline-flex !important;
    align-items: center;
    justify-content: flex-start;

    width: 90% !important;
    max-width: 960px !important;
    inline-size: 90% !important;
    max-inline-size: 960px !important;
    min-width: 320px;
    height: 60px !important;
    min-height: 60px !important;

    margin: 0 auto;

/* format stuff */
    background: #fff;
    border: 2px solid var(--mcaqmd-search-accent);
    border-radius: 999px;

    box-shadow: 0 2px 10px rgba(0,0,0,0.18);

    overflow: hidden;
}

.mcaqmd-app .search-icon {
    flex: 0 0 44px;
    width: 44px;
    height: 55px !important;
    min-height: 0 !important;
    margin-left: 10px;
    color: transparent;
    font-size: 0;
    position: relative;
    display: block !important;
    cursor: pointer;
}

.mcaqmd-app .search-icon::before {
    content: "";
    position: absolute;
    left: 8px;
    top: 13px;
    width: 16px;
    height: 16px;
    border: 2px solid var(--mcaqmd-search-accent);
    border-radius: 50%;
    display: block;
}

.mcaqmd-app .search-icon::after {
    content: "";
    position: absolute;
    left: 23px;
    top: 29px;
    width: 10px;
    height: 2px;
    background: var(--mcaqmd-search-accent);
    border-radius: 2px;
    transform: rotate(45deg);
    transform-origin: left center;
    display: block;
}

.mcaqmd-app .search-box {
    flex: 1 1 auto !important;
    min-width: 0;
    width: 100% !important;
    max-width: none !important;
    border: 0;
    outline: 0;
    padding: 0 12px;
    height: 55px !important;
    min-height: 0 !important;
    font-size: 17px;
    background: transparent;
    text-align: left !important;
    box-shadow: none !important;
}

.mcaqmd-app .search-box::placeholder {
    color: #5f6368;
    opacity: 1;
    text-align: left;
}

.mcaqmd-app .search-right-icons {
    display: flex;
    align-items: center;
    justify-content: center;
    flex: 0 0 44px;
    width: 44px;
    height: 55px !important;
    min-height: 0 !important;
    margin-left: auto !important;
    margin-right: 10px;
}

.mcaqmd-app .search-right-icons button {
    width: 34px !important;
    height: 46px !important;
    min-height: 0 !important;
    margin: 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: transparent;
    font-size: 0;
    cursor: pointer;
    position: relative;
    background-color: var(--mcaqmd-search-accent);
    -webkit-mask-image: url("data:image/svg+xml,%3Csvg width='16' height='24' viewBox='0 0 16 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='5' y='1' width='6' height='13' rx='3' stroke='black' stroke-width='2'/%3E%3Cpath d='M1 10v2a7 7 0 0 0 14 0v-2' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M8 19v4M5 23h6' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    mask-image: url("data:image/svg+xml,%3Csvg width='16' height='24' viewBox='0 0 16 24' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Crect x='5' y='1' width='6' height='13' rx='3' stroke='black' stroke-width='2'/%3E%3Cpath d='M1 10v2a7 7 0 0 0 14 0v-2' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3Cpath d='M8 19v4M5 23h6' stroke='black' stroke-width='2' stroke-linecap='round'/%3E%3C/svg%3E");
    -webkit-mask-position: center;
    mask-position: center;
    -webkit-mask-repeat: no-repeat;
    mask-repeat: no-repeat;
    -webkit-mask-size: 16px 24px;
    mask-size: 16px 24px;
    background-position: center;
    background-repeat: no-repeat;
    background-size: 16px 24px;
    min-width: 0 !important;
    box-shadow: none !important;
    line-height: 1 !important;
}

.mcaqmd-app .search-right-icons button::before {
    content: none;
}

.mcaqmd-app .search-right-icons button::after {
    content: none;
}

/* QUICK BUTTONS */

.mcaqmd-app .quick-buttons {
    display: flex !important;
    justify-content: center;
    align-items: center;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 18px;
}

.mcaqmd-app .quick-buttons button {
    display: inline-block !important;
    width: auto !important;
    margin: 0;
    padding: 8px 13px;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 999px;
    background: rgba(255,255,255,0.78);
    color: #1f2933;
    font-size: 14px;
    box-shadow: 0 2px 8px rgba(0,0,0,0.12);
}

/* INFO BOX */
.mcaqmd-app .info-box-wrapper {
    display: flex !important;
    justify-content: center;
    width: 100%;
}

.mcaqmd-app .info-box {
    display: none;
    width: min(90vw, 620px);
    max-width: 620px;
    margin-top: 18px;
    background: rgba(18, 27, 36, 0.72);
    backdrop-filter: blur(8px);
    border: 1px solid rgba(255,255,255,0.28);
    border-radius: 12px;
    padding: 18px 48px 18px 22px;
    color: white;
    position: relative;
    box-shadow: 0 6px 20px rgba(0,0,0,0.24);
}

.mcaqmd-app .info-box.visible {
    display: block;
}

.mcaqmd-app .info-box-close {
    position: absolute;
    top: 10px;
    right: 10px;
    width: 28px !important;
    height: 28px;
    margin: 0;
    padding: 0;
    border: 1px solid rgba(255,255,255,0.36);
    border-radius: 50%;
    background: rgba(0,0,0,0.18);
    color: transparent;
    font-size: 0;
    cursor: pointer;
}

.mcaqmd-app .info-box-close::before,
.mcaqmd-app .info-box-close::after {
    content: "";
    position: absolute;
    left: 8px;
    top: 13px;
    width: 12px;
    height: 2px;
    background: #fff;
    border-radius: 2px;
}

.mcaqmd-app .info-box-close::before {
    transform: rotate(45deg);
}

.mcaqmd-app .info-box-close::after {
    transform: rotate(-45deg);
}

.mcaqmd-app .info-box-title {
    margin: 0 0 10px;
    font-size: 18px;
    line-height: 1.25;
    font-weight: 700;
}

.mcaqmd-app .info-box-summary {
    margin: 0;
    font-size: 15px;
    line-height: 1.45;
}

.mcaqmd-app .info-row {
    display: flex;
    justify-content: space-between;
    gap: 18px;
    padding: 7px 0;
    border-top: 1px solid rgba(255,255,255,0.16);
    font-size: 14px;
}

.mcaqmd-app .info-row:first-of-type {
    border-top: 0;
}

.mcaqmd-app .info-label {
    font-weight: 700;
}

.mcaqmd-app .badge {
    display: inline-block;
    padding: 2px 7px;
    border-radius: 999px;
    font-size: 12px;
    font-weight: 700;
}

.mcaqmd-app .badge.good {
    background: #d8f6df;
    color: #145a25;
}

.mcaqmd-app .badge.moderate {
    background: #fff1c2;
    color: #765100;
}

.mcaqmd-app .info-action-row {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
    margin-top: 14px;
}

.mcaqmd-app .info-action-row button {
    width: auto !important;
    margin: 0;
    padding: 7px 11px;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 999px;
    background: rgba(255,255,255,0.9);
    color: #17212b;
    font-size: 13px;
    cursor: pointer;
}

.mcaqmd-app .info-action-link {
    display: inline-flex;
    align-items: center;
    width: auto !important;
    margin: 0;
    padding: 7px 11px;
    border: 1px solid rgba(255,255,255,0.35);
    border-radius: 999px;
    background: rgba(255,255,255,0.9);
    color: #17212b;
    font-size: 13px;
    text-decoration: none;
    cursor: pointer;
}

.mcaqmd-app .burn-status-content {
    font-size: 15px;
    line-height: 1.45;
}

.mcaqmd-app .burn-status-content p {
    margin: 0 0 8px;
}

.mcaqmd-app .burn-status-content p:last-child {
    margin-bottom: 0;
}

.mcaqmd-app .aqi-status-content {
    font-size: 15px;
    line-height: 1.45;
}

.mcaqmd-app .aqi-heading,
.mcaqmd-app .aqi-observed {
    margin: 0 0 4px;
}

.mcaqmd-app .aqi-metrics {
    display: flex;
    flex-wrap: wrap;
    gap: 28px;
    margin-top: 14px;
}

.mcaqmd-app .aqi-metric {
    min-width: 115px;
}

.mcaqmd-app .aqi-label {
    font-size: 15px;
}

.mcaqmd-app .aqi-value {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 56px;
    margin-left: 6px;
    padding: 4px 13px;
    border-radius: 8px;
    font-weight: 700;
}

.mcaqmd-app .aqi-category {
    margin-top: 4px;
    font-weight: 700;
}

/* TILES */
.mcaqmd-app .tiles {
    position: absolute;
    bottom: 0;
    display: flex;
    justify-content: center;
    width: 100%;
    gap: 10px;
    padding: 10px;
}

.mcaqmd-app .tile {
    flex: 0 0 188px;
    width: 188px;
    height: 124px;
    background: #1f1f1f;
    border-radius: 4px;
    overflow: hidden;
    cursor: pointer;
    box-shadow: 0 3px 10px rgba(0,0,0,0.24);
    display: grid !important;
    grid-template-rows: 36px 88px;
    grid-template-columns: 1fr;
}

.mcaqmd-app .tile img {
    display: block !important;
    width: 100%;
    height: 88px !important;
    max-width: none !important;
    max-height: none !important;
    object-fit: cover !important;
    grid-row: 2;
    grid-column: 1;
}

.mcaqmd-app .tile span {
    display: flex !important;
    align-items: center !important;
    grid-row: 1;
    grid-column: 1;
    height: 36px !important;
    min-height: 0 !important;
    max-height: 36px !important;
    width: 100%;
    padding: 0 11px;
    margin: 0 !important;
    font-size: 13px !important;
    line-height: 1.2 !important;
    font-weight: 700 !important;
    color: #fff !important;
    background: #1f1f1f !important;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    visibility: visible !important;
    opacity: 1 !important;
}
