/*
Theme Name: ACMAA Property Premium
Theme URI: https://acmaaproperty.com/
Author: ACMAA Property
Description: Premium Tamil real-estate marketplace theme with customizable logo, navigation, hero image, property categories and ad widget areas. Designed to work alongside the ACMAA Property Marketplace plugin.
Version: 1.0.5
Requires at least: 6.0
Tested up to: 7.1
Requires PHP: 7.4
Text Domain: acmaa-property-premium
*/
:root{--acmaa-green:#06483d;--acmaa-green2:#08372f;--acmaa-gold:#e8b94e;--acmaa-ink:#102338;--acmaa-muted:#64748b;--acmaa-bg:#f4f7f6;--acmaa-border:#e1e8e5;--acmaa-radius:18px;--acmaa-shadow:0 12px 32px rgba(8,45,38,.10)}
*{box-sizing:border-box}html{scroll-behavior:smooth}body{margin:0;background:var(--acmaa-bg);color:var(--acmaa-ink);font-family:system-ui,-apple-system,"Noto Sans Tamil","Latha",sans-serif;font-size:16px;line-height:1.65}a{color:var(--acmaa-green);text-decoration:none}a:hover{color:#9b6b00}img{max-width:100%;height:auto}button,input,select,textarea{font:inherit}.acmaa-container{width:min(1320px,calc(100% - 40px));margin-inline:auto}.acmaa-topbar{background:var(--acmaa-green2);color:#e8f2ee;font-size:12px;padding:7px 0}.acmaa-topbar-inner{display:flex;justify-content:space-between;gap:15px;flex-wrap:wrap}.acmaa-header{background:#fff;position:relative;z-index:10;box-shadow:0 2px 14px rgba(0,0,0,.06)}.acmaa-header-inner{min-height:88px;display:flex;align-items:center;justify-content:space-between;gap:18px}.acmaa-brand{display:flex;align-items:center;min-width:180px;flex:0 0 auto;margin-left:-8px}.custom-logo{display:block;width:auto;max-height:78px;max-width:300px;object-fit:contain}.acmaa-brand-text{font-family:Georgia,serif;font-size:29px;font-weight:800;letter-spacing:1px;color:var(--acmaa-green);line-height:1}.acmaa-brand-text small{display:block;color:#b78320;font:700 12px/1.8 system-ui,sans-serif;letter-spacing:5px}.acmaa-menu{display:flex;align-items:center;gap:clamp(10px,1.45vw,22px);margin:0;padding:0;list-style:none;flex-wrap:nowrap}.acmaa-menu a{display:block;color:#102338;font-size:14px;font-weight:700;padding:12px 0;border-bottom:3px solid transparent;white-space:nowrap;line-height:1.3}.acmaa-menu .current-menu-item>a,.acmaa-menu a:hover{color:var(--acmaa-green);border-color:var(--acmaa-gold)}.acmaa-header-actions{display:flex;align-items:center;gap:10px}.acmaa-btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:12px 20px;border-radius:11px;border:1px solid transparent;font-weight:800;font-size:14px;line-height:1.35;transition:.2s;cursor:pointer}.acmaa-btn-primary{background:var(--acmaa-green);color:white!important;box-shadow:0 5px 14px rgba(6,72,61,.16)}.acmaa-btn-primary:hover{background:#0a5a4c;transform:translateY(-1px)}.acmaa-btn-gold{background:var(--acmaa-gold);color:#16332d!important}.acmaa-btn-outline{border-color:var(--acmaa-gold);color:white!important;background:rgba(5,57,48,.42)}.acmaa-mobile-toggle{display:none;background:var(--acmaa-green);color:#fff;border:0;border-radius:9px;padding:9px 12px}.acmaa-hero{position:relative;isolation:isolate;min-height:390px;display:flex;align-items:center;background:linear-gradient(90deg,rgba(5,31,49,.90),rgba(5,48,42,.58),rgba(5,48,42,.05)),var(--acmaa-hero-image,url("assets/images/hero-villa.jpg"));background-size:cover;background-position:center;color:white;overflow:hidden}.acmaa-hero:after{content:"";position:absolute;inset:auto 0 0;height:6px;background:linear-gradient(90deg,var(--acmaa-gold),#f8df8a,var(--acmaa-gold));z-index:-1}.acmaa-hero-content{padding:58px 0 72px;max-width:670px}.acmaa-eyebrow{font-weight:800;color:#ffdc7d;font-size:15px;letter-spacing:.2px}.acmaa-hero h1{font-size:clamp(34px,4.5vw,57px);line-height:1.18;letter-spacing:-.6px;color:#fff;margin:13px 0 15px;font-weight:900}.acmaa-hero h1 span{color:#ffd36a;display:block}.acmaa-hero p{max-width:580px;font-size:17px;line-height:1.8;color:#f4f7f6;margin:0 0 24px}.acmaa-hero-buttons{display:flex;gap:12px;flex-wrap:wrap}.acmaa-search-wrap{position:relative;margin-top:-38px;z-index:2}.acmaa-search-card{background:#fff;border:1px solid rgba(255,255,255,.7);border-radius:18px;padding:20px;box-shadow:var(--acmaa-shadow);display:grid;grid-template-columns:repeat(4,minmax(0,1fr)) auto;gap:14px;align-items:end}.acmaa-field label{display:block;font-size:13px;font-weight:800;margin:0 0 7px;color:#142538}.acmaa-field select,.acmaa-field input{width:100%;min-height:45px;padding:10px 12px;border:1px solid #dbe3e0;border-radius:10px;background:#fff;color:#334155}.acmaa-section{padding:55px 0}.acmaa-section-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin-bottom:24px}.acmaa-section-heading h2{font-size:clamp(25px,3vw,34px);line-height:1.25;margin:0;color:var(--acmaa-ink);font-weight:900}.acmaa-section-heading h2:after{content:"";display:block;width:50px;height:3px;background:var(--acmaa-gold);margin-top:12px}.acmaa-section-heading p{margin:7px 0 0;color:var(--acmaa-muted)}.acmaa-categories{display:grid;grid-template-columns:repeat(6,minmax(0,1fr));gap:15px}.acmaa-category{background:#fff;border:1px solid #e8eeeb;border-radius:15px;overflow:hidden;text-align:center;box-shadow:0 7px 20px rgba(20,45,39,.06);transition:transform .2s,box-shadow .2s}.acmaa-category:hover{transform:translateY(-4px);box-shadow:var(--acmaa-shadow)}.acmaa-category-visual{height:118px;background:linear-gradient(145deg,#dfece6,#9bbfb0);display:grid;place-items:center;color:var(--acmaa-green);font-size:45px;position:relative;overflow:hidden}.acmaa-category-visual:before,.acmaa-category-visual:after{content:"";position:absolute;background:rgba(255,255,255,.12);transform:rotate(30deg);width:90px;height:170px;top:-25px;right:20px}.acmaa-category-visual:after{right:auto;left:18px;background:rgba(6,72,61,.09)}.acmaa-category-visual span{position:relative;z-index:1}.acmaa-category h3{font-size:15px;margin:12px 8px 2px;color:var(--acmaa-green);font-weight:900}.acmaa-category p{font-size:12px;color:var(--acmaa-muted);margin:0 5px 13px}.acmaa-stats{background:linear-gradient(110deg,#043e35,#075849);color:#fff;padding:24px 0}.acmaa-stats-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:15px}.acmaa-stat{display:flex;align-items:center;gap:13px;padding:4px 18px;border-right:1px solid rgba(255,255,255,.25)}.acmaa-stat:last-child{border:0}.acmaa-stat-icon{font-size:27px;color:var(--acmaa-gold)}.acmaa-stat strong{font-size:24px;display:block;line-height:1.3}.acmaa-stat span{font-size:12px;color:#e2eee9}.acmaa-home-content{padding-top:36px}.acmaa-content-card{background:#fff;border:1px solid var(--acmaa-border);border-radius:var(--acmaa-radius);padding:clamp(20px,4vw,36px);box-shadow:0 6px 22px rgba(20,45,39,.04)}.acmaa-content-card h1,.acmaa-content-card h2{color:var(--acmaa-ink)}.acmaa-ad-slot{margin:22px auto;text-align:center;min-height:0;max-width:100%;overflow:hidden}.acmaa-ad-slot:empty{display:none}.acmaa-footer{background:#082f2a;color:#d8e7e1;padding:40px 0 18px;margin-top:50px}.acmaa-footer-grid{display:grid;grid-template-columns:2fr 1fr 1fr;gap:30px}.acmaa-footer h3{color:#fff;margin-top:0}.acmaa-footer a{color:#e3c16d}.acmaa-footer-bottom{border-top:1px solid rgba(255,255,255,.15);margin-top:25px;padding-top:16px;font-size:13px}.acmaa-page-wrap{padding:36px 0 50px}.acmaa-page-wrap .entry-content{background:#fff;border:1px solid var(--acmaa-border);border-radius:18px;padding:clamp(20px,4vw,36px);box-shadow:0 7px 25px rgba(20,45,39,.04)}.acmaa-page-wrap .entry-title{font-size:clamp(28px,4vw,38px);margin:0 0 22px}.acmaa-page-wrap input:not([type=checkbox]):not([type=radio]):not([type=submit]),.acmaa-page-wrap select,.acmaa-page-wrap textarea{max-width:100%;border:1px solid #d9e2de;border-radius:9px;padding:11px}.acmaa-page-wrap button,.acmaa-page-wrap input[type=submit]{border-radius:9px;background:var(--acmaa-green);color:#fff;padding:12px 20px;border:0;font-weight:800}.acmaa-pagination{margin:24px 0}.screen-reader-text{position:absolute!important;height:1px;width:1px;overflow:hidden;clip:rect(1px,1px,1px,1px);white-space:nowrap}.widget-area{margin:20px 0}.widget-area .widget{margin-bottom:20px}
@media(max-width:1180px){.acmaa-header-inner{gap:12px}.acmaa-brand{min-width:150px}.custom-logo{max-width:240px}.acmaa-menu{gap:10px}.acmaa-menu a{font-size:12px}.acmaa-header-actions .acmaa-btn{font-size:12px;padding:10px 12px}}
@media(max-width:1050px){.acmaa-menu{gap:12px}.acmaa-menu a{font-size:13px}.acmaa-search-card{grid-template-columns:repeat(2,minmax(0,1fr))}.acmaa-categories{grid-template-columns:repeat(3,minmax(0,1fr))}.acmaa-header-actions .acmaa-btn{padding:10px 12px}.acmaa-brand-text{font-size:24px}}
@media(max-width:760px){.acmaa-container{width:min(100% - 24px,1200px)}.acmaa-topbar-inner{justify-content:center;text-align:center}.acmaa-header-inner{min-height:72px;flex-wrap:wrap;padding:10px 0}.custom-logo{max-height:52px;max-width:210px}.acmaa-brand-text{font-size:21px}.acmaa-mobile-toggle{display:inline-flex}.acmaa-header-actions{margin-left:auto}.acmaa-header-actions .acmaa-btn{display:none}.acmaa-nav{display:none;width:100%;order:5}.acmaa-nav.is-open{display:block}.acmaa-menu{display:block;padding:5px 0 12px}.acmaa-menu li a{padding:10px 8px;border-bottom:1px solid #edf1ef}.acmaa-hero{min-height:350px;background-position:62% center}.acmaa-hero-content{padding:45px 0 64px}.acmaa-hero h1{font-size:35px}.acmaa-hero p{font-size:15px}.acmaa-search-card{grid-template-columns:1fr;gap:12px;padding:16px}.acmaa-search-wrap{margin-top:-28px}.acmaa-section{padding:38px 0}.acmaa-categories{grid-template-columns:repeat(2,minmax(0,1fr));gap:11px}.acmaa-category-visual{height:105px}.acmaa-stats-grid{grid-template-columns:repeat(2,1fr)}.acmaa-stat{padding:8px;border-right:0;border-bottom:1px solid rgba(255,255,255,.18)}.acmaa-stat strong{font-size:21px}.acmaa-section-heading{align-items:start;flex-direction:column}.acmaa-footer-grid{grid-template-columns:1fr;gap:22px}.acmaa-page-wrap{padding:22px 0 35px}}

/* v1.0.1: prevent generic WordPress archive/category widgets from appearing as ad content */
.acmaa-ad-slot .widget_archive,
.acmaa-ad-slot .widget_categories,
.acmaa-ad-slot .wp-block-archives,
.acmaa-ad-slot .wp-block-categories { display:none !important; }
.acmaa-footer-ad-slot { margin: 0 auto 22px; }
.acmaa-search-card > button { min-width: 108px; white-space: nowrap; }

/* v1.0.3 premium refinements */
.acmaa-category-visual{background-size:cover;background-position:center}
.acmaa-category-visual:after{pointer-events:none}
.acmaa-brand .custom-logo-link{display:flex;align-items:center}
@media(min-width:1181px){.acmaa-header-inner{width:min(1400px,calc(100% - 48px))}.acmaa-brand{margin-left:-6px}.acmaa-hero{background-position:center 52%}}


/* v1.0.4 — layout corrections based on the real desktop screenshot */
@media(min-width:1181px){
  .acmaa-header-inner{width:calc(100% - 56px)!important;max-width:none!important;margin:0 28px!important;gap:24px;justify-content:space-between;}
  .acmaa-brand{min-width:250px;width:250px;margin:0!important;justify-content:flex-start;}
  .acmaa-brand .custom-logo-link{display:flex;align-items:center;justify-content:flex-start;width:100%;}
  .acmaa-brand .custom-logo{max-width:250px;max-height:94px;object-position:left center;}
  .acmaa-nav{flex:1 1 auto;min-width:0;}
  .acmaa-nav .acmaa-menu{justify-content:space-evenly;gap:clamp(10px,1.2vw,20px);}
  .acmaa-menu a{font-size:clamp(13px,.95vw,15px);padding:15px 0;}
  .acmaa-header-actions{flex:0 0 auto;}
  .acmaa-hero{min-height:430px;background-position:center 48%;}
  .acmaa-hero-content{padding:62px 0 76px;max-width:700px;}
  .acmaa-search-card{padding:20px 22px;gap:14px;}
}
/* Hide generic archive/category widgets if old WordPress widgets remain enabled. */
.widget_archive,.widget_categories,.wp-block-archives,.wp-block-categories,
.acmaa-footer .widget_archive,.acmaa-footer .widget_categories,
.acmaa-footer .wp-block-archives,.acmaa-footer .wp-block-categories{display:none!important;}
.acmaa-footer{margin-top:0;}
.acmaa-footer-grid{align-items:start;}
.acmaa-footer .widget{margin:0 0 14px;}
.acmaa-footer p:last-child{margin-bottom:0;}
.acmaa-category-visual{background-size:cover!important;background-position:center!important;background-repeat:no-repeat!important;}
.acmaa-category-visual:before{pointer-events:none;z-index:0;}
.acmaa-category-visual:after{pointer-events:none;z-index:0;}
.acmaa-search-wrap{margin-bottom:0;}
@media(max-width:1180px) and (min-width:761px){
  .acmaa-header-inner{width:calc(100% - 32px)!important;margin:0 16px!important;gap:12px;}
  .acmaa-brand{min-width:180px;width:180px;margin:0!important;}
  .acmaa-brand .custom-logo{max-width:180px;max-height:72px;}
  .acmaa-nav{flex:1;min-width:0;}
  .acmaa-menu{justify-content:space-around;gap:9px;}
  .acmaa-menu a{font-size:12px;}
}
@media(max-width:760px){
  .acmaa-header-inner{width:calc(100% - 24px)!important;margin:0 12px!important;}
  .acmaa-brand{margin:0!important;min-width:0;width:auto;}
  .acmaa-hero{background-position:62% center;}
  .acmaa-footer{padding-top:30px;}
}


/* v1.0.5 — desktop header alignment correction from the latest live-site screenshot */
@media (min-width: 761px) {
  body .acmaa-header .acmaa-header-inner {
    display: flex !important;
    width: calc(100% - 48px) !important;
    max-width: 1600px !important;
    margin-left: auto !important;
    margin-right: auto !important;
    padding-left: 0 !important;
    padding-right: 0 !important;
    justify-content: flex-start !important;
    align-items: center !important;
    gap: 22px !important;
  }
  body .acmaa-header .acmaa-brand {
    display: flex !important;
    flex: 0 0 225px !important;
    width: 225px !important;
    min-width: 225px !important;
    max-width: 225px !important;
    margin: 0 !important;
    padding: 0 !important;
    justify-content: flex-start !important;
    align-items: center !important;
  }
  body .acmaa-header .acmaa-brand .custom-logo-link {
    display: flex !important;
    flex: 0 1 auto !important;
    width: auto !important;
    max-width: 225px !important;
    margin: 0 !important;
    padding: 0 !important;
    justify-content: flex-start !important;
    align-items: center !important;
  }
  body .acmaa-header .acmaa-brand img.custom-logo {
    display: block !important;
    width: auto !important;
    max-width: 225px !important;
    max-height: 82px !important;
    margin: 0 !important;
    object-fit: contain !important;
    object-position: left center !important;
  }
  body .acmaa-header .acmaa-nav {
    flex: 1 1 auto !important;
    min-width: 0 !important;
    margin: 0 !important;
  }
  body .acmaa-header .acmaa-menu {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: clamp(8px, .9vw, 16px) !important;
    margin: 0 !important;
    padding: 0 !important;
  }
  body .acmaa-header .acmaa-menu > li { flex: 0 1 auto !important; margin: 0 !important; }
  body .acmaa-header .acmaa-menu > li > a {
    font-size: clamp(12px, .88vw, 14px) !important;
    line-height: 1.3 !important;
    padding: 12px 0 !important;
    white-space: nowrap !important;
  }
  body .acmaa-header .acmaa-header-actions {
    flex: 0 0 auto !important;
    margin: 0 !important;
  }
  body .acmaa-header .acmaa-header-actions .acmaa-btn {
    white-space: nowrap !important;
    padding: 12px 16px !important;
  }
}
@media (min-width: 761px) and (max-width: 1120px) {
  body .acmaa-header .acmaa-header-inner { gap: 12px !important; width: calc(100% - 32px) !important; }
  body .acmaa-header .acmaa-brand { flex-basis: 170px !important; width:170px !important; min-width:170px !important; max-width:170px !important; }
  body .acmaa-header .acmaa-brand img.custom-logo { max-width:170px !important; max-height:68px !important; }
  body .acmaa-header .acmaa-menu { gap: 8px !important; }
  body .acmaa-header .acmaa-menu > li > a { font-size: 11px !important; }
  body .acmaa-header .acmaa-header-actions .acmaa-btn { padding: 9px 10px !important; font-size: 11px !important; }
}
/* Keep WordPress content and footer widgets from adding unwanted default spacing. */
body .acmaa-footer { margin-top: 0 !important; }
body .acmaa-footer-grid { align-items: start !important; }
body .acmaa-footer .widget_archive,
body .acmaa-footer .widget_categories,
body .acmaa-footer .wp-block-archives,
body .acmaa-footer .wp-block-categories { display: none !important; }
