/* Components for the Gümüşlük Guide shortcodes. Colours come from the theme's custom properties. */

/* ---------- Map ---------- */
.gb-map { margin: 2rem 0 2.4rem; }
.gb-map__filters { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 14px; }
.gb-chip {
	display: inline-flex; align-items: center; gap: .5em; padding: .5em .9em; border: 0; border-radius: 999px; cursor: pointer;
	background: var(--paper, #fff); color: var(--ink, #12324A); box-shadow: inset 0 0 0 1px var(--line, #D3DDDC);
	font: 600 .88rem/1 var(--f-body, system-ui, sans-serif);
}
.gb-chip:hover { box-shadow: inset 0 0 0 1px var(--ink, #12324A); }
.gb-chip.is-active { background: var(--ink, #12324A); color: #fff; box-shadow: none; }
.gb-chip__dot { width: .65em; height: .65em; border-radius: 50%; flex-shrink: 0; }
.gb-map__body { display: grid; gap: 16px; }
.gb-map--with-list .gb-map__body { grid-template-columns: minmax(0, 1fr) 300px; }
@media (max-width: 860px) { .gb-map--with-list .gb-map__body { grid-template-columns: 1fr; } .gb-map__list { max-height: 360px !important; } }
.gb-map__canvas { position: relative; border-radius: 10px; overflow: hidden; background: var(--glass, #E2EDEB); z-index: 0; }
.gb-map__loading { margin: 0; position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted, #56676F); font-size: .95rem; }
.gb-map .leaflet-tile-pane { filter: grayscale(.92) contrast(.92) brightness(1.06); }
.gb-map .leaflet-container { font: inherit; background: #DCE6E5; }
.gb-map .leaflet-control-attribution { font-size: 10px; background: rgba(255, 255, 255, .8); }
.gb-map .leaflet-bar a { color: var(--ink, #12324A); }

.gb-pin span {
	display: block; width: 20px; height: 20px; margin: 4px; border-radius: 50%;
	background: var(--c); border: 3px solid #fff; box-shadow: 0 2px 6px rgba(12, 34, 54, .35);
	transition: transform .15s;
}
.gb-pin:hover span, .gb-pin:focus span { transform: scale(1.25); }
.gb-pin.is-approx span { box-shadow: 0 2px 6px rgba(12, 34, 54, .35), 0 0 0 2px rgba(255, 255, 255, .7); }

.gb-map .leaflet-popup-content-wrapper { border-radius: 10px; padding: 0; overflow: hidden; box-shadow: 0 18px 40px -16px rgba(12, 34, 54, .45); }
.gb-map .leaflet-popup-content { margin: 0; width: 260px !important; }
.gb-pop { padding: 0 0 14px; font: 400 .92rem/1.5 var(--f-body, system-ui, sans-serif); color: var(--text, #1F2D38); }
.gb-pop__img { width: 100%; height: 130px; object-fit: cover; display: block; }
.gb-pop__type { margin: 12px 16px 0 !important; display: flex; align-items: center; gap: .45em; font-size: .78rem; font-weight: 650; color: var(--muted, #56676F); }
.gb-pop__type::before { content: ""; width: .65em; height: .65em; border-radius: 50%; background: var(--c); }
.gb-pop__title { margin: 4px 16px 4px; font: 680 1.15rem/1.2 var(--f-head, system-ui, sans-serif); color: var(--ink, #12324A); }
.gb-pop__desc { margin: 0 16px 8px !important; }
.gb-pop__links { margin: 0 16px !important; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.gb-pop__links a { color: var(--ink, #12324A) !important; font-weight: 650; text-decoration: underline; text-decoration-color: var(--begonvil, #B8336A); text-underline-offset: 3px; }
.gb-pop__approx { margin: 8px 16px 0 !important; font-size: .78rem; color: var(--muted, #56676F); font-style: italic; }

.gb-map__list { list-style: none; margin: 0; padding: 6px; overflow-y: auto; background: var(--paper, #fff); border-radius: 10px; box-shadow: inset 0 0 0 1px var(--line, #D3DDDC); }
.gb-map__list li[hidden] { display: none; }
.gb-map__list button {
	width: 100%; display: grid; grid-template-columns: auto 1fr; gap: 2px 10px; align-items: center; text-align: left;
	padding: 9px 10px; border: 0; border-radius: 8px; background: none; cursor: pointer; font: inherit; color: var(--ink, #12324A);
}
.gb-map__list button:hover { background: var(--wash, #F2F5F4); }
.gb-map__list-t { font-weight: 620; font-size: .95rem; line-height: 1.25; }
.gb-map__list-k { grid-column: 2; font-size: .78rem; color: var(--muted, #56676F); }

/* ---------- Month by month ---------- */
.gb-months { margin: 2rem 0; }
.gb-months__list {
	list-style: none; margin: 0; padding: 0 0 6px; display: grid; grid-template-columns: repeat(12, minmax(48px, 1fr)); gap: 6px;
	overflow-x: auto; scroll-snap-type: x proximity;
}
.gb-months__m { position: relative; display: grid; grid-template-rows: 170px auto auto auto; justify-items: center; gap: 6px; scroll-snap-align: start; padding: 0 0 8px; border-radius: 8px; }
.gb-months__bar {
	align-self: end; width: 100%; height: var(--h); min-height: 30px; border-radius: 6px 6px 3px 3px;
	background: linear-gradient(180deg, var(--sea, #1F8A9A), var(--ink, #12324A)); display: flex; justify-content: center;
}
.gb-months__sea { margin-top: 6px; color: #fff; font: 700 .92rem/1 var(--f-head, system-ui, sans-serif); }
.gb-months__name { font-weight: 650; color: var(--ink, #12324A); font-size: .92rem; }
.gb-months__air { font-size: .82rem; color: var(--muted, #56676F); }
.gb-months__air::before { content: ""; display: inline-block; width: .5em; height: .5em; border-radius: 50%; background: var(--sun, #E39B4B); margin-right: .3em; vertical-align: .05em; }
.gb-months__crowd { display: flex; gap: 2px; }
.gb-months__crowd i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted, #56676F); opacity: .55; }
.gb-months__note { display: none; }
.gb-months__m.is-now { background: var(--wash, #F2F5F4); box-shadow: inset 0 0 0 1.5px var(--begonvil, #B8336A); }
.gb-months__m.is-now .gb-months__bar { background: linear-gradient(180deg, #D45A8A, var(--begonvil, #B8336A)); }
.gb-months__m.is-now .gb-months__name { color: var(--begonvil, #B8336A); }
.gb-months__now { margin: 1.1rem 0 0; font-size: 1rem; color: var(--text, #1F2D38); max-width: 60ch; }
.gb-months__now strong { color: var(--begonvil, #B8336A); }
.gb-months__cap { margin-top: .9rem; display: flex; flex-wrap: wrap; gap: 6px 20px; font-size: .82rem; color: var(--muted, #56676F); }
.gb-months__key { display: inline-flex; align-items: center; gap: .4em; }
.gb-months__key::before { content: ""; width: .8em; height: .8em; border-radius: 2px; }
.gb-months__key--sea::before { background: var(--sea, #1F8A9A); }
.gb-months__key--air::before { background: var(--sun, #E39B4B); border-radius: 50%; width: .6em; height: .6em; }
.gb-months__key--crowd::before { background: var(--muted, #56676F); border-radius: 50%; width: .4em; height: .4em; opacity: .6; }
.gb-months__src { flex-basis: 100%; font-style: italic; }
@media (max-width: 720px) {
	.gb-months__m { grid-template-rows: 130px auto auto auto; }
}

/* ---------- Sunset ---------- */
.gb-sunset { display: flex; align-items: center; gap: 14px; margin: 1.6em 0; color: var(--ink, #12324A); }
.gb-sunset__icon { width: 46px; flex-shrink: 0; color: var(--sun, #E39B4B); }
.gb-sunset__text { margin: 0 !important; display: flex; flex-wrap: wrap; align-items: baseline; gap: 2px 10px; line-height: 1.3; }
.gb-sunset__label { color: var(--muted, #56676F); font-size: .95rem; }
.site-foot .gb-sunset__label, .hero .gb-sunset__label { color: inherit; }
.gb-sunset__time { font: 700 1.6rem/1 var(--f-head, system-ui, sans-serif); letter-spacing: -.02em; }
.gb-sunset__left { font-size: .9rem; color: var(--muted, #56676F); }
.site-foot .gb-sunset__left { color: #9DB3BE; }

/* ---------- Stay box ---------- */
.gb-stay {
	display: grid; grid-template-columns: 44px minmax(0, 1fr); gap: 16px; align-items: start;
	margin: 2.6rem 0 0; padding: 22px 24px; border-radius: 10px; background: var(--glass, #E2EDEB); color: var(--text, #1F2D38);
}
.gb-stay__mark { width: 40px; height: 40px; color: var(--sea-deep, #146B78); }
.gb-stay__title { margin: 0 0 .2em !important; font: 680 1.12rem/1.25 var(--f-head, system-ui, sans-serif); color: var(--ink, #12324A); }
.gb-stay__text { margin: 0 0 .55em !important; font-size: 1rem; line-height: 1.55; }
.gb-stay__link { font-weight: 650; color: var(--ink, #12324A); text-decoration: underline; text-decoration-color: var(--begonvil, #B8336A); text-decoration-thickness: 2px; text-underline-offset: 3px; }
.gb-stay__link:hover { color: var(--begonvil, #B8336A); }
.gb-stay--band { margin: 0; padding: clamp(22px, 3vw, 34px) clamp(22px, 3vw, 40px); background: transparent; box-shadow: inset 0 0 0 1px var(--line, #D3DDDC); }
.gb-stay--band .gb-stay__title { font-size: 1.3rem; }
.gb-stay--inline { margin: 2em 0; }

/* ---------- Contact form ---------- */
.gb-form { display: grid; gap: 4px; max-width: 560px; }
.gb-form__row { margin: 0 0 12px !important; display: grid; gap: 6px; }
.gb-form label { font-weight: 600; color: var(--ink, #12324A); font-size: .95rem; }
.gb-form input, .gb-form textarea { width: 100%; padding: .75em .9em; border: 1px solid var(--line, #D3DDDC); border-radius: 8px; background: var(--paper, #fff); font: inherit; font-size: 1rem; color: var(--text, #1F2D38); }
.gb-form input:focus, .gb-form textarea:focus { outline: 2px solid var(--sea, #1F8A9A); outline-offset: 1px; border-color: transparent; }
.gb-form__hp { position: absolute !important; left: -9999px !important; }
.gb-notice { padding: 12px 16px; border-radius: 8px; font-weight: 600; }
.gb-notice--ok { background: #E1F1E6; color: #1E5A35; }
.gb-notice--err { background: #F8E3EA; color: #8A2050; }

/* ---------- Photo credits ---------- */
.gb-credits { list-style: none; padding: 0 !important; margin: 1.5em 0; display: grid; gap: 14px; }
.gb-credits li { display: grid; grid-template-columns: 72px 1fr; gap: 14px; align-items: center; font-size: .95rem; }
.gb-credits img { width: 72px; height: 72px; object-fit: cover; border-radius: 6px; }
