/* ── GRID ── */
.ambulante-grid {
	display: grid;
	grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
	grid-auto-flow: dense;
	gap: 16px;
	max-width: 1200px;
	margin: 0 auto;
}

/* ── WRAPPER: kartica + expand skupaj ── */
.card-wrapper {
	display: contents;
	/* vsak wrapper prispeva svojo kartico direktno v grid */
}

/* ── KARTICA ── */
.card {
	background: #fff;
	border-radius: 16px;
	padding: 28px 16px 20px;
	text-align: center;
	cursor: pointer;
	transition: transform 0.2s ease, box-shadow 0.2s ease;
	user-select: none;
	position: relative;
}

.card:hover {
	transform: translateY(-4px);
	box-shadow: 0 12px 32px rgba(0, 0, 0, 0.18);
}

.card.active {
    box-shadow: 0px -1px 0px 6px #20539a, 0 8px 24px rgba(0, 0, 0, 0.15);
}

.card-icon {
	width: 70px;
	height: 70px;
	/*background: #ddeeff;*/
	border-radius: 50%;
	display: flex;
	align-items: center;
	justify-content: center;
	margin: 0 auto 16px;
}

.card-icon svg {
	width: 34px;
	height: 34px;
	stroke: #1a5ba8;
	fill: none;
	stroke-width: 1.7;
	stroke-linecap: round;
	stroke-linejoin: round;
}

.card-title {
    font-size: 16px;
    line-height: 24px;
    font-weight: 700;
    color: #1a2d55;
    margin-bottom: 4px;
}

.card-sub {
    font-size: 15px;
    line-height: 22px;
    color: #008996;
    font-weight: 500;
}

/* ── EXPAND PANEL ── */
.expand-panel {
	display: none;
	grid-column: 1 / -1;
	/* razpne čez celoten grid */
	background: #fff;
	border-radius: 16px;
	padding: 0;
	overflow: hidden;
	/* animacija */
	max-height: 0;
	opacity: 0;
	transition: max-height 0.4s cubic-bezier(0.4, 0, 0.2, 1),
		opacity 0.3s ease,
		padding 0.3s ease;
}

.expand-panel.visible {
	display: block;
	/* max-height: 400px; */
	height: 100%;
	max-height: 100%;
	opacity: 1;
	padding: 28px 32px;
}

.expand-inner {
	display: flex;
	align-items: flex-start;
	gap: 20px;
}

.expand-label {
	font-size: 0.75rem;
	font-weight: 700;
	text-transform: uppercase;
	letter-spacing: 1px;
	color: #8a9ab8;
	margin-bottom: 16px;
}

/* ── ZDRAVNIK KARTICI ── */
.doctors-row {
	display: flex;
	gap: 16px;
	flex-wrap: wrap;
}

.doctor-card {
	background: #f4f8ff;
	border: 1.5px solid #d4e4f7;
	border-radius: 12px;
	padding: 20px 24px;
	flex: 1;
	min-width: 200px;
	max-width: 300px;
	cursor: pointer;
	transition: border-color 0.2s, background 0.2s, transform 0.2s;
	text-decoration: none;
	display: block;
}

.doctor-card:hover {
    border-color: #008996;
    background: #f3f8ff;
    transform: translateY(-2px);
}

.doctor-avatar {
    width: 52px;
    height: 52px;
    border-radius: 50%;
    background: #D8EDF0;
    display: flex;
    align-items: center;
    justify-content: center;
    margin-bottom: 12px;
}

.doctor-avatar svg {
    width: 26px;
    height: 26px;
    stroke: #008996;
    fill: none;
    stroke-width: 1.7;
    stroke-linecap: round;
}

.doctor-name {
    font-size: 18px;
    font-weight: 700;
    line-height: 25px;
    color: #133C75;
    margin-bottom: 10px;
}

.doctor-spec {
    font-size: 15px;
    line-height: 22px;
	font-weight: 600;
    color: #008996;
    margin-bottom: 14px;
}

.doctor-link {
    font-size: 13px;
    line-height: 22px;
    font-weight: 700;
    color: #133C75;
    display: flex;
    align-items: center;
    gap: 5px;
}

.doctor-link svg {
	width: 14px;
	height: 14px;
	stroke: #133C75;
	fill: none;
	stroke-width: 2.5;
	stroke-linecap: round;
}

/* close button */
.expand-close {
    margin-left: auto;
    background: none;
    border: none;
    cursor: pointer;
    padding: 4px;
    color: #008996;
    font-size: 18px;
    line-height: 1;
    align-self: flex-start;
    flex-shrink: 0;
    transition: color 0.15s;
}

.expand-close:hover,
.expand-close:focus,
.expand-close:active {
	color: #008996 !important;
	border: none !important;
	background: none !important;
}

/* OPOMBA DEMO */
.demo-note {
	text-align: center;
	color: #a8c4e8;
	font-size: 0.8rem;
	margin-bottom: 20px;
	font-style: italic;
}

@media(max-width: 767px){
	.expand-inner{
		display: flex;
		gap: 0px;
		flex-direction: column-reverse;
	}
}
