/* ───────── Search phone (components.SearchPhone) ─────────
   A phone showing a Google results page on a phone: search box, tabs and
   the "Places" map with its listings. It imitates Google's light theme on
   purpose, so its colours are fixed rather than site tokens. Roboto is not
   loaded; phones that have it use it, the rest fall back to Arial.
   Layout around it (tilt, notes, mobile sizing) lives in
   pages/service-page.css (.sp-showcase). */

.sph {
    width: 360px;
    height: 780px;
    padding: 11px;
    border-radius: 54px;
    background: #120a1f;
    box-shadow:
        0 0 0 1px rgba(255, 255, 255, 0.14),
        0 40px 100px rgba(0, 0, 0, 0.6),
        0 0 140px rgba(180, 124, 253, 0.2);
    position: relative;
    flex: none;
}

.sph-screen {
    position: relative;
    width: 100%;
    height: 100%;
    overflow: hidden;
    border-radius: 44px;
    background: #fff;
    color: #202124;
    font-family: Roboto, Arial, sans-serif;
    text-align: left;
}

.sph-island {
    position: absolute;
    z-index: 3;
    top: 11px;
    left: 50%;
    width: 100px;
    height: 30px;
    transform: translateX(-50%);
    border-radius: 20px;
    background: #000;
}

.sph-status {
    display: flex;
    justify-content: space-between;
    align-items: center;
    height: 50px;
    padding: 16px 30px 0;
    font-size: 15px;
    font-weight: 500;
}

.sph-status-icons {
    display: flex;
    align-items: center;
    gap: 6px;
}

.sph-ico {
    display: inline-block;
    flex: none;
    width: 22px;
    height: 22px;
    background: center / contain no-repeat;
}

.sph-sig {
    width: 17px;
    height: 11px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 17 11'><rect y='7' width='3' height='4' rx='1' fill='%23202124'/><rect x='4.5' y='5' width='3' height='6' rx='1' fill='%23202124'/><rect x='9' y='2.5' width='3' height='8.5' rx='1' fill='%23202124'/><rect x='13.5' width='3' height='11' rx='1' fill='%23202124'/></svg>");
}

.sph-wifi {
    width: 16px;
    height: 12px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 12'><path fill='%23202124' d='M8 2.5c2.3 0 4.4.9 6 2.4l1.2-1.3A10.4 10.4 0 0 0 8 .7 10.4 10.4 0 0 0 .8 3.6L2 4.9a8.6 8.6 0 0 1 6-2.4zm0 3.6c1.3 0 2.5.5 3.4 1.3l1.2-1.3A6.8 6.8 0 0 0 8 4.3a6.8 6.8 0 0 0-4.6 1.8l1.2 1.3A5 5 0 0 1 8 6.1zM8 12l2.2-2.4a3.2 3.2 0 0 0-4.4 0z'/></svg>");
}

.sph-bat {
    display: inline-block;
    position: relative;
    width: 25px;
    height: 12px;
    border: 1.5px solid #202124;
    border-radius: 4px;
}

.sph-bat::after {
    content: "";
    position: absolute;
    top: 1.5px;
    bottom: 1.5px;
    left: 1.5px;
    right: 5px;
    border-radius: 1.5px;
    background: #202124;
}

.sph-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 4px 16px 10px;
}

.sph-menu {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path d='M3 6h18M3 12h18M3 18h18' stroke='%235f6368' stroke-width='2'/></svg>");
}

.sph-avatar {
    display: grid;
    place-items: center;
    width: 30px;
    height: 30px;
    border-radius: 50%;
    background: #7e57c2;
    color: #fff;
    font-size: 13px;
    font-weight: 500;
}

.sph-search {
    display: flex;
    align-items: center;
    gap: 12px;
    margin: 0 12px;
    padding: 12px 16px;
    border-radius: 26px;
    box-shadow: 0 1px 6px rgba(32, 33, 36, 0.28);
    font-size: 16px;
}

.sph-query {
    flex: 1;
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.sph-mag {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%239aa0a6' d='M15.5 14h-.79l-.28-.27A6.47 6.47 0 0 0 16 9.5 6.5 6.5 0 1 0 9.5 16c1.61 0 3.09-.59 4.23-1.57l.27.28v.79l5 4.99L20.49 19l-4.99-5zm-6 0C7.01 14 5 11.99 5 9.5S7.01 5 9.5 5 14 7.01 14 9.5 11.99 14 9.5 14z'/></svg>");
}

.sph-x {
    width: 20px;
    height: 20px;
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%2370757a' d='M19 6.41 17.59 5 12 10.59 6.41 5 5 6.41 10.59 12 5 17.59 6.41 19 12 13.41 17.59 19 19 17.59 13.41 12z'/></svg>");
}

.sph-mic {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%234285f4' d='M12 15a3 3 0 0 0 3-3V6a3 3 0 0 0-6 0v6a3 3 0 0 0 3 3z'/><path fill='%2334a853' d='M11 18.9V22h2v-3.1A7 7 0 0 0 19 12h-2a5 5 0 0 1-10 0H5a7 7 0 0 0 6 6.9z'/></svg>");
}

.sph-tabs {
    display: flex;
    gap: 20px;
    padding: 14px 16px 0;
    overflow: hidden;
    border-bottom: 1px solid #ebebeb;
    color: #5f6368;
    font-size: 13.5px;
    white-space: nowrap;
}

.sph-tabs span {
    padding-bottom: 10px;
}

.sph-tabs .sph-tab-on {
    padding-bottom: 7px;
    border-bottom: 3px solid #1a73e8;
    color: #202124;
    font-weight: 500;
}

.sph-places {
    padding: 12px 16px 0;
}

.sph-places-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
    font-size: 19px;
}

.sph-places-head span {
    color: #70757a;
}

.sph-map {
    position: relative;
    height: 110px;
    overflow: hidden;
    border-radius: 14px;
    background: #e9eef2 url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 330 110' preserveAspectRatio='none'><rect x='210' y='10' width='80' height='44' rx='10' fill='%23cfe8d0'/><path d='M0 74 C90 48 170 96 330 38' stroke='white' stroke-width='9' fill='none'/><path d='M0 74 C90 48 170 96 330 38' stroke='%23fdd663' stroke-width='3.5' fill='none'/><path d='M70 0 L110 110 M190 0 L170 110 M0 22 L330 88' stroke='white' stroke-width='5' fill='none'/><path d='M282 0 L312 110' stroke='%23aadaff' stroke-width='8' fill='none'/></svg>") center / 100% 100% no-repeat;
}

.sph-pin {
    position: absolute;
    width: 20px;
    height: 20px;
    transform: rotate(-45deg);
    border-radius: 50% 50% 50% 0;
    background: #ea4335;
    box-shadow: 0 1px 3px rgba(0, 0, 0, 0.3);
}

.sph-pin::after {
    content: "";
    position: absolute;
    inset: 6px;
    border-radius: 50%;
    background: #a50e0e;
}

.sph-pin-1 { left: 18%; top: 46px; }
.sph-pin-2 { left: 46%; top: 24px; }
.sph-pin-3 { left: 72%; top: 58px; }

.sph-place {
    padding: 12px 0;
    border-bottom: 1px solid #ebebeb;
}

.sph-name {
    font-size: 16px;
}

.sph-meta {
    margin-top: 3px;
    color: #70757a;
    font-size: 13.5px;
}

.sph-stars {
    margin: 0 4px;
    color: #fbbc04;
    letter-spacing: 0.5px;
}

.sph-acts {
    display: flex;
    gap: 6px;
    margin-top: 9px;
}

.sph-act {
    display: inline-flex;
    align-items: center;
    gap: 6px;
    padding: 6px 11px;
    border: 1px solid #dadce0;
    border-radius: 18px;
    color: #1a73e8;
    font-size: 13px;
    font-weight: 500;
}

.sph-act::before {
    content: "";
    width: 15px;
    height: 15px;
    background: center / contain no-repeat;
}

.sph-call::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%231a73e8' d='M6.6 10.8a15.1 15.1 0 0 0 6.6 6.6l2.2-2.2a1 1 0 0 1 1-.25c1.12.37 2.33.57 3.6.57a1 1 0 0 1 1 1V20a1 1 0 0 1-1 1A17 17 0 0 1 3 4a1 1 0 0 1 1-1h3.5a1 1 0 0 1 1 1c0 1.25.2 2.45.57 3.57a1 1 0 0 1-.25 1z'/></svg>");
}

.sph-dir::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'><path fill='%231a73e8' d='M21.7 11.3l-9-9a1 1 0 0 0-1.4 0l-9 9a1 1 0 0 0 0 1.4l9 9a1 1 0 0 0 1.4 0l9-9a1 1 0 0 0 0-1.4zM14 14.5V12h-4v3H8v-4a1 1 0 0 1 1-1h5V7.5l3.5 3.5-3.5 3.5z'/></svg>");
}

.sph-web::before {
    background-image: url("data:image/svg+xml;utf8,<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%231a73e8' stroke-width='2'><circle cx='12' cy='12' r='9'/><path d='M3 12h18M12 3c3 3 3 15 0 18M12 3c-3 3-3 15 0 18'/></svg>");
}

.sph-more {
    margin-top: 12px;
    padding: 11px;
    border-radius: 22px;
    background: #f1f3f4;
    font-size: 14px;
    font-weight: 500;
    text-align: center;
}
