/* New Cottages Card Layout */

.new-cottages-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill, minmax(350px, 1fr));
    gap: 30px;
    padding: 20px 0;
    max-width: 1200px;
    margin: 0 auto;
}

.cottage-card {
    background: white;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: 0 2px 8px rgba(0,0,0,0.1);
    transition: transform 0.2s, box-shadow 0.2s;
    display: flex;
    flex-direction: column;
}

.cottage-card:hover {
    transform: translateY(-4px);
    box-shadow: 0 4px 16px rgba(0,0,0,0.15);
}

.cottage-card-image {
    position: relative;
    width: 100%;
    height: 250px;
    overflow: hidden;
}

.cottage-card-image img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

.cottage-rating-badge {
    position: absolute;
    top: 15px;
    right: 15px;
    background: #0085cc;
    color: white;
    padding: 8px 12px;
    border-radius: 8px;
    font-weight: bold;
    font-size: 14px;
    text-align: center;
    line-height: 1.2;
    box-shadow: 0 2px 6px rgba(0,0,0,0.2);
}

.cottage-rating-badge .rating-label {
    display: block;
    font-size: 10px;
    font-weight: normal;
    text-transform: uppercase;
    opacity: 0.9;
    margin-bottom: 2px;
}

.cottage-rating-badge .rating-value {
    display: block;
    font-size: 18px;
    font-weight: bold;
}

.cottage-card-content {
    padding: 20px;
    flex-grow: 1;
    display: flex;
    flex-direction: column;
}

.cottage-card-title {
    font-size: 20px;
    font-weight: bold;
    color: #0085cc;
    margin: 0 0 8px 0;
    line-height: 1.3;
}

.cottage-card-title a {
    color: #0085cc;
    text-decoration: none;
    transition: color 0.2s;
}

.cottage-card-title a:hover {
    color: #006fa7;
}

.cottage-card-location {
    font-size: 14px;
    color: #666;
    margin-bottom: 15px;
}

.cottage-card-location a {
    color: #666;
    text-decoration: none;
}

.cottage-card-location a:hover {
    color: #0085cc;
}

.cottage-card-icons {
    display: flex;
    gap: 15px;
    margin-bottom: 15px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ededed;
}

.cottage-icon-item {
    display: flex;
    align-items: center;
    gap: 6px;
    font-size: 13px;
    color: #555;
}

.cottage-icon-item i {
    color: #0085cc;
    font-size: 14px;
}

.cottage-features-list {
    list-style: none;
    padding: 0;
    margin: 0 0 20px 0;
    flex-grow: 1;
}

.cottage-features-list li {
    padding: 6px 0;
    font-size: 14px;
    color: #555;
    position: relative;
    padding-left: 22px;
}

.cottage-features-list li:before {
    content: "✓";
    color: #00a651;
    font-weight: bold;
    position: absolute;
    left: 0;
    font-size: 16px;
}

.cottage-card-footer {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding-top: 15px;
    border-top: 1px solid #ededed;
}

.cottage-price {
    font-size: 16px;
    color: #333;
}

.cottage-price strong {
    font-size: 20px;
    color: #0e2c3c;
    font-weight: bold;
}

.cottage-view-button {
    background: #ff8c00;
    color: white !important;
    padding: 12px 24px;
    border-radius: 8px;
    text-decoration: none !important;
    font-weight: bold;
    font-size: 14px;
    transition: background 0.2s;
    display: inline-flex;
    align-items: center;
    gap: 8px;
    border: none;
    cursor: pointer;
}

.cottage-view-button:hover {
    background: #e67e00;
    color: white !important;
    text-decoration: none !important;
}

.cottage-view-button:visited,
.cottage-view-button:focus,
.cottage-view-button:active {
    color: white !important;
    text-decoration: none !important;
}

.cottage-view-button i {
    font-size: 12px;
}

.new-cottages-header {
    max-width: 1200px;
    margin: 0 auto;
    padding: 20px 0;
}

.new-cottages-count {
    background: white;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 4px rgba(0,0,0,0.1);
    margin-bottom: 20px;
}

.new-cottages-count h2 {
    margin: 0;
    font-size: 24px;
    color: #0e2c3c;
}

/* Responsive adjustments */
@media only screen and (max-width: 768px) {
    .new-cottages-grid {
        grid-template-columns: 1fr;
        gap: 20px;
        padding: 15px;
    }

    .cottage-card-image {
        height: 220px;
    }

    .cottage-card-footer {
        flex-direction: column;
        gap: 12px;
        align-items: stretch;
    }

    .cottage-view-button {
        width: 100%;
        justify-content: center;
    }

    .cottage-card-icons {
        flex-wrap: wrap;
    }
}

@media only screen and (min-width: 769px) and (max-width: 1024px) {
    .new-cottages-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media only screen and (min-width: 1025px) {
    .new-cottages-grid {
        grid-template-columns: repeat(3, 1fr);
    }
}

/* Hide old layout elements on new cottages page */
.new-cottages-layout .resultsContainer,
.new-cottages-layout .sortByBox,
.new-cottages-layout .mobileWhiteBG,
.new-cottages-layout .mobileFilters,
.new-cottages-layout .featuresButton {
    display: none;
}

/* Hero Header Styling */
.new-cottages-layout .showLodgesHeader {
    background-image:
        linear-gradient(135deg, rgba(14, 44, 60, 0.85) 0%, rgba(14, 44, 60, 0.6) 50%, rgba(14, 44, 60, 0.85) 100%),
        url('/images/cottage-hero.jpg');
    background-size: cover;
    background-position: center center;
    background-repeat: no-repeat;
    color: white;
    padding: 120px 30px;
    text-align: center;
    position: relative;
    margin: 0;
    border: none;
    overflow: hidden;
    min-height: 400px;
    display: flex;
    align-items: center;
    justify-content: center;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
}

.new-cottages-layout .showLodgesHeader .hero-content {
    position: relative;
    z-index: 2;
    max-width: 100%;
    width: 100%;
    margin: 0 auto;
    padding: 0 20px;
}

.new-cottages-layout .showLodgesHeader .hero-subtitle {
    font-size: 24pt;
    font-weight: 400;
    text-transform: uppercase;
    letter-spacing: 3px;
    margin-bottom: 15px;
    opacity: 0.95;
    color: #ff8c00;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

.new-cottages-layout .showLodgesHeader .hero-title {

    font-size: 22pt;
    font-weight: 900;
    line-height: 1.2;
    margin: 0;
    text-shadow: 3px 3px 12px rgba(0, 0, 0, 0.7);
    letter-spacing: 1px;
}

.new-cottages-layout .showLodgesHeader .hero-description {
    font-size: 22px;
    font-weight: 300;
    margin-top: 25px;
    line-height: 1.6;
    opacity: 0.95;
    text-shadow: 2px 2px 8px rgba(0, 0, 0, 0.5);
}

/* Decorative accent line */
.new-cottages-layout .showLodgesHeader:after {
    content: '';
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    height: 5px;
    background: linear-gradient(90deg, #ff8c00 0%, #0085cc 50%, #ff8c00 100%);
    z-index: 3;
}

/* Stats Bar */
.stats-bar {
    background: linear-gradient(135deg, #0085cc 0%, #0e2c3c 100%);
    padding: 50px 20px;
    margin: 0;
    width: 100vw;
    margin-left: calc(-50vw + 50%);
    box-shadow: 0 4px 20px rgba(0, 0, 0, 0.15);
}

.stats-container {
    max-width: 1200px;
    margin: 0 auto;
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
}

.stat-box {
    background: rgba(255, 255, 255, 0.1);
    backdrop-filter: blur(10px);
    padding: 30px 20px;
    border-radius: 15px;
    text-align: center;
    border: 2px solid rgba(255, 255, 255, 0.2);
    transition: all 0.3s ease;
}

.stat-box:hover {
    transform: translateY(-5px);
    background: rgba(255, 255, 255, 0.15);
    border-color: rgba(255, 255, 255, 0.4);
    box-shadow: 0 8px 25px rgba(0, 0, 0, 0.2);
}

.stat-icon {
    font-size: 40px;
    color: #ff8c00;
    margin-bottom: 15px;
}

.stat-number {
    font-size: 48px;
    font-weight: 900;
    color: white;
    line-height: 1;
    margin-bottom: 10px;
}

.stat-label {
    font-size: 16px;
    color: rgba(255, 255, 255, 0.9);
    text-transform: uppercase;
    letter-spacing: 1px;
    font-weight: 500;
}

@media only screen and (max-width: 1024px) {
    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 20px;
    }

    .stat-box {
        padding: 25px 15px;
    }

    .stat-icon {
        font-size: 35px;
    }

    .stat-number {
        font-size: 40px;
    }

    .stat-label {
        font-size: 14px;
    }
}

@media only screen and (max-width: 768px) {
    .stats-bar {
        padding: 40px 15px;
    }

    .stats-container {
        grid-template-columns: repeat(2, 1fr);
        gap: 15px;
    }

    .stat-box {
        padding: 20px 15px;
    }

    .stat-icon {
        font-size: 30px;
        margin-bottom: 10px;
    }

    .stat-number {
        font-size: 32px;
    }

    .stat-label {
        font-size: 12px;
    }
}

@media only screen and (max-width: 1024px) {
    .new-cottages-layout .showLodgesHeader {
        padding: 80px 30px;
        min-height: 350px;
    }

    .new-cottages-layout .showLodgesHeader .hero-title {
        font-size: 28pt;
    }

    .new-cottages-layout .showLodgesHeader .hero-subtitle {
        font-size: 14px;
        letter-spacing: 2px;
    }

    .new-cottages-layout .showLodgesHeader .hero-description {
        font-size: 18px;
    }
}

@media only screen and (max-width: 768px) {
    .new-cottages-layout .showLodgesHeader {
        padding: 60px 20px;
        min-height: 300px;
        background-image:
            linear-gradient(135deg, rgba(14, 44, 60, 0.9) 0%, rgba(14, 44, 60, 0.75) 50%, rgba(14, 44, 60, 0.9) 100%),
            url('/images/cottage-hero.jpg');
    }

    .new-cottages-layout .showLodgesHeader .hero-content {
        padding: 0 10px;
    }

    .new-cottages-layout .showLodgesHeader .hero-title {
        font-size: 18pt;
        letter-spacing: 0.5px;
    }

    .new-cottages-layout .showLodgesHeader .hero-subtitle {
        font-size: 12px;
        letter-spacing: 2px;
        margin-bottom: 12px;
    }

    .new-cottages-layout .showLodgesHeader .hero-description {
        font-size: 16px;
        margin-top: 20px;
    }
}

/* Pie Chart Styling for Rating Stat Box */
.stat-box.rating-pie {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 10px;
}

.pie-chart-container {
    width: 100px;
    height: 100px;
    position: relative;
}

.pie-chart-container canvas {
    max-width: 100%;
    max-height: 100%;
}

.chart-legend {
    display: flex;
    gap: 12px;
    align-items: center;
    justify-content: center;
}

.legend-item {
    display: flex;
    align-items: center;
    gap: 5px;
    font-size: 14px;
    color: white;
    font-weight: 600;
}

.legend-color {
    width: 14px;
    height: 14px;
    border-radius: 3px;
    display: inline-block;
}

.stat-box.rating-pie .stat-number {
    font-size: 24px;
    margin-bottom: 0;
}

.stat-box.rating-pie .stat-number i {
    font-size: 18px;
    margin-left: 5px;
}

@media only screen and (max-width: 768px) {
    .pie-chart-container {
        width: 70px;
        height: 70px;
    }

    .chart-legend {
        gap: 8px;
    }

    .legend-item {
        font-size: 12px;
        gap: 4px;
    }

    .legend-color {
        width: 12px;
        height: 12px;
    }

    .stat-box.rating-pie .stat-number {
        font-size: 20px;
    }

    .stat-box.rating-pie .stat-number i {
        font-size: 14px;
    }
}
