/* Advendikalender - kujundus kooskõlas advent.ee lehega */

.adv-kal-header {
	padding: 18px 20px;
	margin-bottom: 18px;
	background: #fff;
	border: 1px solid #e2e2e2;
}

.adv-kal-header h1 {
	margin-top: 0;
	margin-bottom: 8px;
}

.adv-kal-header-cover {
	width: 100%;
	max-height: 360px;
	object-fit: cover;
	display: block;
	margin-bottom: 14px;
}

.adv-kal-switcher {
	margin-bottom: 14px;
}

/* Punktid pildi peal */
.adv-kal-scene-wrap {
	position: relative;
	width: 100%;
	margin-bottom: 24px;
	background: #fff;
	border: 1px solid #e2e2e2;
}

.adv-kal-scene {
	position: relative;
	width: 100%;
	overflow: hidden;
}

.adv-kal-scene-img {
	width: 100%;
	height: auto;
	display: block;
	user-select: none;
}

.adv-kal-scene.adv-kal-scene--cropped {
	min-height: 440px;
}

.adv-kal-scene.adv-kal-scene--cropped .adv-kal-scene-img {
	width: 100%;
	height: 100%;
	object-fit: cover;
}

.adv-kal-point {
	position: absolute;
	transform: translate(-50%, -50%);
	width: 38px;
	height: 38px;
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	font-size: 15px;
	font-weight: 700;
	line-height: 1;
	text-decoration: none !important;
	box-sizing: border-box;
	color: #fff;
	background: #8b2635;
	border: 2px solid rgba(255, 255, 255, 0.9);
	box-shadow: 0 2px 6px rgba(0, 0, 0, 0.45);
	transition: transform 0.14s ease, background-color 0.14s ease, box-shadow 0.14s ease;
	z-index: 2;
}

.adv-kal-point--open {
	background: #007f98;
	cursor: pointer;
}

.adv-kal-point--open:hover,
.adv-kal-point--open:focus {
	transform: translate(-50%, -50%) scale(1.14);
	background: #00667a;
	color: #fff;
	box-shadow: 0 3px 10px rgba(0, 0, 0, 0.55);
	z-index: 4;
}

.adv-kal-point--today {
	box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.85), 0 3px 10px rgba(0, 0, 0, 0.5);
	z-index: 3;
}

.adv-kal-point--locked {
	background: rgba(92, 26, 36, 0.92);
	color: rgba(255, 255, 255, 0.92);
	cursor: default;
}

.adv-kal-point--preview {
	background: #c77d19;
	border-style: dashed;
}

/* Ruudustikuvaade */
.adv-kal-grid {
	display: grid;
	grid-template-columns: repeat(6, minmax(0, 1fr));
	gap: 12px;
	margin-bottom: 24px;
}

.adv-kal-door {
	position: relative;
	display: flex;
	flex-direction: column;
	justify-content: space-between;
	min-height: 132px;
	padding: 12px;
	box-sizing: border-box;
	border: 1px solid #dcdcdc;
	background: #fff;
	color: #222;
	text-decoration: none !important;
	transition: border-color 0.15s ease, box-shadow 0.15s ease;
	overflow: hidden;
}

.adv-kal-door--open:hover,
.adv-kal-door--open:focus {
	border-color: #007f98;
	box-shadow: 0 2px 8px rgba(0, 0, 0, 0.12);
	color: #000;
}

.adv-kal-door--today {
	border-top: 3px solid #007f98;
}

.adv-kal-door--locked {
	background: #f0f0f0;
	border-color: #e0e0e0;
	color: #777;
	cursor: default;
}

.adv-kal-door--preview {
	border-style: dashed;
	border-color: #d99b26;
}

.adv-kal-door-thumb {
	position: absolute;
	inset: 0;
	background-size: cover;
	background-position: center;
	opacity: 0.14;
	transition: opacity 0.15s ease;
}

.adv-kal-door--open:hover .adv-kal-door-thumb {
	opacity: 0.24;
}

.adv-kal-door-top {
	position: relative;
	z-index: 1;
	display: flex;
	align-items: baseline;
	justify-content: space-between;
	gap: 6px;
}

.adv-kal-door-num {
	font-size: 24px;
	font-weight: 700;
	line-height: 1;
	color: #007f98;
}

.adv-kal-door--locked .adv-kal-door-num {
	color: #888;
}

.adv-kal-door-date {
	font-size: 11px;
	color: #777;
}

.adv-kal-door-title {
	position: relative;
	z-index: 1;
	margin-top: 8px;
	font-size: 13px;
	font-weight: 600;
	line-height: 1.3;
}

.adv-kal-door-meta {
	position: relative;
	z-index: 1;
	margin-top: 8px;
	font-size: 11px;
	color: #666;
}

/* Sisu ja meedia päeva vaates */
.adv-kal-embed-container {
	position: relative;
	padding-bottom: 56.25%;
	padding-top: 30px;
	height: 0;
	overflow: hidden;
	max-width: 100%;
	margin: 14px 0;
}

.adv-kal-embed-container iframe,
.adv-kal-embed-container object,
.adv-kal-embed-container embed {
	position: absolute;
	top: 0;
	left: 0;
	width: 100%;
	height: 100%;
}

.adv-kal-pilt-wrap {
	margin: 12px 0;
}

.adv-kal-pilt {
	max-width: 100%;
	height: auto;
	display: block;
}

.adv-kal-galerii {
	display: grid;
	grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
	gap: 12px;
	margin-top: 16px;
}

.adv-kal-galerii .adv-kal-pilt-wrap {
	margin: 0;
}

.adv-kal-mini-grid {
	display: grid;
	grid-template-columns: repeat(6, 1fr);
	gap: 5px;
	margin-bottom: 16px;
}

.adv-kal-mini-cell {
	display: flex;
	align-items: center;
	justify-content: center;
	height: 32px;
	font-weight: 600;
	font-size: 12px;
	text-decoration: none !important;
	border: 1px solid #d9d9d9;
	background: #fff;
	color: #333;
}

.adv-kal-mini-cell:hover {
	border-color: #007f98;
	color: #007f98;
}

.adv-kal-mini-cell--active {
	background: #007f98;
	border-color: #007f98;
	color: #fff !important;
}

.adv-kal-mini-cell--locked {
	background: #efefef;
	color: #999;
	cursor: default;
}

.adv-kal-nav-row {
	margin-top: 14px;
	margin-bottom: 14px;
}

@media (max-width: 979px) {
	.adv-kal-grid {
		grid-template-columns: repeat(4, minmax(0, 1fr));
	}
}

@media (max-width: 767px) {
	.adv-kal-scene {
		height: 70vh;
		min-height: 440px;
		max-height: 620px;
	}

	.adv-kal-scene-img {
		width: 100%;
		height: 100%;
		object-fit: cover;
	}

	.adv-kal-point {
		width: 36px;
		height: 36px;
		font-size: 14px;
	}

	.adv-kal-grid {
		grid-template-columns: repeat(2, minmax(0, 1fr));
		gap: 8px;
	}

	.adv-kal-door {
		min-height: 112px;
		padding: 10px;
	}
}
