.bank_info {
	width: 100%;
	text-align: center;
	font-size: 18px;
	font-weight: bold;
	color: red;
}

.bank_credit {
	width: 100%;
	text-align: center;
	font-size: 20px;
	font-weight: bold;
	color: blue;
}
.scroll-container {
    width: 100%; /* Set a specific width for the container */
	height: 100%;
    overflow-x: auto; /* Adds a horizontal scrollbar if content overflows */
    white-space: nowrap; /* Prevents text from wrapping to a new line, forcing it to stay horizontal */
    padding: 8px; /* Optional styling */
	border: 1px #eee solid;
}	

.inline-block{
  display:inline-block !important;
}
.width200{
  width:200px !important;
}
.width150{
  width:150px !important;
}
/* 縮減月曆容器總寬度 */
.daterangepicker {
    width: auto !important;
    font-size: 13px !important; /* 縮小基礎字體 */
}

/* 縮小左右月曆的間距 */
.daterangepicker .calendar {
    max-width: 250px !important; /* 原本約 270-300px */
    margin: 4px !important;
}

.daterangepicker td.available {
    height: 30px !important; /* 從 60px 縮小 */
    width: 45px !important;  /* 從 65px 縮小 */
    padding-top: 4px !important;
	position: relative;
    vertical-align: top !important; /* 讓數字靠上 */
    padding-top: 5px !important;
	overflow: visible !important; /* 讓星星可以顯示出來 */
}

/* 調整表頭（星期幾）的高度 */
.daterangepicker th {
    height: 20px !important;
    width: 45px !important;
}
	
.drp-day-price {
	display: block;
    font-size: 10px !important; /* 從 11px 縮小到 10px */
	color: red;
    bottom: 2px !important;    /* 更貼近底部 */
    line-height: 12px !important;
    transform: scale(0.9);      /* 如果字還是太大，可用縮放 */
	pointer-events: none; /* 滑鼠會直接穿透文字，點到後方的日期格 */
    user-select: none;    /* 防止文字被選取干擾 */
	/* 確保價格不會壓在星星上面 */
	z-index: 1;
    position: relative;
}
	
/* 讓「已租完」的樣式更明顯且不可點擊，並移除刪除線 */
.daterangepicker td.disabled {
    background-color: #eeeeee !important;
    color: red !important;
    cursor: not-allowed !important;
    text-decoration: none !important; /* 移除刪除線 */
}

/* 針對有些版本可能會繼承到上層樣式，強制覆蓋 */
.daterangepicker td.disabled, 
.daterangepicker td.off.disabled {
    text-decoration: none !important;
}

/* 確保點擊範圍覆蓋整格 */
.daterangepicker td.available:hover {
    background-color: #eee !important;
}

/* 讓 td 變為相對定位，星星才能定位 */
.daterangepicker td.holiday-cell {
    position: relative !important;
}

/* 星星的樣式：直接定位在左上角 */
.holiday-mark {
    position: absolute !important;
    top: 0px !important;
    left: 2px !important;
    color: #FF9800 !important; /* 橘金色 */
    font-size: 12px !important;
    font-weight: bold !important;
    z-index: 10 !important;
    line-height: 1 !important;
    pointer-events: none; /* 點擊穿透，不影響選日期 */
}

/* 假日格子背景稍微變色，方便辨識 */
.holiday-star {
	color: #FF9800 !important; /* 橘色星星 */
	font-size: 18px;
	font-weight: bold;
}
.holiday-cell {
    background-color: #FFF9F0 !important;
	color: #222;
}

/* 1. 基礎假日樣式：僅在「非選取狀態」下顯示橘色背景 */
.daterangepicker td.available.holiday-cell {
    position: relative !important;
    background-color: #FFF9F0 !important; /* 淡淡的橘底 */
    color: #333 !important;
}

/* 2. 關鍵修正：當假日格被「選取」或「在選取範圍內」時，強制恢復藍底白字 */
.daterangepicker td.available.holiday-cell.active,
.daterangepicker td.available.holiday-cell.in-range,
.daterangepicker td.available.holiday-cell.active:hover {
    background-color: #357ebd !important; /* 插件標準藍色 */
    border-color: transparent !important;
    color: #fff !important; /* 變成白字，解決看不清楚的問題 */
}

/* 3. 星星樣式微調 */
.daterangepicker td.holiday-cell:before {
    content: "★" !important;
    position: absolute !important;
    top: 0px !important;
    left: 2px !important;
    color: #FF9800 !important; /* 橘色星星 */
    font-size: 12px !important;
    font-weight: bold !important;
    z-index: 5 !important;
}

/* 4. 如果選中後星星也要變白色（可選），加入這段 */
.daterangepicker td.holiday-cell.active:before,
.daterangepicker td.holiday-cell.in-range:before {
    color: #ffffff !important; 
}	

.search_box {
	width: 100%;
  	margin: 0px auto;
}

/* 容器背景保持一致 */
#books_box {
    background-color: #fdfae5;
    padding: 40px 15px;
	width: 100%;
}

/* 垂直卡片主體 */
.custom-car-card {
    display: flex;
    flex-direction: column; /* 改為垂直排列 */
    background-color: #ffffff;
    border-radius: 15px; /* 稍微縮小圓角，更符合 bb.jpg */
    box-shadow: 0px 8px 20px rgba(0, 0, 0, 0.05);
    overflow: hidden;
    margin-bottom: 30px;
    height: 100%; /* 讓同排卡片高度一致 */
    transition: transform 0.3s ease;
}

.custom-car-card:hover {
    transform: translateY(-5px); /* 滑過時微動效果 */
}

/* 上方圖片區 */
.card-image-box {
    width: 100%;
    aspect-ratio: 4 / 3; /* 固定圖片比例，防止錯位 */
    overflow: hidden;
}

.card-image-box img {
    width: 100%;
    height: 100%;
    object-fit: cover; /* 確保圖片不變形且填滿 */
}

/* 下方內容區 */
.card-content-box {
    padding: 25px;
    display: flex;
    flex-direction: column;
    flex-grow: 1; /* 自動填滿剩餘空間 */
}

/* 標題樣式 - 橘黃色系 */
.card-title {
    margin: 0 0 10px 0;
    font-size: 20px;
    font-weight: bold;
}

.card-title a {
    color: #520606; /* bb.jpg 的標題顏色 */
    text-decoration: none;
	font-size: 24px;
}

.card-subtitle {
    color: #999;
    font-size: 14px;
    margin-bottom: 15px;
}

/* 描述文字區 - 處理 bb.jpg 中的列表感 */
.card-description {
    color: #666;
    font-size: 14px;
    line-height: 1.6;
    margin-bottom: 20px;
    white-space: pre-line;
    flex-grow: 1; /* 確保描述文字撐開，按鈕對齊底部 */
	height: 230px;
  	overflow: hidden;
}

/* 價格與底部區 */
.card-footer {
    border-top: 1px solid #eee;
    padding-top: 15px;
}

.price-box {
    margin-bottom: 15px;
}

.price-label {
    font-size: 22px;
    color: #333;
    font-weight: bold;
}

.card-price {
    font-size: 22px;
    color: #333;
    font-weight: bold;
    margin-left: 5px;
}

.special-box {
    margin-bottom: 15px;
}

.special-label {
    font-size: 18px;
    color: #333;
}

.card-special {
    font-size: 18px;
    color: #333;
	text-decoration:line-through;
    margin-left: 5px;
}

.special-label-red {
    font-size: 20px;
    color: red;
    font-weight: bold;
}

.card-special-red {
    font-size: 20px;
    color: red;
    font-weight: bold;
    margin-left: 5px;
}

/* 綠色按鈕樣式 */
.btn-detail {
    display: block;
    background-color: #2d1616; /* bb.jpg 的深綠色 */
    color: #ffffff !important;
    text-align: center;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-size: 20px;
    transition: background 0.3s;
}

.btn-detail:hover {
    background-color: #2d4444;
}

/* 修正 Bootstrap 欄位間距 */
.col-md-4, .col-sm-6 {
    display: flex; /* 讓內部的卡片能等高 */
}