/* pkgtour.css - Main Content & Page-specific Styles */

/* General page structure */
.page-container {
    width: 100%;
    overflow-x: hidden; /* Prevent horizontal scroll for overall page */
}

/* Icons used in content */
.icon {
    font-size: 1.125rem; /* 18px */
    color: inherit; /* Inherit color from parent */
    padding: 6px;
}

.icon-sm {
    font-size: 0.75rem; /* 12px */
    color: inherit;
}

/* Main Banner Section */
.main-banner {
    width: 100%;
    background-color: var(--accent);
    position: relative;
    overflow: hidden;
    padding: 2.5rem 0; /* py-10 */
    text-align: center;
}

.banner-shape-bottom-left {
    position: absolute;
    bottom: 0;
    left: 0;
    width: 109px; /* Base width */
    height: auto;
    opacity: 0.7;
}

.banner-shape-top-left {
    position: absolute;
    top: 0;
    left: 0;
    width: 142px; /* Base width */
    height: auto;
    opacity: 0.7;
}

.banner-shape-bottom-right {
    position: absolute;
    bottom: 0;
    right: 0;
    width: 219px; /* Base width */
    height: auto;
    opacity: 0.7;
}

.banner-text-content {
    position: relative;
    z-index: 10;
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    max-width: 1110px;
    margin: 0 auto;
    padding: 0 20px;
}

.banner-title {
    color: white;
    font-size: 2.25rem; /* text-3xl */
    font-weight: 700;
    margin-bottom: 0.5rem; /* mb-2 */
}

.banner-subtitle {
    color: white;
    font-size: 1.25rem; /* text-xl */
    font-weight: 100; /* font-light */
}

.banner-pagination-dots {
    display: flex;
    justify-content: center;
    margin-top: 1.5rem; /* mt-6 */
    gap: 0.5rem; /* space-x-2 */
}

.dot {
    width: 6px;
    height: 6px;
    background-color: white;
    border-radius: 9999px; /* rounded-full */
}

.dot.active {
    opacity: 1;
}

.dot:not(.active) {
    opacity: 0.4;
}

/* Search Section */
.search-section {
    max-width: 1110px;
    margin: 0 auto;
    padding-top: 7rem;
    padding-bottom: 2rem;
    position: relative;
    z-index: 20;
}

.search-card {
    margin-top: 2rem;
    background-color: white;
    padding: 1rem; /*p-4*/
    border-radius: 1rem; /*rounded-2xl*/
    box-shadow: 0 4px 6px -1px rgba(0, 0, 0, 0.1), 0 2px 4px -1px rgba(0, 0, 0, 0.06); /* shadow-lg */
}

.search-tabs {
    display: flex;
    justify-content: space-around;
    border-bottom: 1px solid #E9E9EC; /* border-b border-gray-200 */
    font-size: 0.875rem; /* text-sm */
    font-weight: 500; /* font-medium */
}

.search-tab-button {
    padding-top: 0.75rem;
    padding-bottom: 0.75rem;
    width: 33.333333%; /* w-1/3 */
    color: #424242;
    background: none;
    border: none;
    outline: none;
    cursor: pointer;
    transition: color 0.15s ease-in-out;
}

.search-tab-button:hover {
    color: var(--primary);
}

.search-tab-button-active {
    color: var(--primary);
    border-bottom: 2px solid var(--primary);
    font-weight: 700;
}

.search-inputs-grid {
    display: grid;
    grid-template-columns: 1fr; /* Default to single column */
    gap: 1rem; /* gap-4 */
    margin-top: 1.5rem; /* mt-6 */
}

.search-input-group {
    display: flex;
    align-items: center;
    background-color: #F7F7F9;
    border-radius: 0.75rem; /* rounded-xl */
    border: 1px solid #F0F0F3; /* border border-gray-200 */
    padding: 0.75rem; /* p-3 */
    height: 45px;
}

.search-input-field {
    flex-grow: 1;
    background-color: transparent;
    outline: none;
    color: #555558;
    font-size: 0.875rem;
    font-weight: 700;
    border: none;
    padding: 0;
}

.search-input-field::placeholder {
    color: #555558;
}

.search-input-text {
    flex-grow: 1;
    color: #555558;
    font-weight: 700;
    font-size: 0.875rem;
}

.search-input-actions {
    display: flex;
    flex-direction: column; /* Stack buttons by default */
    gap: 1rem; /* space-y-4 */
}

.search-filter-button {
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #F7F7F9;
    border-radius: 0.75rem;
    border: 1px solid #F0F0F3;
    padding: 0.75rem;
    cursor: pointer;
    box-shadow: 0 1px 2px 0 rgba(0, 0, 0, 0.05); /* shadow-sm */
    transition: background-color 0.15s ease-in-out;
    height: 45px;
    white-space: nowrap;
    flex-direction: row;
}

.search-filter-button:hover {
    background-color: #F0F0F3;
}

.search-filter-text {
    color: #555558;
    font-weight: 700;
    font-size: 0.875rem; /* text-sm */
    margin-left: 0.5rem;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
}

.search-button {
    background-color: var(--primary);
    color: white;
    border-radius: 0.75rem;
    padding: 0.75rem 1.5rem; /* py-3 px-6 */
    margin: 0 0.75rem;
    font-weight: 500;
    font-size: 0.875rem; /* text-lg */
    flex-shrink: 0;
    border: none;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
}

.search-button:hover {
    background-color: var(--secondary);
}

/* Categories Section */
.categories-section {
    max-width: 1110px;
    margin: 0 auto;
    padding: 2rem 20px;
}

.category-list {
    display: flex;
    align-items: center;
    justify-content: center;
    overflow-x: auto;
    gap: 1.5rem; /* space-x-6 */
    padding-bottom: 1rem; /* py-4 */
    -ms-overflow-style: none; /* IE and Edge */
    scrollbar-width: none; /* Firefox */
}

.category-list::-webkit-scrollbar {
    display: none; /* Chrome, Safari, Opera */
}

.category-item {
    display: flex;
    flex-direction: column;
    align-items: center;
    flex-shrink: 0;
}

.category-icon-wrapper {
    position: relative;
}

.category-icon {
    width: 66px;
    height: 66px;
    border-radius: 9999px; /* rounded-full */
    background-color: #E0F2F7;
    padding: 0.5rem; /* p-2 */
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06); /* shadow-md */
    object-fit: cover;
}

.category-badge {
    position: absolute;
    top: -0.5rem; /* -top-2 */
    right: 0;
    background-color: #FE5D41; /* red-500 */
    color: #F4F7F8;
    font-size: 0.625rem; /* text-xs */
    font-weight: 700;
    padding: 0.125rem 0.5rem; /* px-2 py-0.5 */
    border-radius: 9999px; /* rounded-full */
    box-shadow: 0 1px 4px rgba(0, 0, 0, 0.2);
}

.category-text {
    color: #242424;
    font-size: 0.8125rem; /* 13px */
    text-align: center;
    margin-top: 0.5rem; /* mt-2 */
    line-height: 1.125rem; /* leading-tight */
}

.scroll-arrow {
    font-size: 1.25rem; /* text-xl */
    color: #8C8C8C; /* gray-500 */
    margin-left: 1rem; /* ml-4 */
    flex-shrink: 0;
    cursor: pointer;
}

/* Ad Banner Section */
.ad-banner-section {
    width: 1110px;
    margin: 0 auto;
    padding: 2rem 20px;
}

.ad-banner-content {
    width: 100%;
    height: 96px; /* h-24 */
    background-color: #136DFF;
    border-radius: 1.5rem; /* rounded-2xl */
    overflow: hidden;
    display: flex;
    align-items: center;
    justify-content: center;
    position: relative;
}

.ad-banner-image {
    height: 100%;
    object-fit: cover;
}

/* Main Content Area */
.main-content-area {
    max-width: 1110px;
    margin: 0 auto;
    padding: 2rem 20px;
    display: flex;
    flex-direction: column; /* Stack columns by default */
    gap: 2rem; /* gap-8 */
}

.product-listings-column {
    width: 100%;
}

.section-title {
    font-size: 1.375rem; /* text-2xl */
    font-weight: 700;
    color: #222225;
    margin-bottom: 1.5rem; /* mb-6 */
}

.product-grid {
  display: grid;
  grid-template-columns: 1fr;
  gap: 1.5rem; /* gap-6 */
  margin-bottom: 2rem; /* mb-8 */
}

.product-card {
  background-color: white;
  border-radius: 0.75rem; /* rounded-xl */
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.1), 0 1px 2px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  padding-bottom: 1rem;
}

.product-card-image-wrapper {
  position: relative;
  height: 160px;
  overflow: hidden;
  border-radius: 0.75rem;
}

.product-card-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  border-radius: 0.75rem;
}

.image-overlay {
  position: absolute;
  inset: 0;
  background: linear-gradient(to top, rgba(0, 0, 0, 0.7) 0%, rgba(0, 0, 0, 0) 72%);
  border-radius: 0.75rem;
  pointer-events: none;
}

.product-badge {
    position: absolute;
    top: 0.5rem;
    left: 0.5rem;
    color: white;
    font-size: 0.75rem;
    font-weight: 700;
    padding: 0.25rem 0.75rem;
    border-radius: 9999px;
}

.product-badge.green {
    background-color: var(--primary);
}

.product-badge.red {
    background-color: var(--secondary);
}

.product-date {
    position: absolute;
    bottom: 1rem;
    left: 1rem;
    color: white;
    font-size: 0.875rem;
    line-height: 1.3;
}

.product-card-details {
    padding: 0.75rem;
}

.product-tag-image {
    height: 1.25rem;
    width: auto;
    margin-bottom: 0.5rem;
}

.product-title {
    font-size: 1rem;
    font-weight: 700;
    color: #222225;
    line-height: 1.3;
    margin-bottom: 0.25rem;
    height: 42px;
    overflow: hidden;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
}

.product-price {
    color: #FC4C4E;
    font-weight: 700;
    font-size: 1rem;
    margin-bottom: 0.25rem;
}

.product-points {
    display: flex;
    align-items: center;
    color: var(--primary);
    font-size: 0.75rem;
    font-weight: 700;
}

.product-point-icon {
    height: 0.75rem;
    width: auto;
    margin-right: 0.25rem;
}

.view-more-container {
    position: relative;
    display: flex;
    justify-content: center;
    align-items: center;
    padding: 1.5rem 0;
}

.view-more-divider {
    position: absolute;
    width: 100%;
    border-top: 1px solid #F0F0F3;
    z-index: 0;
}

.view-more-button {
    position: relative;
    z-index: 10;
    background-color: #FAFAFB;
    border: 1px solid #F0F0F3;
    border-radius: 9999px;
    padding: 0.75rem 2rem;
    color: #444447;
    font-weight: 700;
    font-size: 0.875rem;
    display: flex;
    align-items: center;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
    cursor: pointer;
    transition: background-color 0.15s ease-in-out;
}

.view-more-button:hover {
    background-color: #F0F0F3;
}

.view-more-button .icon-sm {
    margin-left: 0.75rem;
}

.margin-top-large {
    margin-top: 2.5rem;
}

.category-filter-buttons {
    display: flex;
    overflow-x: auto;
    gap: 0.75rem;
    padding-bottom: 1rem;
    margin-bottom: 1.5rem;
    -ms-overflow-style: none;
    scrollbar-width: none;
}

.category-filter-buttons::-webkit-scrollbar {
    display: none;
}

.filter-button {
    background-color: var(--gray100);
    border-radius: 9999px;
    padding: 0.5rem 1.25rem;
    font-size: 0.875rem;
    color: #444447;
    font-weight: 400;
    flex-shrink: 0;
    border: none;
    cursor: pointer;
    transition: background-color 0.15s ease-in-out, color 0.15s ease-in-out;
}

.filter-button.active {
    background-color: var(--primary);
    color: white;
    font-weight: 700;
}

.filter-button:hover:not(.active) {
    background-color: #E6EBEF;
}

.product-location-tag {
    position: absolute;
    bottom: 0;
    left: 0;
    background-color: rgba(0, 0, 0, 0.65);
    color: white;
    font-size: 0.75rem;
    padding: 0.25rem 0.75rem;
    border-top-right-radius: 0.9375rem; /* 15px */
    border-bottom-left-radius: 1rem; /* 16px */
    display: flex;
    align-items: center;
    gap: 0.25rem;
    font-weight: 700;
    line-height: 1.5;
}

.product-meta {
    color: #9E9E9E;
    font-size: 0.875rem;
    line-height: 1.5;
    margin-bottom: 0.25rem;
}

.dot-separator {
    color: #C5C5C7;
    margin: 0 0.25rem;
}

/* Side Content Column (Aside) */
.side-content-column {
    display: inline-block;
    width: 100%;
    height: 270px;
    position: static;
    transform: none;
    margin-top: 20px;
    transition: all 0.3s ease;
}

.side-info-box {
    padding: 1.5rem;
    border-radius: 1.25rem;
    background-color: white; /* Added background to be visible */
    border: 1px solid #E9E9E9;
    box-shadow: 0 1px 3px 0 rgba(0, 0, 0, 0.1), 0 1px 2px 0 rgba(0, 0, 0, 0.06);
}

.side-box-title {
    font-size: 1rem;
    font-weight: 700;
    color: #222225;
    margin-bottom: 1rem;
}

.side-box-list {
    list-style: none;
    padding: 0;
    margin: 0;
}

.side-box-list li {
    border-top: 1px solid #F0F0F3;
    padding-top: 1rem;
    padding-bottom: 0.75rem;
    display: flex;
    align-items: center;
    justify-content: space-between;
}

.side-box-list-item {
    display: flex;
    align-items: center;
}

.side-box-icon {
    width: 36px;
    height: 36px;
    margin-right: 0.75rem;
}

.side-box-text-content {
    display: flex;
    flex-direction: column;
}

.side-box-main-text {
    font-size: 0.9375rem;
    font-weight: 700;
    color: #222225;
    line-height: 1.25rem;
}

.side-box-sub-text {
    font-size: 0.8125rem;
    color: #939396;
    line-height: 1.125rem;
}

/* Responsive Adjustments */
/* Small devices (phones, 640px and up) */
@media (max-width: 639px) { /* Applies to screens less than 640px */
    .search-section {
        padding: 7rem 5%; /* Adjust left/right padding to 5% on each side, making it 10% total */
        margin-top: -4rem;
        padding-bottom: 2rem;
        margin-left: 20px;
        margin-right: 20px;
        width: 90%;
    }
        .search-button{
        margin: 0 0;
    }
    .ad-banner-section{
        width: auto;
        max-width: 1110px;
    }

}

@media (min-width: 640px) {
    .banner-title {
        font-size: 2.5rem;
    }

    .banner-subtitle {
        font-size: 1.5rem;
    }

    .search-section {
        padding: 0 20px; /*Reset padding for larger screens*/
    }

    .search-tabs {
        font-size: 1rem;
    }

    .search-inputs-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .search-input-actions {
        flex-direction: row;
        gap: 0.5rem;
        grid-column: span 2;
    }

    .search-filter-button,
    .search-button {
        flex-grow: 1;
    }

    .main-content-area {
        flex-direction: column;
    }
}

/* Medium devices (tablets, 768px and up) */
@media (min-width: 768px) {
    .product-grid {
        grid-template-columns: repeat(2, 1fr);
    }

    .banner-title {
        font-size: 3rem;
    }

    .banner-subtitle {
        font-size: 1.875rem;
    }

    .banner-shape-bottom-left {
        width: 128px;
    }

    .banner-shape-top-left {
        width: 144px;
    }

    .banner-shape-bottom-right {
        width: 192px;
    }

    .ad-banner-content {
        height: 128px;
    }

    .search-inputs-grid {
        grid-template-columns: repeat(3, 1fr);
    }

    .search-input-large {
        grid-column: span 2;
    }

    .search-input-actions {
        grid-column: auto;
        flex-direction: row;
        gap: 0.5rem;
    }
}

/* Large devices (desktops, 1024px and up) */
@media (min-width: 1024px) {
    .product-grid {
        grid-template-columns: repeat(4, 1fr);
    }
    .search-inputs-grid {
        grid-template-columns: repeat(5, 1fr);
    }

    .search-input-large {
        grid-column: span 2;
    }

    .search-input-actions {
        grid-column: span 1;
        flex-direction: row;
        gap: 0.5rem;
    }

    .main-content-area {
        flex-direction: row;
    }

    .banner-shape-bottom-left {
        width: 160px;
    }

    .banner-shape-top-left {
        width: 192px;
    }

    .banner-shape-bottom-right {
        width: 256px;
    }
}

/* Extra large devices for fixed side column */
@media (min-width: 1800px){
    .side-content-column {
        width: 280px;
        height: 270px;
        position: fixed;
        top: 50%;
        right: 5%;
        transform: translateY(-50%);
        margin-top: 0;
    }
}