/* Hotel LP custom styles */

.container {
    padding: 0 12px;
}
.hotel-lp-section {
    background: #ECEFF1;
    overflow-x: scroll;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.hotel-lp-section::-webkit-scrollbar {
    display: none;
}

@media (min-width: 768px) {
    .container {
        min-width: 1160px;
        box-sizing: content-box;
    }
}

.breadcrum-section {
    background: #F4F5F6;
    height: 45px;
}

.breadcrum-container {
    font-size: 11px;
    padding: 16px 12px 16px 12px;
    background: #F4F5F6;
    height: 100%;
}

.breadcrum-container .cf {
    box-sizing: content-box;
}
@media (max-width: 767px) {
    .breadcrum-container {
        padding: 16px 12px 16px 8px;
        overflow: scroll hidden;
        scroll-snap-type: x mandatory;
        height: 100%;
    }

}

#Breadcrumbs {
    margin: auto;
}

#Breadcrumbs ul {
    font-size: 0;
    white-space: nowrap;
}

#Breadcrumbs li {
    float: none;
    padding: 0;
    font-size: 11px;
    display: inline-block;
}

#Breadcrumbs li:last-child {
    padding-right: 8px;
    font-weight: bold;
}

#Breadcrumbs a {
    color: #196fb9;
    padding-left: 0;
    padding-right: 20px;
    margin-right: 8px;
    background: url("/img/icon_breadcrum.svg") no-repeat right center;
}

/* Card */
.hotel-card {
    background: #fff;
    border-radius: 16px;
    overflow: hidden;
    height: 100%;
    display: flex;
    flex-direction: column;
}

/* Image container */
.hotel-image-container {
    position: relative;
    background-color: #ffffff;
    width: 100%;
    height: 200px;
    overflow: hidden;
    flex-shrink: 0;
    margin: 0;
}

.hotel-image-container img {
    display: block;
    width: 100%;
    height: 100%;
    object-fit: cover;
    object-position: center;
    background-color: #ffffff;
}

@media (min-width: 768px) {
    /* 任意 */
    #hotel-cards-container.fixed-4 .hotel-image-container {
        height: 160px;
    }
}

/* Bottom gradient overlay */
.hotel-img-gradient {
    position: absolute;
    left: 0;
    right: 0;
    bottom: 0;
    height: 60%;
    background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 100%);
    z-index: 2;
    pointer-events: none;
}

/* Text overlay */
.hotel-img-text {
    position: absolute;
    left: 12px;
    right: 16px;
    bottom: 12px;
    color: #fff;
    z-index: 3;
}

#hotel-cards-container.fixed-2 .hotel-img-text {
    left: 18.26px;
    right: 18.26px;
    bottom: 12px;
}

@media (max-width: 767px) {
    #hotel-cards-container.fixed-2 .hotel-img-text {
        left: 11.2px;
    }
}

.hotel-img-text p {
    margin: 0;
    font-size: 14px;
    display: flex;
    align-items: center;
}

.hotel-img-text p.hotel-name {
    font-size: 15px;
    font-weight: bold;
    line-height: 1.5;
    margin-bottom: 8px;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
    overflow: hidden;
    text-shadow: 0 2px 6px rgba(0, 0, 0, 0.32);
}

.hotel-location-icon {
    display: inline-block;
    width: 16px;
    height: 16px;
    margin-right: 4px;
    fill: currentColor;
    flex-shrink: 0;
    background-color: currentColor;
    -webkit-mask: url("/img/pickup_campaign_lp/hotel-location-iton.svg") no-repeat center / contain;
    mask: url("/img/pickup_campaign_lp/hotel-location-iton.svg") no-repeat center / contain;
}

.label {
    font-weight: 400;
}

/* Content area */
.hotel-content {
    padding: 12px;
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
}

/* Badges */
.discount-badges {
    margin-bottom: 10px;
    display: flex;
    flex-wrap: wrap;
    align-items: flex-start;
    gap: 4px;
}

.badge-primary,
.badge-success {
    background: linear-gradient(135deg, #4998E7 0%, #1565C0 100%);
    color: #fff;
    border-radius: 4px;
    font-size: 12px;
    line-height: 1.3;
    font-weight: 700;
    padding: 4.21px 6px;
}

/* Description */
.hotel-desc {
    font-size: 14px;
    color: #616161;
    margin-bottom: 15px;
    line-height: 1.5;
    overflow: hidden;
    display: -webkit-box;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 3;
}

/* PC時: 列数ごとに行数を切り替え */
@media (min-width: 768px) {
    #hotel-cards-container.fixed-2 .hotel-desc {
        -webkit-line-clamp: 3;
    }

    #hotel-cards-container.fixed-3 .hotel-desc {
        -webkit-line-clamp: 4;
    }

    #hotel-cards-container.fixed-4 .hotel-desc {
        -webkit-line-clamp: 4;
    }
}

/* Price row */
.price-row {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 10px;
}

.price-row .label {
    font-size: 12px;
    color: #616161;
    padding: 0px;
}

.price-content {
    text-align: right;
}

.dom-hotel-price {
    font-size: 24px;
    font-weight: bold;
    color: #e74c3c;
}

.dom-hotel-price small {
    font-weight: bold;
}

.price small {
    font-size: 14px;
}

.price-unit {
    font-size: 12px;
    color: #616161;
}

.hotel-card-footer {
    display: flex;
    flex-direction: column;
    gap: 12px;
    margin-top: auto;
}

.hotel-card-footer .price-row {
    margin-bottom: 0;
}

#hotel-cards-container.fixed-2 {
    display: grid;
    grid-template-columns: repeat(2, 1fr);
}

#hotel-cards-container.fixed-3 {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
}

#hotel-cards-container.fixed-4 {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
}

#hotel-cards-container.fixed-2 .hotel-card-footer {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 20px;
}

#hotel-cards-container.fixed-2 .hotel-card-footer .price-row {
    flex: 1;
}

#hotel-cards-container.fixed-2 .hotel-card-footer .btn-cta,
#hotel-cards-container.fixed-2 .hotel-card-footer .hotel_detail {
    width: auto;
    min-width: 175px;
    height: 50px;
    flex-shrink: 0;
    padding: 12px 24px;
    text-align: center;
    white-space: nowrap;
}

#hotel-cards-container.fixed-2 .hotel-card-footer .btn-cta {
    display: inline-flex;
    justify-content: center;
    align-items: center;
}

@media (max-width: 767px) {
    #hotel-cards-container.fixed-2 .hotel-card-footer {
        flex-direction: column;
        align-items: stretch;
        gap: 12px;
    }

    #hotel-cards-container.fixed-2 .hotel-card-footer .btn-cta,
    #hotel-cards-container.fixed-2 .hotel-card-footer .hotel_detail {
        width: 100%;
        min-width: 0;
    }
}

/* CTA button */
.btn-cta,
.hotel_detail.btn-cta {
    display: block;
    width: 100%;
    background: linear-gradient(135deg, #FF8F00 0%, #FF4210 100%);
    color: #fff;
    padding: 12px;
    border-radius: 8px;
    text-decoration: none;
    font-weight: bold;
    text-align: center;
    font-size: 16px;
}

.btn-cta:hover,
.hotel_detail.btn-cta:hover {
    background: linear-gradient(135deg, #FF4210 0%, #FF8F00 100%);
}

/* Region tabs */
.region-tabs {
    display: flex;
    gap: 8px;
    padding: 16px;
    width: fit-content;
}

.region-tabs-container {
    background: #eef3f6;
    padding: 24px 0;
    margin-bottom: 30px;
}

.region-tabs-box {
    background: #fff;
    border-radius: 16px;
    display: block;
    /* Allow horizontal scroll on PC when the viewport is narrow */
    overflow-x: auto;
    overflow-y: hidden;
    width: 100%;
    max-width: 1160px;
    box-sizing: border-box;
    margin: 20px auto 0; /* center when narrower than 1160px */
    -webkit-overflow-scrolling: touch;
}

.column-switch {
    display: inline-flex;
    gap: 4px;
    margin-left: 8px;
    padding: 4px;
    border-radius: 8px;
}

.column-switch__btn {
    min-width: 36px;
    height: 26px;
    padding: 0 8px;
    border: 1px solid transparent;
    border-radius: 6px;
    background: transparent;
    font-size: 13px;
    font-weight: 600;
    color: #4b5563;
    cursor: pointer;
    transition: background-color 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.column-switch__btn.is-active {
    background: linear-gradient(135deg, #6fb7e0 0%, #1f78c1 100%);
    color: #fff;
    border-color: transparent;
}

.column-switch__btn:hover,
.column-switch__btn:focus {
    outline: none;
    border-color: #6fb7e0;
}

.region-tabs .column-switch {
    align-self: center;
}

#hotel-cards-container {
    gap: 24px 16px;
}

@media (max-width: 767px) {
    .column-switch {
        margin-left: 0;
    }
}

.region-tabs .tab-item {
    cursor: pointer;
    display: inline-flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    padding: 8px 16px;
    border-radius: 8px;
    font-weight: 700;
    color: #222;
    background: #fff;
    line-height: 1.1;
    text-align: center;
    font-size: 16px;
    flex: 1;
    width: auto;
    max-width: fit-content;
    min-width: 79px;
    white-space: nowrap;
}

.region-tabs .tab-item .count {
    display: block;
    font-size: 12px;
    font-weight: 500;
    color: #6B7280;
    margin-top: 4px;
}

.region-tabs .tab-item.active {
    color: #fff;
    border-color: transparent;
    background: linear-gradient(135deg, #50A2D2 0%, #1565C0 100%);
}

.region-tabs .tab-item.active .count {
    color: rgba(255, 255, 255, 0.9);
}

.region-tabs .tab-item:not(.active):hover {
    border-color: #CBD5E1;
    color: #1565C0;
    background: linear-gradient(135deg, #E3ECFB 0%, #E5F0F9 100%);
}

.region-tabs .tab-item:not(.active):hover .count {
    color: #1565C0;
}

.region-tabs .tab-item:active {
    background: linear-gradient(135deg, #50A2D2 0%, #1565C0 100%);
    color: #1565C0;
    border-color: transparent;
}

.region-tabs .tab-item:active .count {
    color: #1565C0;
}

.prefecture-list:after {
    content: "";
    display: block;
    width: 0px;
}

.region-tabs .tab-item.inactive {
    color: #BCBCBC;
    cursor: default;
}

.region-tabs .tab-item.inactive:hover {
    color: #BCBCBC !important;
    background: #fff !important;
    cursor: default;
}

.region-tabs .tab-item.inactive .count {
    color: #BCBCBC;
}

.region-tabs .tab-item.inactive:hover .count {
    color: #BCBCBC;
}

/* SP: region tabs look and feel */
@media (max-width: 767px) {

    #region-tabs-section {
        padding: 0px;
    }

	/* コンテナは全幅・余白調整 */
	.region-tabs-box {
		width: 100%;
		margin: 0;
		padding: 12px;
        border-radius: 0px;
        overflow: scroll hidden;
        scroll-snap-type: x mandatory;
	}

	.region-tabs {
        padding: 0px;
        gap: 6px;
        width: fit-content;
	}

	.region-tabs .tab-item {
		padding: 6px 10px;
		border-radius: 4px;
		color: #212121;
		font-size: 14px;
        width: auto;
        max-width: fit-content;
        white-space: nowrap;
        line-height: 100%;
        min-width: 62px;
	}

	.region-tabs .tab-item .count {
		display: block;
		margin-top: 2px;
		font-size: 10px;
		color: #212121;
	}

	.region-tabs .tab-item.active {
		background: linear-gradient(135deg, #50A2D2 0%, #1565C0 100%);
		color: #fff;
		border-color: transparent;
        font-size: 14px;
        line-height: 100%;
        /* width: calc((100% - 40px)/5); */
	}

	.region-tabs .tab-item.active .count {
	    color: #fff;

	}
    .hotel-desc {
        font-size: 14px;
        color: #666;
        margin-bottom: 15px;
        line-height: 1.5;
        overflow: hidden;
        display: -webkit-box;
        -webkit-box-orient: vertical;
        -webkit-line-clamp: 4;
        line-clamp: 4;
    }

    .prefecture-list:after {
        content: "";
        display: block;
        width: 2px;
    }
}

.prefecture-tabs {
    display: none;
    width: 100%;
}

.prefecture-tabs.active {
    display: block;
    text-align: center;
    width: 100%;
}

/* Ensure arrow cursor over the entire prefecture tabs area (even though items are clickable) */
.prefecture-tabs,
.prefecture-tabs * {
    cursor: default;
}

/* Hide wrapper visually but keep 12px spacing when 全国 is active */
.prefecture-tabs-wrapper.is-hidden {
    display: block; /* keep in flow to allow margin */
    height: 0;
    padding: 0;
    border: 0;
    background: transparent;
    overflow: hidden;
    margin-bottom: 18px;
}

/* コンテナは全幅・余白調整 */

/* 全国時はラッパーを透明化（非表示ではなく見た目だけ消す）: PCのみ有効 */
@media (min-width: 768px) {
    .region-tabs-wrapper.region-tabs-wrapper--only-region {
        background: transparent;
    }
}
.region-tabs-wrapper {
    background-color: #f5f5f5;
    width: 100%;
    /* margin applies only for 全国 via .is-hidden */
    margin-bottom: 18px;
    border-radius: 16px;
}

.prefecture-tabs-wrapper {
    background-color: #f5f5f5;
    width: 100%;
    margin-bottom: 18px;
    border-radius: 16px;
    padding: 16px;
    overflow-x: scroll;
}

.prefecture-list {
    display: flex;
    gap: 12px;
    width: fit-content;
}

.prefecture-list .pref-item {
    border-radius: 4px;
    color: #212121;
    font-size: 16px;
    font-weight: bold;
    background-color: #FFFFFF;
    width: auto;
    padding: 8px 16px;
    border-radius: 8px;
    cursor: pointer;
    max-width: fit-content;
    min-width: 80px;
    white-space: nowrap;
}

li.pref-item:hover {
    background-color: #E4EFF9;
    color: #1565C0;
}

li.pref-item:hover .count {
    color: #1565C0;
}

.prefecture-list .pref-item:hover .count {
    color: #1565C0;
}

li.pref-item.active {
    background-color: #E4EFF9;
    color: #1565C0;
    font-size: 16px;
}

.prefecture-list .pref-item .count {
    display: block;
    text-align: center;
    font-size: 12px;
    color: #212121;
    margin-top: -2px;
}

.prefecture-list .pref-item.active .count {
    color: #1565C0;
}

/* SP: prefecture tabs look and feel */
@media (max-width: 767px) {
    .region-tabs-wrapper {
        background-color: #f5f5f5;
        width: 100%;
        /* margin applies only for 全国 via .is-hidden */
        margin-bottom: 18px;
        padding: 0px;
        border-radius: 0px;
    }

    /* コンテナは全幅・余白調整 */
    .prefecture-tabs-wrapper {
        background-color: #f5f5f5;
        width: 100%;
        /* margin applies only for 全国 via .is-hidden */
        margin-bottom: 18px;
        padding: 12px;
        border-radius: 0px;
        overflow: scroll hidden;
        scroll-snap-type: x mandatory;
    }

    .prefecture-list {
        gap: 10px;
    }

    .prefecture-list .pref-item {
        border-radius: 4px;
        color: #212121;
        font-size: 14px;
        font-weight: bold;;
        background-color: #FFFFFF;
        width: auto;
        max-width: fit-content;
        padding: 6px 10px;
        white-space: nowrap;
        border-radius: 4px;
        min-width: 62px;
        margin: auto;
    }

    li.pref-item.active {
        background-color: #E4EFF9;
        color: #1565C0;
        font-size: 14px;
    }

    .prefecture-list .pref-item .count {
        display: block;
        text-align: center;
        font-size: 10px;
        color: #212121;
        margin-top: -2px;
        cursor: pointer;
    }

    .prefecture-list .pref-item.active .count {
        color: #1565C0;
    }
}

/* Load more section */
.container.column-switch {
    max-width: 100%;
    margin: 12px auto;
    display: flex;
    padding: 4px;
    justify-content: flex-start;
    gap: 8px;
    border-radius: 8px;
}

@media (max-width: 767px) {
    .container.column-switch {
        display: none;
    }
}

/* Load more: center on PC, shrink-to-content */
.container.load-more-wrap {
    display: flex;
    justify-content: center;
    width: auto;
    max-width: none;
    padding: 0;
    margin-bottom: 20px;
}

#load-more-container {
    display: flex;
    width: fit-content;
    max-width: 100%;
    align-items: center;
    justify-content: center;
}

.load-more-section {
    background: #eef3f6;
    padding: 28px 0 48px;
}

#load-more-btn,
.btn-load-more {
    font-size: 16px;
    text-align: center;
    display: inline-block;
    width: 320px;
    height: 50px;
    padding: 17px 120px 17px 120px;
    background: #fff;
    font-weight: 700;
    border-radius: 25px;
    margin-bottom: 80px;
    margin-top: 80px;
    color: #1565C0;
    line-height: 100%;
    cursor: pointer;
}

@media (max-width: 767px) {
    #load-more-btn,
    .btn-load-more {
        width: 351px;
        height: 50px;
        margin-bottom: 40px;
        margin-top: 20px;
    }
}

.btn-load-more:hover {
    box-shadow: 0 4px 14px rgba(0, 0, 0, 0.08);
}

.btn-load-more:active {
    transform: translateY(1px);
}

.btn-load-more:focus {
    outline: 2px solid rgba(21, 101, 192, 0.25);
    outline-offset: 2px;
}

/* 767px以下は常に1カラム */
@media (max-width: 767.98px) {

    #hotel-cards-container.fixed-2,
    #hotel-cards-container.fixed-3,
    #hotel-cards-container.fixed-4 {
        display: grid;
        grid-template-columns: 1fr;
    }
}

.search-content{
    background: #ECEFF1;
}

.title-block-special {
    color: #333;
    margin-top: 87px;
    margin-bottom: 43px;
    padding-bottom: 16px;
    text-align: center;
    font: normal normal 900 40px / 40px "Noto Sans JP", sans-serif;
}

@media (max-width: 767.98px) {
    .title-block-special {
        color: #333;
        margin-top: 47px;
        margin-bottom: 7px;
        padding-bottom: 23px;
        text-align: center;
        font: normal normal 900 28px/1 "Noto Sans JP", sans-serif;
    }
}
