body {
    font-family: Arial, sans-serif;
    margin: 0;
    padding: 0;
    background-color: #f8f8f8;
}

* {
    box-sizing: border-box;
}

.container {
    width: 90%;
    margin: 20px auto;
    max-width: 1200px;
}


.price-section {
    position: absolute;
    bottom: 15px;
    right: 10px;
    text-align: right;
}

.price {
    font-size: 18px;
    font-weight: bold;
    color: black;
}

.price-curr {
    color: lightgrey;
}

.price-dur {
    color: grey;
    font-weight: bold;
}

.price-amm {
    font-weight: bold;
    font-size: 1.3rem;
}

.negotiable {
    font-size: 12px;
    color: green;
    font-weight: bold;
}

.security-deposit {
    font-size: 14px;
    color: #888;
    opacity: 0.7;
    margin-top: 5px;
}

.view-details {
    display: inline-block;
    margin-top: 10px;
    padding: 10px 15px;
    background: rgba(140, 82, 255, 1);
    color: white;
    text-decoration: none;
    border-radius: 5px;
    text-align: center;
    border: 1px solid rgba(140, 82, 255, 1);
    font-size: 14px;
    border-radius: 10px;
    box-shadow: rgba(140, 82, 255, 0.3) 0px 7px 29px 0px;
    transition: background 0.3s;
}

.view-details:hover {
    box-shadow: rgba(140, 82, 255, 0.5) 0px 7px 29px 0px;
}

.hostel-card img.lazy.loaded {
    opacity: 1;
}

.flex-container {
    display: flex;
    flex-wrap: wrap;
    gap: 20px;
}

.filter-sidebar {
    flex: 1;
    max-width: 320px;
    background: #fff;
    padding: 20px;
    border-radius: 8px;
    box-shadow: 0 2px 16px rgba(0, 0, 0, 0.12);
    font-family: 'BlinkMacSystemFont', -apple-system, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif;
    font-size: 14px;
    color: #333;
    top: 20px;
    align-self: flex-start;
}

@media (max-width: 767px) {
    .filter-sidebar {
        position: static;
        top: auto;
        align-self: auto;
    }
}

.ad-wrapper {
    display: flex;
    justify-content: center;
    align-items: flex-start;
    flex-wrap: wrap;
    gap: 20px;
    padding: 20px;
}

.vertical-ad {
    border: 2px dashed #ccc;
    background-color: #f9f9f9;
    padding: 5px;
    text-align: center;
    font-family: sans-serif;
    max-width: 100%;
    box-sizing: border-box;
}

.ad-label {
    font-size: 14px;
    color: #555;
    margin-bottom: 5px;
}

.vertical-ad img {
    max-width: 100%;
    height: auto;
    display: block;
}

@media (max-width: 600px) {
    .vertical-ad {
        width: 100%;
        display: none;
    }
}

.filter-header {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ebebeb;
}

.filter-header h3 {
    margin: 0;
    font-size: 18px;
    font-weight: 700;
    color: #262626;
}

.filter-header h3 i {
    margin-right: 8px;
    color: #0071c2;
}

.clear-filters {
    background: none;
    border: none;
    color: #0071c2;
    font-size: 13px;
    cursor: pointer;
    padding: 5px;
    display: flex;
    align-items: center;
}

.clear-filters:hover {
    text-decoration: underline;
}

.clear-filters i {
    margin-right: 5px;
    font-size: 12px;
}

.filter-section {
    margin-bottom: 20px;
    padding-bottom: 15px;
    border-bottom: 1px solid #ebebeb;
}

.filter-section:last-child {
    border-bottom: none;
    margin-bottom: 15px;
    padding-bottom: 0;
}

.filter-section-header {
    display: flex;
    align-items: center;
    margin-bottom: 15px;
}

.filter-section-header h4 {
    margin: 0;
    font-size: 16px;
    font-weight: 600;
}

.filter-section-header i {
    margin-right: 10px;
    color: #0071c2;
    font-size: 14px;
}

.price-range-inputs {
    display: flex;
    gap: 10px;
    margin-bottom: 15px;
}

.price-input {
    flex: 1;
}

.price-input label {
    display: block;
    margin-bottom: 5px;
    font-size: 13px;
    color: #666;
}

.price-input-field {
    width: 100%;
    padding: 8px 10px;
    border: 1px solid #ddd;
    border-radius: 4px;
    font-size: 14px;
}

.price-input-field:focus {
    border-color: #0071c2;
    outline: none;
}

.price-slider-container {
    padding: 0 5px;
    margin-bottom: 5px;
}

.price-slider {
    height: 4px;
    background: #ddd;
    border-radius: 2px;
    position: relative;
}

.ui-slider-handle {
    width: 16px;
    height: 16px;
    background: #0071c2;
    border-radius: 50%;
    border: none;
    cursor: pointer;
    top: -6px;
    outline: none;
}

.ui-slider-range {
    background: #0071c2;
    height: 4px;
}

.rating-options {
    display: flex;
    flex-direction: column;
    gap: 10px;
}

.rating-option {
    display: flex;
    align-items: center;
}

.rating-option input {
    margin-right: 10px;
}

.rating-option label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
}

.stars {
    color: #feba02;
    margin-right: 5px;
    display: inline-flex;
    gap: 2px;
}

.amenity-options {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.amenity-option {
    display: flex;
    align-items: center;
}

.amenity-option input {
    margin-right: 10px;
}

.amenity-option label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
}

.amenity-option label i {
    margin-right: 8px;
    width: 18px;
    text-align: center;
    color: #0071c2;
}

.filter-option {
    display: flex;
    align-items: center;
}

.filter-option input {
    margin-right: 10px;
}

.filter-option label {
    display: flex;
    align-items: center;
    cursor: pointer;
    font-size: 14px;
}

.filter-option label i {
    margin-right: 8px;
    color: #0071c2;
}

.filter-btn {
    width: 100%;
    padding: 12px;
    background: #0071c2;
    color: white;
    border: none;
    border-radius: 4px;
    font-size: 15px;
    font-weight: 600;
    cursor: pointer;
    display: flex;
    align-items: center;
    justify-content: center;
    transition: background 0.2s;
}

.filter-btn:hover {
    background: #00487a;
}

.filter-btn i {
    margin-right: 8px;
}

@media (max-width: 768px) {
    .filter-sidebar {
        max-width: 100%;
        margin-bottom: 20px;
    }
}

.hostel-cards-container {
    flex: 1;
}



.rating-container {
    display: flex;
    align-items: center;
    gap: 16px;
    color: #ffb400;
    background-color: #ffb30021;
    max-width: 80px;
    padding: 5px 10px;
    border-radius: 10px;
    border: 0.5px solid #ffb400;
}

.rating-stars {
    font-size: 14px;
    display: flex;
    align-items: center;
    position: relative;
}

.rating-stars i {
    transition: color 0.3s ease;
    cursor: default;
}

.rating-stars i.fa-star {
    color: #ffc107;
}

.rating-stars i.fa-star-half-alt {
    color: #ffc107;
    position: relative;
}

.rating-stars i.fa-star-o {
    color: #ddd;
}

.rating-value {
    margin-left: 8px;
    font-weight: 600;
    color: #333;
    font-size: 14px;
}

.rating-views {
    font-size: 14px;
    color: #666;
    display: flex;
    align-items: center;
    gap: 6px;
    user-select: none;
}

.rating-views i.fa-eye {
    color: #888;
}

.hostel-card {
    display: flex;
    flex-direction: row;
    background: #fff;
    border-radius: 12px;
    overflow: hidden;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
    max-width: 900px;
    width: 100%;
    transition: box-shadow 0.3s ease;
    margin-top: 5PX;
  }

  .hostel-card:hover {
    box-shadow: 0 6px 25px rgba(0,0,0,0.15);
  }

  .image-container {
    position: relative;
    flex-shrink: 0;
    width: 280px;
    background: #eee;
  }

  .hostel-image {
    width: 100%;
    height: 230px;
    object-fit: contain;
    display: block;
  }

  /* Offer tag top-left */
  .tag.offer {
    position: absolute;
    top: 12px;
    left: 12px;
    background-color: #007bff;
    padding: 6px 16px;
    border-radius: 20px;
    font-weight: 700;
    font-size: 0.75rem;
    color: white;
    text-transform: uppercase;
    user-select: none;
    z-index: 10;
  }

  .image-info {
    display: flex;
    flex-wrap: wrap;
    justify-content: space-between;
    padding: 0.5rem 1rem;
    gap: 10px;
    background: #fafafa;
    border-top: 1px solid #ddd;
    font-size: 0.9rem;
    color: #666;
    font-weight: 600;
  }

  .stars {
    color: #f4b400; /* gold */
    letter-spacing: 0.05em;
  }

  .hostel-content {
    padding: 1.5rem 2rem;
    display: flex;
    flex-direction: column;
    flex: 1;
    position: relative;
  }

  .hostel-header {
    display: flex;
    justify-content: space-between;
    align-items: flex-start;
  }

  .hostel-name-container {
    flex: 1;
  }

  .hostel-name {
    font-size: 1rem;
    font-weight: 700;
    color: #222;
    word-break: break-word;
    margin: 0;
  }

  .post-title {
    font-size: 1.1rem;
    font-weight: 500;
    margin: 0.6rem 0 1rem;
    color: #555;
    word-break: break-word;
  }

  .amenities {
    display: flex;
    flex-wrap: wrap;
    gap: 14px;
    margin-bottom: 1rem;
  }

  .amenity-item {
    display: flex;
    align-items: center;
    gap: 8px;
    color: #444;
    font-weight: 500;
    font-size: 0.95rem;
    white-space: nowrap;
  }

  .amenity-item svg {
    width: 20px;
    height: 20px;
    fill: #007bff;
    flex-shrink: 0;
  }

  .info-grid {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 1rem 2rem;
    font-size: 0.95rem;
    color: #555;
    margin-bottom: 1rem;
	width:100%;
  }

  .price-range {
    font-weight: 700;
    color: #28a745;
    box-shadow: rgba(100, 100, 111, 0.2) 0px 7px 29px 0px;
padding:5px;
width:100%;
  }
  .price-negotiable {
    font-size: 0.85rem;
    color: #218838;
    font-weight: 600;
    font-style: italic;
    margin-left: 6px;
  }

  .discount-ribbon {
    position: absolute;
    bottom: -5px;
    left: 15px;
    width: 10px;
    height: 10px;
    background: #c0392b;
    transform: rotate(45deg);
    z-index: -1;
}

.original-price {
    text-decoration: line-through;
    color: #999;
    font-size: 0.85rem;
    margin-bottom: 3px;
}

.discounted-price {
    color: #28a745;
    font-size: 1.05rem;
    font-weight: bold;
}

.price-negotiable {
    font-size: 0.85rem;
    color: #218838;
    font-weight: 600;
    font-style: italic;
    margin-top: 5px;
}

.price-curr {
    font-size: 0.9em;
    margin-right: 2px;
}

.price-amm {
    font-size: 1.1em;
}

.price-dur {
    font-size: 0.85em;
    color: #666;
}

@media (max-width: 768px) {


    .discount-badge {
        right: 10px;
        font-size: 0.75rem;
    }
}

  .tags-top {
    display: flex;
    gap: 8px;
    margin-left: 12px;
  }
  .tag {
    /* Layout */
    display: inline-flex;
    align-items: center;
    justify-content: center;

    /* Sizing */
    padding: 6px 16px;
    border-radius: 100px; /* Slightly softer than perfect circle */

    /* Typography */
    font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
    font-size: 0.7rem;
    font-weight: 600;
    letter-spacing: 0.03em;
    line-height: 1;
    text-transform: uppercase;
    color: white;

    /* Effects */
    box-shadow: 0 1px 2px rgba(0,0,0,0.08);
    user-select: none;
    position: relative;
    overflow: hidden; /* For pseudo-element */
    border: none;
    cursor: default;

    /* Smooth transitions */
    transition: transform 0.15s ease, box-shadow 0.15s ease;
}

/* Subtle "ink" effect on click */
.tag:active {
    transform: scale(0.98);
}

/* Modern gradient backgrounds with fallback */
.tag.featured {
    background-color: #28a745; /* Fallback */
    background: linear-gradient(to bottom right, #28a745, #5cd85c);
}

.tag.verified {
    background-color: #17a2b8; /* Fallback */
    background: linear-gradient(to bottom right, #17a2b8, #5cd8de);
}

/* Optional: Add a subtle "gloss" effect */
.tag::after {
    content: '';
    position: absolute;
    top: 0;
    left: 0;
    right: 0;
    height: 30%;
    background: linear-gradient(to bottom, rgba(255,255,255,0.2), transparent);
    border-radius: 100px 100px 0 0;
    pointer-events: none;
}

/* For dark mode compatibility */
@media (prefers-color-scheme: dark) {
    .tag {
        box-shadow: 0 1px 3px rgba(0,0,0,0.3);
    }
    .tag.featured {
        background: linear-gradient(to bottom right, #1e7e34, #4cae4c);
    }
    .tag.verified {
        background: linear-gradient(to bottom right, #117a8b, #46b8da);
    }
}
/* Gender tag component */
.gender-tag {
    display: inline-flex;
    align-items: center;
    padding: 4px 10px;
    border-radius: 4px;
    font-size: 0.6875rem; /* 11px */
    font-weight: 700;
    text-transform: uppercase;
    letter-spacing: 0.05em;
    line-height: 1;
    color: white;
    user-select: none;
    box-shadow: 0 1px 2px rgba(0,0,0,0.05);
    transition: all 0.2s ease;
}

/* Boys variant */
.gender-boys {
    background-color: #3b82f6; /* Blue-500 */
    background-image: linear-gradient(to bottom right, #3b82f6, #60a5fa);
}

/* Girls variant */
.gender-girls {
    background-color: #ec4899; /* Pink-500 */
    background-image: linear-gradient(to bottom right, #ec4899, #f472b6);
}

/* Responsive adjustments */
@media (max-width: 768px) {


    .gender-tag {
        padding: 3px 8px;
        font-size: 0.625rem; /* 10px */
    }
}
  /* Responsive */
  @media (max-width: 720px) {

    .hostel-card {
      max-width: 100%;
      flex-direction: row;
      height: auto;
      border-radius: 10px;
    }
    .featured_post{
        height: auto;
    }
    .image-container {
      width: 140px;
      height: 140px;
    }
    .hostel-image {
      height: 100px;
      width: 100%;
    }
    .image-info {
      flex-direction: column;
      font-size: 0.8rem;
      padding: 0.3rem 0.6rem;
      gap: 4px;
      border-top: 1px solid #ddd;
    }
    .stars {
      font-size: 1rem;
    }
    .hostel-content {
      padding: 0.9rem 1rem;
      font-size: 0.9rem;
      gap: 6px;
      overflow: visible;
    }
    .hostel-name {
      font-size: 0.9rem;
      font-weight: 700;
      white-space: normal;
    }
    .post-title {
      font-size: 0.85rem;
      white-space: normal;
    }
    .amenities {
      gap: 10px;
      margin-bottom: 0.5rem;
    }
    .amenity-item {
      font-size: 0.75rem;
      gap: 6px;
      white-space: nowrap;
    }
    .info-grid {
   display: flex;
   flex-direction: column;
      font-size: 0.8rem;
    }
    .tag.offer {
      top: 8px;
      left: 8px;
      font-size: 0.6rem;
      padding: 3px 8px;
    }
    .tags-top {
      gap: 6px;
    }
    .tag {
      font-size: 0.6rem;
      padding: 3px 8px;
    }
  }
