/*
 * saxliko.ge listing page: "მზე და ხმაური" (assets/js/micro-location.js fills the sun tile)
 */
.mloc { position: relative; overflow: hidden; }
.mloc::before { content: ""; position: absolute; inset: 0 0 auto; height: 4px; background: linear-gradient(90deg, #F5B638, #F79009 40%, #12B76A 70%, #1F5EFF); }
.mloc__head { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.mloc__head h2 { margin: 0; }
.mloc__eyebrow { display: inline-flex; align-items: center; gap: 7px; margin: 0 0 4px; font-size: .76rem; font-weight: 800; letter-spacing: .02em; color: #B54708; }
.mloc__eyebrow i { width: 8px; height: 8px; border-radius: 50%; background: #F79009; box-shadow: 0 0 0 4px rgba(247, 144, 9, .2); animation: mloc-pulse 2.4s ease-in-out infinite; }
@keyframes mloc-pulse { 50% { box-shadow: 0 0 0 7px rgba(247, 144, 9, .06); } }

/* The score ring: --score of 100 */
.mloc__score { position: relative; flex: none; display: grid; place-items: center; width: 64px; height: 64px; }
.mloc__score[hidden] { display: none; }
.mloc__score svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.mloc__score circle { fill: none; stroke: #EEF2F6; stroke-width: 4.5; }
.mloc__score .mloc__score-fill { stroke: #12B76A; stroke-linecap: round; stroke-dasharray: var(--score, 0) 100; transition: stroke-dasharray 1s cubic-bezier(.2, .7, .2, 1); }
.mloc__score b { margin-top: -6px; font-size: 1.15rem; font-weight: 800; color: var(--c-ink, #0E1A2B); }
.mloc__score small { position: absolute; bottom: 12px; font-size: .58rem; font-weight: 700; color: var(--c-muted, #66768D); }

.mloc__grid { display: grid; gap: 12px; }
@media (min-width: 720px) { .mloc__grid { grid-template-columns: minmax(0, 1.55fr) minmax(0, 1fr); } }
.mtile { position: relative; display: grid; align-content: start; gap: 6px; min-width: 0; padding: 16px; border: 1px solid var(--c-line, #E2E8F0); border-radius: 18px; background: #fff; }
.mtile--sun { background: linear-gradient(165deg, #FFFBF0, #FFFFFF 55%); border-color: #FDE7B0; }
.mtile__label { margin: 0; font-size: .78rem; font-weight: 800; color: var(--c-muted, #66768D); }
.mtile__top { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.mtile__badge { display: inline-flex; align-items: center; gap: 6px; margin: 0; padding: 6px 12px; border-radius: 999px; background: #F2F4F7; color: var(--c-ink, #0E1A2B); font-size: .92rem; font-weight: 800; justify-self: start; }
.mtile--bright .mtile__badge { background: linear-gradient(135deg, #FEF0C7, #FDE68A); color: #7A4A00; box-shadow: 0 6px 18px -8px rgba(247, 144, 9, .7); }
.mtile--fair .mtile__badge { background: #FEF6E4; color: #93500C; }
.mtile--dim .mtile__badge { background: #EEF2F6; color: #344054; }
.mtile__line { margin: 0; font-size: .9rem; color: var(--c-text, #2B3A4F); }
.mtile__line b { color: var(--c-ink, #0E1A2B); }
.mtile__error { margin: 0; padding: 10px 12px; border-radius: 12px; background: var(--c-bg, #F5F7FA); color: var(--c-muted, #66768D); font-size: .86rem; }
.mtile__error button { margin-left: 6px; padding: 3px 10px; border: 1px solid var(--c-line, #E2E8F0); border-radius: 999px; background: #fff; font: inherit; font-weight: 700; cursor: pointer; }
.mtile__skeleton { display: grid; gap: 8px; }
.mtile__skeleton i { height: 14px; border-radius: 8px; background: linear-gradient(90deg, #EEF2F6, #F7F9FC, #EEF2F6); background-size: 200% 100%; animation: mloc-shimmer 1.2s linear infinite; }
.mtile__skeleton i:first-child { width: 55%; height: 26px; }
.mtile--sun .mtile__skeleton i:nth-child(3) { height: 120px; }
@keyframes mloc-shimmer { to { background-position: -200% 0; } }

/* The sun-path chart */
.sunpath { display: block; width: 100%; height: auto; margin-top: 4px; overflow: visible; }
.sunpath__grid { stroke: rgba(14, 26, 43, .07); stroke-dasharray: 3 4; }
.sunpath__sky { fill: rgba(52, 64, 84, .2); stroke: rgba(52, 64, 84, .35); stroke-width: 1; stroke-linejoin: round; }
.sunpath__season { fill: none; stroke: rgba(247, 144, 9, .3); stroke-width: 1.2; stroke-dasharray: 2 4; }
.sunpath__free { fill: none; stroke: #F79009; stroke-width: 4; stroke-linecap: round; stroke-linejoin: round; filter: drop-shadow(0 0 4px rgba(247, 144, 9, .55)); }
.sunpath__hidden { fill: none; stroke: #98A2B3; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 3 5; }
.sunpath__now { fill: #FDB022; stroke: #fff; stroke-width: 3; filter: drop-shadow(0 0 8px rgba(253, 176, 34, .9)); }
.sunpath__axis { fill: var(--c-muted, #66768D); font: 700 10px "Noto Sans Georgian", system-ui, sans-serif; }

/* The day: 00 - 24 h */
.suntl { margin-top: 4px; }
.suntl__bar { position: relative; height: 12px; border-radius: 999px; background: #1D2939; overflow: hidden; }
.suntl__day { position: absolute; top: 0; bottom: 0; background: #DCE3EE; }
.suntl__sun { position: absolute; top: 0; bottom: 0; background: linear-gradient(90deg, #FDB022, #F79009); box-shadow: 0 0 10px rgba(247, 144, 9, .7); }
.suntl__ticks { position: relative; height: 16px; margin-top: 3px; font-size: .66rem; font-weight: 700; color: var(--c-muted, #66768D); }
.suntl__ticks span { position: absolute; transform: translateX(-50%); }
.suntl__ticks span:first-child { transform: none; }
.suntl__ticks span:last-child { transform: translateX(-100%); }
.mtile__seasons { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; margin: 4px 0 0; padding: 0; list-style: none; }
.mtile__seasons li { display: grid; gap: 1px; padding: 8px 10px; border-radius: 12px; background: rgba(255, 255, 255, .8); border: 1px solid #F2E6C9; }
.mtile__seasons span { font-size: .7rem; font-weight: 700; color: var(--c-muted, #66768D); }
.mtile__seasons b { font-size: .9rem; color: var(--c-ink, #0E1A2B); font-variant-numeric: tabular-nums; }

/* Noise: three bars, lit by the level */
.mtile--quiet { background: linear-gradient(165deg, #ECFDF3, #FFFFFF 60%); border-color: #ABEFC6; }
.mtile--medium { background: linear-gradient(165deg, #FFFAEB, #FFFFFF 60%); border-color: #FEDF89; }
.mtile--high { background: linear-gradient(165deg, #FEF3F2, #FFFFFF 60%); border-color: #FECDCA; }
.noisebar { display: flex; align-items: flex-end; gap: 5px; height: 34px; margin-top: 6px; }
.noisebar i { flex: 1; border-radius: 6px; background: #EAECF0; }
.noisebar i:nth-child(1) { height: 40%; }
.noisebar i:nth-child(2) { height: 70%; }
.noisebar i:nth-child(3) { height: 100%; }
.mtile--quiet .noisebar i:nth-child(1) { background: #12B76A; }
.mtile--medium .noisebar i:nth-child(-n+2) { background: #F79009; }
.mtile--high .noisebar i { background: #F04438; }
.mloc__note { margin: 12px 0 0; font-size: .76rem; color: var(--c-muted, #66768D); }
@media (max-width: 400px) { .mtile__seasons { grid-template-columns: 1fr; } .mtile { padding: 14px; } }
@media (prefers-reduced-motion: reduce) { .mloc__eyebrow i, .mtile__skeleton i { animation: none; } .mloc__score .mloc__score-fill { transition: none; } }
