@import url('https://fonts.googleapis.com/css2?family=Outfit:wght@300;400;500;600;700&display=swap');

:root {
    --primary: #FF2D55;
    --primary-hover: #E61E47;
    --secondary: #1C1C1E;
    --text-main: #3A3A3C;
    --text-muted: #8E8E93;
    --bg-light: #F2F2F7;
    --bg-white: #FFFFFF;
    --border: #E5E5EA;
    --shadow: 0 4px 12px rgba(0, 0, 0, 0.05);
    --shadow-hover: 0 8px 24px rgba(0, 0, 0, 0.1);
    --radius: 16px;
    --radius-sm: 8px;
    --transition: all 0.3s cubic-bezier(0.4, 0, 0.2, 1);
}

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

body {
    background-color: var(--bg-white);
    color: var(--text-main);
    line-height: 1.6;
    overflow-x: hidden;
}

a {
    text-decoration: none;
    color: inherit;
    transition: var(--transition);
}

ul {
    list-style: none;
}

img {
    max-width: 100%;
    display: block;
}

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

/* Header */

header {
    height: 80px;
    display: flex;
    align-items: center;
    border-bottom: 1px solid var(--border);
    position: sticky;
    top: 0;
    background: rgba(255,255,255,0.85);
    backdrop-filter: blur(10px);
    z-index: 1000;
}

header .container {
    display: flex;
    justify-content: space-between;
    align-items: center;
}

.brand {
    display: flex;
    align-items: center;
    gap: 10px;
}

.brand-logo {
    width: 34px;
    height: 34px;
    background: var(--primary);
    border-radius: 50% 50% 50% 0;
    transform: rotate(-45deg);
    display: flex;
    align-items: center;
    justify-content: center;
    color: white;
    font-size: 16px;
    position: relative;
    box-shadow: 0 4px 8px rgba(255,45,85,0.3);
}

.brand-logo::after {
    content: '';
    position: absolute;
    width: 12px;
    height: 12px;
    background: white;
    border-radius: 50%;
    transform: rotate(45deg);
}

.brand-name {
    font-size: 22px;
    font-weight: 700;
    color: var(--secondary);
    letter-spacing: -0.5px;
    margin-left: 8px;
}

.brand-name span {
    font-weight: 400;
}

.nav-links {
    display: flex;
    gap: 32px;
    align-items: center;
}

.dropdown {
    position: relative;
    padding: 10px 0;
}

.dropdown-trigger {
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 6px;
}

.dropdown-trigger small {
    font-size: 10px;
    transition: var(--transition);
}

.dropdown-menu {
    position: absolute;
    top: 100%;
    left: 0;
    min-width: 200px;
    background: white;
    border-radius: var(--radius-sm);
    box-shadow: var(--shadow-hover);
    border: 1px solid var(--border);
    padding: 12px 0;
    opacity: 0;
    visibility: hidden;
    transform: translateY(10px);
    transition: var(--transition);
}

.dropdown-menu a {
    display: block;
    padding: 10px 20px;
}

.dropdown-menu a:hover {
    background: var(--bg-light);
    color: var(--primary);
    padding-left: 24px;
}

.dropdown:hover .dropdown-menu {
    opacity: 1;
    visibility: visible;
    transform: translateY(0);
}

.dropdown:hover .dropdown-trigger {
    color: var(--primary);
}

.dropdown:hover .dropdown-trigger small {
    transform: rotate(180deg);
}

.btn-signin {
    padding: 10px 24px;
    border-radius: 40px;
    background: var(--bg-light);
    font-weight: 500;
    display: flex;
    align-items: center;
    gap: 8px;
}

.btn-signin:hover {
    background: var(--border);
}

/* Hero */

.hero {
    padding: 100px 0;
    text-align: center;
    background: url('https://images.unsplash.com/photo-1557683316-973673baf926?auto=format&fit=crop&w=1200&q=80') center/cover;
    position: relative;
}

.hero::before {
    content: '';
    position: absolute;
    inset: 0;
    background: rgba(255,255,255,0.95);
}

.hero .container {
    position: relative;
}

.hero h1 {
    font-size: 56px;
    font-weight: 800;
    margin-bottom: 24px;
    letter-spacing: -2px;
}

.hero p {
    font-size: 20px;
    color: var(--text-muted);
    max-width: 800px;
    margin: 0 auto 56px;
}

.search-bar {
    max-width: 800px;
    margin: 0 auto;
    background: white;
    padding: 8px 8px 8px 24px;
    border-radius: 50px;
    display: flex;
    align-items: center;
    box-shadow: var(--shadow);
    border: 1px solid var(--border);
}

.search-bar input {
    flex: 1;
    border: none;
    outline: none;
    font-size: 16px;
}

.btn-search {
    background: var(--primary);
    color: white;
    padding: 14px 48px;
    border-radius: 40px;
    font-weight: 600;
    border: none;
}

.btn-search:hover {
    background: var(--primary-hover);
}

/* Listings */

.listings-preview {
    padding: 60px 0;
}

.listing-grid {
    display: grid;
    grid-template-columns: repeat(4,1fr);
    gap: 20px;
    padding-bottom: 40px;
}

.listing-card-link {
    display: block;
}

.listing-card {
    background: white;
    border-radius: var(--radius);
    overflow: hidden;
    position: relative;
    cursor: pointer;
    box-shadow: var(--shadow);
    transition: var(--transition);
}

.listing-card:hover {
    transform: translateY(-8px);
    box-shadow: var(--shadow-hover);
}

.listing-card img {
    width: 100%;
    height: 380px;
    object-fit: cover;
    transition: transform .6s cubic-bezier(.4,0,.2,1);
}

.listing-card:hover img {
    transform: scale(1.1);
}

.overlay {
    position: absolute;
    bottom: 0;
    left: 0;
    right: 0;
    padding: 24px;
    background: linear-gradient(transparent, rgba(0,0,0,0.8));
    color: white;
    display: flex;
    justify-content: space-between;
    align-items: flex-end;
}

.listing-card h3 {
    font-size: 18px;
    font-weight: 600;
}

/* Categories */

.categories {
    padding: 80px 0;
}

.section-header {
    margin-bottom: 40px;
}

.section-header h2 {
    font-size: 32px;
    font-weight: 700;
}

.section-header .sub {
    color: var(--text-muted);
    font-size: 18px;
}

.cat-grid {
    display: grid;
    grid-template-columns: repeat(auto-fill,minmax(260px,1fr));
    gap: 24px;
}

.cat-item {
    background: white;
    padding: 24px;
    border-radius: var(--radius);
    border: 1px solid var(--border);
    transition: var(--transition);
}

.cat-item:hover {
    border-color: var(--primary);
    box-shadow: var(--shadow-hover);
    transform: translateY(-5px);
}

.cat-img {
    height: 180px;
    border-radius: var(--radius-sm);
    overflow: hidden;
    margin-top: 16px;
}

.cat-img img {
    width: 100%;
    height: 100%;
    object-fit: cover;
}

/* Footer */

footer {
    padding: 100px 0 40px;
    border-top: 1px solid var(--border);
}

.footer-grid {
    display: grid;
    grid-template-columns: 2fr 1fr 1fr 1fr;
    gap: 60px;
    margin-bottom: 80px;
}

.footer-info p {
    color: var(--text-muted);
    margin-top: 24px;
    max-width: 300px;
}

.footer-col h4 {
    font-size: 20px;
    margin-bottom: 24px;
}

.footer-col ul li {
    margin-bottom: 12px;
}

.footer-col ul li a {
    color: var(--text-muted);
}

.footer-col ul li a:hover {
    color: var(--primary);
}

/* Responsive */

@media (max-width:1100px){
.listing-grid{
grid-template-columns:repeat(3,1fr);
}
}

@media (max-width:900px){

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

.listing-grid{
grid-template-columns:repeat(2,1fr);
}

.listing-card img{
height:320px;
}

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

}

@media (max-width:600px){

.container{
padding:0 16px;
}

.nav-links{
display:none;
}

.hero{
padding:70px 0;
}

.hero h1{
font-size:32px;
}

.hero p{
font-size:16px;
}

.search-bar{
flex-direction:column;
border-radius:16px;
padding:16px;
gap:10px;
}

.btn-search{
width:100%;
padding:14px;
}

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

.listing-card img{
height:260px;
}

.overlay{
padding:16px;
}

.listing-card h3{
font-size:16px;
}

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

}