/* =========================================================================
   F15 „Parcele" — the chooser (F05's markup and script, this look's shape):
   „Što uzgajate?" is a field seen from the air; each farm type is a parcel you tap; a chosen parcel fills with its colour
   and shows a tick (so it is visible without colour, too). Phones: the same parcels in two columns (as drawn).
   Loaded on the home page and on the list pages that carry the chooser. Colours only from tokeni.css.
   ========================================================================= */
.ap-izgled-parcele .ap-chooser { display: block; }
.ap-izgled-parcele .ap-chooser .ap-title { margin: 0; padding: 0; border: 0; font: 700 calc(30px * var(--ap-scale))/1.05 var(--ap-font-head); text-transform: uppercase; color: var(--ap-text); }
.ap-izgled-parcele .ap-chooser .ap-title::before { display: none; }
.ap-pr-izbor-uputa { margin: .2rem 0 .9rem; color: var(--ap-muted); font-size: var(--ap-fs-s); }
.ap-izgled-parcele .ap-chooser .ap-panel { padding: 0; background: none; box-shadow: none; border: 0; }
.ap-izgled-parcele .ap-types-toggle, .ap-izgled-parcele .ap-types-done { display: none !important; }

/* the field */
.ap-izgled-parcele .ap-types { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); grid-auto-rows: calc(70px * var(--ap-scale)); gap: 5px;
	padding: 5px; margin: 0; border: 0; border-radius: 11px; background: var(--ap-pr-parcela-crta); }
.ap-izgled-parcele .ap-types .ap-type-btn,
.ap-izgled-parcele .ap-types .ap-type-btn:hover,
.ap-izgled-parcele .ap-types .ap-type-btn:focus {
	--ap-pr-kut: 90deg;
	position: relative; display: flex; flex-direction: column; justify-content: flex-end; align-items: flex-start; gap: 0;
	min-height: 44px; margin: 0; padding: .5rem .65rem; border: 0; border-radius: var(--ap-pr-radius-xs); text-align: left; cursor: pointer;
	font: 600 var(--ap-fs-m)/1.15 var(--ap-font); color: var(--ap-text);
	background: repeating-linear-gradient(var(--ap-pr-kut), transparent 0 9px, color-mix(in srgb, var(--ap-pr-boja) 16%, transparent) 9px 11px), var(--ap-pr-parcela); }
.ap-izgled-parcele .ap-types .ap-type-btn:hover { outline: 3px solid var(--ap-pr-boja); outline-offset: -3px; }
.ap-izgled-parcele .ap-types .ap-type-btn:focus-visible { outline: 3px solid var(--ap-focus); outline-offset: 2px; z-index: 1; }
/* colour dot top left, round tick box top right */
.ap-izgled-parcele .ap-types .ap-dot { position: absolute; top: .5rem; left: .65rem; width: .85rem; height: .85rem; border: 0; border-radius: 50%; background: var(--ap-pr-boja); }
.ap-izgled-parcele .ap-types .ap-tick { position: absolute; top: .4rem; right: .5rem; display: grid; place-items: center; width: 1.6rem; height: 1.6rem;
	border-radius: 50%; border: 2px solid var(--ap-pr-kvacica-rub); background: var(--ap-card); color: transparent; font: 800 15px/1 var(--ap-font); }
/* chosen: the parcel fills with its colour, the box gets a tick */
.ap-izgled-parcele .ap-types .ap-type-btn[aria-pressed="true"],
.ap-izgled-parcele .ap-types .ap-type-btn[aria-pressed="true"]:hover,
.ap-izgled-parcele .ap-types .ap-type-btn[aria-pressed="true"]:focus { background: var(--ap-pr-boja); color: var(--ap-pr-pritisnuto-tekst); }
.ap-izgled-parcele .ap-types .ap-type-btn[aria-pressed="true"] .ap-dot { background: var(--ap-pr-pritisnuto-tekst); }
.ap-izgled-parcele .ap-types .ap-type-btn[aria-pressed="true"] .ap-tick { border-color: var(--ap-white); background: var(--ap-white); color: var(--ap-ink-dark); }
/* the shapes of the parcels, as drawn (order set by feature.php: field crops first = the big one) */
.ap-izgled-parcele .ap-types .ap-type-btn:nth-child(1) { grid-column: span 2; grid-row: span 2; }
.ap-izgled-parcele .ap-types .ap-type-btn:nth-child(2) { grid-column: span 2; --ap-pr-kut: 0deg; }
.ap-izgled-parcele .ap-types .ap-type-btn:nth-child(3) { grid-column: span 2; --ap-pr-kut: 45deg; }
.ap-izgled-parcele .ap-types .ap-type-btn:nth-child(4) { grid-column: span 2; --ap-pr-kut: 135deg; }
.ap-izgled-parcele .ap-types .ap-type-btn:nth-child(5) { grid-column: span 2; }
.ap-izgled-parcele .ap-types .ap-type-btn:nth-child(6) { grid-column: span 3; --ap-pr-kut: 0deg; }
.ap-izgled-parcele .ap-types .ap-type-btn:nth-child(7) { grid-column: span 3; --ap-pr-kut: 60deg; }
.ap-izgled-parcele .ap-types .ap-type-btn:nth-child(8) { grid-column: span 2; --ap-pr-kut: 120deg; }
.ap-izgled-parcele .ap-types .ap-type-btn:nth-child(9) { grid-column: span 2; }
.ap-izgled-parcele .ap-types .ap-type-btn:nth-child(10) { grid-column: span 2; --ap-pr-kut: 30deg; }
.ap-izgled-parcele .ap-types .ap-type-btn:nth-child(n+11) { grid-column: span 2; }

/* county + sea/hills */
.ap-izgled-parcele .ap-where { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .25rem .8rem; margin-top: 1rem; align-items: end; }
.ap-izgled-parcele .ap-where-label { grid-column: 1; font: 600 var(--ap-fs-s)/1.3 var(--ap-font); }
.ap-izgled-parcele .ap-where-label .ap-muted { font-weight: 600; color: inherit; }
.ap-izgled-parcele .ap-where .ap-select { grid-column: 1; width: 100%; min-width: 0; min-height: 44px; padding: 0 .6rem; border: 1px solid var(--ap-muted); border-radius: var(--ap-radius-sm);
	background: var(--ap-card); color: var(--ap-text); font: 400 var(--ap-fs-m)/1.2 var(--ap-font); }
.ap-izgled-parcele .ap-podrucje { grid-column: 2; grid-row: 1 / span 2; display: flex; flex-wrap: wrap; align-items: center; gap: .25rem .5rem; }
.ap-izgled-parcele .ap-podrucje[hidden] { display: none; }
.ap-izgled-parcele .ap-podrucje-q { width: 100%; font: 600 var(--ap-fs-s)/1.3 var(--ap-font); }
.ap-izgled-parcele .ap-podrucje-btn, .ap-izgled-parcele .ap-podrucje-btn:hover, .ap-izgled-parcele .ap-podrucje-btn:focus {
	display: inline-flex; align-items: center; gap: .4rem; min-height: 44px; min-width: 0; padding: 0 1rem; border: 1px solid var(--ap-muted); border-radius: 999px;
	background: var(--ap-card); color: var(--ap-text); font: 600 var(--ap-fs-s)/1 var(--ap-font); cursor: pointer; }
.ap-izgled-parcele .ap-podrucje-btn .ap-tick { display: none; }
.ap-izgled-parcele .ap-podrucje-btn[aria-pressed="true"], .ap-izgled-parcele .ap-podrucje-btn[aria-pressed="true"]:hover { background: var(--ap-pr-tamno); border-color: var(--ap-pr-tamno); color: var(--ap-pr-na-tamnom); }
.ap-izgled-parcele .ap-podrucje-btn[aria-pressed="true"] .ap-tick { display: inline; }
html[data-ap-tema="tamna"] .ap-izgled-parcele .ap-podrucje-btn[aria-pressed="true"] { background: var(--ap-text); border-color: var(--ap-text); color: var(--ap-bg); }

/* „remembered on this device" line */
.ap-izgled-parcele .ap-keep { margin: .6rem 0 0; color: var(--ap-muted); font-size: var(--ap-fs-xs); }
.ap-izgled-parcele .ap-link-btn, .ap-izgled-parcele .ap-link-btn:hover, .ap-izgled-parcele .ap-link-btn:focus {
	min-height: 44px; padding: 0 .2rem; border: 0; background: none; color: var(--ap-link); font: 600 var(--ap-fs-xs)/1 var(--ap-font); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }

/* F06's result box under the chooser: this look shows the same result as „Za vas danas" (home page) */
.ap-izgled-parcele .ap-pr-izbor .ap-foryou-box { display: none !important; }

@media (max-width: 48rem) {
	.ap-izgled-parcele .ap-types { grid-template-columns: repeat(2, minmax(0, 1fr)); grid-auto-rows: calc(64px * var(--ap-scale)); }
	.ap-izgled-parcele .ap-types .ap-type-btn:nth-child(n) { grid-column: span 1; grid-row: span 1; }
	.ap-izgled-parcele .ap-where { grid-template-columns: 1fr; }
	.ap-izgled-parcele .ap-podrucje { grid-column: 1; grid-row: auto; }
}
