/* Card layout with description on the right side, outside the image link */
.card--text-right { 
    margin-right: 20px !important;
    margin-bottom: 15px !important;
    display: flex;
    align-items: stretch;
    justify-content: flex-start;
    border: none;
    background-color: #ffffff;
    box-shadow: 0 4px 16px rgba(0,0,0,0.08);
    border-radius: 0;
    overflow: hidden;
    box-sizing: border-box;
}

/* Ensure full-row layout inside selections page container */
div.stretched_buttons li.card--text-right{
    display: flex !important;
    width: 100% !important;
}



.uk-padding-small{
	padding-left: 10px !important;
	padding-right: 10px !important;
}
.uk-text-center{
	text-align: center;
	font-size: 16pt;
}
div.stretched_buttons p{
	padding-left: 10px;
	padding-right: 10px;
	margin-top: 0px;
	margin-bottom: 20px;
	color: #1a1a1a;
    font-size: 14pt;
    font-family: Calibri, Ubuntu, sans-serif;
    line-height: 18pt;
    font-weight: 300;
    text-align: justify;
}

div.stretched_buttons ul a { 
	margin-left: 5px !important;
	margin-right: 5px !important;
}

/* Thumb block - overlay at bottom of image with hotel info */
/* 2-column layout: left (stars + title), right (departure + price) */
li.card--text-right .thumb_block {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    width: 100%;
    padding: 8px 10px 8px 10px;
    background-color: rgba(0, 0, 0, 0.45);
    text-align: left;
    box-sizing: border-box;
    z-index: 2;
    display: flex;
    gap: 10px;
    min-height: 80px;
    align-items: stretch;
}

/* Left column: stars and hotel title stacked */
li.card--text-right .thumb_left_blocks {
    flex: 1;
    display: flex;
    flex-direction: column;
    gap: 2px;
    justify-content: flex-start;
}

/* Stars within left column */
li.card--text-right .thumb_block .stars {
    position: static !important;
    display: block !important;
    font-size: 18px;
    line-height: 1.3;
    color: #fbbf24;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
    margin: 0;
    pointer-events: none;
    top: auto !important;
    left: auto !important;
    z-index: auto !important;
}

/* Hotel title within left column */
li.card--text-right .thumb_title {
    display: block !important;
    font-size: 15px;
    font-weight: 700;
    text-transform: uppercase;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    line-height: 1.2;
    margin: 0;
    letter-spacing: 0.3px;
    padding-top: 0 !important;
    white-space: normal;
    word-wrap: break-word;
}

/* Right column: departure date and price */
li.card--text-right .thumb_right_block {
    flex: 0 0 auto;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
    align-items: flex-end;
    gap: 3px;
}

/* Departure date within right column */
li.card--text-right .thumb_departure {
    display: block;
    font-size: 10px;
    color: #ffffff;
    text-shadow: 0 2px 4px rgba(0,0,0,0.5);
    line-height: 1.3;
    margin: 0;
    text-align: right;
    font-weight: 400;
    white-space: nowrap;
}

li.card--text-right .thumb_departure strong {
    font-size: 11px;
    font-weight: 600;
    display: inline-block;
}

/* Price within right column */
li.card--text-right .thumb_price {
    display: block;
    font-size: 26px !important;
    font-weight: 700 !important;
    color: #ffffff;
    text-shadow: 0 2px 6px rgba(0,0,0,0.5);
    line-height: 1;
    margin: 0;
    text-align: right;
}

li.card--text-right a.card__image {
	flex: 0 0 auto;
	display: block;
	position: relative;
	min-height: 240px;
	width: 360px;
    border-right: none;
	margin: 5px 0;
    background-size: cover;
    background-position: center;
}

li.card--text-right .card__description {
	flex: 1 1 auto;
	padding: 18px 20px;
	display: flex;
	flex-direction: column;
	gap: 12px;
	align-items: flex-start;
    background-color: #f8fafc;
    border-top: 1px solid #e2e8f0;
	color: #1e293b;
    font-size: 14px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    line-height: 1.5 !important;
    font-weight: 400 !important;
}

li.card--text-right .card__description * {
    font-size: 14px !important;
    font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, 'Helvetica Neue', Arial, sans-serif !important;
    line-height: 1.5 !important;
    font-weight: 400 !important;
    text-align: left !important;
}

li.card--text-right .card__description > div:first-child {
    color: #ea580c;
    font-weight: 600;
    font-size: 15px !important;
}

li.card--text-right .card__description > div:first-child strong {
    color: #dc2626;
    font-weight: 700 !important;
}

li.card--text-right .card__description > div:last-child {
    color: #475569;
    font-size: 13px !important;
    display: flex;
    align-items: center;
    gap: 6px;
}

li.card--text-right .card__description > div:last-child strong {
    color: #0f172a;
    font-weight: 600 !important;
}

div.stretched_buttons li.card--text-right .card__description a{
    display: inline !important;
    width: auto !important;
    height: auto !important;
    margin: 0 !important;
    background: transparent !important;
}

li.card--text-right .thumb_nights {
	position: absolute;
	top: 16px;
	right: 16px;
	padding: 8px 14px !important;
	width: auto;	
	font-size: 13px !important;
	font-weight: 600 !important;
	color: #2d3748;
	background-color: rgba(255, 255, 255, 0.95);
	backdrop-filter: blur(8px);
	border-radius: 4px;
	box-shadow: 0 2px 8px rgba(0,0,0,0.15);
}

/* Price drop specific styles */

/* For price drops page - stack cards vertically so description appears below image */
ul.price-drops-cards .card--text-right {
    flex-direction: column;
    padding: 6px;
    box-sizing: border-box;
}

ul.price-drops-cards .card--text-right a.card__image {
    margin: 0 !important;
}

ul.price-drops-cards .card--text-right .card__description {
    padding: 18px 20px !important;
}

/* Simple price drop badge */
li.card--text-right .price-drop-badge {
    position: absolute;
    top: 16px;
    left: 16px;
    z-index: 3;
    background-color: #dc3545;
    color: #ffffff;
    font-size: 22px;
    font-weight: bold;
    padding: 12px 16px;
    border-radius: 4px;
    box-shadow: 0 3px 8px rgba(0,0,0,0.4);
    pointer-events: none;
    line-height: 1;
}

/* Detailed price drop badge with comparison */
li.card--text-right .price-drop-badge-detailed {
    position: absolute;
    top: 6px;
    left: 6px;
    z-index: 3;
    background: linear-gradient(135deg, #ef4444 0%, #dc2626 100%);
    color: #ffffff;
    padding: 8px 12px;
    border-radius: 4px;
    box-shadow: 0 8px 24px rgba(239, 68, 68, 0.4);
    pointer-events: none;
    min-width: 140px;
    backdrop-filter: blur(10px);
}

li.card--text-right .price-drop-badge-detailed .badge-percent {
    font-size: 22px;
    font-weight: 800;
    text-align: center;
    margin-bottom: 6px;
    text-shadow: 0 2px 4px rgba(0,0,0,0.2);
    letter-spacing: -0.5px;
}

li.card--text-right .price-drop-badge-detailed .badge-comparison {
    display: flex;
    align-items: center;
    justify-content: space-between;
    font-size: 11px;
    line-height: 1.3;
    background-color: rgba(255, 255, 255, 0.2);
    padding: 6px 8px;
    border-radius: 3px;
    gap: 5px;
}

li.card--text-right .price-drop-badge-detailed .badge-old-price,
li.card--text-right .price-drop-badge-detailed .badge-new-price {
    display: flex;
    flex-direction: column;
    align-items: center;
    font-weight: 600;
}

li.card--text-right .price-drop-badge-detailed .badge-old-price {
    text-decoration: line-through;
    opacity: 0.85;
}

li.card--text-right .price-drop-badge-detailed .badge-new-price {
    color: #fff;
    font-weight: 700;
}

li.card--text-right .price-drop-badge-detailed .badge-date {
    font-size: 10px;
    opacity: 0.9;
    font-weight: 500;
    margin-top: 2px;
}

li.card--text-right .price-drop-badge-detailed .badge-arrow {
    font-size: 16px;
    opacity: 0.8;
    flex-shrink: 0;
    font-weight: 600;
}

/* Two column layout for price drops */
div.stretched_buttons.two-column ul{
	display: flex;
	flex-wrap: wrap;
	gap: 20px;
	margin-top: 20px;
}
div.stretched_buttons.two-column ul li{
	display: flex;
	margin: 0;
	flex: 0 0 calc(50% - 10px);
	max-width: calc(50% - 10px);
}

/* Cards without description in two-column layout */
div.stretched_buttons.two-column li.card--text-right {
	margin-right: 0 !important;
}
div.stretched_buttons.two-column li.card--text-right a.card__image {
	width: 100%;
	margin: 0 !important;
	border-right: none;
}

/* Mobile responsive - single column for price drops */
@media (max-width: 768px) {
	div.stretched_buttons.two-column ul li {
		flex: 0 0 100% !important;
		max-width: 100% !important;
	}
	
	li.card--text-right {
		flex-direction: column !important;
		margin-right: 5px !important;
		margin-left: 5px !important;
		width: calc(100% - 10px) !important;
	}
	
	li.card--text-right a.card__image {
		width: 100% !important;
		border-right: none;
		border-bottom: 1px solid #ddd;
		margin: 0 !important;
		min-height: 150px !important;
	}
}

/* Stretched buttons container styles */
div.stretched_buttons ul{
	list-style-type: none;
	margin: 0px;
	padding-left: 0px;
}
div.stretched_buttons ul li{
	display:inline-block;
	margin-right:7px;
	margin-bottom:4px;
	margin-top:0px;
}

div.stretched_buttons ul a{
	display: block;
	position: relative; /* dlja pozicionirovanija teksta vnutri */
	margin: 20px;
	width: 310px;
	height: 170px;
	background-position: center;
	background-size: cover;
	background-repeat: no-repeat;
	color: #FFF;
	text-decoration:none;
}
div.stretched_buttons ul .thumb_text3{
	font-weight: normal;
	font-size: 8pt;
	text-shadow: 1px 1px 3px #000;
}
div.stretched_buttons .thumb_price3{
	position:relative;
	float:right;
	height:30px;
	padding-left:10px;
	padding-right:10px;
	padding-top:10px;
	margin-left:3px;
	width:auto;	
	font-size: 10pt;
	color: #1b1a1a;
	background-color:rgba(255,252,36,0.75);
}


