* {
    margin: 0;
    padding: 0;
    box-sizing: border-box;
    font-family: 'Segoe UI', Tahoma, Geneva, Verdana, sans-serif;
}

/* Override any browser default link styles */
a {
    text-decoration: none !important;
}

/* Remove this possibly conflicting hover transform for all links */
a:hover {
    transform: none;
}

body {
    background-color: #f0f2f5;
    color: #1c1e21;
}

/* Navigation bar styles */
.navbar {
    background-color:#3a3d45;
    color: white;
    padding: 15px 20px;
    display: flex;
    align-items: center;
    justify-content: space-between;
    position: sticky;
    top: 0;
    box-shadow: 0 2px 5px rgba(0,0,0,0.2);
    z-index: 10;
}

.navBarInner {
    display: flex;
    max-width: 1200px;
    margin: auto;
    width: 100%;
    justify-content: space-between;
    align-items: center;
}

.navbar .logo {
    font-size: 24px;
    font-weight: bold;
    letter-spacing: 0.5px;
}

.navbar .nav-menu {
    display: flex;
    gap: 20px;
}

.navbar .nav-item {
    cursor: pointer;
    font-weight: 500;
    transition: color 0.3s;
    position: relative;
}

.navbar .nav-item:hover {
    color: #f0f2f5;
}

.navbar .nav-item::after {
    content: '';
    position: absolute;
    bottom: -5px;
    left: 0;
    width: 0;
    height: 2px;
    background-color: #f0f2f5;
    transition: width 0.3s;
}

.navbar .nav-item:hover::after {
    width: 100%;
}

/* Header styling to match holidaycottages.co.uk */
.header {
    background-color: #3c4044;
    color: white;
    padding: 15px 0;
}

.header-container {
    max-width: 1200px;
    margin: 0 auto;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 0 15px;
}

.logo {
    font-size: 24px;
    font-weight: bold;
    color: white;
}

.logo-accent {
    color: #52a863;
}

.nav-menu {
    display: flex;
    gap: 25px;
}

.nav-link {
    color: white;
    font-weight: 500;
}

.container {
    max-width: 1200px;
    margin: 30px auto;
    padding: 0 15px;
    width: 100%;
    flex: 1;
}

.section-title {
    font-size: 24px;
    margin-bottom: 25px;
    color: #333333;
    position: relative;
    padding-bottom: 10px;
}



.deals-grid {
    display: grid;
    grid-template-columns: repeat(3, 1fr);
    gap: 20px;
    margin-bottom: 40px;
}

/* Enhanced specificity for card links */
a.deal-card {
    text-decoration: none !important;
    color: inherit;
    display: block;
    cursor: pointer !important;
    pointer-events: auto !important;
    position: relative;
    z-index: 1;
}

h1, h2 {
    text-align: center;
    margin: auto;
    width: 100%;
    padding: 0;
    margin: 10px;
}


h2 {
    margin-top: 0;
}

/* Reset any browser default styles */
.deal-card {
    background-color: white;
    border-radius: 10px;
    overflow: hidden;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s ease, box-shadow 0.3s ease;
    position: relative;
    border: 1px solid #e4e6eb;
    height: 100%;
    display: flex;
    flex-direction: column;
    cursor: pointer !important;
    will-change: transform;
}

/* Enhanced hover effect with !important to override other styles */
.deal-card:hover {
    box-shadow: 0 8px 25px rgba(0,0,0,0.15) !important;
    transform: translateY(-5px) !important;
}

/* Make child elements pass pointer events to the parent */
.deal-card > * {
    pointer-events: none;
}

.deal-image {
    height: 180px;
    background-size: cover;
    background-position: center;
    position: relative;
    cursor: pointer !important;
    pointer-events: none;
}

.deal-tag {
    position: absolute;
    top: 10px;
    left: 0;
    background-color: rgba(255, 255, 255, 0.8);
    color: #333333;
    padding: 3px 8px;
    font-size: 14px;
}

.save-badge {
    position: absolute;
    top: 10px;
    left: 10px;
    background-color: #b81034;
    color: white;
    padding: 3px 8px;
    font-weight: bold;
    font-size: 12px;
    z-index: 2;
}

.deal-details {
    display: flex;
    flex-direction: column;
    flex-grow: 1;
    padding: 15px;
    pointer-events: none;
}

.location {
    color: #65676b;
    font-size: 14px;
    margin-bottom: 5px;
}

.deal-title {
    font-size: 20px;
    font-weight: bold;
    margin-bottom: 10px;
    color: #333333;
}

.property-features {
    display: flex;
    gap: 12px;
    margin-bottom: 15px;
}

.feature {
    display: flex;
    align-items: center;
    gap: 5px;
    color: #555;
    font-size: 14px;
}

.feature img {
    width: 16px;
    height: 16px;
}

/* Remove hover transform for these elements */
.feature:hover, .booking-info:hover, .deal-title:hover {
    transform: none;
}

.rating {
    margin-bottom: 15px;
}

.rating-text {
    color: #555;
    font-size: 14px;
    margin-right: 5px;
}

.rating-stars {
    color: #62a562;
}

.divider {
    height: 1px;
    background-color: #eee;
    margin: 10px 0;
}

/* Create a spacer to push the booking info to the bottom */
.spacer {
    flex-grow: 1;
}

.booking-info {
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.booking-dates {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
}

.nights-count {
    font-weight: normal;
    color: #333;
    font-size: 14px;
}

.checkin-date {
    color: #333;
    font-size: 14px;
    font-weight: bold;
}

.pricing-info {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    min-height: 45px;
}

.deal-price {
    font-weight: bold;
    color: #d94736;
    font-size: 24px;
}

.was-price {
    color: #6c757d;
    text-decoration: line-through;
    font-size: 14px;
    height: 20px;
}

.view-btn {
    background-color: #52a050;
    color: white;
    border: none;
    padding: 12px 0;
    width: 100%;
    text-align: center;
    font-weight: bold;
    border-radius: 0;
    display: block;
    margin-top: 15px;
    transition: background-color 0.3s;
    font-size: 16px;
    cursor: pointer !important;
    pointer-events: auto !important;
    position: relative;
    z-index: 2;
}

.view-btn:hover {
    background-color: #529f53;
    text-decoration: none;
    color: white;
}

/* Search button styling like the image */
.search-btn {
    background-color: #62a562;
    color: white;
    border: none;
    padding: 12px 25px;
    border-radius: 0;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s, transform 0.3s;
}

.search-btn:hover {
    background-color: #529f53;
    transform: translateY(-3px);
}

.deal-terms {
    font-size: 12px;
    color: #8a8d91;
    margin-top: 5px;
    font-style: italic;
    margin-bottom: 15px;
}

.browse-more {
    text-align: center;
    margin: 20px 0 40px;
}

.browse-more-btn {
    background-color: transparent;
    color: #52a863;
    border: 2px solid #52a863;
    padding: 12px 25px;
    border-radius: 5px;
    font-weight: bold;
    font-size: 16px;
    cursor: pointer;
    transition: background-color 0.3s, color 0.3s;
}

.browse-more-btn:hover {
    background-color: #52a863;
    color: white;
}

.features-section {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 25px;
    margin: 40px 0;
}

.feature-card {
    background-color: white;
    border-radius: 10px;
    padding: 25px;
    text-align: center;
    box-shadow: 0 3px 10px rgba(0,0,0,0.1);
    transition: transform 0.3s;
}

.feature-card:hover {
    transform: translateY(-5px);
}

.feature-icon {
    width: 60px;
    height: 60px;
    margin: 0 auto 20px;
    display: flex;
    align-items: center;
    justify-content: center;
    background-color: #f0f2f5;
    border-radius: 50%;
}

.feature-title {
    font-size: 18px;
    margin-bottom: 15px;
}

.feature-text {
    color: #65676b;
    font-size: 14px;
    line-height: 1.5;
}

.footer {
    background-color: #3c4044;
    color: white;
    padding: 50px 0 30px;
    margin-top: 40px;
}

.footer-container {
    max-width: 1200px;
    margin: 0 auto;
    padding: 0 15px;
}

.footer-grid {
    display: grid;
    grid-template-columns: repeat(4, 1fr);
    gap: 30px;
    margin-bottom: 30px;
}

.footer-section h3 {
    font-size: 18px;
    margin-bottom: 20px;
    color: white;
}

.footer-links {
    list-style: none;
}

.footer-links li {
    margin-bottom: 10px;
}

.footer-links a {
    color: #a8abb0;
    text-decoration: none;
    transition: color 0.3s;
}

.footer-links a:hover {
    color: white;
}

.footer-bottom {
    text-align: center;
    padding-top: 20px;
    border-top: 1px solid #4a4d50;
    color: #a8abb0;
    font-size: 14px;
}

/* Form elements styling to match holidaycottages.co.uk */
input, select {
    padding: 12px 15px;
    border: 1px solid #ddd;
    border-radius: 5px;
    font-size: 16px;
    width: 100%;
}

.search-form {
    display: grid;
    grid-template-columns: repeat(3, 1fr) auto;
    gap: 15px;
    background-color: #f9f9f9;
    padding: 20px;
    border-radius: 10px;
    margin-bottom: 30px;
}

@media (max-width: 1200px) {
    .features-section {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .search-form {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 900px) {
    .deals-grid {
        grid-template-columns: repeat(2, 1fr);
    }
    
    .footer-grid {
        grid-template-columns: repeat(2, 1fr);
    }
}

@media (max-width: 768px) {
    .navbar .nav-menu {
        display: none;
    }

    .search-form {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 600px) {
    .deals-grid {
        grid-template-columns: 1fr;
    }

    .features-section {
        grid-template-columns: 1fr;
    }

    .footer-grid {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 480px) {
    .navbar .logo {
        font-size: 12pt;
        display: flex;
        width: 100%;
        align-items: center;
        flex-direction: row;
    }
}