/* General Layout for Archive Pages - Stay */
.stay-archive-header {
    text-align: center;
    padding: 40px 20px;
    background-color: rgba(50, 50, 100, 0.6); /* Different color for Stay header */
    color: #fff;
    margin-bottom: 40px;
    backdrop-filter: blur(5px);
    -webkit-backdrop-filter: blur(5px);
}
.stay-archive-header .page-title {
    font-size: 3em;
    margin-bottom: 10px;
    color: #fff;
}
.stay-archive-header .archive-description {
    max-width: 800px;
    margin: 0 auto;
    font-size: 1.1em;
    line-height: 1.6;
}

/* Grid Layout for Archive Items */
.stay-grid-wrapper {
    max-width: 1200px;
    margin: 0 auto 60px;
    padding: 0 20px;
}
.stay-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 30px;
}

/* Individual Card Styles */
.stay-item {
    background-color: rgba(255, 255, 255, 0.15); /* Transparent background for glass effect */
    backdrop-filter: blur(8px);
    -webkit-backdrop-filter: blur(8px);
    border: 1px solid rgba(255, 255, 255, 0.4);
    border-radius: 15px;
    overflow: hidden;
    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.15);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    text-align: left;
    display: flex;
    flex-direction: column;
}
.stay-item:hover {
    transform: translateY(-8px);
    box-shadow: 0 12px 25px rgba(0, 0, 0, 0.2);
}

/* Thumbnail Styles */
.stay-thumbnail-link {
    display: block;
    overflow: hidden;
}
.stay-thumbnail {
    width: 100%;
    height: 220px; /* Fixed height for consistency */
    object-fit: cover;
    display: block;
    transition: transform 0.3s ease;
}
.stay-item:hover .stay-thumbnail {
    transform: scale(1.05);
}

/* Content Area within Card */
.stay-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}
.stay-title {
    font-size: 1.8em;
    margin-top: 0;
    margin-bottom: 10px;
    line-height: 1.3;
}
.stay-title a {
    color: #f9f9f9;
    text-decoration: none;
    transition: color 0.3s ease;
}
.stay-title a:hover {
    color: #550202; /* Different hover color for Stay */
}

.stay-type,
.stay-price {
    font-size: 0.95em;
    color: #f9f9f9;
    margin-bottom: 8px;
    display: flex;
    align-items: center;
}
.stay-type .dashicons,
.stay-price .dashicons {
    margin-right: 5px;
    font-size: 1.1em;
}

.stay-excerpt {
    font-size: 0.95em;
    color: #f9f9f9;
    line-height: 1.5;
    margin-bottom: 15px;
}

.read-more-button {
    display: inline-block;
    background-color: rgba(255, 255, 255, 0.08); /* Slightly less opaque for individual cards */
    color: #fff;
    padding: 10px 18px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    align-self: flex-start;
    margin-top: auto;
    border: 1px solid rgba(255, 255, 255, 0.4);
}
.read-more-button:hover {
    background: linear-gradient(to right, #200122, #6f0000);
}

/* Single Post Page Styles */
.stay-single {
    max-width: 960px;
    margin: 40px auto;
    padding: 30px;
    background-color: rgba(255, 255, 255, 0.15); /* Transparent background for glass effect */
    backdrop-filter: blur(10px);
    -webkit-backdrop-filter: blur(10px);
    border: 1px solid rgba(255, 255, 255, 0.5);
    border-radius: 15px;
    box-shadow: 0 5px 20px rgba(0, 0, 0, 0.1);
    color: #333;
}
.stay-single-title {
    font-size: 2.8em;
    color: #f9f9f9;
    margin-top: 0;
    margin-bottom: 15px;
    text-align: center;
}
.stay-single-type {
    font-size: 1.1em;
    color: #f9f9f9;
    text-align: center;
    margin-bottom: 25px;
    display: flex;
    align-items: center;
    justify-content: center;
}
.stay-single-type .dashicons {
    margin-right: 8px;
    font-size: 1.3em;
}

.stay-single-thumbnail {
    margin-bottom: 30px;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
}
.stay-single-thumbnail img {
    width: 100%;
    height: auto;
    display: block;
    border-radius: 10px;
}

.stay-single-content h3 {
    font-size: 1.8em;
    color: #f9f9f9;
    margin-top: 30px;
    margin-bottom: 15px;
    border-bottom: 2px solid rgba(0, 0, 0, 0.1);
    padding-bottom: 8px;
}
.stay-single-content p,
.stay-single-content ul {
    font-size: 1.05em;
    line-height: 1.7;
    color: #f9f9f9;
    margin-bottom: 1em;
}

.stay-field {
    margin-bottom: 20px;
}

/* Gallery Styles (for Stay single page) - These styles are robust for individual images too */
.stay-gallery {
    margin-top: 40px;
}
.stay-gallery-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
    gap: 15px;
}
.gallery-item {
    background-color: #f9f9f9;
    border-radius: 8px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    text-align: center;
}
.gallery-item img {
    width: 100%;
    height: 150px;
    object-fit: cover;
    display: block;
}
.gallery-caption {
    font-size: 0.85em;
    color: #f9f9f9;
    padding: 8px;
    margin: 0;
}

.stay-amenities-list {
    list-style: none;
    padding: 0;
    margin: 0;
    display: flex;
    flex-wrap: wrap;
    gap: 10px 20px;
}
.stay-amenities-list li {
    font-size: 1em;
    color: #f9f9f9;
    display: flex;
    align-items: center;
}
.stay-amenities-list li .dashicons {
    font-size: 1.1em;
    margin-right: 5px;
    color: #ffffff; /* Green checkmark */
}
.booking-button {
    display: inline-block;
    background: linear-gradient(to right, #200122, #6f0000);
    color: #fff;
    padding: 12px 25px;
    border-radius: 5px;
    text-decoration: none;
    font-weight: bold;
    transition: background-color 0.3s ease;
    margin-top: 20px;
    border: 1px solid rgba(255, 255, 255, 0.4);
}
.booking-button:hover {
    background: linear-gradient(to right, #200122, #6f0000);
}

/* Pagination Styles */
.pagination {
    margin-top: 40px;
    text-align: center;
}
.pagination .nav-links {
    display: inline-flex;
    gap: 10px;
}
.pagination .page-numbers {
    display: inline-block;
    padding: 8px 15px;
    background-color: rgba(255, 255, 255, 0.7);
    border: 1px solid rgba(0, 0, 0, 0.1);
    border-radius: 5px;
    text-decoration: none;
    color: #333;
    transition: background-color 0.3s ease, color 0.3s ease;
}
.pagination .page-numbers:hover {
    background-color: #6a5acd;
    color: #fff;
}
.pagination .page-numbers.current {
    background-color: #6a5acd;
    color: #fff;
    border-color: #6a5acd;
    font-weight: bold;
}
.pagination .screen-reader-text {
    position: absolute;
    width: 1px;
    height: 1px;
    padding: 0;
    margin: -1px;
    overflow: hidden;
    clip: rect(0,0,0,0);
    border: 0;
}

/* Responsive Adjustments */
@media (max-width: 768px) {
    .stay-grid {
        grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
        gap: 20px;
    }
    .stay-archive-header .page-title {
        font-size: 2.5em;
    }
    .stay-single {
        padding: 20px;
        margin: 20px auto;
    }
    .stay-single-title {
        font-size: 2em;
    }
}

@media (max-width: 480px) {
    .stay-grid {
        grid-template-columns: 1fr;
        gap: 15px;
    }
    .stay-archive-header .page-title {
        font-size: 2em;
    }
    .stay-single-title {
        font-size: 1.8em;
    }
}