#sunivaWorldMapLibre {
    position: absolute;
    inset: 0;
    z-index: 1;
    background: #e7d8b9;
}

/* 登録操作はPCでもスマホと同じ丸型。地図の左下でドラッグ移動できる。 */
body #sunivaMapCreatePortal.suniva-map-create-portal {
    position: fixed !important;
    top: auto !important;
    right: auto !important;
    bottom: max(112px, calc(98px + env(safe-area-inset-bottom))) !important;
    left: 24px !important;
    z-index: 12050 !important;
    display: flex !important;
    width: 72px !important;
    height: 72px !important;
    min-width: 72px !important;
    max-width: 72px !important;
    min-height: 72px !important;
    max-height: 72px !important;
    margin: 0 !important;
    padding: 0 !important;
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 1px !important;
    transform: none !important;
    border: 2px solid rgba(255,229,159,.94) !important;
    border-radius: 50% !important;
    color: #fff !important;
    background: linear-gradient(145deg,#d7a52f,#9f6e13) !important;
    box-shadow: 0 12px 28px rgba(85,58,12,.28) !important;
    text-decoration: none !important;
    touch-action: none !important;
    user-select: none !important;
    cursor: grab !important;
    will-change: left,top !important;
}

body #sunivaMapCreatePortal.suniva-map-create-portal > span {
    display: block !important;
    height: 28px !important;
    font-size: 26px !important;
    font-weight: 300 !important;
    line-height: 28px !important;
}

body #sunivaMapCreatePortal.suniva-map-create-portal > strong {
    display: block !important;
    font-size: 11px !important;
    font-weight: 800 !important;
    line-height: 1.15 !important;
    white-space: nowrap !important;
}

body #sunivaMapCreatePortal.suniva-map-create-portal.is-dragging {
    transform: scale(1.05) !important;
    cursor: grabbing !important;
    filter: brightness(1.07) !important;
}

@media (max-width: 767px), (pointer: coarse) {
    body #sunivaMapCreatePortal.suniva-map-create-portal {
        bottom: calc(98px + env(safe-area-inset-bottom)) !important;
        left: 18px !important;
    }
}

.is-suniva-maplibre-camera #sunivaWorldMapCanvas {
    inset: 0 !important;
    z-index: 2;
    width: 100% !important;
    height: 100% !important;
    transform: none !important;
    background: transparent !important;
    pointer-events: none !important;
}

.is-suniva-maplibre-camera #sunivaWorldMapCanvas .leaflet-tile-pane,
.is-suniva-maplibre-camera #sunivaWorldMapCanvas .leaflet-marker-pane,
.is-suniva-maplibre-camera #sunivaWorldMapCanvas .leaflet-shadow-pane,
.is-suniva-maplibre-camera #sunivaWorldMapCanvas .leaflet-overlay-pane,
.is-suniva-maplibre-camera #sunivaWorldMapCanvas .leaflet-control-container {
    visibility: hidden !important;
}

.is-suniva-maplibre-camera #sunivaWorldMapCanvas .leaflet-popup-pane,
.is-suniva-maplibre-camera #sunivaWorldMapCanvas .leaflet-popup-pane * {
    visibility: hidden !important;
    pointer-events: none !important;
}

.is-suniva-maplibre-camera #sunivaWorldMapCanvas .leaflet-popup-pane > .leaflet-popup {
    position: fixed !important;
    top: max(96px, calc(env(safe-area-inset-top) + 82px)) !important;
    left: 50% !important;
    bottom: auto !important;
    width: min(390px, calc(100vw - 28px));
    transform: translateX(-50%) !important;
}

.is-suniva-maplibre-camera #sunivaWorldMapCanvas .leaflet-popup-tip-container {
    display: none !important;
}

/* MapLibre上では地図座標ではなく、画面に固定した案内カードを使う。 */
.sworld-mobile-access {
    position: fixed;
    inset: 0;
    z-index: 2147483600;
    display: block;
    visibility: hidden;
    opacity: 0;
    pointer-events: none;
    transition: opacity .18s ease, visibility .18s ease;
}

.sworld-mobile-access.is-open {
    visibility: visible;
    opacity: 1;
    pointer-events: auto;
}

.sworld-mobile-access__backdrop {
    position: absolute;
    inset: 0;
    width: 100%;
    height: 100%;
    border: 0;
    background: rgba(12,34,44,.34);
    backdrop-filter: blur(2px);
}

.sworld-mobile-access__sheet {
    position: absolute;
    top: 50%;
    left: 50%;
    width: min(390px, calc(100vw - 32px));
    max-height: min(680px, calc(100dvh - 40px));
    padding: 10px;
    overflow-y: auto;
    transform: translate(-50%, calc(-50% + 18px));
    border: 1px solid rgba(211,169,70,.58);
    border-radius: 28px;
    background: #fffdf8;
    box-shadow: 0 22px 60px rgba(10,35,46,.32);
    transition: transform .22s ease;
}

.sworld-mobile-access.is-open .sworld-mobile-access__sheet {
    transform: translate(-50%, -50%);
}

.sworld-mobile-access__close {
    position: absolute;
    top: 10px;
    right: 12px;
    z-index: 2;
    width: 42px;
    height: 42px;
    border: 0;
    border-radius: 50%;
    color: #244451;
    font-size: 30px;
    line-height: 1;
    background: #f4efe4;
}

.sworld-mobile-access .sworld-access-popup {
    padding: 20px 12px 12px;
}

.sworld-mobile-access .sworld-access-popup h3 {
    padding-right: 44px;
}

/* SUNIVA PLACE ENTRY V2 — 最初のポータルカードを場所ホーム化 */
.sworld-mobile-access__sheet.has-suniva-place-home {
    width: min(620px, calc(100vw - 28px));
    padding: 0;
    overflow-x: hidden;
    background: #f7f4ed;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
}

.sworld-mobile-access__sheet.has-suniva-place-home .sworld-mobile-access__close {
    position: sticky;
    float: right;
    top: 10px;
    margin: 10px 10px -54px 0;
    color: #173e4b;
    background: rgba(255,253,247,.94);
    box-shadow: 0 4px 16px rgba(12,38,47,.16);
}

.sworld-place-home { color: #183d49; background: #f7f4ed; }
.sworld-place-home__hero {
    position: relative; min-height: 255px; overflow: hidden;
    background: linear-gradient(145deg, #183d49, #092a35);
}
.sworld-place-home__hero > img {
    position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover;
}
.sworld-place-home__hero::after {
    content: ''; position: absolute; inset: 0;
    background: linear-gradient(180deg, rgba(4,28,35,.04) 28%, rgba(4,28,35,.88));
}
.sworld-place-home__hero > div:last-child {
    position: absolute; z-index: 1; right: 20px; bottom: 22px; left: 20px; color: #fff;
}
.sworld-place-home__hero > div:last-child small { color: #f0c967; font-size: 10px; font-weight: 900; letter-spacing: .14em; }
.sworld-place-home__hero h2 { margin: 5px 0; color: #fff; font-family: Georgia, 'Yu Mincho', serif; font-size: 29px; line-height: 1.2; }
.sworld-place-home__hero p { margin: 0; color: #fff; font-size: 13px; font-weight: 800; }
.sworld-place-home__hero.is-empty > div:first-child {
    position: absolute; inset: 0; display: grid; place-items: center; color: #e6bd57; font-size: 54px;
}

.sworld-place-home__summary {
    position: relative; z-index: 2; margin: -13px 12px 0; padding: 17px 10px 19px;
    border: 1px solid rgba(199,153,48,.22); border-radius: 21px; background: #fff;
    box-shadow: 0 10px 28px rgba(20,49,56,.12);
}
.sworld-place-home__rating { display: flex; align-items: center; gap: 8px; margin: 0 7px 15px; }
.sworld-place-home__rating strong { color: #183d49; font-size: 19px; }
.sworld-place-home__rating span { color: #ce9417; letter-spacing: .04em; }
.sworld-place-home__rating small { color: #718187; font-size: 10px; }
.sworld-place-home__actions { display: grid; grid-template-columns: repeat(5, 1fr); gap: 2px; }
.sworld-place-home__actions > * {
    min-width: 0; padding: 0; border: 0; background: transparent; color: #184752;
    display: flex; flex-direction: column; align-items: center; gap: 5px;
    text-decoration: none; font: inherit; font-size: 9px; cursor: pointer;
}
.sworld-place-home__actions > * > span {
    display: grid; place-items: center; width: 47px; height: 47px; border-radius: 50%;
    color: #fff; background: #167263; font-size: 20px; font-weight: 900;
    box-shadow: 0 6px 15px rgba(22,114,99,.2);
}
.sworld-place-home__actions .is-route > span,
.sworld-place-home__actions .is-post > span { background: #bd891c; }
.sworld-place-home__actions .is-checkin > span { background: #174552; }
.sworld-place-home__actions > .is-disabled { opacity: .32; }
.sworld-place-home__actions button:disabled { opacity: .42; }
.sworld-place-home__guide { margin: 12px 0 0; color: #8a6c2c; text-align: center; font-size: 10px; font-weight: 800; }
.sworld-place-home__commerce {
    display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 15px;
}
.sworld-place-home__commerce > * {
    min-height: 48px; padding: 9px 8px; border-radius: 14px; color: #fff;
    display: flex; flex-direction: column; justify-content: center; align-items: center;
    text-align: center; text-decoration: none; font-size: 12px; font-weight: 900;
}
.sworld-place-home__commerce .is-owner { background: #b6821b; }
.sworld-place-home__commerce .is-rental { background: #147461; }
.sworld-place-home__commerce small { color: rgba(255,255,255,.82); font-size: 9px; }

.sworld-place-home__section { margin: 0 15px; padding: 27px 2px; border-bottom: 1px solid #e4ded1; }
.sworld-place-home__section h3 { margin: 0 0 13px; color: #183d49; font-size: 19px; }
.sworld-place-home__section > p { color: #50676e; font-size: 13px; line-height: 1.75; }
.sworld-place-home__section dl { margin: 15px 0 0; }
.sworld-place-home__section dl > div { display: grid; grid-template-columns: 54px 1fr; gap: 10px; padding-top: 12px; border-top: 1px solid #ebe5d8; }
.sworld-place-home__section dt { color: #78878c; font-size: 10px; font-weight: 900; }
.sworld-place-home__section dd { margin: 0; color: #294b55; font-size: 12px; }
.sworld-place-home__section details { margin-top: 14px; color: #355761; font-size: 12px; }
.sworld-place-home__section details summary { font-weight: 900; }
.sworld-place-home__section details ul { padding-left: 18px; line-height: 1.7; }
.sworld-place-home__title { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.sworld-place-home__title button { border: 0; background: transparent; color: #0d7662; font-weight: 900; }

.sworld-place-home__photos {
    display: grid; grid-auto-flow: column; grid-auto-columns: 76%; gap: 10px;
    overflow-x: auto; padding: 2px 1px 10px; scroll-snap-type: x proximity;
}
.sworld-place-home__photos figure { margin: 0; overflow: hidden; border-radius: 15px; background: #fff; scroll-snap-align: start; }
.sworld-place-home__photos img { display: block; width: 100%; aspect-ratio: 4/3; object-fit: cover; }
.sworld-place-home__photos figcaption { padding: 7px 9px; color: #78878c; font-size: 9px; }
.sworld-place-home__voices { display: grid; gap: 9px; }
.sworld-place-home__voices article { padding: 13px 14px; border: 1px solid #e5ded1; border-radius: 14px; background: #fff; }
.sworld-place-home__voices article b { font-size: 12px; }
.sworld-place-home__voices article b span { color: #d2991e; }
.sworld-place-home__voices article p { margin: 7px 0 0; color: #4a6269; font-size: 12px; line-height: 1.65; white-space: pre-wrap; }
.sworld-place-home__voices article small { color: #859196; font-size: 9px; }
.sworld-place-home__empty { padding: 19px; border-radius: 14px; background: #fffdf8; text-align: center; }
.sworld-place-home__google { display: inline-block; margin-top: 13px; color: #08745f; font-size: 12px; font-weight: 900; }
.sworld-place-home__credit { display: block; margin-top: 8px; color: #899397; font-size: 8px; }

.sworld-place-home__links { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.sworld-place-home__links button {
    min-height: 82px; padding: 10px 4px; border: 1px solid #e4d2aa; border-radius: 14px;
    background: #fffdf8; color: #183d49; display: flex; flex-direction: column;
    justify-content: center; align-items: center; gap: 5px; font-size: 20px;
}
.sworld-place-home__links button b { font-size: 10px; }
.sworld-place-home__owner { margin: 0 15px; padding: 27px 2px 36px; display: grid; gap: 9px; }
.sworld-place-home__owner > small { color: #ae7b18; font-weight: 900; letter-spacing: .08em; }
.sworld-place-home__owner > p { margin: 0; color: #173f4b; font-weight: 900; }
.sworld-place-home__owner > a {
    min-height: 50px; padding: 10px 15px; border-radius: 15px; color: #fff; background: #b6821b;
    display: flex; flex-direction: column; justify-content: center; text-align: center; text-decoration: none; font-weight: 900;
}
.sworld-place-home__owner > a:last-child { background: #147461; }
.sworld-place-home__owner > a small { color: rgba(255,255,255,.82); font-size: 9px; }

@media (max-width: 767px), (pointer: coarse) {
    .sworld-mobile-access__sheet {
        top: auto;
        right: 8px;
        bottom: 8px;
        left: 8px;
        width: auto;
        max-height: calc(100dvh - 72px);
        padding-bottom: calc(8px + env(safe-area-inset-bottom));
        transform: translateY(110%);
    }

    .sworld-mobile-access__sheet.has-suniva-place-home {
        top: 8px;
        max-height: calc(100dvh - 16px);
        border-radius: 24px;
    }

    .sworld-mobile-access.is-open .sworld-mobile-access__sheet {
        transform: translateY(0);
    }
}

.is-suniva-maplibre-camera #sunivaWorldMapCanvas::after { display: none !important; }

.is-suniva-maplibre-camera .sworld-player-marker {
    top: 70%;
    left: 50%;
    z-index: 1250;
    width: 58px;
    height: 58px;
    visibility: hidden !important;
}

.is-suniva-maplibre-camera .sworld-player-marker__direction {
    top: -15px;
    width: 12px;
    height: 17px;
    transform: translateX(-50%) !important;
}

.is-suniva-maplibre-camera .sworld-player-marker__halo { inset: -9px; }

.is-suniva-maplibre-camera .maplibregl-map {
    font-family: inherit;
}

.is-suniva-maplibre-camera .maplibregl-canvas {
    filter: sepia(.64) saturate(.62) brightness(1.06) contrast(.92);
}

.suniva-maplibre-marker {
    border: 0 !important;
    background: transparent !important;
    cursor: pointer;
}

.suniva-maplibre-marker .sworld-portal-marker,
.suniva-maplibre-marker .suniva-nearby-person {
    transform: none !important;
    backface-visibility: visible !important;
}

.suniva-maplibre-marker .sworld-portal-marker {
    transform: scale(1.22) !important;
    transform-origin: 50% 100% !important;
    filter: drop-shadow(0 8px 7px rgba(64,41,19,.28));
}

.suniva-maplibre-self {
    position: relative;
    width: 62px;
    height: 62px;
    pointer-events: none;
}

.suniva-maplibre-self__halo {
    position: absolute;
    inset: -10px;
    border: 2px solid rgba(194,145,47,.72);
    border-radius: 50%;
    background: rgba(255,250,232,.20);
    box-shadow: 0 0 0 7px rgba(255,250,232,.14),0 7px 18px rgba(54,35,19,.22);
}

.suniva-maplibre-self__icon {
    position: absolute;
    inset: 2px;
    overflow: hidden;
    border: 3px solid #fff8dc;
    border-radius: 50%;
    background: #173f52;
    box-shadow: 0 0 0 3px #bc8b32,0 7px 14px rgba(22,42,44,.28);
}

.suniva-maplibre-self__icon img {
    display: block;
    width: 100%;
    height: 100%;
    border-radius: 50%;
    object-fit: cover;
}

.suniva-maplibre-self__direction {
    position: absolute;
    top: -20px;
    left: 50%;
    z-index: 2;
    width: 15px;
    height: 22px;
    transform: translateX(-50%);
    clip-path: polygon(50% 0,100% 100%,50% 76%,0 100%);
    background: #d7a332;
    filter: drop-shadow(0 2px 2px rgba(50,31,13,.35));
}

.suniva-maplibre-self__accuracy {
    position: absolute;
    top: calc(100% + 9px);
    left: 50%;
    min-width: 66px;
    padding: 3px 7px;
    transform: translateX(-50%);
    border-radius: 999px;
    color: #fff;
    background: rgba(18,57,69,.90);
    box-shadow: 0 3px 9px rgba(19,42,47,.18);
    font-size: 10px;
    font-weight: 800;
    line-height: 1.2;
    text-align: center;
    white-space: nowrap;
}

.suniva-maplibre-self.is-precise .suniva-maplibre-self__accuracy { background: rgba(24,123,102,.94); }
.suniva-maplibre-self.is-fair .suniva-maplibre-self__accuracy { background: rgba(168,116,22,.94); }
.suniva-maplibre-self.is-weak .suniva-maplibre-self__accuracy { background: rgba(171,73,51,.94); }

.suniva-maplibre-heading-permission {
    position: absolute;
    left: 50%;
    bottom: 94px;
    z-index: 1400;
    min-height: 40px;
    padding: 8px 16px;
    transform: translateX(-50%);
    border: 1px solid rgba(218,175,82,.85);
    border-radius: 999px;
    color: #fff9e8;
    background: rgba(16,57,70,.92);
    box-shadow: 0 8px 22px rgba(20,43,48,.24);
    font-size: 12px;
    font-weight: 800;
    white-space: nowrap;
}

.suniva-maplibre-heading-permission[hidden] { display: none !important; }
.suniva-maplibre-heading-permission { display: none !important; }

#sunivaTreasureCompass.is-suniva-gyro-on #sunivaCompassButton {
    box-shadow: 0 0 0 3px rgba(255,241,180,.75),0 0 22px 7px rgba(226,178,58,.58),inset 0 0 20px rgba(255,218,114,.28) !important;
}

#sunivaTreasureCompass.is-suniva-gyro-on #sunivaCompassButton::before {
    color: #fff1ad !important;
    text-shadow: 0 0 8px rgba(255,220,105,.95);
}

.is-suniva-maplibre-camera .maplibregl-ctrl-bottom-right {
    right: 8px;
    bottom: 76px;
    opacity: .72;
}

.is-suniva-maplibre-camera .maplibregl-ctrl-attrib {
    font-size: 9px;
}

@media (max-width: 767px) {
    .is-suniva-maplibre-camera .sworld-player-marker { top: 71%; }
}

/* SUNIVA OWNER RENTAL TOP V7 20260818
 * Place the existing owner/rental section directly below the five main actions.
 */
.sworld-place-home {
    display: flex;
    flex-direction: column;
}

.sworld-place-home__hero { order: 1; }
.sworld-place-home__summary { order: 2; }
.sworld-place-home__owner {
    order: 3;
    margin-top: 14px;
    padding-top: 14px;
    padding-bottom: 18px;
}
.sworld-place-home__section { order: 4; }

/* V5の補助表示は重複を避け、既存の正式なオーナー欄へ統一する。 */
.sworld-place-home__commerce { display: none !important; }