/* travel.css */

/* ===== 全域容器 ===== */
#projects-container{
	margin:30px auto;
}
@media (max-width: 768px){
	#projects-container {
		margin-top: 72px;
		width:100%;
	}
}
#main{
	width: 100%;
}

/* ===== 圖文區塊 ===== */
#footage, #quote {
	display:flex;
	flex-direction: column;
    margin:40px 0 10px 0;	
}
#footage h1, #footage p, #quote p {
    text-align: center;
}
#footage p, #quote p {
    font-size: var(--fs-Small);
    color: var(--clr-darkgrey);
}
.year-filter{
	display:flex;
	align-items: center;
	justify-content: flex-end;
	font-size: var(--fs-Small);
	color:var(--clr-black);
}
.year-filter .form-select {
	max-width:60px;
	margin-right:10px;
	padding:4px;
    border: 1px solid var(--clr-lightblue);
    border-radius: 4px;
    background: transparent;
	color:var(--clr-black);
	text-align: center;
	font-size: var(--fs-Small);
}
.year-filter option{
	background:var(--clr-white);
}

/* ===== 地圖信息窗口 ===== */
.info-window {
    font-family: Songti, serif;
    min-width: 280px;
    max-width: 320px;
}

.info-window .header {
    border-bottom: 1px solid #eee;
    padding-bottom: 12px;
    margin-bottom: 12px;
}

.info-window h3 {
    margin: 0 0 8px;
    color: #1890ff;
    font-size: 16px;
}

.info-window .meta {
    display: flex;
	flex-direction: column;
    gap: 5px;
    margin-top: 8px;
    justify-content: space-between;
    color: #666;
    font-size: 12px;
}

.dates {
    display: flex;
    flex-wrap: wrap;
    gap: 0px;
    max-width: 250px;
}

.date-item {
    background: #f0f0f0;
	margin:2px 5px 2px 0;
    padding: 2px 5px;
    border-radius: 3px;
    font-size: 0.9em;
    white-space: nowrap;
}

/* ===== 照片網格 ===== */
.photo-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    max-height: 220px;
    overflow-y: auto;
    padding: 3px;
}

.photo-item {
    position: relative;
    aspect-ratio: 1;
    background: #f5f5f5;
    border-radius: 4px;
    overflow: hidden;
}

.thumbnail {
    width: 100%;
    height: 100%;
    object-fit: cover;
    transition: transform 0.2s;
    cursor: pointer;
    pointer-events: auto; /* 防止點擊穿透 */
}

.thumbnail:hover {
    transform: scale(1.05);
}

.photo-desc {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    background: linear-gradient(transparent, rgba(0,0,0,0.7));
    color: white;
    padding: 6px;
    font-size: 11px;
    line-height: 1.3;
}

/* ===== 地圖、標記與控件 ===== */

#map-container {
	margin:0 auto;
	height: 400px;
	width: 100%;
	max-width:800px;
}

.map-header h2 {
	margin: 0;
	color: var(--clr-main);
}

.marker-icon {
    color: #9dd14be0;
    font-size: 24px;
    filter: drop-shadow(0 2px 4px rgba(0,0,0,0.2));
}



/* Leaflet控件&標記樣式 */
.leaflet-top, .leaflet-bottom {
    z-index: 999 !important;
}

.leaflet-container a{
	color: #0078A8 !important;
	transition: transform 0.2s;
}

.leaflet-control-zoom-fullscreen a {
  position: relative;
  display: block;
  width: 30px;
  height: 30px;
}
.fullscreen-icon {
  position: absolute;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  transition: opacity 0.3s ease;
}
.fa-expand {
  opacity: 1;
}
.fa-compress {
  opacity: 0;
}】
.fullscreen-active .fa-expand {
  opacity: 0;
}
.fullscreen-active .fa-compress {
  opacity: 1;
}

/* 比例尺容器 */
.leaflet-control-scale {
  background-color: none;
}

/* 比例尺線條 */
.leaflet-control-scale-line {
  border: 1px solid #333 !important;
  border-top: none !important;
  color: black !important;
  font-size: var(--fs-Small) !important;
  font-family: Arial, sans-serif;
  line-height: 1.5 !important;
  margin-bottom: 3px !important;
  background: #33333333;
  text-shadow: 1px 1px var(--clr-white);
}

.leaflet-marker-icon .marker-icon {
    color: #ff0000de;	
    font-size: 24px;
    filter: drop-shadow(0 2px 5px rgba(0,0,0,0.3));
}

/* 聚類標記樣式 */
.marker-cluster {
    position: relative;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: #ff703bde;
}

.marker-cluster div {
	position: absolute;
    top: 50%;
    left: 50%;
    transform: translate(-50%, -50%);
    width: 30px;
    height: 30px;
    background-color: #ff0000de;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    font: 12px/1.2 "Helvetica Neue", Arial, san-serif;
    color: #fff;
    text-shadow: 0 1px 2px rgba(0,0,0,0.3);
}

/* ===== 年度照片位置表 ===== */
#location-table-container h1{
	margin: 32px 0 16px 0;
    text-align: center;
    font-family: Fuhao, 'Maple Mono CN SemiBold', sans-serif;
}

#location-table-wrapper {
	margin:0 auto;
	width: calc(100% - 40px);
	max-width: 800px;
	overflow-x: auto;
    border-radius: 8px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
}

#location-table {
	width: 100%;
    font-size: var(--fs-Normal);
    font-family: Fuhao, 'LXGW Neo ZhiSong', Songti, serif;
    border-collapse: separate;
    border-spacing: 0;
    background: var(--clr-white);
}

@media (max-width: 768px) {
	#location-table {
		font-size: var(--fs-Small);
	}
}

#location-table th, 
#location-table td {
    padding: 12px 15px;
    text-align: center;
    border-bottom: 1px solid #eaeaea;
}

#location-table th {
    background-color: var(--clr-main);
    color: white;
    font-weight: 600;
    text-transform: uppercase;
    letter-spacing: 0.5px;
}

#location-table tr:last-child td {
    border-bottom: none;
}

#location-table tbody tr {
    transition: background-color 0.2s ease;
	color:var(--clr-black);
}

#location-table tbody tr:hover {
    background-color: var(--clr-lightblue);
}

#location-table tbody tr:nth-child(even) {
    background-color:var(--clr-brightwhite);
}

#location-table tbody tr:nth-child(even):hover {
    background-color: var(--clr-lightblue);
}