/* =========================================
   GET HOSTEL
   STYLE.CSS
========================================= */

*{
    margin:0;
    padding:0;
    box-sizing:border-box;
    font-family:Arial, Helvetica, sans-serif;
}

body{
    background:#f5f7fb;
    color:#222;
}

/* =========================================
   HEADER
========================================= */

header{
    display:flex;
    justify-content:space-between;
    align-items:center;
    padding:18px 60px;
    background:#fff;
    box-shadow:0 3px 10px rgba(0,0,0,.08);
    position:sticky;
    top:0;
    z-index:1000;
}

.logo{
    display:flex;
    align-items:center;
    gap:15px;
}

.logo img{
    width:60px;
    height:60px;
}

.logo h1{
    font-size:52px;
    color:#2340f0;
}

nav{
    display:flex;
    align-items:center;
}

nav a{
    text-decoration:none;
    margin-left:35px;
    font-size:19px;
    font-weight:bold;
    color:#2340f0;
    transition:.3s;
}

nav a:hover{
    color:#ff6b00;
}

/* =========================================
   POPULAR CITIES
========================================= */

.cities{

    width:96%;

    margin:15px auto;

    background:white;

    border-top:4px solid #2340f0;

    border-radius:15px;

    padding:18px;

    box-shadow:0 3px 12px rgba(0,0,0,.08);

}

.cities h2{

    font-size:34px;

    margin-bottom:18px;

    text-align:center;

}
.city-container{
    display:flex;
    justify-content:center;
    align-items:center;
    flex-wrap:wrap;
    gap:12px;

    padding:10px 5px;
}
.city-container::-webkit-scrollbar{
    height:6px;
}

.city-container::-webkit-scrollbar-thumb{
    background:#bfc8ff;
    border-radius:20px;
}

/* City */

.city{
    position:relative;
    flex:0 0 auto;
    overflow:visible;
}

/* Button */

.city-btn{

    min-width:135px;
    height:42px;

    padding:0 15px;

    border:none;

    border-radius:8px;

    background:#dfe5ff;

    font-size:18px;

    font-weight:600;

    cursor:pointer;

    transition:.3s;

}


.city-btn:hover{

    background:#2340f0;

    color:white;

}

/* Dropdown */

.dropdown{

    display:none;

    position:absolute;

      top:100%;
    margin-top:0;         /* below button */

    left:0;

    width:240px;

    background:#fff;

    border-radius:12px;

    box-shadow:0 10px 25px rgba(0,0,0,.20);

    overflow:hidden;

    z-index:99999;
}
.dropdown a{
    display:block;
    padding:14px 18px;
    text-decoration:none;
    color:#333;
    font-size:17px;
    transition:.3s;
}

.dropdown a:hover{
    background:#2340f0;
    color:#fff;
}

.city:hover .dropdown{
    display:block;
}

/* =========================================
   HERO
========================================= */

.hero-section{
    background:linear-gradient(90deg,#1b2b55,#3559e8);
    color:#fff;
    text-align:center;
    padding:45px 20px;
}

.hero-section h2{
    font-size:42px;
    margin-bottom:15px;
}

.hero-section p{
    font-size:20px;
    margin-bottom:25px;
}

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

.search-box input{
    width:360px;
    padding:14px;
    border:none;
    outline:none;
    font-size:18px;
}

.search-box button{
    padding:14px 28px;
    border:none;
    background:#ff7900;
    color:#fff;
    font-size:18px;
    cursor:pointer;
}

.search-box button:hover{
    background:#e65f00;
}

.hero-points{
    margin-top:18px;
    font-size:16px;
}

/* =========================================
   CONTACT
========================================= */

.contact{
    background:#1d39ff;
    color:#fff;
    text-align:center;
    padding:14px;
    font-size:18px;
    position:relative;
    z-index:1;
    height: 40px
}

/* =========================================
   ABOUT
========================================= */

.about{
    width:92%;
    margin:40px auto;
    background:#fff;
    padding:45px;
    border-radius:20px;
    line-height:35px;
}

.about h2{
    font-size:42px;
    margin-bottom:20px;
}

.about p{
    font-size:21px;
}

/* =========================================
   FOOTER
========================================= */

footer{
    margin-top:50px;
    background:#2340f0;
    color:#fff;
    text-align:center;
    padding:28px;
    font-size:20px;
}

/* =========================================
   MOBILE
========================================= */

@media(max-width:1000px){

header{
    flex-direction:column;
    padding:20px;
}

nav{
    flex-wrap:wrap;
    justify-content:center;
    margin-top:15px;
}

nav a{
    margin:10px;
}

.logo h1{
    font-size:40px;
}

.hero-section h2{
    font-size:34px;
}

.hero-section p{
    font-size:18px;
}

.search-box{
    flex-direction:column;
}

.search-box input,
.search-box button{
    width:90%;
    margin-top:10px;
}

.contact{
    font-size:20px;
}

.city-btn{
    min-width:145px;
    font-size:18px;
}

}
/* =========================
   HOSTEL SECTION
========================= */

.hostel-section {
    padding: 30px 5%;
    background: #f4f6fb;
}

.hostel-section-title {
    text-align: center;
    margin-bottom: 22px;
}

.hostel-section-title h2 {
    font-size: 26px;
    color: #222;
}

.hostel-section-title p {
    color: #777;
}


/* =========================
   HOSTEL LIST
========================= */

.hostel-list {
    display: flex;
    flex-direction: column;
    gap: 18px;
}


/* =========================
   COMPACT HOSTEL CARD
========================= */

.user-hostel-card {

    display: flex;

    width: 100%;

    max-width: 950px;

    margin: auto;

    background: #ffffff;

    border-radius: 12px;

    overflow: hidden;

    border: 1px solid #e4e7ec;

    box-shadow: 0 3px 12px rgba(0, 0, 0, 0.08);

    transition: 0.25s ease;
}

.user-hostel-card:hover {

    transform: translateY(-3px);

    box-shadow: 0 8px 20px rgba(0, 0, 0, 0.14);
}


/* =========================
   IMAGE
========================= */

.user-hostel-image {

    width: 235px;

    min-width: 235px;

    height: 300px;

    background: #e9edf3;
}

.user-hostel-image img {

    width: 100%;

    height: 100%;

    object-fit: cover;
}


/* =========================
   DETAILS
========================= */

.user-hostel-details {

    flex: 1;

    padding: 16px 20px;
}


/* =========================
   HEADER
========================= */

.user-hostel-header {

    display: flex;

    justify-content: space-between;

    align-items: center;
}

.user-hostel-header h2 {

    margin: 0;

    font-size: 21px;

    color: #1e293b;
}

.active-badge {

    background: #dcfce7;

    color: #15803d;

    padding: 4px 10px;

    border-radius: 15px;

    font-size: 11px;

    font-weight: bold;
}


/* =========================
   LOCATION + PHONE
========================= */

.user-location {

    margin-top: 7px;

    color: #2563eb;

    font-size: 13px;

    font-weight: 500;
}

.user-phone {

    margin-top: 6px;

    color: #555;

    font-size: 13px;
}


/* =========================
   DIVIDER
========================= */

.card-divider {

    height: 1px;

    background: #e5e7eb;

    margin: 11px 0;
}


/* =========================
   BED DETAILS
========================= */

.bed-details {

    display: flex;

    gap: 25px;

    font-size: 13px;
}

.bed-details span {

    color: #475569;

    background: #f1f5f9;

    padding: 6px 10px;

    border-radius: 6px;
}

.bed-details b {

    color: #111827;
}


/* =========================
   AMOUNTS
========================= */

.amount-details {

    display: flex;

    gap: 12px;

    margin-top: 10px;

    flex-wrap: wrap;
}

.amount-details span {

    color: #475569;

    background: #fff7ed;

    border: 1px solid #fed7aa;

    padding: 6px 9px;

    border-radius: 6px;

    font-size: 12px;
}

.amount-details b {

    color: #c2410c;

    margin-left: 3px;
}


/* =========================
   SHARING PRICES
========================= */

.sharing-prices {

    display: grid;

    grid-template-columns: repeat(6, 1fr);

    gap: 7px;
}

.sharing-prices div {

    text-align: center;

    background: #eff6ff;

    border: 1px solid #bfdbfe;

    padding: 7px 3px;

    border-radius: 6px;

    font-size: 13px;

    font-weight: bold;

    color: #1d4ed8;
}

.sharing-prices span {

    display: block;

    color: #64748b;

    font-size: 10px;

    margin-bottom: 2px;
}


/* =========================
   FACILITIES
========================= */

.facilities {

    display: flex;

    flex-wrap: wrap;

    gap: 6px;
}

.facilities span {

    background: #f0fdf4;

    border: 1px solid #bbf7d0;

    color: #166534;

    padding: 5px 8px;

    border-radius: 14px;

    font-size: 11px;
}


/* =========================
   BUTTONS
========================= */

.user-card-buttons {

    display: flex;

    justify-content: flex-end;

    gap: 10px;
}

.user-card-buttons a {

    text-decoration: none;

    padding: 8px 16px;

    border-radius: 6px;

    font-size: 12px;

    font-weight: bold;
}

.view-beds-btn {

    background: #e53935;

    color: white;
}

.map-btn {

    background: #2563eb;

    color: white;
}

.user-card-buttons a:hover {

    opacity: 0.85;
}
.hostel-distance {
    margin-top: 6px;
    color: #16a34a;
    font-size: 13px;
    font-weight: bold;
}
/* =========================================
   ABOUT PAGE
========================================= */

.about-features {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;

    margin-top: 25px;
}


.about-feature-card {

    background: #f8f9ff;

    border: 1px solid #e1e5f5;

    border-radius: 14px;

    padding: 25px;

    transition: 0.3s ease;
}


.about-feature-card:hover {

    transform: translateY(-5px);

    box-shadow:
        0 8px 20px rgba(0,0,0,.10);
}


.about-feature-card h3 {

    color: #2340f0;

    font-size: 21px;

    margin-bottom: 12px;
}


.about-feature-card p {

    color: #555;

    font-size: 16px;

    line-height: 26px;
}


.about-contact {

    text-align: center;
}


.about-contact-button {

    display: inline-block;

    margin-top: 20px;

    padding: 12px 25px;

    background: #2340f0;

    color: white;

    text-decoration: none;

    border-radius: 8px;

    font-size: 17px;

    font-weight: bold;

    transition: .3s;
}


.about-contact-button:hover {

    background: #ff6b00;
}


/* =========================================
   ABOUT MOBILE
========================================= */

@media(max-width:1000px) {

    .about-features {

        grid-template-columns: 1fr;

    }

}

/* =========================================
   CONTACT PAGE
========================================= */

.contact-info-container {

    display: grid;

    grid-template-columns:
        repeat(3, 1fr);

    gap: 20px;

    margin-top: 30px;
}


.contact-info-card {

    background: #f8f9ff;

    border: 1px solid #e1e5f5;

    border-radius: 14px;

    padding: 28px;

    text-align: center;

    transition: .3s ease;
}


.contact-info-card:hover {

    transform: translateY(-5px);

    box-shadow:
        0 8px 20px rgba(0,0,0,.10);
}


.contact-icon {

    font-size: 38px;

    margin-bottom: 12px;
}


.contact-info-card h3 {

    font-size: 22px;

    color: #2340f0;

    margin-bottom: 12px;
}


.contact-info-card p {

    color: #555;

    font-size: 16px;

    line-height: 25px;

    margin-bottom: 12px;
}


.contact-info-card a {

    color: #2340f0;

    text-decoration: none;

    font-weight: bold;

    font-size: 16px;
}


.contact-info-card a:hover {

    color: #ff6b00;

}


/* =========================================
   CONTACT MOBILE
========================================= */

@media(max-width:1000px) {

    .contact-info-container {

        grid-template-columns: 1fr;

    }

}