/* Base & Reset */
body {
  margin: 0;
  font-family: 'Helvetica Neue', sans-serif;
  color: #222;
  background-color: #fff;
  line-height: 1.6;
}

body, html {
  overflow-x: hidden;
}

/* Hero Section */
.hero {
  background: #f4f8fc;
  padding: 4rem 1rem 3rem;
  text-align: center;
  border-bottom: 1px solid #dbe3ec;
}

.hero-content {
  max-width: 800px;
  margin: 0 auto;
}

.hero-content h1 {
  font-family: 'Playfair Display', serif;
  font-size: 2.5rem;
  color: #111;
  margin-bottom: 1rem;
}

.hero-subtext {
  font-size: 1.2rem;
  color: #333;
  margin-bottom: 2rem;
  line-height: 1.6;
  text-align: center;
}

.hero-cta-button {
  background-color: #005fa3;
  color: white;
  padding: 0.9rem 2rem;
  border-radius: 6px;
  font-size: 1.1rem;
  font-weight: 600;
  text-decoration: none;
  transition: background-color 0.3s ease, box-shadow 0.3s ease;
  box-shadow: 0 4px 10px rgba(0, 95, 163, 0.3);
  display: inline-block;
}

.hero-cta-button:hover {
  background-color: #00457c;
  box-shadow: 0 6px 14px rgba(0, 69, 124, 0.4);
}

/* Main Content */
.main-content {
  padding: 2rem 1rem 4rem;
  max-width: 1000px;
  margin: 0 auto;
  box-sizing: border-box;
}

/* Image Grid - Desktop: horizontal, Mobile: vertical */
.image-grid {
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 10px;
  margin-top: 2rem;
}

.image-grid img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 4px;
  box-shadow: 0 2px 5px rgba(0, 0, 0, 0.05);
  transition: transform 0.3s ease;
  cursor: pointer;
}

.image-grid img:hover {
  transform: scale(1.03);
  box-shadow: 0 4px 10px rgba(0, 0, 0, 0.1);
}

/* Property Tags - Desktop: original blue/white styling, Mobile: stack properly */
.property-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  list-style: none;
  padding: 0;
  margin: 1rem 0;
  max-width: 100%;
  justify-content: center;
  overflow-wrap: break-word;
  box-sizing: border-box;
}

.property-tags li {
  background: #005fa3;
  border-radius: 4px;
  padding: 0.4rem 0.75rem;
  font-size: 0.95rem;
  color: #fff;
  font-weight: 500;
  white-space: nowrap;
  box-sizing: border-box;
}

/* Subtitle */
.subtitle {
  font-style: italic;
  color: #666;
  margin-bottom: 1rem;
  font-size: 1.1rem;
  text-align: center;
}

/* Description */
.description {
  margin-top: 2rem;
  font-family: 'Playfair Display', serif;
  font-size: 1.05rem;
  color: #333;
}

.description p {
  margin-bottom: 1.5rem;
}

/* CTA Footer */
.cta {
  background: #fafafa;
  padding: 2.5rem 1rem;
  border-top: 1px solid #eee;
  text-align: center;
  margin-top: 4rem;
}

.cta p {
  font-size: 1.1rem;
  margin-bottom: 1.5rem;
  color: #333;
  font-weight: 500;
}

.cta-button {
  background-color: #0077cc;
  color: white;
  font-weight: 600;
  font-size: 1.15rem;
  padding: 0.9rem 2.5rem;
  border: none;
  border-radius: 5px;
  cursor: pointer;
  transition: background-color 0.25s ease, box-shadow 0.25s ease;
  box-shadow: 0 4px 8px rgba(0, 119, 204, 0.3);
}

.cta-button:hover {
  background-color: #005fa3;
  box-shadow: 0 6px 12px rgba(0, 95, 163, 0.5);
}

/* Comparison Section */
.comparison-section {
  margin-top: 3rem;
  padding: 0 1rem;
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
}

.comparison-section h2 {
  text-align: center;
  font-size: 2rem;
  margin-bottom: 2rem;
  color: #111;
}

/* Listing Blocks */
.listing {
  background-color: #fdfdfd;
  border: 1px solid #ddd;
  border-radius: 6px;
  padding: 1.5rem;
  margin-bottom: 3rem;
  box-shadow: 0 2px 8px rgba(0,0,0,0.05);
  max-width: 1000px;
  margin-left: auto;
  margin-right: auto;
  box-sizing: border-box;
}

.listing h3 {
  font-size: 1.4rem;
  color: #005fa3;
  margin-bottom: 1rem;
}

.listing h2 {
  font-size: 1.6rem;
  color: #111;
  margin-bottom: 0.5rem;
}

/* Benefits Section */
.benefits-section {
  margin-top: 4rem;
  padding: 3rem 1rem;
  max-width: 1200px;
  margin-left: auto;
  margin-right: auto;
  background: #f8fafb;
  border-radius: 12px;
}

.benefits-section h2 {
  text-align: center;
  font-size: 2.2rem;
  margin-bottom: 3rem;
  color: #111;
  font-family: 'Playfair Display', serif;
}

  .benefits-grid {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
    gap: 2rem;
    margin-top: 2rem;
    list-style: none;
    padding: 0;
  }

.benefit-card {
  background: white;
  padding: 2rem;
  border-radius: 8px;
  box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
  text-align: center;
  transition: transform 0.3s ease, box-shadow 0.3s ease;
  border: 1px solid #e8eef4;
}

.benefit-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 8px 24px rgba(0, 0, 0, 0.12);
}

.benefit-icon {
  font-size: 2.5rem;
  margin-bottom: 1rem;
  display: block;
}

.benefit-card h3 {
  font-size: 1.3rem;
  color: #005fa3;
  margin-bottom: 1rem;
  font-weight: 600;
}

.benefit-card p {
  color: #555;
  line-height: 1.6;
  margin-bottom: 1.5rem;
}

.benefit-stat {
  background: #e8f4f8;
  color: #005fa3;
  padding: 0.5rem 1rem;
  border-radius: 20px;
  font-size: 0.9rem;
  font-weight: 600;
  display: inline-block;
}

.testimonials-section {
  margin-top: 3rem;
  padding: 2rem 0;
}

.testimonials-section h3 {
  text-align: center;
  font-size: 1.8rem;
  margin-bottom: 2rem;
  color: #111;
  font-family: 'Playfair Display', serif;
}

.testimonials-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  gap: 2rem;
}

.testimonial {
  background: white;
  padding: 1.8rem;
  border-radius: 8px;
  box-shadow: 0 2px 8px rgba(0, 0, 0, 0.06);
  border-left: 4px solid #005fa3;
}

.testimonial p {
  font-style: italic;
  color: #333;
  margin-bottom: 1rem;
  font-size: 1.05rem;
  line-height: 1.6;
}

.testimonial-author {
  color: #666;
  font-size: 0.9rem;
  font-weight: 500;
}

.submission-form-section {
    margin-top: 4rem;
    padding: 3rem 1rem;
    max-width: 700px;
    margin-left: auto;
    margin-right: auto;
    text-align: center;
    background: #f8fafb;
    border-radius: 12px;
}

.submission-form-section h2 {
    font-size: 2rem;
    margin-bottom: 1rem;
    color: #111;
    font-family: 'Playfair Display', serif;
}

.submission-form-section p {
    font-size: 1.1rem;
    color: #666;
    margin-bottom: 2rem;
}

#property-form {
    display: flex;
    flex-direction: column;
    gap: 1.5rem;
    margin-top: 2rem;
    text-align: left;
}

.form-row {
    display: grid;
    grid-template-columns: 1fr 1fr 1fr;
    gap: 1rem;
}

.form-group {
    display: flex;
    flex-direction: column;
}

.form-group.full-width {
    grid-column: 1 / -1;
}

.form-group.half-width {
    grid-column: span 2;
}

label {
    font-weight: 600;
    margin-bottom: 0.5rem;
    color: #333;
    font-size: 0.95rem;
}

input, select, textarea {
    padding: 0.75rem;
    border: 2px solid #ddd;
    border-radius: 8px;
    font-size: 1rem;
    font-family: inherit;
    box-shadow: 0 2px 8px rgba(0,0,0,0.05);
    transition: border-color 0.3s ease;
}

input:focus, select:focus, textarea:focus {
    outline: none;
    border-color: #005fa3;
    box-shadow: 0 2px 8px rgba(0, 95, 163, 0.2);
}

/* Desktop checkbox styling - accessible size */
.checkbox-group {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    gap: 0.8rem;
    margin-top: 0.5rem;
}

.checkbox-item {
    display: flex;
    align-items: center;
    gap: 0.8rem;
    padding: 0.5rem;
    border-radius: 6px;
    transition: background-color 0.2s ease;
    cursor: pointer;
}

.checkbox-item:hover {
    background-color: #f5f5f5;
}

.checkbox-item input[type="checkbox"] {
    width: 18px;
    height: 18px;
    margin: 0;
    cursor: pointer;
    accent-color: #005fa3;
    min-width: 18px;
    flex-shrink: 0;
}

.checkbox-item label {
    font-weight: 400;
    margin: 0;
    font-size: 0.95rem;
    cursor: pointer;
    user-select: none;
    flex: 1;
}

.submit-button {
    background-color: #0077cc;
    color: white;
    font-weight: 600;
    font-size: 1.1rem;
    padding: 1rem 2rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 4px 12px rgba(0, 119, 204, 0.3);
    position: relative;
    overflow: hidden;
    margin-top: 1rem;
}

.submit-button:hover {
    background-color: #005fa3;
    box-shadow: 0 6px 16px rgba(0, 95, 163, 0.4);
    transform: translateY(-2px);
}

.submit-button:disabled {
    background-color: #ccc;
    cursor: not-allowed;
    transform: none;
}

.loading-spinner {
    display: none;
    width: 20px;
    height: 20px;
    border: 2px solid #ffffff;
    border-top: 2px solid transparent;
    border-radius: 50%;
    animation: spin 1s linear infinite;
    margin-right: 8px;
}

@keyframes spin {
    0% { transform: rotate(0deg); }
    100% { transform: rotate(360deg); }
}

.button-content {
    display: flex;
    align-items: center;
    justify-content: center;
}

.preview-section {
    margin-top: 3rem;
    padding: 0;
    opacity: 0;
    transform: translateY(20px);
    transition: all 0.6s ease;
    display: none;
}

.preview-section.show {
    opacity: 1;
    transform: translateY(0);
}

.preview-card {
    background: white;
    border-radius: 12px;
    box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    padding: 2rem;
    margin-bottom: 2rem;
    border: 1px solid #e8eef4;
}

.preview-header {
    text-align: center;
    margin-bottom: 2rem;
}

.preview-header h3 {
    font-family: 'Playfair Display', serif;
    font-size: 1.8rem;
    color: #005fa3;
    margin-bottom: 0.5rem;
}

.preview-subtitle {
    color: #666;
    font-style: italic;
    font-size: 1.1rem;
}

.preview-description {
    font-size: 1.05rem;
    line-height: 1.7;
    color: #333;
    margin: 1.5rem 0;
    text-align: left;
}

.preview-description p {
    margin-bottom: 1rem;
}

.upgrade-notice {
    background: linear-gradient(135deg, #f8fafb 0%, #e8f4f8 100%);
    border: 2px solid #005fa3;
    border-radius: 12px;
    padding: 1.5rem;
    margin-top: 2rem;
    text-align: center;
}

.upgrade-notice p {
    color: #005fa3;
    font-weight: 600;
    margin-bottom: 1rem;
    font-size: 1.1rem;
}

.full-listing-button {
    background: linear-gradient(135deg, #0077cc 0%, #005fa3 100%);
    color: white;
    font-weight: 600;
    font-size: 1.2rem;
    padding: 1rem 2.5rem;
    border: none;
    border-radius: 8px;
    cursor: pointer;
    transition: all 0.3s ease;
    box-shadow: 0 6px 20px rgba(0, 119, 204, 0.4);
    text-decoration: none;
    display: inline-block;
    position: relative;
    overflow: hidden;
}

.full-listing-button:hover {
    transform: translateY(-3px);
    box-shadow: 0 8px 25px rgba(0, 95, 163, 0.5);
}

.success-animation {
    animation: successPulse 0.6s ease-out;
}

@keyframes successPulse {
    0% {
        transform: scale(1);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    }
    50% {
        transform: scale(1.02);
        box-shadow: 0 12px 40px rgba(0, 119, 204, 0.2);
    }
    100% {
        transform: scale(1);
        box-shadow: 0 8px 32px rgba(0, 0, 0, 0.1);
    }
}

/* Accessibility improvements */
.checkbox-item:focus-within {
    outline: 2px solid #005fa3;
    outline-offset: 2px;
}

input:focus, select:focus, textarea:focus, button:focus {
    outline: 2px solid #005fa3;
    outline-offset: 2px;
}

/* Mobile responsive improvements */
@media (max-width: 768px) {
    /* Mobile: Change image grid to vertical stacking */
    .image-grid {
        display: flex;
        flex-direction: column;
        gap: 15px;
        max-width: 600px;
        margin-left: auto;
        margin-right: auto;
    }

    .image-grid img {
        height: 200px;
        border-radius: 8px;
        box-shadow: 0 4px 12px rgba(0, 0, 0, 0.1);
    }

    .image-grid img:hover {
        transform: scale(1.02);
        box-shadow: 0 8px 24px rgba(0, 0, 0, 0.15);
    }

    /* Mobile: Property tags stack properly with overflow fixes */
    .property-tags {
        flex-direction: column;
        align-items: center;
    }

    .property-tags li {
        width: 100%;
        max-width: 300px;
        text-align: center;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        white-space: normal;
    }

    /* Mobile: Subtitle overflow fixes */
    .subtitle {
        font-size: 1rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        line-height: 1.4;
    }

    /* Mobile: Listing title overflow fixes */
    .listing h2 {
        font-size: 1.4rem;
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        line-height: 1.3;
    }

    /* Mobile: Form improvements */
    .form-row {
        grid-template-columns: 1fr;
    }
    
    .form-group.half-width {
        grid-column: 1;
    }
    
    .checkbox-group {
        grid-template-columns: 1fr;
    }
    
    .checkbox-item {
        justify-content: flex-start;
    }
    
    .submission-form-section {
        margin-top: 2rem;
        padding: 2rem 1rem;
    }
    
    .preview-card {
        padding: 1.5rem;
    }

    .preview-subtitle {
        word-wrap: break-word;
        overflow-wrap: break-word;
        hyphens: auto;
        line-height: 1.4;
    }
}

@media (max-width: 480px) {
    .checkbox-item input[type="checkbox"] {
        width: 20px;
        height: 20px;
        min-width: 20px;
    }
    
    .checkbox-item label {
        font-size: 0.9rem;
    }
    
    .property-tags li {
        font-size: 0.9rem;
        padding: 0.5rem 0.8rem;
    }
}